diff --git a/.rubocop.yml b/.rubocop.yml index 75c0c9f..087d9c0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,15 +16,16 @@ plugins: AllCops: SuggestExtensions: false NewCops: enable + TargetRubyVersion: 3.3 Exclude: - vendor/bundle/**/** Metrics/ParameterLists: Enabled: false -# This cop is annoying with typed configuration -Style/TrivialAccessors: - Enabled: false +# Allow RBS inline type annotation comments (`#:` and `#|`). +Layout/LeadingCommentSpace: + AllowRBSInlineAnnotation: true # This rubocop is annoying when we use interfaces a lot Lint/UnusedMethodArgument: @@ -33,9 +34,6 @@ Lint/UnusedMethodArgument: Gemspec/RequireMFA: Enabled: false -Lint/DuplicateBranch: - Enabled: false - # If is sometimes easier to think about than unless sometimes Style/NegatedIf: Enabled: false @@ -44,31 +42,18 @@ Style/NegatedIf: Style/FrozenStringLiteralComment: Enabled: false -# It's nice to be able to read the condition first before reading the code within the condition -Style/GuardClause: - Enabled: false - # # Leaving length metrics to human judgment for now # -Metrics/ModuleLength: - Enabled: false - Layout/LineLength: Enabled: false -Metrics/BlockLength: - Enabled: false - Metrics/MethodLength: Enabled: false Metrics/AbcSize: Enabled: false -Metrics/ClassLength: - Enabled: false - # This doesn't feel useful Metrics/CyclomaticComplexity: Enabled: false @@ -89,26 +74,6 @@ Style/ConditionalAssignment: Style/Documentation: Enabled: false -# Sometimes we leave comments in empty else statements intentionally -Style/EmptyElse: - Enabled: false - -# Sometimes we want to more explicitly list out a condition -Style/RedundantCondition: - Enabled: false - -# This leads to code that is not very readable at times (very long lines) -Layout/MultilineMethodCallIndentation: - Enabled: false - -# Blocks across lines are okay sometimes -Style/BlockDelimiters: - Enabled: false - -# Sometimes we like methods like `get_packages` -Naming/AccessorMethodName: - Enabled: false - # This leads to code that is not very readable at times (very long lines) Layout/FirstArgumentIndentation: Enabled: false @@ -117,15 +82,6 @@ Layout/FirstArgumentIndentation: Layout/ArgumentAlignment: Enabled: false -Style/AccessorGrouping: - Enabled: false - -Style/NumericPredicate: - Enabled: false - -Layout/BlockEndNewline: - Enabled: false - Naming/FileName: Exclude: - lib/packwerk-extensions.rb diff --git a/Gemfile b/Gemfile index 7f4f5e9..02f3c1f 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,7 @@ source 'https://rubygems.org' gemspec + +# Pinned to main for the not-yet-released `Sorbet/RedundantTLet` and +# `Sorbet/RedundantTLetForLiteral` cops (see Shopify/rubocop-sorbet#372 and #367). +gem 'rubocop-sorbet', github: 'Shopify/rubocop-sorbet', ref: '7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd' diff --git a/Gemfile.lock b/Gemfile.lock index 085105f..64a5019 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,18 @@ +GIT + remote: https://github.com/Shopify/rubocop-sorbet.git + revision: 7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd + ref: 7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd + specs: + rubocop-sorbet (0.12.0) + lint_roller + rubocop (>= 1.75.2) + PATH remote: . specs: packwerk-extensions (0.3.0) packwerk (>= 3) railties (>= 6.0.0) - sorbet-runtime zeitwerk GEM @@ -106,7 +114,7 @@ GEM prism (>= 0.25.0) sorbet-runtime (>= 0.5.9914) zeitwerk (>= 2.6.1) - parallel (1.27.0) + parallel (1.28.0) parser (3.3.10.2) ast (~> 2.4.1) racc @@ -149,12 +157,12 @@ GEM zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.3.1) - rbi (0.3.9) + rbi (0.3.12) prism (~> 1.0) - rbs (>= 3.4.4) - rbs (4.0.0.dev.5) + rbs (>= 4.0.1) + rbs (4.1.0.pre.1) logger - prism (>= 1.3.0) + prism (>= 1.6.0) tsort rdoc (7.2.0) erb @@ -163,7 +171,7 @@ GEM regexp_parser (2.11.3) reline (0.6.3) io-console (~> 0.5) - require-hooks (0.2.3) + require-hooks (0.4.0) rexml (3.4.4) rubocop (1.85.1) json (~> 2.3) @@ -198,41 +206,42 @@ GEM rubocop-rspec (3.9.0) lint_roller (~> 1.1) rubocop (~> 1.81) - rubocop-sorbet (0.12.0) - lint_roller - rubocop (>= 1.75.2) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) + rubydex (0.2.5-arm64-darwin) + rubydex (0.2.5-x86_64-darwin) + rubydex (0.2.5-x86_64-linux) securerandom (0.4.1) smart_properties (1.17.0) - sorbet (0.6.12992) - sorbet-static (= 0.6.12992) - sorbet-runtime (0.6.12992) - sorbet-static (0.6.12992-universal-darwin) - sorbet-static (0.6.12992-x86_64-linux) - sorbet-static-and-runtime (0.6.12992) - sorbet (= 0.6.12992) - sorbet-runtime (= 0.6.12992) - spoom (1.7.11) + sorbet (0.6.13258) + sorbet-static (= 0.6.13258) + sorbet-runtime (0.6.13258) + sorbet-static (0.6.13258-universal-darwin) + sorbet-static (0.6.13258-x86_64-linux) + sorbet-static-and-runtime (0.6.13258) + sorbet (= 0.6.13258) + sorbet-runtime (= 0.6.13258) + spoom (1.7.16) erubi (>= 1.10.0) prism (>= 0.28.0) rbi (>= 0.3.3) - rbs (>= 4.0.0.dev.4) + rbs (>= 4.0.0.dev.5) rexml (>= 3.2.6) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) stringio (3.2.0) - tapioca (0.17.10) + tapioca (0.19.1) benchmark bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) rbi (>= 0.3.7) require-hooks (>= 0.2.2) - sorbet-static-and-runtime (>= 0.5.11087) + rubydex (>= 0.1.0.beta10) + sorbet-static-and-runtime (>= 0.6.12698) spoom (>= 1.7.9) thor (>= 1.2.0) - yard-sorbet + tsort thor (1.5.0) tsort (0.2.0) tzinfo (2.0.6) @@ -242,10 +251,6 @@ GEM unicode-emoji (4.2.0) uri (1.1.1) useragent (0.16.11) - yard (0.9.38) - yard-sorbet (0.9.0) - sorbet-runtime - yard zeitwerk (2.7.5) PLATFORMS @@ -261,6 +266,7 @@ DEPENDENCIES rake rubocop rubocop-gusto + rubocop-sorbet! sorbet sorbet-static tapioca diff --git a/lib/packwerk-extensions.rb b/lib/packwerk-extensions.rb index e7a5361..c3aaaa1 100644 --- a/lib/packwerk-extensions.rb +++ b/lib/packwerk-extensions.rb @@ -1,7 +1,6 @@ # typed: strict # frozen_string_literal: true -require 'sorbet-runtime' require 'packwerk' require 'packwerk/privacy/checker' diff --git a/lib/packwerk/folder_privacy/checker.rb b/lib/packwerk/folder_privacy/checker.rb index b3c0afe..7537367 100644 --- a/lib/packwerk/folder_privacy/checker.rb +++ b/lib/packwerk/folder_privacy/checker.rb @@ -7,21 +7,18 @@ module Packwerk module FolderPrivacy class Checker - extend T::Sig include Packwerk::Checker - VIOLATION_TYPE = T.let('folder_privacy', String) + VIOLATION_TYPE = 'folder_privacy' - sig { override.returns(String) } + # @override + #: -> String def violation_type VIOLATION_TYPE end - sig do - override - .params(reference: Packwerk::Reference) - .returns(T::Boolean) - end + # @override + #: (Packwerk::Reference reference) -> bool def invalid_reference?(reference) referencing_package = reference.package referenced_package = reference.constant.package @@ -41,21 +38,15 @@ def invalid_reference?(reference) true end - sig do - override - .params(listed_offense: Packwerk::ReferenceOffense) - .returns(T::Boolean) - end + # @override + #: (Packwerk::ReferenceOffense listed_offense) -> bool def strict_mode_violation?(listed_offense) publishing_package = listed_offense.reference.constant.package publishing_package.config['enforce_folder_privacy'] == 'strict' end - sig do - override - .params(reference: Packwerk::Reference) - .returns(String) - end + # @override + #: (Packwerk::Reference reference) -> String def message(reference) source_desc = "'#{reference.package}'" @@ -71,15 +62,12 @@ def message(reference) private - sig do - params(visibility_option: T.nilable(T.any(T::Boolean, String))) - .returns(T::Boolean) - end + #: ((bool | String)? visibility_option) -> bool def enforcement_disabled?(visibility_option) [false, nil].include?(visibility_option) end - sig { params(reference: Reference).returns(String) } + #: (Reference reference) -> String def standard_help_message(reference) standard_message = <<~MESSAGE.chomp Inference details: this is a reference to #{reference.constant.name} which seems to be defined in #{reference.constant.location}. diff --git a/lib/packwerk/folder_privacy/package.rb b/lib/packwerk/folder_privacy/package.rb index a72962a..c2b5572 100644 --- a/lib/packwerk/folder_privacy/package.rb +++ b/lib/packwerk/folder_privacy/package.rb @@ -3,15 +3,17 @@ module Packwerk module FolderPrivacy - class Package < T::Struct - extend T::Sig + class Package + #: (bool | String)? + attr_reader :enforce_folder_privacy - const :enforce_folder_privacy, T.nilable(T.any(T::Boolean, String)) + #: (enforce_folder_privacy: (bool | String)?) -> void + def initialize(enforce_folder_privacy:) + @enforce_folder_privacy = enforce_folder_privacy + end class << self - extend T::Sig - - sig { params(package: ::Packwerk::Package).returns(Package) } + #: (::Packwerk::Package package) -> Package def from(package) Package.new( enforce_folder_privacy: package.config['enforce_folder_privacy'] diff --git a/lib/packwerk/folder_privacy/validator.rb b/lib/packwerk/folder_privacy/validator.rb index 93bb14a..dae34db 100644 --- a/lib/packwerk/folder_privacy/validator.rb +++ b/lib/packwerk/folder_privacy/validator.rb @@ -4,14 +4,14 @@ module Packwerk module FolderPrivacy class Validator - extend T::Sig include Packwerk::Validator Result = Packwerk::Validator::Result - sig { override.params(package_set: PackageSet, configuration: Configuration).returns(Result) } + # @override + #: (PackageSet package_set, Configuration configuration) -> Result def call(package_set, configuration) - results = T.let([], T::Array[Result]) + results = [] #: Array[Result] package_manifests_settings_for(configuration, 'enforce_folder_privacy').each do |config, setting| next if setting.nil? @@ -27,7 +27,8 @@ def call(package_set, configuration) merge_results(results, separator: "\n---\n") end - sig { override.returns(T::Array[String]) } + # @override + #: -> Array[String] def permitted_keys %w(enforce_folder_privacy) end diff --git a/lib/packwerk/layer/checker.rb b/lib/packwerk/layer/checker.rb index f691349..5c7c27c 100644 --- a/lib/packwerk/layer/checker.rb +++ b/lib/packwerk/layer/checker.rb @@ -28,45 +28,31 @@ module Layer # C) A potential sequencing for modularizing a system (starting with lower layers first). # class Checker - extend T::Sig include Packwerk::Checker - sig { void } - def initialize - @violation_type = T.let(@violation_type, T.nilable(String)) - end - - sig { override.returns(String) } + # @override + #: -> String def violation_type - @violation_type ||= layer_config.violation_key + @violation_type ||= layer_config.violation_key #: String? end - sig do - override - .params(reference: Packwerk::Reference) - .returns(T::Boolean) - end + # @override + #: (Packwerk::Reference reference) -> bool def invalid_reference?(reference) constant_package = Package.from(reference.constant.package, layers) referencing_package = Package.from(reference.package, layers) !referencing_package.can_depend_on?(constant_package, layers: layers) end - sig do - override - .params(listed_offense: Packwerk::ReferenceOffense) - .returns(T::Boolean) - end + # @override + #: (Packwerk::ReferenceOffense listed_offense) -> bool def strict_mode_violation?(listed_offense) constant_package = listed_offense.reference.package constant_package.config[layer_config.enforce_key] == 'strict' end - sig do - override - .params(reference: Packwerk::Reference) - .returns(String) - end + # @override + #: (Packwerk::Reference reference) -> String def message(reference) constant_package = Package.from(reference.constant.package, layers) referencing_package = Package.from(reference.package, layers) @@ -84,7 +70,7 @@ def message(reference) end # TODO: Extract this out into a common helper, can call it StandardViolationHelpMessage.new(...) and implements .to_s - sig { params(reference: Reference).returns(String) } + #: (Reference reference) -> String def standard_help_message(reference) standard_message = <<~MESSAGE.chomp Inference details: this is a reference to #{reference.constant.name} which seems to be defined in #{reference.constant.location}. @@ -94,14 +80,14 @@ def standard_help_message(reference) standard_message.chomp end - sig { returns(Layers) } + #: -> Layers def layers - @layers ||= T.let(Layers.new, T.nilable(Packwerk::Layer::Layers)) + @layers ||= Layers.new #: Packwerk::Layer::Layers? end - sig { returns(Config) } + #: -> Config def layer_config - @layer_config ||= T.let(Config.new, T.nilable(Config)) + @layer_config ||= Config.new #: Config? end end end diff --git a/lib/packwerk/layer/config.rb b/lib/packwerk/layer/config.rb index c1048f4..f12390d 100644 --- a/lib/packwerk/layer/config.rb +++ b/lib/packwerk/layer/config.rb @@ -4,40 +4,32 @@ module Packwerk module Layer class Config - extend T::Sig + ARCHITECTURE_VIOLATION_TYPE = 'architecture' + ARCHITECTURE_ENFORCE = 'enforce_architecture' + LAYER_VIOLATION_TYPE = 'layer' + LAYER_ENFORCE = 'enforce_layers' - ARCHITECTURE_VIOLATION_TYPE = T.let('architecture', String) - ARCHITECTURE_ENFORCE = T.let('enforce_architecture', String) - LAYER_VIOLATION_TYPE = T.let('layer', String) - LAYER_ENFORCE = T.let('enforce_layers', String) - - sig { void } - def initialize - @layers_key_configured = T.let(@layers_key_configured, T.nilable(T::Boolean)) - @layers_list = T.let(@layers_list, T.nilable(T::Array[String])) - end - - sig { returns(T::Array[String]) } + #: -> Array[String] def layers_list - @layers_list ||= YAML.load_file('packwerk.yml')[layers_key] || [] + @layers_list ||= YAML.load_file('packwerk.yml')[layers_key] || [] #: Array[String]? end - sig { returns(T::Boolean) } + #: -> bool def layers_key_configured? - @layers_key_configured ||= YAML.load_file('packwerk.yml')['architecture_layers'].nil? + @layers_key_configured ||= YAML.load_file('packwerk.yml')['architecture_layers'].nil? #: bool? end - sig { returns(String) } + #: -> String def layers_key layers_key_configured? ? 'layers' : 'architecture_layers' end - sig { returns(String) } + #: -> String def violation_key layers_key_configured? ? LAYER_VIOLATION_TYPE : ARCHITECTURE_VIOLATION_TYPE end - sig { returns(String) } + #: -> String def enforce_key layers_key_configured? ? LAYER_ENFORCE : ARCHITECTURE_ENFORCE end diff --git a/lib/packwerk/layer/layers.rb b/lib/packwerk/layer/layers.rb index 68d485b..ebf4b5d 100644 --- a/lib/packwerk/layer/layers.rb +++ b/lib/packwerk/layer/layers.rb @@ -4,15 +4,7 @@ module Packwerk module Layer class Layers - extend T::Sig - - sig { void } - def initialize - @names = T.let(@names, T.nilable(T::Set[String])) - @names_list = T.let(@names_list, T.nilable(T::Array[String])) - end - - sig { params(layer: String).returns(Integer) } + #: (String layer) -> Integer def index_of(layer) index = names_list.reverse.find_index(layer) if index.nil? @@ -22,14 +14,14 @@ def index_of(layer) index end - sig { returns(T::Set[String]) } + #: -> Set[String] def names - @names ||= Set.new(names_list) + @names ||= Set.new(names_list) #: Set[String]? end - sig { returns(T::Array[String]) } + #: -> Array[String] def names_list - @names_list ||= Config.new.layers_list + @names_list ||= Config.new.layers_list #: Array[String]? end end end diff --git a/lib/packwerk/layer/package.rb b/lib/packwerk/layer/package.rb index 943c9f6..4f1b1f1 100644 --- a/lib/packwerk/layer/package.rb +++ b/lib/packwerk/layer/package.rb @@ -3,19 +3,29 @@ module Packwerk module Layer - class Package < T::Struct - extend T::Sig + class Package + #: String? + attr_reader :layer - const :layer, T.nilable(String) - const :enforcement_setting, T.nilable(T.any(T::Boolean, String, T::Array[String])) - const :config, T::Hash[T.untyped, T.untyped] + #: (bool | String | Array[String])? + attr_reader :enforcement_setting - sig { returns(T::Boolean) } + #: Hash[untyped, untyped] + attr_reader :config + + #: (layer: String?, enforcement_setting: (bool | String | Array[String])?, config: Hash[untyped, untyped]) -> void + def initialize(layer:, enforcement_setting:, config:) + @layer = layer + @enforcement_setting = enforcement_setting + @config = config + end + + #: -> bool def enforces? enforcement_setting == true || enforcement_setting == 'strict' end - sig { params(other_package: Package, layers: Layers).returns(T::Boolean) } + #: (Package other_package, layers: Layers) -> bool def can_depend_on?(other_package, layers:) return true if !enforces? @@ -28,9 +38,7 @@ def can_depend_on?(other_package, layers:) end class << self - extend T::Sig - - sig { params(package: ::Packwerk::Package, layers: Layers).returns(Package) } + #: (::Packwerk::Package package, Layers layers) -> Package def from(package, layers) config = package.config diff --git a/lib/packwerk/layer/validator.rb b/lib/packwerk/layer/validator.rb index 17d4501..bb0f9b3 100644 --- a/lib/packwerk/layer/validator.rb +++ b/lib/packwerk/layer/validator.rb @@ -4,14 +4,14 @@ module Packwerk module Layer class Validator - extend T::Sig include Packwerk::Validator Result = Packwerk::Validator::Result - sig { override.params(package_set: PackageSet, configuration: Configuration).returns(Result) } + # @override + #: (PackageSet package_set, Configuration configuration) -> Result def call(package_set, configuration) - results = T.let([], T::Array[Result]) + results = [] #: Array[Result] package_set.each do |package| config = package.config @@ -36,24 +36,23 @@ def call(package_set, configuration) merge_results(results, separator: "\n---\n") end - sig { returns(Layers) } + #: -> Layers def layers - @layers ||= T.let(Layers.new, T.nilable(Packwerk::Layer::Layers)) + @layers ||= Layers.new #: Packwerk::Layer::Layers? end - sig { returns(Config) } + #: -> Config def layer_config - @layer_config ||= T.let(Config.new, T.nilable(Config)) + @layer_config ||= Config.new #: Config? end - sig { override.returns(T::Array[String]) } + # @override + #: -> Array[String] def permitted_keys [layer_config.enforce_key, 'layer'] end - sig do - params(package: Package, config_file_path: String, config: T::Hash[T.untyped, T.untyped]).returns(Result) - end + #: (Package package, String config_file_path, Hash[untyped, untyped] config) -> Result def check_enforce_key(package, config_file_path, config) enforce_layer_present = !config[Config::LAYER_ENFORCE].nil? enforce_architecture_present = !config[Config::ARCHITECTURE_ENFORCE].nil? @@ -73,9 +72,7 @@ def check_enforce_key(package, config_file_path, config) end end - sig do - params(package: Package, config_file_path: String).returns(Result) - end + #: (Package package, String config_file_path) -> Result def check_layer_setting(package, config_file_path) layer = package.layer valid_layer = layer.nil? || layers.names.include?(layer) @@ -95,9 +92,7 @@ def check_layer_setting(package, config_file_path) end end - sig do - params(config_file_path: String, setting: T.untyped).returns(Result) - end + #: (String config_file_path, untyped setting) -> Result def check_enforce_layers_setting(config_file_path, setting) activated_value = [true, 'strict'].include?(setting) valid_value = [true, nil, false, 'strict'].include?(setting) diff --git a/lib/packwerk/privacy/checker.rb b/lib/packwerk/privacy/checker.rb index a7f4340..050c854 100644 --- a/lib/packwerk/privacy/checker.rb +++ b/lib/packwerk/privacy/checker.rb @@ -8,52 +8,46 @@ module Packwerk module Privacy # Checks whether a given reference references a private constant of another package. class Checker - extend T::Sig include Packwerk::Checker - VIOLATION_TYPE = T.let('privacy', String) - PUBLICIZED_SIGIL = T.let('pack_public: true', String) - PUBLICIZED_SIGIL_REGEX = T.let(/#.*pack_public:\s*true/, Regexp) - @publicized_locations = T.let({}, T::Hash[String, T::Boolean]) + VIOLATION_TYPE = 'privacy' + PUBLICIZED_SIGIL = 'pack_public: true' + PUBLICIZED_SIGIL_REGEX = /#.*pack_public:\s*true/ + @publicized_locations = {} #: Hash[String, bool] class << self - extend T::Sig + #: Hash[String, bool] + attr_reader :publicized_locations - sig { returns(T::Hash[String, T::Boolean]) } - def publicized_locations - @publicized_locations - end - - sig { params(location: String).returns(T::Boolean) } + #: (String location) -> bool def publicized_location?(location) unless publicized_locations.key?(location) publicized_locations[location] = check_for_publicized_sigil(location) end - T.must(publicized_locations[location]) + publicized_locations[location] #: as !nil end - sig { params(location: String).returns(T::Boolean) } + #: (String location) -> bool def check_for_publicized_sigil(location) content_contains_sigil?(File.readlines(location)) end - sig { params(lines: T::Array[String]).returns(T::Boolean) } + #: (Array[String] lines) -> bool def content_contains_sigil?(lines) - T.must(lines[0..4]).any? { |l| l =~ PUBLICIZED_SIGIL_REGEX } + first_lines = lines[0..4] #: as !nil + first_lines.any? { |l| l =~ PUBLICIZED_SIGIL_REGEX } end end - sig { override.returns(String) } + # @override + #: -> String def violation_type VIOLATION_TYPE end - sig do - override - .params(reference: Packwerk::Reference) - .returns(T::Boolean) - end + # @override + #: (Packwerk::Reference reference) -> bool def invalid_reference?(reference) constant_package = reference.constant.package privacy_package = Package.from(constant_package) @@ -69,11 +63,8 @@ def invalid_reference?(reference) explicitly_private_constant?(reference.constant, explicitly_private_constants: privacy_package.private_constants) end - sig do - override - .params(listed_offense: Packwerk::ReferenceOffense) - .returns(T::Boolean) - end + # @override + #: (Packwerk::ReferenceOffense listed_offense) -> bool def strict_mode_violation?(listed_offense) publishing_package = listed_offense.reference.constant.package @@ -86,11 +77,8 @@ def strict_mode_violation?(listed_offense) true end - sig do - override - .params(reference: Packwerk::Reference) - .returns(String) - end + # @override + #: (Packwerk::Reference reference) -> String def message(reference) source_desc = "'#{reference.package}'" @@ -106,12 +94,7 @@ def message(reference) private - sig do - params( - constant: ConstantContext, - explicitly_private_constants: T::Array[String] - ).returns(T::Boolean) - end + #: (ConstantContext constant, explicitly_private_constants: Array[String]) -> bool def explicitly_private_constant?(constant, explicitly_private_constants:) return true if explicitly_private_constants.empty? @@ -120,15 +103,12 @@ def explicitly_private_constant?(constant, explicitly_private_constants:) explicitly_private_constants.any? { |epc| constant.name.start_with?("#{epc}::") } end - sig do - params(privacy_option: T.nilable(T.any(T::Boolean, String, T::Array[String]))) - .returns(T::Boolean) - end + #: ((bool | String | Array[String])? privacy_option) -> bool def enforcement_disabled?(privacy_option) [false, nil].include?(privacy_option) end - sig { params(reference: Reference).returns(String) } + #: (Reference reference) -> String def standard_help_message(reference) standard_message = <<~MESSAGE.chomp Inference details: this is a reference to #{reference.constant.name} which seems to be defined in #{reference.constant.location}. @@ -138,7 +118,7 @@ def standard_help_message(reference) standard_message.chomp end - sig { params(globs: T::Array[String], path: Pathname).returns(T::Boolean) } + #: (Array[String] globs, Pathname path) -> bool def exclude_from_strict?(globs, path) globs.any? do |glob| path.fnmatch(glob, File::FNM_EXTGLOB) diff --git a/lib/packwerk/privacy/package.rb b/lib/packwerk/privacy/package.rb index 9144dca..397b800 100644 --- a/lib/packwerk/privacy/package.rb +++ b/lib/packwerk/privacy/package.rb @@ -3,25 +3,56 @@ module Packwerk module Privacy - class Package < T::Struct - extend T::Sig + class Package + #: String + attr_reader :public_path - const :public_path, String - const :user_defined_public_path, T.nilable(String) - const :enforce_privacy, T.nilable(T.any(T::Boolean, String)) - const :private_constants, T::Array[String] - const :ignored_private_constants, T::Array[String] - const :strict_privacy_ignored_patterns, T::Array[String] + #: String? + attr_reader :user_defined_public_path - sig { params(path: String).returns(T::Boolean) } + #: (bool | String)? + attr_reader :enforce_privacy + + #: Array[String] + attr_reader :private_constants + + #: Array[String] + attr_reader :ignored_private_constants + + #: Array[String] + attr_reader :strict_privacy_ignored_patterns + + #: ( + #| public_path: String, + #| user_defined_public_path: String?, + #| enforce_privacy: (bool | String)?, + #| private_constants: Array[String], + #| ignored_private_constants: Array[String], + #| strict_privacy_ignored_patterns: Array[String] + #| ) -> void + def initialize( + public_path:, + user_defined_public_path:, + enforce_privacy:, + private_constants:, + ignored_private_constants:, + strict_privacy_ignored_patterns: + ) + @public_path = public_path + @user_defined_public_path = user_defined_public_path + @enforce_privacy = enforce_privacy + @private_constants = private_constants + @ignored_private_constants = ignored_private_constants + @strict_privacy_ignored_patterns = strict_privacy_ignored_patterns + end + + #: (String path) -> bool def public_path?(path) path.start_with?(public_path) end class << self - extend T::Sig - - sig { params(package: ::Packwerk::Package).returns(Package) } + #: (::Packwerk::Package package) -> Package def from(package) Package.new( public_path: public_path_for(package), @@ -33,7 +64,7 @@ def from(package) ) end - sig { params(package: ::Packwerk::Package).returns(T.nilable(String)) } + #: (::Packwerk::Package package) -> String? def user_defined_public_path(package) return unless package.config['public_path'] return package.config['public_path'] if package.config['public_path'].end_with?('/') @@ -41,7 +72,7 @@ def user_defined_public_path(package) "#{package.config['public_path']}/" end - sig { params(package: ::Packwerk::Package).returns(String) } + #: (::Packwerk::Package package) -> String def public_path_for(package) unprefixed_public_path = user_defined_public_path(package) || 'app/public/' diff --git a/lib/packwerk/privacy/validator.rb b/lib/packwerk/privacy/validator.rb index 33d43f4..2fbd722 100644 --- a/lib/packwerk/privacy/validator.rb +++ b/lib/packwerk/privacy/validator.rb @@ -4,20 +4,18 @@ module Packwerk module Privacy class Validator - extend T::Sig include Packwerk::Validator Result = Packwerk::Validator::Result - sig { override.params(package_set: PackageSet, configuration: Configuration).returns(Result) } + # @override + #: (PackageSet package_set, Configuration configuration) -> Result def call(package_set, configuration) privacy_settings = package_manifests_settings_for(configuration, 'enforce_privacy') - results = T.let([], T::Array[Result]) - - privacy_settings.each do |config_file_path, setting| - results << check_enforce_privacy_setting(config_file_path, setting) - end + results = privacy_settings.map do |config_file_path, setting| + check_enforce_privacy_setting(config_file_path, setting) + end #: Array[Result] results += verify_private_constants_setting(package_set, configuration) @@ -29,17 +27,18 @@ def call(package_set, configuration) merge_results(results, separator: "\n---\n") end - sig { override.returns(T::Array[String]) } + # @override + #: -> Array[String] def permitted_keys %w(public_path enforce_privacy private_constants ignored_private_constants strict_privacy_ignored_patterns) end private - sig { params(package_set: PackageSet, configuration: Configuration).returns(T::Array[Result]) } + #: (PackageSet package_set, Configuration configuration) -> Array[Result] def verify_private_constants_setting(package_set, configuration) private_constants_setting = package_manifests_settings_for(configuration, 'private_constants') - results = T.let([], T::Array[Result]) + results = [] #: Array[Result] resolver = ConstantResolver.new( root_path: configuration.root_path, load_paths: configuration.load_paths, @@ -75,9 +74,7 @@ def verify_private_constants_setting(package_set, configuration) results end - sig do - params(config_file_path: String, setting: T.untyped).returns(Result) - end + #: (String config_file_path, untyped setting) -> Result def check_public_path(config_file_path, setting) if setting.is_a?(String) || setting.nil? Result.new(ok: true) @@ -89,9 +86,7 @@ def check_public_path(config_file_path, setting) end end - sig do - params(config_file_path: String, setting: T.untyped).returns(Result) - end + #: (String config_file_path, untyped setting) -> Result def check_enforce_privacy_setting(config_file_path, setting) if [TrueClass, FalseClass, NilClass].include?(setting.class) || setting == 'strict' Result.new(ok: true) @@ -103,12 +98,13 @@ def check_enforce_privacy_setting(config_file_path, setting) end end - sig do - params( -configuration: Configuration, package_set: PackageSet, name: T.untyped, location: T.untyped, -config_file_path: T.untyped -).returns(Result) - end + #: ( + #| Configuration configuration, + #| PackageSet package_set, + #| untyped name, + #| untyped location, + #| untyped config_file_path + #| ) -> Result def check_private_constant_location(configuration, package_set, name, location, config_file_path) declared_package = package_set.package_from_path(relative_path(configuration, config_file_path)) constant_package = package_set.package_from_path(location) @@ -123,7 +119,7 @@ def check_private_constant_location(configuration, package_set, name, location, end end - sig { params(location: String, constant_package: Packwerk::Package, name: T.untyped).returns(Result) } + #: (String location, Packwerk::Package constant_package, untyped name) -> Result def check_for_publicized_constant(location, constant_package, name) if Packwerk::Privacy::Checker.publicized_location?(location) sigil = Packwerk::Privacy::Checker::PUBLICIZED_SIGIL @@ -140,7 +136,7 @@ def check_for_publicized_constant(location, constant_package, name) end end - sig { params(constants: T.untyped, config_file_path: String).returns(T::Array[Result]) } + #: (untyped constants, String config_file_path) -> Array[Result] def assert_constants_can_be_loaded(constants, config_file_path) constants.map do |constant| if constant.start_with?('::') @@ -157,7 +153,7 @@ def assert_constants_can_be_loaded(constants, config_file_path) end end - sig { params(name: T.untyped, config_file_path: T.untyped).returns(Result) } + #: (untyped name, untyped config_file_path) -> Result def private_constant_unresolvable(name, config_file_path) explicit_filepath = "#{(name.start_with?('::') ? name[2..] : name).underscore}.rb" diff --git a/lib/packwerk/visibility/checker.rb b/lib/packwerk/visibility/checker.rb index 8d1de12..614096f 100644 --- a/lib/packwerk/visibility/checker.rb +++ b/lib/packwerk/visibility/checker.rb @@ -8,21 +8,18 @@ module Packwerk module Visibility # Checks whether a given reference references a constant from a package that does not permit visibility class Checker - extend T::Sig include Packwerk::Checker - VIOLATION_TYPE = T.let('visibility', String) + VIOLATION_TYPE = 'visibility' - sig { override.returns(String) } + # @override + #: -> String def violation_type VIOLATION_TYPE end - sig do - override - .params(reference: Packwerk::Reference) - .returns(T::Boolean) - end + # @override + #: (Packwerk::Reference reference) -> bool def invalid_reference?(reference) constant_package = reference.constant.package visibility_package = Package.from(constant_package) @@ -32,21 +29,15 @@ def invalid_reference?(reference) !visibility_package.visible_to.include?(reference.package.name) end - sig do - override - .params(listed_offense: Packwerk::ReferenceOffense) - .returns(T::Boolean) - end + # @override + #: (Packwerk::ReferenceOffense listed_offense) -> bool def strict_mode_violation?(listed_offense) publishing_package = listed_offense.reference.constant.package publishing_package.config['enforce_visibility'] == 'strict' end - sig do - override - .params(reference: Packwerk::Reference) - .returns(String) - end + # @override + #: (Packwerk::Reference reference) -> String def message(reference) source_desc = "'#{reference.package}'" @@ -62,15 +53,12 @@ def message(reference) private - sig do - params(visibility_option: T.nilable(T.any(T::Boolean, String))) - .returns(T::Boolean) - end + #: ((bool | String)? visibility_option) -> bool def enforcement_disabled?(visibility_option) [false, nil].include?(visibility_option) end - sig { params(reference: Reference).returns(String) } + #: (Reference reference) -> String def standard_help_message(reference) standard_message = <<~MESSAGE.chomp Inference details: this is a reference to #{reference.constant.name} which seems to be defined in #{reference.constant.location}. diff --git a/lib/packwerk/visibility/package.rb b/lib/packwerk/visibility/package.rb index 43c8c2e..a6ca1c2 100644 --- a/lib/packwerk/visibility/package.rb +++ b/lib/packwerk/visibility/package.rb @@ -3,16 +3,21 @@ module Packwerk module Visibility - class Package < T::Struct - extend T::Sig + class Package + #: Array[String] + attr_reader :visible_to - const :visible_to, T::Array[String] - const :enforce_visibility, T.nilable(T.any(T::Boolean, String)) + #: (bool | String)? + attr_reader :enforce_visibility - class << self - extend T::Sig + #: (visible_to: Array[String], enforce_visibility: (bool | String)?) -> void + def initialize(visible_to:, enforce_visibility:) + @visible_to = visible_to + @enforce_visibility = enforce_visibility + end - sig { params(package: ::Packwerk::Package).returns(Package) } + class << self + #: (::Packwerk::Package package) -> Package def from(package) Package.new( visible_to: package.config['visible_to'] || [], diff --git a/lib/packwerk/visibility/validator.rb b/lib/packwerk/visibility/validator.rb index c12a1f4..9c82ffc 100644 --- a/lib/packwerk/visibility/validator.rb +++ b/lib/packwerk/visibility/validator.rb @@ -4,15 +4,15 @@ module Packwerk module Visibility class Validator - extend T::Sig include Packwerk::Validator Result = Packwerk::Validator::Result - sig { override.params(package_set: PackageSet, configuration: Configuration).returns(Result) } + # @override + #: (PackageSet package_set, Configuration configuration) -> Result def call(package_set, configuration) visible_settings = package_manifests_settings_for(configuration, 'visible_to') - results = T.let([], T::Array[Result]) + results = [] #: Array[Result] all_package_names = package_set.to_set(&:name) @@ -50,7 +50,8 @@ def call(package_set, configuration) merge_results(results, separator: "\n---\n") end - sig { override.returns(T::Array[String]) } + # @override + #: -> Array[String] def permitted_keys %w(visible_to enforce_visibility) end diff --git a/packwerk-extensions.gemspec b/packwerk-extensions.gemspec index 52e5404..d85451a 100644 --- a/packwerk-extensions.gemspec +++ b/packwerk-extensions.gemspec @@ -19,13 +19,12 @@ Gem::Specification.new do |spec| 'public gem pushes.' end - spec.required_ruby_version = Gem::Requirement.new('>= 3.2') + spec.required_ruby_version = Gem::Requirement.new('>= 3.3') # Specify which files should be added to the gem when it is released. spec.files = Dir['README.md', 'lib/**/*'] spec.add_dependency 'packwerk', '>= 3' spec.add_dependency 'railties', '>= 6.0.0' - spec.add_dependency 'sorbet-runtime' spec.add_dependency 'zeitwerk' spec.add_development_dependency 'minitest' diff --git a/sorbet/config b/sorbet/config index 99c40b2..29ffad6 100644 --- a/sorbet/config +++ b/sorbet/config @@ -1,4 +1,6 @@ --dir . +--parser=prism --enable-experimental-requires-ancestor +--enable-experimental-rbs-comments --ignore=vendor/bundle diff --git a/sorbet/rbi/gems/actionpack@8.1.2.rbi b/sorbet/rbi/gems/actionpack@8.1.2.rbi index dc33d1d..a355e70 100644 --- a/sorbet/rbi/gems/actionpack@8.1.2.rbi +++ b/sorbet/rbi/gems/actionpack@8.1.2.rbi @@ -5,43 +5,47 @@ # Please instead update this file by running `bin/tapioca gem actionpack`. +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown # :markup: markdown # -# source://actionpack//lib/abstract_controller/deprecator.rb#5 +# pkg:gem/actionpack#lib/abstract_controller/deprecator.rb:5 module AbstractController extend ::ActiveSupport::Autoload class << self - # source://actionpack//lib/abstract_controller/deprecator.rb#6 + # pkg:gem/actionpack#lib/abstract_controller/deprecator.rb:6 def deprecator; end - # source://actionpack//lib/abstract_controller.rb#27 + # pkg:gem/actionpack#lib/abstract_controller.rb:27 def eager_load!; end end end # Raised when a non-existing controller action is triggered. # -# source://actionpack//lib/abstract_controller/base.rb#12 +# pkg:gem/actionpack#lib/abstract_controller/base.rb:12 class AbstractController::ActionNotFound < ::StandardError include ::DidYouMean::Correctable - # @return [ActionNotFound] a new instance of ActionNotFound - # - # source://actionpack//lib/abstract_controller/base.rb#15 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:15 def initialize(message = T.unsafe(nil), controller = T.unsafe(nil), action = T.unsafe(nil)); end - # source://actionpack//lib/abstract_controller/base.rb#13 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:13 def action; end - # source://actionpack//lib/abstract_controller/base.rb#13 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:13 def controller; end - # source://actionpack//lib/abstract_controller/base.rb#24 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:24 def corrections; end end -# source://actionpack//lib/abstract_controller/asset_paths.rb#6 +# pkg:gem/actionpack#lib/abstract_controller/asset_paths.rb:6 module AbstractController::AssetPaths extend ::ActiveSupport::Concern end @@ -53,23 +57,19 @@ end # their own `render` method, since rendering means different things depending on # the context. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/abstract_controller/base.rb#36 +# pkg:gem/actionpack#lib/abstract_controller/base.rb:36 class AbstractController::Base extend ::ActiveSupport::DescendantsTracker # Delegates to the class's ::action_methods. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def action_methods; end - # Returns the name of the action this controller is processing. - # - # source://actionpack//lib/abstract_controller/base.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:43 def action_name; end - # source://actionpack//lib/abstract_controller/base.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:43 def action_name=(_arg0); end # Returns true if a method for the action is available and can be dispatched, @@ -83,39 +83,33 @@ class AbstractController::Base # #### Parameters # * `action_name` - The name of an action to be tested # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def available_action?(action_name); end - # source://actionpack//lib/abstract_controller/base.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:49 def config; end - # source://actionpack//lib/abstract_controller/base.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:49 def config=(_arg0); end # Delegates to the class's ::controller_path. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def controller_path; end - # Returns the formats that can be processed by the controller. - # - # source://actionpack//lib/abstract_controller/base.rb#47 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:47 def formats; end - # source://actionpack//lib/abstract_controller/base.rb#47 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:47 def formats=(_arg0); end - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def inspect; end # Tests if a response body is set. Used to determine if the `process_action` # callback needs to be terminated in AbstractController::Callbacks. # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def performed?; end # Calls the action going through the entire Action Dispatch stack. @@ -124,15 +118,13 @@ class AbstractController::Base # If no method can handle the action, then an AbstractController::ActionNotFound # error is raised. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def process(action, *_arg1, **_arg2, &_arg3); end - # Returns the body of the HTTP response sent by the controller. - # - # source://actionpack//lib/abstract_controller/base.rb#39 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:39 def response_body; end - # source://actionpack//lib/abstract_controller/base.rb#39 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:39 def response_body=(_arg0); end # Actually call the method associated with the action. Override this method if @@ -140,7 +132,7 @@ class AbstractController::Base # behavior around it. For example, you would override #send_action if you want # to inject arguments into the method. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def send_action(*_arg0); end private @@ -162,21 +154,19 @@ class AbstractController::Base # # Raise `AbstractController::ActionNotFound`. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def _find_action_name(action_name); end # If the action name was not found, but a method called "action_missing" was # found, #method_for_action will return "_handle_action_missing". This method # calls #action_missing with the current action name. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def _handle_action_missing(*args); end # Checks if the action name is valid and returns false otherwise. # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def _valid_action_name?(action_name); end # Returns true if the name can be considered an action because it has a method @@ -185,9 +175,7 @@ class AbstractController::Base # #### Parameters # * `name` - The name of an action to be tested # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def action_method?(name); end # Takes an action name and returns the name of the method that will handle the @@ -214,7 +202,7 @@ class AbstractController::Base # * `string` - The name of the method that handles the action # * `nil` - No method name could be found. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def method_for_action(action_name); end # Call the action. Override this in a subclass to modify the behavior around @@ -224,23 +212,19 @@ class AbstractController::Base # Notice that the first argument is the method to be dispatched which is **not** # necessarily the same as the action name. # - # source://actionpack//lib/abstract_controller/base.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:128 def process_action(*_arg0, **_arg1, &_arg2); end class << self - # Returns the value of attribute abstract. - # - # source://actionpack//lib/abstract_controller/base.rb#53 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:53 def abstract; end # Define a controller as abstract. See internal_methods for more details. # - # source://actionpack//lib/abstract_controller/base.rb#57 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:57 def abstract!; end - # Returns the value of attribute abstract. - # - # source://actionpack//lib/abstract_controller/base.rb#54 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:54 def abstract?; end # A `Set` of method names that should be considered actions. This includes all @@ -248,25 +232,23 @@ class AbstractController::Base # internal_methods), adding back in any methods that are internal, but still # exist on the class itself. # - # source://actionpack//lib/abstract_controller/base.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:93 def action_methods; end # action_methods are cached and there is sometimes a need to refresh them. # ::clear_action_methods! allows you to do that, so next time you run # action_methods, they will be recalculated. # - # source://actionpack//lib/abstract_controller/base.rb#106 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:106 def clear_action_methods!; end - # source://actionpack//lib/abstract_controller/base.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:49 def config; end - # source://actionpack//lib/abstract_controller/base.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:49 def config=(value); end - # @yield [config] - # - # source://actionpack//lib/abstract_controller/base.rb#122 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:122 def configure; end # Returns the full controller name, underscored, without the ending Controller. @@ -277,13 +259,13 @@ class AbstractController::Base # # MyApp::MyPostsController.controller_path # => "my_app/my_posts" # - # source://actionpack//lib/abstract_controller/base.rb#118 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:118 def controller_path; end - # source://actionpack//lib/abstract_controller/base.rb#132 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:132 def eager_load!; end - # source://actionpack//lib/abstract_controller/base.rb#61 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:61 def inherited(klass); end # A list of all internal methods for a controller. This finds the first abstract @@ -293,34 +275,32 @@ class AbstractController::Base # removed. (ActionController::Metal and ActionController::Base are defined as # abstract) # - # source://actionpack//lib/abstract_controller/base.rb#77 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:77 def internal_methods; end # Refresh the cached action_methods when a new action_method is added. # - # source://actionpack//lib/abstract_controller/base.rb#127 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:127 def method_added(name); end # Returns true if the given controller is capable of rendering a path. A # subclass of `AbstractController::Base` may return false. An Email controller # for example does not support paths, only full URLs. # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#191 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:191 def supports_path?; end private - # source://actionpack//lib/abstract_controller/base.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:49 def __class_attr_config; end - # source://actionpack//lib/abstract_controller/base.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:49 def __class_attr_config=(new_value); end end end -# source://actionpack//lib/abstract_controller/caching.rb#6 +# pkg:gem/actionpack#lib/abstract_controller/caching.rb:6 module AbstractController::Caching include ::AbstractController::Caching::ConfigMethods extend ::ActiveSupport::Concern @@ -330,14 +310,14 @@ module AbstractController::Caching mixes_in_class_methods GeneratedClassMethods - # source://actionpack//lib/abstract_controller/caching.rb#57 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:57 def view_cache_dependencies; end private # Convenience accessor. # - # source://actionpack//lib/abstract_controller/caching.rb#63 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:63 def cache(key, options = T.unsafe(nil), &block); end module GeneratedClassMethods @@ -353,25 +333,23 @@ module AbstractController::Caching end end -# source://actionpack//lib/abstract_controller/caching.rb#51 +# pkg:gem/actionpack#lib/abstract_controller/caching.rb:51 module AbstractController::Caching::ClassMethods - # source://actionpack//lib/abstract_controller/caching.rb#52 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:52 def view_cache_dependency(&dependency); end end -# source://actionpack//lib/abstract_controller/caching.rb#14 +# pkg:gem/actionpack#lib/abstract_controller/caching.rb:14 module AbstractController::Caching::ConfigMethods - # source://actionpack//lib/abstract_controller/caching.rb#15 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:15 def cache_store; end - # source://actionpack//lib/abstract_controller/caching.rb#19 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:19 def cache_store=(store); end private - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/caching.rb#24 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:24 def cache_configured?; end end @@ -390,7 +368,7 @@ end # # expire_fragment('name_of_cache') # -# source://actionpack//lib/abstract_controller/caching/fragments.rb#21 +# pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:21 module AbstractController::Caching::Fragments extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -404,7 +382,7 @@ module AbstractController::Caching::Fragments # `ENV["RAILS_APP_VERSION"]` if set, followed by any controller-wide key prefix # values, ending with the specified `key` value. # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#68 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:68 def combined_fragment_cache_key(key); end # Removes fragments from the cache. @@ -425,30 +403,28 @@ module AbstractController::Caching::Fragments # `options` is passed through to the cache store's `delete` method (or # `delete_matched`, for Regexp keys). # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#131 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:131 def expire_fragment(key, options = T.unsafe(nil)); end # Check if a cached fragment from the location signified by `key` exists (see # `expire_fragment` for acceptable formats). # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#105 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:105 def fragment_exist?(key, options = T.unsafe(nil)); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#144 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:144 def instrument_fragment_cache(name, key, &block); end # Reads a cached fragment from the location signified by `key` (see # `expire_fragment` for acceptable formats). # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:93 def read_fragment(key, options = T.unsafe(nil)); end # Writes `content` to the location signified by `key` (see `expire_fragment` for # acceptable formats). # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#80 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:80 def write_fragment(key, content, options = T.unsafe(nil)); end module GeneratedClassMethods @@ -464,7 +440,7 @@ module AbstractController::Caching::Fragments end end -# source://actionpack//lib/abstract_controller/caching/fragments.rb#38 +# pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:38 module AbstractController::Caching::Fragments::ClassMethods # Allows you to specify controller-wide key prefixes for cache fragments. Pass # either a constant `value`, or a block which computes a value each time a cache @@ -486,7 +462,7 @@ module AbstractController::Caching::Fragments::ClassMethods # end # end # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#58 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:58 def fragment_cache_key(value = T.unsafe(nil), &key); end end @@ -509,7 +485,7 @@ end # * `skip_around_action` # * `skip_before_action` # -# source://actionpack//lib/abstract_controller/callbacks.rb#24 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:24 module AbstractController::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -525,7 +501,7 @@ module AbstractController::Callbacks # Override `AbstractController::Base#process_action` to run the `process_action` # callbacks around the normal behavior. # - # source://actionpack//lib/abstract_controller/callbacks.rb#265 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:265 def process_action(*_arg0, **_arg1, &_arg2); end module GeneratedClassMethods @@ -538,35 +514,25 @@ module AbstractController::Callbacks end end -# source://actionpack//lib/abstract_controller/callbacks.rb#41 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:41 class AbstractController::Callbacks::ActionFilter - # @return [ActionFilter] a new instance of ActionFilter - # - # source://actionpack//lib/abstract_controller/callbacks.rb#42 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:42 def initialize(filters, conditional_key, actions); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#71 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:71 def after(controller); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#73 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:73 def around(controller); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#72 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:72 def before(controller); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#48 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:48 def match?(controller); end end -# source://actionpack//lib/abstract_controller/callbacks.rb#76 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:76 module AbstractController::Callbacks::ClassMethods # Take callback names and an optional callback proc, normalize them, then call # the block with each callback. This allows us to abstract the normalization @@ -582,10 +548,10 @@ module AbstractController::Callbacks::ClassMethods # * `name` - The callback to be added. # * `options` - A hash of options to be used when adding the callback. # - # source://actionpack//lib/abstract_controller/callbacks.rb#122 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:122 def _insert_callbacks(callbacks, block = T.unsafe(nil)); end - # source://actionpack//lib/abstract_controller/callbacks.rb#100 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:100 def _normalize_callback_option(options, from, to); end # If `:only` or `:except` are used, convert the options into the `:if` and @@ -606,188 +572,186 @@ module AbstractController::Callbacks::ClassMethods # * `only` - The callback should be run only for this action. # * `except` - The callback should be run for all actions except this action. # - # source://actionpack//lib/abstract_controller/callbacks.rb#95 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:95 def _normalize_callback_options(options); end - # source://actionpack//lib/abstract_controller/callbacks.rb#233 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:233 def after_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#254 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:254 def append_after_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#254 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:254 def append_around_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#254 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:254 def append_before_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#233 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:233 def around_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#233 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:233 def before_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#257 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:257 def internal_methods; end - # source://actionpack//lib/abstract_controller/callbacks.rb#239 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:239 def prepend_after_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#239 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:239 def prepend_around_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#239 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:239 def prepend_before_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#247 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:247 def skip_after_action(*names); end - # source://actionpack//lib/abstract_controller/callbacks.rb#247 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:247 def skip_around_action(*names); end - # source://actionpack//lib/abstract_controller/callbacks.rb#247 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:247 def skip_before_action(*names); end end -# source://actionpack//lib/abstract_controller/callbacks.rb#32 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:32 AbstractController::Callbacks::DEFAULT_INTERNAL_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/abstract_controller/collector.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/collector.rb:8 module AbstractController::Collector - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def atom(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def bmp(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def css(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def csv(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def gif(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def gzip(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def html(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def ics(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def jpeg(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def js(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def json(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def m4a(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def md(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def mp3(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def mp4(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def mpeg(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def multipart_form(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def ogg(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def otf(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def pdf(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def png(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def rss(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def svg(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def text(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def tiff(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def ttf(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def url_encoded_form(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def vcf(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def vtt(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def webm(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def webp(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def woff(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def woff2(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def xml(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def yaml(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/abstract_controller/collector.rb#11 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 def zip(*_arg0, **_arg1, &_arg2); end private - # source://actionpack//lib/abstract_controller/collector.rb#27 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:27 def method_missing(symbol, *_arg1, **_arg2, &_arg3); end class << self - # source://actionpack//lib/abstract_controller/collector.rb#9 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:9 def generate_method_for_mime(mime); end end end -# source://actionpack//lib/abstract_controller/rendering.rb#10 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:10 class AbstractController::DoubleRenderError < ::AbstractController::Error - # @return [DoubleRenderError] a new instance of DoubleRenderError - # - # source://actionpack//lib/abstract_controller/rendering.rb#13 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:13 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/abstract_controller/rendering.rb#11 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:11 AbstractController::DoubleRenderError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/abstract_controller/error.rb#6 +# pkg:gem/actionpack#lib/abstract_controller/error.rb:6 class AbstractController::Error < ::StandardError; end -# source://actionpack//lib/abstract_controller/helpers.rb#9 +# pkg:gem/actionpack#lib/abstract_controller/helpers.rb:9 module AbstractController::Helpers extend ::ActiveSupport::Concern extend ::AbstractController::Helpers::Resolution @@ -796,7 +760,7 @@ module AbstractController::Helpers mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::Helpers::ClassMethods - # source://actionpack//lib/abstract_controller/helpers.rb#28 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:28 def _helpers; end module GeneratedClassMethods @@ -812,24 +776,20 @@ module AbstractController::Helpers end end -# source://actionpack//lib/abstract_controller/helpers.rb#64 +# pkg:gem/actionpack#lib/abstract_controller/helpers.rb:64 module AbstractController::Helpers::ClassMethods include ::AbstractController::Helpers::Resolution - # Sets the attribute _helpers - # - # @param value the value to set the attribute _helpers to. - # - # source://actionpack//lib/abstract_controller/helpers.rb#76 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:76 def _helpers=(_arg0); end - # source://actionpack//lib/abstract_controller/helpers.rb#218 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:218 def _helpers_for_modification; end # Clears up all existing helpers in this class, only keeping the helper with the # same name as this class. # - # source://actionpack//lib/abstract_controller/helpers.rb#209 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:209 def clear_helpers; end # Includes the given modules in the template class. @@ -883,7 +843,7 @@ module AbstractController::Helpers::ClassMethods # end # end # - # source://actionpack//lib/abstract_controller/helpers.rb#198 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:198 def helper(*args, &block); end # Declare a controller method as a helper. For example, the following @@ -911,55 +871,55 @@ module AbstractController::Helpers::ClassMethods # * `method[, method]` - A name or names of a method on the controller to be # made available on the view. # - # source://actionpack//lib/abstract_controller/helpers.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:128 def helper_method(*methods); end # When a class is inherited, wrap its helper module in a new module. This # ensures that the parent class's module can be changed independently of the # child class's. # - # source://actionpack//lib/abstract_controller/helpers.rb#68 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:68 def inherited(klass); end private - # source://actionpack//lib/abstract_controller/helpers.rb#237 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:237 def default_helper_module!; end - # source://actionpack//lib/abstract_controller/helpers.rb#226 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:226 def define_helpers_module(klass, helpers = T.unsafe(nil)); end end -# source://actionpack//lib/abstract_controller/helpers.rb#32 +# pkg:gem/actionpack#lib/abstract_controller/helpers.rb:32 module AbstractController::Helpers::Resolution - # source://actionpack//lib/abstract_controller/helpers.rb#48 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:48 def all_helpers_from_path(path); end - # source://actionpack//lib/abstract_controller/helpers.rb#57 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:57 def helper_modules_from_paths(paths); end - # source://actionpack//lib/abstract_controller/helpers.rb#33 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:33 def modules_for_helpers(modules_or_helper_prefixes); end end -# source://actionpack//lib/abstract_controller/logger.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/logger.rb:8 module AbstractController::Logger extend ::ActiveSupport::Concern include ::ActiveSupport::Benchmarkable end -# source://actionpack//lib/abstract_controller/railties/routes_helpers.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/railties/routes_helpers.rb:8 module AbstractController::Railties; end -# source://actionpack//lib/abstract_controller/railties/routes_helpers.rb#9 +# pkg:gem/actionpack#lib/abstract_controller/railties/routes_helpers.rb:9 module AbstractController::Railties::RoutesHelpers class << self - # source://actionpack//lib/abstract_controller/railties/routes_helpers.rb#10 + # pkg:gem/actionpack#lib/abstract_controller/railties/routes_helpers.rb:10 def with(routes, include_path_helpers = T.unsafe(nil)); end end end -# source://actionpack//lib/abstract_controller/rendering.rb#18 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:18 module AbstractController::Rendering extend ::ActiveSupport::Concern include ::ActionView::ViewPaths @@ -971,12 +931,12 @@ module AbstractController::Rendering # # Supported options depend on the underlying `render_to_body` implementation. # - # source://actionpack//lib/abstract_controller/rendering.rb#26 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:26 def render(*args, &block); end # Performs the actual template rendering. # - # source://actionpack//lib/abstract_controller/rendering.rb#50 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:50 def render_to_body(options = T.unsafe(nil)); end # Similar to #render, but only returns the rendered template as a string, @@ -986,18 +946,18 @@ module AbstractController::Rendering # extends it to be anything that responds to the method each), this method needs # to be overridden in order to still return a string. # - # source://actionpack//lib/abstract_controller/rendering.rb#44 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:44 def render_to_string(*args, &block); end # Returns `Content-Type` of rendered content. # - # source://actionpack//lib/abstract_controller/rendering.rb#54 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:54 def rendered_format; end # This method should return a hash with assigns. You can overwrite this # configuration per controller. # - # source://actionpack//lib/abstract_controller/rendering.rb#62 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:62 def view_assigns; end private @@ -1005,70 +965,59 @@ module AbstractController::Rendering # Normalize args by converting `render "foo"` to `render action: "foo"` and # `render "foo/bar"` to `render file: "foo/bar"`. # - # source://actionpack//lib/abstract_controller/rendering.rb#73 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:73 def _normalize_args(action = T.unsafe(nil), options = T.unsafe(nil)); end # Normalize options. # - # source://actionpack//lib/abstract_controller/rendering.rb#88 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:88 def _normalize_options(options); end # Normalize args and options. # - # source://actionpack//lib/abstract_controller/rendering.rb#114 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:114 def _normalize_render(*args, &block); end # Process the rendered format. # - # source://actionpack//lib/abstract_controller/rendering.rb#98 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:98 def _process_format(format); end # Process extra options. # - # source://actionpack//lib/abstract_controller/rendering.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:93 def _process_options(options); end - # source://actionpack//lib/abstract_controller/rendering.rb#101 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:101 def _process_variant(options); end - # source://actionpack//lib/abstract_controller/rendering.rb#121 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:121 def _protected_ivars; end - # source://actionpack//lib/abstract_controller/rendering.rb#104 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:104 def _set_html_content_type; end - # source://actionpack//lib/abstract_controller/rendering.rb#110 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:110 def _set_rendered_content_type(format); end - # source://actionpack//lib/abstract_controller/rendering.rb#107 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:107 def _set_vary_header; end end -# source://actionpack//lib/abstract_controller/rendering.rb#58 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:58 AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/abstract_controller/translation.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/translation.rb:8 module AbstractController::Translation - # Delegates to `I18n.localize`. - # - # source://actionpack//lib/abstract_controller/translation.rb#40 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:40 def l(object, **options); end # Delegates to `I18n.localize`. # - # source://actionpack//lib/abstract_controller/translation.rb#37 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:37 def localize(object, **options); end - # Delegates to `I18n.translate`. - # - # When the given key starts with a period, it will be scoped by the current - # controller and action. So if you call `translate(".foo")` from - # `PeopleController#index`, it will convert the call to - # `I18n.translate("people.index.foo")`. This makes it less repetitive to - # translate many keys within the same controller / action and gives you a simple - # framework for scoping them consistently. - # - # source://actionpack//lib/abstract_controller/translation.rb#34 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:34 def t(key, **options); end # Delegates to `I18n.translate`. @@ -1080,7 +1029,7 @@ module AbstractController::Translation # translate many keys within the same controller / action and gives you a simple # framework for scoping them consistently. # - # source://actionpack//lib/abstract_controller/translation.rb#17 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:17 def translate(key, **options); end end @@ -1093,7 +1042,7 @@ end # Note that this module is completely decoupled from HTTP - the only requirement # is a valid `_routes` implementation. # -# source://actionpack//lib/abstract_controller/url_for.rb#14 +# pkg:gem/actionpack#lib/abstract_controller/url_for.rb:14 module AbstractController::UrlFor extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1102,7 +1051,7 @@ module AbstractController::UrlFor mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/abstract_controller/url_for.rb#18 + # pkg:gem/actionpack#lib/abstract_controller/url_for.rb:18 def _routes; end module GeneratedClassMethods @@ -1118,12 +1067,12 @@ module AbstractController::UrlFor end end -# source://actionpack//lib/abstract_controller/url_for.rb#23 +# pkg:gem/actionpack#lib/abstract_controller/url_for.rb:23 module AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/abstract_controller/url_for.rb#24 + # pkg:gem/actionpack#lib/abstract_controller/url_for.rb:24 def _routes; end - # source://actionpack//lib/abstract_controller/url_for.rb#28 + # pkg:gem/actionpack#lib/abstract_controller/url_for.rb:28 def action_methods; end end @@ -1134,23 +1083,53 @@ end # Action Controller provides a base controller class that can be subclassed to # implement filters and actions to handle requests. The result of an action is # typically content generated from views. +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown # -# source://actionpack//lib/action_controller/deprecator.rb#5 +# pkg:gem/actionpack#lib/action_controller/deprecator.rb:5 module ActionController extend ::ActiveSupport::Autoload class << self # See Renderers.add # - # source://actionpack//lib/action_controller/metal/renderers.rb#7 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:7 def add_renderer(key, &block); end - # source://actionpack//lib/action_controller/deprecator.rb#6 + # pkg:gem/actionpack#lib/action_controller/deprecator.rb:6 def deprecator; end # See Renderers.remove # - # source://actionpack//lib/action_controller/metal/renderers.rb#12 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:12 def remove_renderer(key); end end end @@ -1238,9 +1217,7 @@ end # to use any other functionality that is not provided by `ActionController::API` # out of the box. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/action_controller/api.rb#93 +# pkg:gem/actionpack#lib/action_controller/api.rb:93 class ActionController::API < ::ActionController::Metal include ::ActionView::ViewPaths include ::AbstractController::Rendering @@ -1293,275 +1270,275 @@ class ActionController::API < ::ActionController::Metal extend ::ActionController::ParamsWrapper::ClassMethods extend ::ActionController::Renderers::DeprecatedEscapeJsonResponses - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __callbacks; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _process_action_callbacks; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _renderers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _renderers=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _renderers?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _run_process_action_callbacks; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _run_process_action_callbacks!(&block); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _view_cache_dependencies; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _view_cache_dependencies=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _wrapper_options; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _wrapper_options=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _wrapper_options?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_open_redirect; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_open_redirect=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_path_relative_redirect; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_path_relative_redirect=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_static_extension(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_static_extension=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_url_options; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_url_options=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_url_options?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def enable_fragment_cache_logging(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def enable_fragment_cache_logging=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def etaggers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def etaggers=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def etaggers?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def fragment_cache_keys; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def fragment_cache_keys=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def fragment_cache_keys?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def logger(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def logger=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def perform_caching(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def perform_caching=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_missing_callback_actions; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_open_redirects=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def rescue_handlers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def rescue_handlers=(_arg0); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def rescue_handlers?; end class << self - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __callbacks; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __callbacks=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _allowed_redirect_hosts; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _allowed_redirect_hosts=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _process_action_callbacks; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _process_action_callbacks=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _renderers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _renderers=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _renderers?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _view_cache_dependencies; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _view_cache_dependencies=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _wrapper_options; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _wrapper_options=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def _wrapper_options?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_open_redirect; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_open_redirect=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_path_relative_redirect; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def action_on_path_relative_redirect=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def allowed_redirect_hosts; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def allowed_redirect_hosts_permissions; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def allowed_redirect_hosts_permissions=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_static_extension(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_static_extension=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_url_options; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_url_options=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def default_url_options?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def enable_fragment_cache_logging(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def enable_fragment_cache_logging=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def escape_json_responses; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def escape_json_responses=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def escape_json_responses?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def etaggers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def etaggers=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def etaggers?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def fragment_cache_keys; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def fragment_cache_keys=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def fragment_cache_keys?; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def logger(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def logger=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def perform_caching(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def perform_caching=(arg); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_missing_callback_actions; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def raise_on_open_redirects=(val); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def rescue_handlers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def rescue_handlers=(value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def rescue_handlers?; end # Shortcut helper that returns all the ActionController::API modules except the @@ -1577,98 +1554,98 @@ class ActionController::API < ::ActionController::Metal # create an API controller class, instead of listing the modules required # manually. # - # source://actionpack//lib/action_controller/api.rb#108 + # pkg:gem/actionpack#lib/action_controller/api.rb:108 def without_modules(*modules); end private - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr___callbacks; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr___callbacks=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__allowed_redirect_hosts; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__allowed_redirect_hosts=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__renderers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__renderers=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__view_cache_dependencies; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__view_cache_dependencies=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__wrapper_options; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr__wrapper_options=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_allowed_redirect_hosts_permissions; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_allowed_redirect_hosts_permissions=(new_value); end - # source://actionpack//lib/action_controller/api.rb#93 + # pkg:gem/actionpack#lib/action_controller/api.rb:93 def __class_attr_config; end - # source://actionpack//lib/action_controller/api.rb#93 + # pkg:gem/actionpack#lib/action_controller/api.rb:93 def __class_attr_config=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_default_url_options; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_default_url_options=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_escape_json_responses; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_escape_json_responses=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_etaggers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_etaggers=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_fragment_cache_keys; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_fragment_cache_keys=(new_value); end - # source://actionpack//lib/action_controller/api.rb#93 + # pkg:gem/actionpack#lib/action_controller/api.rb:93 def __class_attr_middleware_stack; end - # source://actionpack//lib/action_controller/api.rb#93 + # pkg:gem/actionpack#lib/action_controller/api.rb:93 def __class_attr_middleware_stack=(new_value); end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_rescue_handlers; end - # source://actionpack//lib/action_controller/api.rb#150 + # pkg:gem/actionpack#lib/action_controller/api.rb:150 def __class_attr_rescue_handlers=(new_value); end end end -# source://actionpack//lib/action_controller/api.rb#116 +# pkg:gem/actionpack#lib/action_controller/api.rb:116 ActionController::API::MODULES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/exceptions.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:6 class ActionController::ActionControllerError < ::StandardError; end -# source://actionpack//lib/action_controller/metal/allow_browser.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:6 module ActionController::AllowBrowser extend ::ActiveSupport::Concern @@ -1676,76 +1653,58 @@ module ActionController::AllowBrowser private - # source://actionpack//lib/action_controller/metal/allow_browser.rb#63 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:63 def allow_browser(versions:, block:); end end -# source://actionpack//lib/action_controller/metal/allow_browser.rb#73 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:73 class ActionController::AllowBrowser::BrowserBlocker - # @return [BrowserBlocker] a new instance of BrowserBlocker - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#80 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:80 def initialize(request, versions:); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#84 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:84 def blocked?; end - # Returns the value of attribute request. - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#78 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:78 def request; end - # Returns the value of attribute versions. - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#78 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:78 def versions; end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#105 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:105 def bot?; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#121 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:121 def expanded_versions; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#117 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:117 def minimum_browser_version_for_browser; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#125 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:125 def normalized_browser_name; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:89 def parsed_user_agent; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:97 def unsupported_browser?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#93 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:93 def user_agent_version_reported?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#109 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:109 def version_below_minimum_required?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#101 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:101 def version_guarded_browser?; end end -# source://actionpack//lib/action_controller/metal/allow_browser.rb#74 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:74 ActionController::AllowBrowser::BrowserBlocker::SETS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/metal/allow_browser.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:9 module ActionController::AllowBrowser::ClassMethods # Specify the browser versions that will be allowed to access all actions (or # some, as limited by `only:` or `except:`). Only browsers matched in the hash @@ -1795,26 +1754,24 @@ module ActionController::AllowBrowser::ClassMethods # allow_browser versions: { opera: 104, chrome: 119 }, only: :show # end # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#57 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:57 def allow_browser(versions:, block: T.unsafe(nil), **options); end end -# source://actionpack//lib/action_controller/api/api_rendering.rb#6 +# pkg:gem/actionpack#lib/action_controller/api/api_rendering.rb:6 module ActionController::ApiRendering extend ::ActiveSupport::Concern include ::ActionController::Rendering mixes_in_class_methods ::ActionController::Rendering::ClassMethods - # source://actionpack//lib/action_controller/api/api_rendering.rb#13 + # pkg:gem/actionpack#lib/action_controller/api/api_rendering.rb:13 def render_to_body(options = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:9 class ActionController::BadRequest < ::ActionController::ActionControllerError - # @return [BadRequest] a new instance of BadRequest - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#10 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:10 def initialize(msg = T.unsafe(nil)); end end @@ -2015,9 +1972,7 @@ end # render action: "overthere" # won't be called if monkeys is nil # end # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/action_controller/base.rb#208 +# pkg:gem/actionpack#lib/action_controller/base.rb:208 class ActionController::Base < ::ActionController::Metal include ::ActionView::ViewPaths include ::AbstractController::Rendering @@ -2104,565 +2059,565 @@ class ActionController::Base < ::ActionController::Metal extend ::ActionController::ParamsWrapper::ClassMethods extend ::ActionController::Renderers::DeprecatedEscapeJsonResponses - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def __callbacks; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helper_methods; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helper_methods=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helper_methods?; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout_conditions; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout_conditions?; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def _process_action_callbacks; end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def _renderers; end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def _renderers=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def _renderers?; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def _run_process_action_callbacks; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def _run_process_action_callbacks!(&block); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def _view_cache_dependencies; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def _view_cache_dependencies=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def _wrapper_options; end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def _wrapper_options=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def _wrapper_options?; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_open_redirect; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_open_redirect=(val); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_path_relative_redirect; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_path_relative_redirect=(val); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def allow_forgery_protection(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def allow_forgery_protection=(arg); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def asset_host(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def asset_host=(arg); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def assets_dir(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def assets_dir=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def csrf_token_storage_strategy(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def csrf_token_storage_strategy=(arg); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def default_asset_host_protocol(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def default_asset_host_protocol=(arg); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def default_static_extension(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def default_static_extension=(arg); end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def default_url_options; end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def default_url_options=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def default_url_options?; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def enable_fragment_cache_logging(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def enable_fragment_cache_logging=(arg); end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def etag_with_template_digest; end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def etag_with_template_digest=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def etag_with_template_digest?; end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etaggers; end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etaggers=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etaggers?; end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def flash(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_origin_check(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_origin_check=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_strategy(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_strategy=(arg); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def fragment_cache_keys; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def fragment_cache_keys=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def fragment_cache_keys?; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def helpers_path; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def helpers_path=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def helpers_path?; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def include_all_helpers; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def include_all_helpers=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def include_all_helpers?; end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def javascripts_dir(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def javascripts_dir=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def log_warning_on_csrf_failure(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def log_warning_on_csrf_failure=(arg); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def logger(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def logger=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def per_form_csrf_tokens(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def per_form_csrf_tokens=(arg); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def perform_caching(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def perform_caching=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def raise_on_missing_callback_actions; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def raise_on_open_redirects=(val); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def relative_url_root(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def relative_url_root=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def request_forgery_protection_token(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def request_forgery_protection_token=(arg); end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def rescue_handlers; end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def rescue_handlers=(_arg0); end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def rescue_handlers?; end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def stylesheets_dir(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def stylesheets_dir=(arg); end private - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout(lookup_context, formats, keys); end - # source://actionpack//lib/action_controller/base.rb#325 + # pkg:gem/actionpack#lib/action_controller/base.rb:325 def _protected_ivars; end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def alert; end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def notice; end class << self - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def __callbacks; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def __callbacks=(value); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _allowed_redirect_hosts; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _allowed_redirect_hosts=(value); end - # source://actionpack//lib/action_controller/base.rb#291 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _default_form_builder; end - # source://actionpack//lib/action_controller/base.rb#291 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _default_form_builder=(value); end - # source://actionpack//lib/action_controller/base.rb#291 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _default_form_builder?; end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def _flash_types; end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def _flash_types=(value); end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def _flash_types?; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helper_methods; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helper_methods=(value); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helper_methods?; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def _helpers; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout=(value); end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout?; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout_conditions; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout_conditions=(value); end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def _layout_conditions?; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def _process_action_callbacks; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def _process_action_callbacks=(value); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def _renderers; end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def _renderers=(value); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def _renderers?; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def _view_cache_dependencies; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def _view_cache_dependencies=(value); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def _wrapper_options; end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def _wrapper_options=(value); end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def _wrapper_options?; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_open_redirect; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_open_redirect=(val); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_path_relative_redirect; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def action_on_path_relative_redirect=(val); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def allow_forgery_protection(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def allow_forgery_protection=(arg); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def allowed_redirect_hosts; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def allowed_redirect_hosts_permissions; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def allowed_redirect_hosts_permissions=(value); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def asset_host(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def asset_host=(arg); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def assets_dir(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def assets_dir=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def csrf_token_storage_strategy(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def csrf_token_storage_strategy=(arg); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def default_asset_host_protocol(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def default_asset_host_protocol=(arg); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def default_static_extension(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def default_static_extension=(arg); end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def default_url_options; end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def default_url_options=(value); end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def default_url_options?; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def enable_fragment_cache_logging(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def enable_fragment_cache_logging=(arg); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def escape_json_responses; end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def escape_json_responses=(value); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def escape_json_responses?; end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def etag_with_template_digest; end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def etag_with_template_digest=(value); end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def etag_with_template_digest?; end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etaggers; end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etaggers=(value); end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etaggers?; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_origin_check(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_origin_check=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_strategy(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def forgery_protection_strategy=(arg); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def fragment_cache_keys; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def fragment_cache_keys=(value); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def fragment_cache_keys?; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def helpers_path; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def helpers_path=(value); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def helpers_path?; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def include_all_helpers; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def include_all_helpers=(value); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def include_all_helpers?; end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def javascripts_dir(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def javascripts_dir=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def log_warning_on_csrf_failure(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def log_warning_on_csrf_failure=(arg); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def logger(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def logger=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def per_form_csrf_tokens(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def per_form_csrf_tokens=(arg); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def perform_caching(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def perform_caching=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def raise_on_missing_callback_actions; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def raise_on_open_redirects=(val); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def relative_url_root(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def relative_url_root=(arg); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def request_forgery_protection_token(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def request_forgery_protection_token=(arg); end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def rescue_handlers; end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def rescue_handlers=(value); end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def rescue_handlers?; end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def stylesheets_dir(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#274 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def stylesheets_dir=(arg); end # Shortcut helper that returns all the modules included in @@ -2678,183 +2633,183 @@ class ActionController::Base < ::ActionController::Metal # create a bare controller class, instead of listing the modules required # manually. # - # source://actionpack//lib/action_controller/base.rb#223 + # pkg:gem/actionpack#lib/action_controller/base.rb:223 def without_modules(*modules); end private - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def __class_attr___callbacks; end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def __class_attr___callbacks=(new_value); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr__allowed_redirect_hosts; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr__allowed_redirect_hosts=(new_value); end - # source://actionpack//lib/action_controller/base.rb#291 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __class_attr__default_form_builder; end - # source://actionpack//lib/action_controller/base.rb#291 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __class_attr__default_form_builder=(new_value); end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def __class_attr__flash_types; end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def __class_attr__flash_types=(new_value); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr__helper_methods; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr__helper_methods=(new_value); end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def __class_attr__layout; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def __class_attr__layout=(new_value); end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def __class_attr__layout_conditions; end - # source://actionpack//lib/action_controller/base.rb#278 + # pkg:gem/actionpack#lib/action_controller/base.rb:278 def __class_attr__layout_conditions=(new_value); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def __class_attr__renderers; end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def __class_attr__renderers=(new_value); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def __class_attr__view_cache_dependencies; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def __class_attr__view_cache_dependencies=(new_value); end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def __class_attr__wrapper_options; end - # source://actionpack//lib/action_controller/base.rb#314 + # pkg:gem/actionpack#lib/action_controller/base.rb:314 def __class_attr__wrapper_options=(new_value); end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr_allowed_redirect_hosts_permissions; end - # source://actionpack//lib/action_controller/base.rb#277 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr_allowed_redirect_hosts_permissions=(new_value); end - # source://actionpack//lib/action_controller/base.rb#208 + # pkg:gem/actionpack#lib/action_controller/base.rb:208 def __class_attr_config; end - # source://actionpack//lib/action_controller/base.rb#208 + # pkg:gem/actionpack#lib/action_controller/base.rb:208 def __class_attr_config=(new_value); end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def __class_attr_default_url_options; end - # source://actionpack//lib/action_controller/base.rb#276 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def __class_attr_default_url_options=(new_value); end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def __class_attr_escape_json_responses; end - # source://actionpack//lib/action_controller/base.rb#280 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def __class_attr_escape_json_responses=(new_value); end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def __class_attr_etag_with_template_digest; end - # source://actionpack//lib/action_controller/base.rb#282 + # pkg:gem/actionpack#lib/action_controller/base.rb:282 def __class_attr_etag_with_template_digest=(new_value); end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def __class_attr_etaggers; end - # source://actionpack//lib/action_controller/base.rb#281 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def __class_attr_etaggers=(new_value); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def __class_attr_fragment_cache_keys; end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def __class_attr_fragment_cache_keys=(new_value); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr_helpers_path; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr_helpers_path=(new_value); end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr_include_all_helpers; end - # source://actionpack//lib/action_controller/base.rb#275 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr_include_all_helpers=(new_value); end - # source://actionpack//lib/action_controller/base.rb#208 + # pkg:gem/actionpack#lib/action_controller/base.rb:208 def __class_attr_middleware_stack; end - # source://actionpack//lib/action_controller/base.rb#208 + # pkg:gem/actionpack#lib/action_controller/base.rb:208 def __class_attr_middleware_stack=(new_value); end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def __class_attr_rescue_handlers; end - # source://actionpack//lib/action_controller/base.rb#308 + # pkg:gem/actionpack#lib/action_controller/base.rb:308 def __class_attr_rescue_handlers=(new_value); end end end -# source://actionpack//lib/action_controller/base.rb#275 +# pkg:gem/actionpack#lib/action_controller/base.rb:275 module ActionController::Base::HelperMethods - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def alert(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def combined_fragment_cache_key(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#293 + # pkg:gem/actionpack#lib/action_controller/base.rb:293 def content_security_policy?(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#293 + # pkg:gem/actionpack#lib/action_controller/base.rb:293 def content_security_policy_nonce(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#289 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def cookies(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def form_authenticity_token(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#290 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def notice(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#292 + # pkg:gem/actionpack#lib/action_controller/base.rb:292 def protect_against_forgery?(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/base.rb#284 + # pkg:gem/actionpack#lib/action_controller/base.rb:284 def view_cache_dependencies(*_arg0, **_arg1, &_arg2); end end -# source://actionpack//lib/action_controller/base.rb#231 +# pkg:gem/actionpack#lib/action_controller/base.rb:231 ActionController::Base::MODULES = T.let(T.unsafe(nil), Array) # Define some internal variables that should not be propagated to the view. # -# source://actionpack//lib/action_controller/base.rb#319 +# pkg:gem/actionpack#lib/action_controller/base.rb:319 ActionController::Base::PROTECTED_IVARS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/basic_implicit_render.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/basic_implicit_render.rb:6 module ActionController::BasicImplicitRender - # source://actionpack//lib/action_controller/metal/basic_implicit_render.rb#13 + # pkg:gem/actionpack#lib/action_controller/metal/basic_implicit_render.rb:13 def default_render; end - # source://actionpack//lib/action_controller/metal/basic_implicit_render.rb#7 + # pkg:gem/actionpack#lib/action_controller/metal/basic_implicit_render.rb:7 def send_action(method, *args); end end @@ -2881,7 +2836,7 @@ end # config.action_controller.cache_store = :mem_cache_store, Memcached::Rails.new('localhost:11211') # config.action_controller.cache_store = MyOwnStore.new('parameter') # -# source://actionpack//lib/action_controller/caching.rb#28 +# pkg:gem/actionpack#lib/action_controller/caching.rb:28 module ActionController::Caching extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2894,10 +2849,10 @@ module ActionController::Caching private - # source://actionpack//lib/action_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/caching.rb:44 def instrument_name; end - # source://actionpack//lib/action_controller/caching.rb#36 + # pkg:gem/actionpack#lib/action_controller/caching.rb:36 def instrument_payload(key); end module GeneratedClassMethods @@ -2913,7 +2868,7 @@ module ActionController::Caching end end -# source://actionpack//lib/action_controller/metal/conditional_get.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:9 module ActionController::ConditionalGet include ::ActionController::Head extend ::ActiveSupport::Concern @@ -2966,14 +2921,14 @@ module ActionController::ConditionalGet # expires_in 1.hour, public: true, "s-maxage": 3.hours, "no-transform": true # # => Cache-Control: max-age=3600, public, s-maxage=10800, no-transform=true # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#290 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:290 def expires_in(seconds, options = T.unsafe(nil)); end # Sets an HTTP 1.1 `Cache-Control` header of `no-cache`. This means the resource # will be marked as stale, so clients must always revalidate. # Intermediate/browser caches may still store the asset. # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#309 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:309 def expires_now; end # Sets the `etag`, `last_modified`, or both on the response, and renders a `304 @@ -3066,7 +3021,7 @@ module ActionController::ConditionalGet # # before_action { fresh_when @article, template: "widgets/show" } # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#137 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:137 def fresh_when(object = T.unsafe(nil), etag: T.unsafe(nil), weak_etag: T.unsafe(nil), strong_etag: T.unsafe(nil), last_modified: T.unsafe(nil), public: T.unsafe(nil), cache_control: T.unsafe(nil), template: T.unsafe(nil)); end # Cache or yield the block. The cache is supposed to never expire. @@ -3078,7 +3033,7 @@ module ActionController::ConditionalGet # user's web browser. To allow proxies to cache the response, set `true` to # indicate that they can serve the cached response to all users. # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#321 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:321 def http_cache_forever(public: T.unsafe(nil)); end # Adds the `must-understand` directive to the `Cache-Control` header, which indicates @@ -3101,13 +3056,13 @@ module ActionController::ConditionalGet # end # end # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#355 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:355 def must_understand; end # Sets an HTTP 1.1 `Cache-Control` header of `no-store`. This means the resource # may not be stored in any cache. # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:331 def no_store; end # Sets the `etag` and/or `last_modified` on the response and checks them against @@ -3189,14 +3144,12 @@ module ActionController::ConditionalGet # super if stale?(@article, template: "widgets/show") # end # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#236 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:236 def stale?(object = T.unsafe(nil), **freshness_kwargs); end private - # source://actionpack//lib/action_controller/metal/conditional_get.rb#361 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:361 def combine_etags(validator, options); end module GeneratedClassMethods @@ -3212,7 +3165,7 @@ module ActionController::ConditionalGet end end -# source://actionpack//lib/action_controller/metal/conditional_get.rb#18 +# pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:18 module ActionController::ConditionalGet::ClassMethods # Allows you to consider additional controller-wide information when generating # an ETag. For example, if you serve pages tailored depending on who's logged in @@ -3229,11 +3182,11 @@ module ActionController::ConditionalGet::ClassMethods # end # end # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#33 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:33 def etag(&etagger); end end -# source://actionpack//lib/action_controller/metal/content_security_policy.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:6 module ActionController::ContentSecurityPolicy extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3250,15 +3203,13 @@ module ActionController::ContentSecurityPolicy private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#74 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:74 def content_security_policy?; end - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#78 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:78 def content_security_policy_nonce; end - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#82 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:82 def current_content_security_policy; end module GeneratedClassMethods @@ -3277,7 +3228,7 @@ module ActionController::ContentSecurityPolicy end end -# source://actionpack//lib/action_controller/metal/content_security_policy.rb#17 +# pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:17 module ActionController::ContentSecurityPolicy::ClassMethods # Overrides parts of the globally configured `Content-Security-Policy` header: # @@ -3302,7 +3253,7 @@ module ActionController::ContentSecurityPolicy::ClassMethods # content_security_policy false, only: :index # end # - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#40 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:40 def content_security_policy(enabled = T.unsafe(nil), **options, &block); end # Overrides the globally configured `Content-Security-Policy-Report-Only` @@ -3318,11 +3269,11 @@ module ActionController::ContentSecurityPolicy::ClassMethods # content_security_policy_report_only false, only: :index # end # - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:66 def content_security_policy_report_only(report_only = T.unsafe(nil), **options); end end -# source://actionpack//lib/action_controller/metal/cookies.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/cookies.rb:6 module ActionController::Cookies extend ::ActiveSupport::Concern @@ -3331,7 +3282,7 @@ module ActionController::Cookies # The cookies for the current request. See ActionDispatch::Cookies for more # information. # - # source://actionpack//lib/action_controller/metal/cookies.rb#16 + # pkg:gem/actionpack#lib/action_controller/metal/cookies.rb:16 def cookies; end end @@ -3340,7 +3291,7 @@ end # Methods for sending arbitrary data and for streaming files to the browser, # instead of rendering. # -# source://actionpack//lib/action_controller/metal/data_streaming.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:13 module ActionController::DataStreaming extend ::ActiveSupport::Concern include ::ActionController::Rendering @@ -3384,7 +3335,7 @@ module ActionController::DataStreaming # # See `send_file` for more information on HTTP `Content-*` headers and caching. # - # source://actionpack//lib/action_controller/metal/data_streaming.rb#122 + # pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:122 def send_data(data, options = T.unsafe(nil)); end # Sends the file. This uses a server-appropriate method (such as `X-Sendfile`) @@ -3443,21 +3394,17 @@ module ActionController::DataStreaming # 9111](https://www.rfc-editor.org/rfc/rfc9111.html#name-cache-control) for the # `Cache-Control` header spec. # - # @raise [MissingFile] - # - # source://actionpack//lib/action_controller/metal/data_streaming.rb#77 + # pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:77 def send_file(path, options = T.unsafe(nil)); end - # @raise [ArgumentError] - # - # source://actionpack//lib/action_controller/metal/data_streaming.rb#127 + # pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:127 def send_file_headers!(options); end end -# source://actionpack//lib/action_controller/metal/data_streaming.rb#19 +# pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:19 ActionController::DataStreaming::DEFAULT_SEND_FILE_DISPOSITION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/data_streaming.rb#18 +# pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:18 ActionController::DataStreaming::DEFAULT_SEND_FILE_TYPE = T.let(T.unsafe(nil), String) # # Action Controller Default Headers @@ -3465,16 +3412,16 @@ ActionController::DataStreaming::DEFAULT_SEND_FILE_TYPE = T.let(T.unsafe(nil), S # Allows configuring default headers that will be automatically merged into each # response. # -# source://actionpack//lib/action_controller/metal/default_headers.rb#10 +# pkg:gem/actionpack#lib/action_controller/metal/default_headers.rb:10 module ActionController::DefaultHeaders extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::DefaultHeaders::ClassMethods end -# source://actionpack//lib/action_controller/metal/default_headers.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/default_headers.rb:13 module ActionController::DefaultHeaders::ClassMethods - # source://actionpack//lib/action_controller/metal/default_headers.rb#14 + # pkg:gem/actionpack#lib/action_controller/metal/default_headers.rb:14 def make_response!(request); end end @@ -3486,7 +3433,7 @@ end # in mind. This does that by including the content of the flash as a component # in the ETag that's generated for a response. # -# source://actionpack//lib/action_controller/metal/etag_with_flash.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/etag_with_flash.rb:13 module ActionController::EtagWithFlash extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3527,7 +3474,7 @@ end # # We're not going to render a template, so omit it from the ETag. # fresh_when @post, template: false # -# source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#25 +# pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:25 module ActionController::EtagWithTemplateDigest extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3538,10 +3485,10 @@ module ActionController::EtagWithTemplateDigest private - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#39 + # pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:39 def determine_template_etag(options); end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#55 + # pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:55 def lookup_and_digest_template(template); end # Pick the template digest to include in the ETag. If the `:template` option is @@ -3549,7 +3496,7 @@ module ActionController::EtagWithTemplateDigest # default controller/action template. If `:template` is false, omit the template # digest from the ETag. # - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#49 + # pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:49 def pick_template_for_etag(options); end module GeneratedClassMethods @@ -3578,10 +3525,10 @@ end # params.expect!(:a) # # => ActionController::ExpectedParameterMissing: param is missing or the value is empty or invalid: a # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#49 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:49 class ActionController::ExpectedParameterMissing < ::ActionController::ParameterMissing; end -# source://actionpack//lib/action_controller/metal/flash.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/flash.rb:6 module ActionController::Flash extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3591,7 +3538,7 @@ module ActionController::Flash private - # source://actionpack//lib/action_controller/metal/flash.rb#50 + # pkg:gem/actionpack#lib/action_controller/metal/flash.rb:50 def redirect_to(options = T.unsafe(nil), response_options_and_flash = T.unsafe(nil)); end module GeneratedClassMethods @@ -3603,7 +3550,7 @@ module ActionController::Flash module GeneratedInstanceMethods; end end -# source://actionpack//lib/action_controller/metal/flash.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/flash.rb:16 module ActionController::Flash::ClassMethods # Creates new flash types. You can pass as many types as you want to create # flash types other than the default `alert` and `notice` in your controllers @@ -3623,7 +3570,7 @@ module ActionController::Flash::ClassMethods # This method will automatically define a new method for each of the given # names, and it will be available in your views. # - # source://actionpack//lib/action_controller/metal/flash.rb#34 + # pkg:gem/actionpack#lib/action_controller/metal/flash.rb:34 def add_flash_types(*types); end end @@ -3653,7 +3600,7 @@ end # <%= builder.special_field(:name) %> # <% end %> # -# source://actionpack//lib/action_controller/form_builder.rb#31 +# pkg:gem/actionpack#lib/action_controller/form_builder.rb:31 module ActionController::FormBuilder extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3663,7 +3610,7 @@ module ActionController::FormBuilder # Default form builder for the controller # - # source://actionpack//lib/action_controller/form_builder.rb#51 + # pkg:gem/actionpack#lib/action_controller/form_builder.rb:51 def default_form_builder; end module GeneratedClassMethods @@ -3675,7 +3622,7 @@ module ActionController::FormBuilder module GeneratedInstanceMethods; end end -# source://actionpack//lib/action_controller/form_builder.rb#38 +# pkg:gem/actionpack#lib/action_controller/form_builder.rb:38 module ActionController::FormBuilder::ClassMethods # Set the form builder to be used as the default for all forms in the views # rendered by this controller and its subclasses. @@ -3684,11 +3631,11 @@ module ActionController::FormBuilder::ClassMethods # * `builder` - Default form builder. Accepts a subclass of # ActionView::Helpers::FormBuilder # - # source://actionpack//lib/action_controller/form_builder.rb#45 + # pkg:gem/actionpack#lib/action_controller/form_builder.rb:45 def default_form_builder(builder); end end -# source://actionpack//lib/action_controller/metal/head.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/head.rb:6 module ActionController::Head # Returns a response that has no content (merely headers). The options argument # is interpreted to be a hash of header names and values. This allows you to @@ -3707,16 +3654,12 @@ module ActionController::Head # See `Rack::Utils::SYMBOL_TO_STATUS_CODE` for a full list of valid `status` # symbols. # - # @raise [::AbstractController::DoubleRenderError] - # - # source://actionpack//lib/action_controller/metal/head.rb#23 + # pkg:gem/actionpack#lib/action_controller/metal/head.rb:23 def head(status, options = T.unsafe(nil)); end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/head.rb#58 + # pkg:gem/actionpack#lib/action_controller/metal/head.rb:58 def include_content?(status); end end @@ -3777,7 +3720,7 @@ end # 23 Aug 11:30 | Carolina Railhawks Soccer Match # N/A | Carolina Railhawks Training Workshop # -# source://actionpack//lib/action_controller/metal/helpers.rb#63 +# pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:63 module ActionController::Helpers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3789,20 +3732,14 @@ module ActionController::Helpers # Provides a proxy to access helper methods from outside the view. # - # source://actionpack//lib/action_controller/metal/helpers.rb#125 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:125 def helpers; end class << self - # Returns the value of attribute helpers_path. - # - # source://actionpack//lib/action_controller/metal/helpers.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:66 def helpers_path; end - # Sets the attribute helpers_path - # - # @param value the value to set the attribute helpers_path to. - # - # source://actionpack//lib/action_controller/metal/helpers.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:66 def helpers_path=(_arg0); end end @@ -3831,7 +3768,7 @@ module ActionController::Helpers end end -# source://actionpack//lib/action_controller/metal/helpers.rb#74 +# pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:74 module ActionController::Helpers::ClassMethods # Declares helper accessors for controller attributes. For example, the # following adds new `name` and `name=` instance methods to a controller and @@ -3842,7 +3779,7 @@ module ActionController::Helpers::ClassMethods # #### Parameters # * `attrs` - Names of attributes to be converted into helpers. # - # source://actionpack//lib/action_controller/metal/helpers.rb#84 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:84 def helper_attr(*attrs); end # Provides a proxy to access helper methods from outside the view. @@ -3852,7 +3789,7 @@ module ActionController::Helpers::ClassMethods # [helper](rdoc-ref:AbstractController::Helpers::ClassMethods#helper) instead # when using `capture`. # - # source://actionpack//lib/action_controller/metal/helpers.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:94 def helpers; end # Override modules_for_helpers to accept `:all` as argument, which loads all @@ -3865,20 +3802,20 @@ module ActionController::Helpers::ClassMethods # #### Returns # * `array` - A normalized list of modules for the list of helpers provided. # - # source://actionpack//lib/action_controller/metal/helpers.rb#112 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:112 def modules_for_helpers(args); end private # Extract helper names from files in `app/helpers/***/**_helper.rb` # - # source://actionpack//lib/action_controller/metal/helpers.rb#119 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:119 def all_application_helpers; end end # HTTP Basic, Digest, and Token authentication. # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#11 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:11 module ActionController::HttpAuthentication; end # # HTTP Basic authentication @@ -3939,65 +3876,61 @@ module ActionController::HttpAuthentication; end # assert_equal 200, status # end # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#69 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:69 module ActionController::HttpAuthentication::Basic extend ::ActionController::HttpAuthentication::Basic - # source://actionpack//lib/action_controller/metal/http_authentication.rb#130 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:130 def auth_param(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#126 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:126 def auth_scheme(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#108 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:108 def authenticate(request, &login_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#138 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:138 def authentication_request(controller, realm, message); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#122 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:122 def decode_credentials(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#134 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:134 def encode_credentials(user_name, password); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#114 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:114 def has_basic_credentials?(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#118 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:118 def user_name_and_password(request); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#72 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:72 module ActionController::HttpAuthentication::Basic::ControllerMethods extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods - # source://actionpack//lib/action_controller/metal/http_authentication.rb#95 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:95 def authenticate_or_request_with_http_basic(realm = T.unsafe(nil), message = T.unsafe(nil), &login_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#99 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:99 def authenticate_with_http_basic(&login_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#86 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:86 def http_basic_authenticate_or_request_with(name:, password:, realm: T.unsafe(nil), message: T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#103 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:103 def request_http_basic_authentication(realm = T.unsafe(nil), message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#75 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:75 module ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods # Enables HTTP Basic authentication. # # See ActionController::HttpAuthentication::Basic for example usage. # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#79 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:79 def http_basic_authenticate_with(name:, password:, realm: T.unsafe(nil), **options); end end @@ -4045,28 +3978,28 @@ end # before they reach your application. You can debug this situation by logging # all environment variables, and check for HTTP_AUTHORIZATION, amongst others. # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#189 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:189 module ActionController::HttpAuthentication::Digest extend ::ActionController::HttpAuthentication::Digest # Returns true on a valid response, false otherwise. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#215 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:215 def authenticate(request, realm, &password_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#274 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:274 def authentication_header(controller, realm); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#281 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:281 def authentication_request(controller, realm, message = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#267 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:267 def decode_credentials(header); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:263 def decode_credentials_header(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#258 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:258 def encode_credentials(http_method, credentials, password, password_is_ha1); end # Returns the expected response for a request of `http_method` to `uri` with the @@ -4074,10 +4007,10 @@ module ActionController::HttpAuthentication::Digest # `password_is_ha1` is set to `true` by default, since best practice is to store # ha1 digest instead of a plain-text password. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#248 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:248 def expected_response(http_method, uri, credentials, password, password_is_ha1 = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#254 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:254 def ha1(credentials, password); end # Uses an MD5 digest based on time to generate a value to be used only once. @@ -4117,22 +4050,22 @@ module ActionController::HttpAuthentication::Digest # secret key from the Rails session secret generated upon creation of project. # Ensures the time cannot be modified by client. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#330 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:330 def nonce(secret_key, time = T.unsafe(nil)); end # Opaque based on digest of secret key # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#348 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:348 def opaque(secret_key); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:288 def secret_token(request); end # Returns false unless the request credentials response value matches the # expected value. First try the password as a ha1 digest password. If this # fails, then try it as a plain text password. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#222 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:222 def validate_digest_response(request, realm, &password_procedure); end # Might want a shorter timeout depending on whether the request is a PATCH, PUT, @@ -4140,30 +4073,30 @@ module ActionController::HttpAuthentication::Digest # the Stale directive is implemented. This would allow a user to use new nonce # without prompting the user again for their username and password. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#341 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:341 def validate_nonce(secret_key, request, value, seconds_to_timeout = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#192 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:192 module ActionController::HttpAuthentication::Digest::ControllerMethods # Authenticate using an HTTP Digest, or otherwise render an HTTP header # requesting the client to send a Digest. # # See ActionController::HttpAuthentication::Digest for example usage. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#197 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:197 def authenticate_or_request_with_http_digest(realm = T.unsafe(nil), message = T.unsafe(nil), &password_procedure); end # Authenticate using an HTTP Digest. Returns true if authentication is # successful, false otherwise. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#203 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:203 def authenticate_with_http_digest(realm = T.unsafe(nil), &password_procedure); end # Render an HTTP header requesting the client to send a Digest for # authentication. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#209 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:209 def request_http_digest_authentication(realm = T.unsafe(nil), message = T.unsafe(nil)); end end @@ -4240,7 +4173,7 @@ end # # RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L] # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#425 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:425 module ActionController::HttpAuthentication::Token extend ::ActionController::HttpAuthentication::Token @@ -4258,7 +4191,7 @@ module ActionController::HttpAuthentication::Token # # authenticate(controller) { |token, options| ... } # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#472 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:472 def authenticate(controller, &login_procedure); end # Sets a WWW-Authenticate header to let the client know a token is desired. @@ -4270,7 +4203,7 @@ module ActionController::HttpAuthentication::Token # * `controller` - ActionController::Base instance for the outgoing response. # * `realm` - String realm to use in the header. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#555 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:555 def authentication_request(controller, realm, message = T.unsafe(nil)); end # Encodes the given token and options into an Authorization header value. @@ -4282,24 +4215,24 @@ module ActionController::HttpAuthentication::Token # * `token` - String token. # * `options` - Optional Hash of the options. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#539 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:539 def encode_credentials(token, options = T.unsafe(nil)); end # Takes `raw_params` and turns it into an array of parameters. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#507 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:507 def params_array_from(raw_params); end # This method takes an authorization body and splits up the key-value pairs by # the standardized `:`, `;`, or `\t` delimiters defined in # `AUTHN_PAIR_DELIMITERS`. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#519 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:519 def raw_params(auth); end # This removes the `"` characters wrapping the value. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#512 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:512 def rewrite_param_values(array_params); end # Parses the token and options out of the token Authorization header. The value @@ -4317,17 +4250,17 @@ module ActionController::HttpAuthentication::Token # # * `request` - ActionDispatch::Request instance with the current headers. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#494 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:494 def token_and_options(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#502 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:502 def token_params_from(auth); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#428 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:428 ActionController::HttpAuthentication::Token::AUTHN_PAIR_DELIMITERS = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_controller/metal/http_authentication.rb#431 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:431 module ActionController::HttpAuthentication::Token::ControllerMethods # Authenticate using an HTTP Bearer token, or otherwise render an HTTP header # requesting the client to send a Bearer token. For the authentication to be @@ -4336,7 +4269,7 @@ module ActionController::HttpAuthentication::Token::ControllerMethods # # See ActionController::HttpAuthentication::Token for example usage. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#438 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:438 def authenticate_or_request_with_http_token(realm = T.unsafe(nil), message = T.unsafe(nil), &login_procedure); end # Authenticate using an HTTP Bearer token. Returns the return value of @@ -4344,20 +4277,20 @@ module ActionController::HttpAuthentication::Token::ControllerMethods # # See ActionController::HttpAuthentication::Token for example usage. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#446 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:446 def authenticate_with_http_token(&login_procedure); end # Render an HTTP header requesting the client to send a Bearer token for # authentication. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#452 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:452 def request_http_token_authentication(realm = T.unsafe(nil), message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#426 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:426 ActionController::HttpAuthentication::Token::TOKEN_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/http_authentication.rb#427 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:427 ActionController::HttpAuthentication::Token::TOKEN_REGEX = T.let(T.unsafe(nil), Regexp) # # Action Controller Implicit Render @@ -4388,21 +4321,19 @@ ActionController::HttpAuthentication::Token::TOKEN_REGEX = T.let(T.unsafe(nil), # Finally, if we DON'T find a template AND the request isn't a browser page # load, then we implicitly respond with `204 No Content`. # -# source://actionpack//lib/action_controller/metal/implicit_render.rb#33 +# pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:33 module ActionController::ImplicitRender include ::ActionController::BasicImplicitRender - # source://actionpack//lib/action_controller/metal/implicit_render.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:37 def default_render; end - # source://actionpack//lib/action_controller/metal/implicit_render.rb#56 + # pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:56 def method_for_action(action_name); end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/implicit_render.rb#63 + # pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:63 def interactive_browser_request?; end end @@ -4415,7 +4346,7 @@ end # # Check ActiveRecord::Railties::ControllerRuntime for an example. # -# source://actionpack//lib/action_controller/metal/instrumentation.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:16 module ActionController::Instrumentation extend ::ActiveSupport::Concern include ::ActiveSupport::Benchmarkable @@ -4423,25 +4354,25 @@ module ActionController::Instrumentation mixes_in_class_methods ::ActionController::Instrumentation::ClassMethods - # source://actionpack//lib/action_controller/metal/instrumentation.rb#23 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:23 def initialize(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#49 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:49 def redirect_to(*_arg0); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:28 def render(*_arg0); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#43 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:43 def send_data(data, options = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#36 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:36 def send_file(path, options = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#21 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:21 def view_runtime; end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#21 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:21 def view_runtime=(_arg0); end private @@ -4449,7 +4380,7 @@ module ActionController::Instrumentation # Every time after an action is processed, this method is invoked with the # payload, so you can add more information. # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#105 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:105 def append_info_to_payload(payload); end # A hook which allows you to clean up any time, wrongly taken into account in @@ -4459,32 +4390,32 @@ module ActionController::Instrumentation # super - time_taken_in_something_expensive # end # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#99 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:99 def cleanup_view_runtime; end # A hook invoked every time a before callback is halted. # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:89 def halted_callback_hook(filter, _); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#59 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:59 def process_action(*_arg0); end end -# source://actionpack//lib/action_controller/metal/instrumentation.rb#109 +# pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:109 module ActionController::Instrumentation::ClassMethods # A hook which allows other frameworks to log what happened during controller # process action. This method should return an array with the messages to be # added. # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#113 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:113 def log_process_action(payload); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#10 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:10 class ActionController::InvalidAuthenticityToken < ::ActionController::ActionControllerError; end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:13 class ActionController::InvalidCrossOriginRequest < ::ActionController::ActionControllerError; end # Raised when initializing Parameters with keys that aren't strings or symbols. @@ -4492,7 +4423,7 @@ class ActionController::InvalidCrossOriginRequest < ::ActionController::ActionCo # ActionController::Parameters.new(123 => 456) # # => ActionController::InvalidParameterKey: all keys must be Strings or Symbols, got: Integer # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#84 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:84 class ActionController::InvalidParameterKey < ::ArgumentError; end # # Action Controller Live @@ -4577,7 +4508,7 @@ class ActionController::InvalidParameterKey < ::ArgumentError; end # # By default, no keys are excluded to maintain backward compatibility. # -# source://actionpack//lib/action_controller/metal/live.rb#91 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:91 module ActionController::Live extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -4585,22 +4516,29 @@ module ActionController::Live mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActionController::Live::ClassMethods - # source://actionpack//lib/action_controller/metal/live.rb#413 + # Ensure we clean up any thread locals we copied so that the thread can reused. + # + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:413 def clean_up_thread_locals(*args); end - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys; end - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys=(val); end - # source://actionpack//lib/action_controller/metal/live.rb#404 + # Spawn a new thread to serve up the controller in. This is to get around the + # fact that Rack isn't based around IOs and we need to use a thread to stream + # data from the response bodies. Nobody should call this method except in Rails + # internals. Seriously! + # + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:404 def new_controller_thread; end - # source://actionpack//lib/action_controller/metal/live.rb#307 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:307 def process(name); end - # source://actionpack//lib/action_controller/metal/live.rb#352 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:352 def response_body=(body); end # Sends a stream to the browser, which is helpful when you're generating exports @@ -4629,41 +4567,36 @@ module ActionController::Live # end # end # - # source://actionpack//lib/action_controller/metal/live.rb#382 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:382 def send_stream(filename:, disposition: T.unsafe(nil), type: T.unsafe(nil)); end private - # source://actionpack//lib/action_controller/metal/live.rb#421 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:421 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/test_case.rb#34 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:34 def original_clean_up_thread_locals(locals, thread); end - # Spawn a new thread to serve up the controller in. This is to get around the - # fact that Rack isn't based around IOs and we need to use a thread to stream - # data from the response bodies. Nobody should call this method except in Rails - # internals. Seriously! # Disable controller / rendering threads in tests. User tests can access the # database on the main thread, so they could open a txn, then the controller # thread will open a new connection and try to access data that's only visible # to the main thread's txn. This is the problem in #23483. # - # source://actionpack//lib/action_controller/test_case.rb#25 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:25 def original_new_controller_thread; end class << self - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys; end - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys=(val); end - # source://actionpack//lib/action_controller/metal/live.rb#417 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:417 def live_thread_pool_executor; end end @@ -4676,13 +4609,11 @@ module ActionController::Live module GeneratedInstanceMethods; end end -# source://actionpack//lib/action_controller/metal/live.rb#193 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:193 class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer include ::MonitorMixin - # @return [Buffer] a new instance of Buffer - # - # source://actionpack//lib/action_controller/metal/live.rb#208 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:208 def initialize(response); end # Inform the producer/writing thread that the client has disconnected; the @@ -4690,10 +4621,10 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # # See also #close. # - # source://actionpack//lib/action_controller/metal/live.rb#256 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:256 def abort; end - # source://actionpack//lib/action_controller/metal/live.rb#275 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:275 def call_on_error; end # Write a 'close' event to the buffer; the producer/writing thread uses this to @@ -4701,7 +4632,7 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # # See also #abort. # - # source://actionpack//lib/action_controller/metal/live.rb#244 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:244 def close; end # Is the client still connected and waiting for content? @@ -4709,9 +4640,7 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # The result of calling `write` when this is `false` is determined by # `ignore_disconnect`. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/live.rb#267 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:267 def connected?; end # Ignore that the client has disconnected. @@ -4720,7 +4649,7 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # result in the written content being silently discarded. If this value is # `false` (the default), a ClientDisconnected exception will be raised. # - # source://actionpack//lib/action_controller/metal/live.rb#206 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:206 def ignore_disconnect; end # Ignore that the client has disconnected. @@ -4729,60 +4658,54 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # result in the written content being silently discarded. If this value is # `false` (the default), a ClientDisconnected exception will be raised. # - # source://actionpack//lib/action_controller/metal/live.rb#206 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:206 def ignore_disconnect=(_arg0); end - # source://actionpack//lib/action_controller/metal/live.rb#271 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:271 def on_error(&block); end - # source://actionpack//lib/action_controller/metal/live.rb#216 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:216 def write(string); end # Same as `write` but automatically include a newline at the end of the string. # - # source://actionpack//lib/action_controller/metal/live.rb#236 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:236 def writeln(string); end private - # source://actionpack//lib/action_controller/metal/live.rb#286 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:286 def build_queue(queue_size); end - # source://actionpack//lib/action_controller/metal/live.rb#280 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:280 def each_chunk(&block); end class << self - # Returns the value of attribute queue_size. - # - # source://actionpack//lib/action_controller/metal/live.rb#197 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:197 def queue_size; end - # Sets the attribute queue_size - # - # @param value the value to set the attribute queue_size to. - # - # source://actionpack//lib/action_controller/metal/live.rb#197 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:197 def queue_size=(_arg0); end end end -# source://actionpack//lib/action_controller/metal/live.rb#100 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:100 module ActionController::Live::ClassMethods - # source://actionpack//lib/action_controller/metal/live.rb#101 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:101 def make_response!(request); end end -# source://actionpack//lib/action_controller/metal/live.rb#190 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:190 class ActionController::Live::ClientDisconnected < ::RuntimeError; end -# source://actionpack//lib/action_controller/metal/live.rb#291 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:291 class ActionController::Live::Response < ::ActionDispatch::Response private - # source://actionpack//lib/action_controller/metal/live.rb#293 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:293 def before_committed; end - # source://actionpack//lib/action_controller/metal/live.rb#300 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:300 def build_buffer(response, body); end end @@ -4825,138 +4748,136 @@ end # Note: SSEs are not currently supported by IE. However, they are supported by # Chrome, Firefox, Opera, and Safari. # -# source://actionpack//lib/action_controller/metal/live.rb#153 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:153 class ActionController::Live::SSE - # @return [SSE] a new instance of SSE - # - # source://actionpack//lib/action_controller/metal/live.rb#156 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:156 def initialize(stream, options = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/live.rb#161 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:161 def close; end - # source://actionpack//lib/action_controller/metal/live.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:165 def write(object, options = T.unsafe(nil)); end private - # source://actionpack//lib/action_controller/metal/live.rb#175 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:175 def perform_write(json, options); end end -# source://actionpack//lib/action_controller/metal/live.rb#154 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:154 ActionController::Live::SSE::PERMITTED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/test_case.rb#184 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:184 class ActionController::LiveTestResponse < ::ActionController::Live::Response # Was there a server-side error? # - # source://actionpack//lib/action_controller/test_case.rb#192 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:192 def error?; end # Was the URL not found? # - # source://actionpack//lib/action_controller/test_case.rb#189 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:189 def missing?; end # Was the response successful? # - # source://actionpack//lib/action_controller/test_case.rb#186 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:186 def success?; end end -# source://actionpack//lib/action_controller/log_subscriber.rb#4 +# pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:4 class ActionController::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def backtrace_cleaner; end - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def backtrace_cleaner=(_arg0); end - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def backtrace_cleaner?; end - # source://actionpack//lib/action_controller/log_subscriber.rb#93 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:93 def exist_fragment?(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#93 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:93 def expire_fragment(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#47 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:47 def halted_callback(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#105 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:105 def logger; end - # source://actionpack//lib/action_controller/log_subscriber.rb#26 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:26 def process_action(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#93 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:93 def read_fragment(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#109 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:109 def redirect_source_location; end - # source://actionpack//lib/action_controller/log_subscriber.rb#68 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:68 def redirect_to(event); end # Manually subscribed below # - # source://actionpack//lib/action_controller/log_subscriber.rb#53 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:53 def rescue_from_callback(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#77 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:77 def send_data(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#63 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:63 def send_file(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#9 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:9 def start_processing(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#82 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:82 def unpermitted_parameters(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#93 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:93 def write_fragment(event); end class << self - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def backtrace_cleaner; end - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def backtrace_cleaner=(value); end - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def backtrace_cleaner?; end private - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def __class_attr_backtrace_cleaner; end - # source://actionpack//lib/action_controller/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 def __class_attr_backtrace_cleaner=(new_value); end - # source://actionpack//lib/action_controller/log_subscriber.rb#24 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:24 def __class_attr_log_levels; end - # source://actionpack//lib/action_controller/log_subscriber.rb#24 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:24 def __class_attr_log_levels=(new_value); end end end -# source://actionpack//lib/action_controller/log_subscriber.rb#5 +# pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:5 ActionController::LogSubscriber::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/logging.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/logging.rb:6 module ActionController::Logging extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::Logging::ClassMethods end -# source://actionpack//lib/action_controller/metal/logging.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/logging.rb:9 module ActionController::Logging::ClassMethods # Set a different log level per request. # @@ -4965,7 +4886,7 @@ module ActionController::Logging::ClassMethods # log_at :debug, if: -> { cookies[:debug] } # end # - # source://actionpack//lib/action_controller/metal/logging.rb#17 + # pkg:gem/actionpack#lib/action_controller/metal/logging.rb:17 def log_at(level, **options); end end @@ -5026,149 +4947,113 @@ end # You can refer to the modules included in ActionController::Base to see other # features you can bring into your metal controller. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/action_controller/metal.rb#121 +# pkg:gem/actionpack#lib/action_controller/metal.rb:121 class ActionController::Metal < ::AbstractController::Base include ::ActionController::Testing::Functional - # @return [Metal] a new instance of Metal - # - # source://actionpack//lib/action_controller/metal.rb#210 + # pkg:gem/actionpack#lib/action_controller/metal.rb:210 def initialize; end - # Delegates to ActionDispatch::Response#content_type - # - # source://actionpack//lib/action_controller/metal.rb#204 + # pkg:gem/actionpack#lib/action_controller/metal.rb:204 def content_type(*_arg0, **_arg1, &_arg2); end - # Delegates to ActionDispatch::Response#content_type= - # - # source://actionpack//lib/action_controller/metal.rb#192 + # pkg:gem/actionpack#lib/action_controller/metal.rb:192 def content_type=(arg); end # Delegates to the class's ::controller_name. # - # source://actionpack//lib/action_controller/metal.rb#156 + # pkg:gem/actionpack#lib/action_controller/metal.rb:156 def controller_name; end - # source://actionpack//lib/action_controller/metal.rb#249 + # pkg:gem/actionpack#lib/action_controller/metal.rb:249 def dispatch(name, request, response); end - # Delegates to ActionDispatch::Response#headers. - # - # source://actionpack//lib/action_controller/metal.rb#180 + # pkg:gem/actionpack#lib/action_controller/metal.rb:180 def headers(*_arg0, **_arg1, &_arg2); end - # Delegates to ActionDispatch::Response#location - # - # source://actionpack//lib/action_controller/metal.rb#200 + # pkg:gem/actionpack#lib/action_controller/metal.rb:200 def location(*_arg0, **_arg1, &_arg2); end - # Delegates to ActionDispatch::Response#location= - # - # source://actionpack//lib/action_controller/metal.rb#188 + # pkg:gem/actionpack#lib/action_controller/metal.rb:188 def location=(arg); end - # Delegates to ActionDispatch::Response#media_type - # - # source://actionpack//lib/action_controller/metal.rb#208 + # pkg:gem/actionpack#lib/action_controller/metal.rb:208 def media_type(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack=(_arg0); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack?; end - # source://actionpack//lib/action_controller/metal.rb#219 + # pkg:gem/actionpack#lib/action_controller/metal.rb:219 def params; end - # source://actionpack//lib/action_controller/metal.rb#223 + # pkg:gem/actionpack#lib/action_controller/metal.rb:223 def params=(val); end # Tests if render or redirect has already happened. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal.rb#245 + # pkg:gem/actionpack#lib/action_controller/metal.rb:245 def performed?; end - # :attr_reader: request - # - # The ActionDispatch::Request instance for the current request. - # - # source://actionpack//lib/action_controller/metal.rb#164 + # pkg:gem/actionpack#lib/action_controller/metal.rb:164 def request; end - # source://actionpack//lib/action_controller/metal.rb#164 + # pkg:gem/actionpack#lib/action_controller/metal.rb:164 def request=(_arg0); end - # source://actionpack//lib/action_controller/metal.rb#284 + # pkg:gem/actionpack#lib/action_controller/metal.rb:284 def reset_session; end - # :attr_reader: response - # - # The ActionDispatch::Response instance for the current response. - # - # source://actionpack//lib/action_controller/metal.rb#170 + # pkg:gem/actionpack#lib/action_controller/metal.rb:170 def response; end # Assign the response and mark it as committed. No further processing will # occur. # - # source://actionpack//lib/action_controller/metal.rb#268 + # pkg:gem/actionpack#lib/action_controller/metal.rb:268 def response=(response); end - # source://actionpack//lib/action_controller/metal.rb#234 + # pkg:gem/actionpack#lib/action_controller/metal.rb:234 def response_body=(body); end - # Delegates to ActionDispatch::Response#status - # - # source://actionpack//lib/action_controller/metal.rb#227 + # pkg:gem/actionpack#lib/action_controller/metal.rb:227 def response_code(*_arg0, **_arg1, &_arg2); end - # The ActionDispatch::Request::Session instance for the current request. - # See further details in the - # [Active Controller Session guide](https://guides.rubyonrails.org/action_controller_overview.html#session). - # - # source://actionpack//lib/action_controller/metal.rb#176 + # pkg:gem/actionpack#lib/action_controller/metal.rb:176 def session(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal.rb#275 + # pkg:gem/actionpack#lib/action_controller/metal.rb:275 def set_request!(request); end - # source://actionpack//lib/action_controller/metal.rb#257 + # pkg:gem/actionpack#lib/action_controller/metal.rb:257 def set_response!(response); end - # Delegates to ActionDispatch::Response#status - # - # source://actionpack//lib/action_controller/metal.rb#196 + # pkg:gem/actionpack#lib/action_controller/metal.rb:196 def status(*_arg0, **_arg1, &_arg2); end - # Delegates to ActionDispatch::Response#status= - # - # source://actionpack//lib/action_controller/metal.rb#184 + # pkg:gem/actionpack#lib/action_controller/metal.rb:184 def status=(arg); end - # source://actionpack//lib/action_controller/metal.rb#280 + # pkg:gem/actionpack#lib/action_controller/metal.rb:280 def to_a; end # Basic `url_for` that can be overridden for more robust functionality. # - # source://actionpack//lib/action_controller/metal.rb#230 + # pkg:gem/actionpack#lib/action_controller/metal.rb:230 def url_for(string); end class << self # Returns a Rack endpoint for the given action name. # - # source://actionpack//lib/action_controller/metal.rb#315 + # pkg:gem/actionpack#lib/action_controller/metal.rb:315 def action(name); end - # source://actionpack//lib/action_controller/metal.rb#140 + # pkg:gem/actionpack#lib/action_controller/metal.rb:140 def action_encoding_template(action); end # Returns the last part of the controller's name, underscored, without the @@ -5178,16 +5063,16 @@ class ActionController::Metal < ::AbstractController::Base # #### Returns # * `string` # - # source://actionpack//lib/action_controller/metal.rb#130 + # pkg:gem/actionpack#lib/action_controller/metal.rb:130 def controller_name; end # Direct dispatch to the controller. Instantiates the controller, then executes # the action named `name`. # - # source://actionpack//lib/action_controller/metal.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal.rb:331 def dispatch(name, req, res); end - # source://actionpack//lib/action_controller/metal.rb#134 + # pkg:gem/actionpack#lib/action_controller/metal.rb:134 def make_response!(request); end # The middleware stack used by this controller. @@ -5203,50 +5088,46 @@ class ActionController::Metal < ::AbstractController::Base # (https://guides.rubyonrails.org/rails_on_rack.html#action-dispatcher-middleware-stack) # in the guides. # - # source://actionpack//lib/action_controller/metal.rb#310 + # pkg:gem/actionpack#lib/action_controller/metal.rb:310 def middleware; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack=(value); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack?; end # Pushes the given Rack middleware and its arguments to the bottom of the # middleware stack. # - # source://actionpack//lib/action_controller/metal.rb#293 + # pkg:gem/actionpack#lib/action_controller/metal.rb:293 def use(*_arg0, **_arg1, &_arg2); end private - # source://actionpack//lib/action_controller/metal.rb#121 + # pkg:gem/actionpack#lib/action_controller/metal.rb:121 def __class_attr_config; end - # source://actionpack//lib/action_controller/metal.rb#121 + # pkg:gem/actionpack#lib/action_controller/metal.rb:121 def __class_attr_config=(new_value); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def __class_attr_middleware_stack; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def __class_attr_middleware_stack=(new_value); end - # @private - # - # source://actionpack//lib/action_controller/metal.rb#146 + # pkg:gem/actionpack#lib/action_controller/metal.rb:146 def inherited(subclass); end end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#52 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:52 class ActionController::MethodNotAllowed < ::ActionController::ActionControllerError - # @return [MethodNotAllowed] a new instance of MethodNotAllowed - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#53 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:53 def initialize(*allowed_methods); end end @@ -5259,40 +5140,36 @@ end # use AuthenticationMiddleware, except: [:index, :show] # end # -# source://actionpack//lib/action_controller/metal.rb#18 +# pkg:gem/actionpack#lib/action_controller/metal.rb:18 class ActionController::MiddlewareStack < ::ActionDispatch::MiddlewareStack - # source://actionpack//lib/action_controller/metal.rb#31 + # pkg:gem/actionpack#lib/action_controller/metal.rb:31 def build(action, app = T.unsafe(nil), &block); end private - # source://actionpack//lib/action_controller/metal.rb#44 + # pkg:gem/actionpack#lib/action_controller/metal.rb:44 def build_middleware(klass, args, block); end end -# source://actionpack//lib/action_controller/metal.rb#41 +# pkg:gem/actionpack#lib/action_controller/metal.rb:41 ActionController::MiddlewareStack::EXCLUDE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_controller/metal.rb#40 +# pkg:gem/actionpack#lib/action_controller/metal.rb:40 ActionController::MiddlewareStack::INCLUDE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_controller/metal.rb#19 +# pkg:gem/actionpack#lib/action_controller/metal.rb:19 class ActionController::MiddlewareStack::Middleware < ::ActionDispatch::MiddlewareStack::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_controller/metal.rb#20 + # pkg:gem/actionpack#lib/action_controller/metal.rb:20 def initialize(klass, args, actions, strategy, block); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal.rb#26 + # pkg:gem/actionpack#lib/action_controller/metal.rb:26 def valid?(action); end end -# source://actionpack//lib/action_controller/metal.rb#42 +# pkg:gem/actionpack#lib/action_controller/metal.rb:42 ActionController::MiddlewareStack::NULL = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_controller/metal/mime_responds.rb#8 +# pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:8 module ActionController::MimeResponds # Without web-service support, an action which collects the data for displaying # a list of people might look something like this: @@ -5497,10 +5374,7 @@ module ActionController::MimeResponds # format.html.phone # this gets rendered # end # - # @raise [ArgumentError] - # @yield [collector] - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#211 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:211 def respond_to(*mimes); end end @@ -5526,122 +5400,102 @@ end # determine which specific mime-type it should respond with for the current # request, with this response then being accessible by calling #response. # -# source://actionpack//lib/action_controller/metal/mime_responds.rb#251 +# pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:251 class ActionController::MimeResponds::Collector include ::AbstractController::Collector - # @return [Collector] a new instance of Collector - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#255 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:255 def initialize(mimes, variant = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#269 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:269 def all(*args, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#262 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:262 def any(*args, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#280 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:280 def any_response?; end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#271 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:271 def custom(mime_type, &block); end - # Returns the value of attribute format. - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#253 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:253 def format; end - # Sets the attribute format - # - # @param value the value to set the attribute format to. - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#253 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:253 def format=(_arg0); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#297 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:297 def negotiate_format(request); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#284 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:284 def response; end end -# source://actionpack//lib/action_controller/metal/mime_responds.rb#301 +# pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:301 class ActionController::MimeResponds::Collector::VariantCollector - # @return [VariantCollector] a new instance of VariantCollector - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#302 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:302 def initialize(variant = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#316 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:316 def all(*args, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#307 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:307 def any(*args, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#318 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:318 def method_missing(name, *_arg1, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#322 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:322 def variant; end private - # source://actionpack//lib/action_controller/metal/mime_responds.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:331 def variant_key; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#96 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:96 class ActionController::MissingExactTemplate < ::ActionController::UnknownFormat - # @return [MissingExactTemplate] a new instance of MissingExactTemplate - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#99 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:99 def initialize(message, controller, action_name); end - # Returns the value of attribute action_name. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:97 def action_name; end - # Returns the value of attribute controller. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:97 def controller; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#61 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:61 class ActionController::MissingFile < ::ActionController::ActionControllerError; end # See `Responder#api_behavior` # -# source://actionpack//lib/action_controller/metal/renderers.rb#17 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:17 class ActionController::MissingRenderer < ::LoadError - # @return [MissingRenderer] a new instance of MissingRenderer - # - # source://actionpack//lib/action_controller/metal/renderers.rb#18 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:18 def initialize(format); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#58 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:58 class ActionController::NotImplemented < ::ActionController::MethodNotAllowed; end # Specify binary encoding for parameters for a given action. # -# source://actionpack//lib/action_controller/metal/parameter_encoding.rb#7 +# pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:7 module ActionController::ParameterEncoding extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::ParameterEncoding::ClassMethods end -# source://actionpack//lib/action_controller/metal/parameter_encoding.rb#10 +# pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:10 module ActionController::ParameterEncoding::ClassMethods - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#20 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:20 def action_encoding_template(action); end - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#11 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:11 def inherited(klass); end # Specify the encoding for a parameter on an action. If not specified the @@ -5670,10 +5524,10 @@ module ActionController::ParameterEncoding::ClassMethods # where an application must handle data but encoding of the data is unknown, # like file system data. # - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#79 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:79 def param_encoding(action, param, encoding); end - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#16 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:16 def setup_param_encode; end # Specify that a given action's parameters should all be encoded as ASCII-8BIT @@ -5701,7 +5555,7 @@ module ActionController::ParameterEncoding::ClassMethods # encoded as ASCII-8BIT. This is useful in the case where an application must # handle data but encoding of the data is unknown, like file system data. # - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#50 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:50 def skip_parameter_encoding(action); end end @@ -5715,20 +5569,18 @@ end # params.expect(a: []) # # => ActionController::ParameterMissing: param is missing or the value is empty or invalid: a # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#25 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:25 class ActionController::ParameterMissing < ::KeyError - # @return [ParameterMissing] a new instance of ParameterMissing - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:28 def initialize(param, keys = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:37 def corrections; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#26 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:26 def keys; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#26 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:26 def param; end end @@ -5806,7 +5658,7 @@ end # params[:key] # => "value" # params["key"] # => "value" # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#160 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:160 class ActionController::Parameters include ::ActiveSupport::DeepMergeable @@ -5827,15 +5679,13 @@ class ActionController::Parameters # params.permitted? # => true # Person.new(params) # => # # - # @return [Parameters] a new instance of Parameters - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#287 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:287 def initialize(parameters = T.unsafe(nil), logging_context = T.unsafe(nil)); end # Returns true if another `Parameters` object contains the same content and # permitted flag. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#301 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:301 def ==(other); end # Returns a parameter for the given `key`. If not found, returns `nil`. @@ -5844,46 +5694,46 @@ class ActionController::Parameters # params[:person] # => #"Francesco"} permitted: false> # params[:none] # => nil # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#797 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:797 def [](key); end # Assigns a value to a given `key`. The given key may still get filtered out # when #permit is called. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#803 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:803 def []=(key, value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:263 def always_permitted_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:263 def always_permitted_parameters=(val); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def as_json(*_arg0, **_arg1, &_arg2); end # Returns a new `ActionController::Parameters` instance with `nil` values # removed. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#974 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:974 def compact; end # Removes all `nil` values in place and returns `self`, or `nil` if no changes # were made. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#980 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:980 def compact!; end # Returns a new `ActionController::Parameters` instance without the blank # values. Uses Object#blank? for determining if a value is blank. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#986 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:986 def compact_blank; end # Removes all blank values in place and returns self. Uses Object#blank? for # determining if a value is blank. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#992 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:992 def compact_blank!; end # Attribute that keeps track of converted arrays, if any, to avoid double @@ -5894,32 +5744,30 @@ class ActionController::Parameters # that converts values. Also, we are not going to build a new array object per # fetch. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#435 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:435 def converted_arrays; end # Returns a duplicate `ActionController::Parameters` instance with the same # permitted parameters. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1092 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1092 def deep_dup; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1027 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1027 def deep_merge?(other_hash); end # Returns a new `ActionController::Parameters` instance with the results of # running `block` once for every key. This includes the keys from the root hash # and from all nested hashes and arrays. The values are unchanged. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#924 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:924 def deep_transform_keys(&block); end # Returns the same `ActionController::Parameters` instance with changed keys. # This includes the keys from the root hash and from all nested hashes and # arrays. The values are unchanged. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#933 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:933 def deep_transform_keys!(&block); end # Deletes a key-value pair from `Parameters` and returns the value. If `key` is @@ -5927,12 +5775,10 @@ class ActionController::Parameters # returns the result). This method is similar to #extract!, which returns the # corresponding `ActionController::Parameters` object. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#942 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:942 def delete(key, &block); end - # Removes items that the block evaluates to true and returns self. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#970 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:970 def delete_if(&block); end # Extracts the nested parameter from the given `keys` by calling `dig` at each @@ -5945,39 +5791,34 @@ class ActionController::Parameters # params2 = ActionController::Parameters.new(foo: [10, 11, 12]) # params2.dig(:foo, 1) # => 11 # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#841 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:841 def dig(*keys); end - # Convert all hashes in values into parameters, then yield each pair in the same - # way as `Hash#each_pair`. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#410 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:410 def each(&block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def each_key(*_arg0, **_arg1, &_arg2); end # Convert all hashes in values into parameters, then yield each pair in the same # way as `Hash#each_pair`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#402 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:402 def each_pair(&block); end # Convert all hashes in values into parameters, then yield each value in the # same way as `Hash#each_value`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#414 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:414 def each_value(&block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def empty?(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1086 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1086 def encode_with(coder); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#309 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:309 def eql?(other); end # Returns a new `ActionController::Parameters` instance that filters out the @@ -5987,10 +5828,10 @@ class ActionController::Parameters # params.except(:a, :b) # => #3} permitted: false> # params.except(:d) # => #1, "b"=>2, "c"=>3} permitted: false> # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#869 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:869 def except(*keys); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def exclude?(*_arg0, **_arg1, &_arg2); end # `expect` is the preferred way to require and permit parameters. @@ -6093,7 +5934,7 @@ class ActionController::Parameters # permitted.is_a?(Array) # => true # permitted.size # => 2 # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#772 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:772 def expect(*filters); end # Same as `expect`, but raises an `ActionController::ExpectedParameterMissing` @@ -6103,7 +5944,7 @@ class ActionController::Parameters # internal API where incorrectly formatted params would indicate a bug # in a client library that should be fixed. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#786 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:786 def expect!(*filters); end # Removes and returns the key/value pairs matching the given keys. @@ -6112,7 +5953,7 @@ class ActionController::Parameters # params.extract!(:a, :b) # => #1, "b"=>2} permitted: false> # params # => #3} permitted: false> # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#879 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:879 def extract!(*keys); end # Returns parameter value for the given `key` separated by `delimiter`. @@ -6128,7 +5969,7 @@ class ActionController::Parameters # params = ActionController::Parameters.new(tags: "ruby,rails,,web") # params.extract_value(:tags, delimiter: ",") # => ["ruby", "rails", "", "web"] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1110 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1110 def extract_value(key, delimiter: T.unsafe(nil)); end # Returns a parameter for the given `key`. If the `key` can't be found, there @@ -6145,56 +5986,45 @@ class ActionController::Parameters # params.fetch(:none, "Francesco") # => "Francesco" # params.fetch(:none) { "Francesco" } # => "Francesco" # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#820 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:820 def fetch(key, *args); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#253 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:253 def has_key?(*_arg0, **_arg1, &_arg2); end # Returns true if the given value is present for some key in the parameters. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#997 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:997 def has_value?(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#315 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:315 def hash; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def include?(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1068 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1068 def init_with(coder); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1055 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1055 def inspect; end - # Equivalent to Hash#keep_if, but returns `nil` if no changes were made. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#957 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:957 def keep_if(&block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#254 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:254 def key?(*_arg0, **_arg1, &_arg2); end - # :method: to_s - # - # :call-seq: - # to_s() - # - # Returns the content of the parameters as a string. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def keys(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#255 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:255 def member?(*_arg0, **_arg1, &_arg2); end # Returns a new `ActionController::Parameters` instance with all keys from # `other_hash` merged into current hash. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1011 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1011 def merge(other_hash); end # :call-seq: merge!(other_hash) @@ -6202,7 +6032,7 @@ class ActionController::Parameters # Returns the current `ActionController::Parameters` instance with `other_hash` # merged into current hash. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1022 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1022 def merge!(other_hash, &block); end # Returns a new `ActionController::Parameters` instance that includes only the @@ -6343,7 +6173,7 @@ class ActionController::Parameters # params.permit(person: { '0': [:email], '1': [:phone]}).to_h # # => {"person"=>{"0"=>{"email"=>"none@test.com"}, "1"=>{"phone"=>"555-6789"}}} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#668 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:668 def permit(*filters); end # Sets the `permitted` attribute to `true`. This can be used to pass mass @@ -6359,7 +6189,7 @@ class ActionController::Parameters # params.permitted? # => true # Person.new(params) # => # # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#461 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:461 def permit!; end # Returns `true` if the parameter is permitted, `false` otherwise. @@ -6369,20 +6199,18 @@ class ActionController::Parameters # params.permit! # params.permitted? # => true # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#445 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:445 def permitted?; end # Returns a new `ActionController::Parameters` instance with items that the # block evaluates to true removed. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#961 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:961 def reject(&block); end # Removes items that the block evaluates to true and returns self. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#966 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:966 def reject!(&block); end # This method accepts both a single key and an array of keys. @@ -6432,80 +6260,33 @@ class ActionController::Parameters # params.expect(person: :name).require(:name) # end # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#519 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:519 def require(key); end - # This method accepts both a single key and an array of keys. - # - # When passed a single key, if it exists and its associated value is either - # present or the singleton `false`, returns said value: - # - # ActionController::Parameters.new(person: { name: "Francesco" }).require(:person) - # # => #"Francesco"} permitted: false> - # - # Otherwise raises ActionController::ParameterMissing: - # - # ActionController::Parameters.new.require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # ActionController::Parameters.new(person: nil).require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # ActionController::Parameters.new(person: "\t").require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # ActionController::Parameters.new(person: {}).require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # When given an array of keys, the method tries to require each one of them in - # order. If it succeeds, an array with the respective return values is returned: - # - # params = ActionController::Parameters.new(user: { ... }, profile: { ... }) - # user_params, profile_params = params.require([:user, :profile]) - # - # Otherwise, the method re-raises the first exception found: - # - # params = ActionController::Parameters.new(user: {}, profile: {}) - # user_params, profile_params = params.require([:user, :profile]) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: user - # - # This method is not recommended for fetching terminal values because it does - # not permit the values. For example, this can cause problems: - # - # # CAREFUL - # params = ActionController::Parameters.new(person: { name: "Finn" }) - # name = params.require(:person).require(:name) # CAREFUL - # - # It is recommended to use `expect` instead: - # - # def person_params - # params.expect(person: :name).require(:name) - # end - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#529 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:529 def required(key); end # Returns a new `ActionController::Parameters` instance with all keys from # current hash merged into `other_hash`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1033 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1033 def reverse_merge(other_hash); end # Returns the current `ActionController::Parameters` instance with current hash # merged into `other_hash`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1042 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1042 def reverse_merge!(other_hash); end # Returns a new `ActionController::Parameters` instance with only items that the # block evaluates to true. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#948 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:948 def select(&block); end # Equivalent to Hash#keep_if, but returns `nil` if no changes were made. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#953 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:953 def select!(&block); end # Returns a new `ActionController::Parameters` instance that includes only the @@ -6515,20 +6296,20 @@ class ActionController::Parameters # params.slice(:a, :b) # => #1, "b"=>2} permitted: false> # params.slice(:d) # => # # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#852 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:852 def slice(*keys); end # Returns the current `ActionController::Parameters` instance which contains # only the given `keys`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#858 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:858 def slice!(*keys); end # This is required by ActiveModel attribute assignment, so that user can pass # `Parameters` to a mass assignment methods in a model. It should not matter as # we are using `HashWithIndifferentAccess` internally. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1051 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1051 def stringify_keys; end # Returns a safe ActiveSupport::HashWithIndifferentAccess representation of the @@ -6544,7 +6325,7 @@ class ActionController::Parameters # safe_params = params.permit(:name) # safe_params.to_h # => {"name"=>"Senjougahara Hitagi"} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:331 def to_h(&block); end # Returns a safe `Hash` representation of the parameters with all unpermitted @@ -6560,37 +6341,10 @@ class ActionController::Parameters # safe_params = params.permit(:name) # safe_params.to_hash # => {"name"=>"Senjougahara Hitagi"} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#351 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:351 def to_hash; end - # Returns a string representation of the receiver suitable for use as a URL - # query string: - # - # params = ActionController::Parameters.new({ - # name: "David", - # nationality: "Danish" - # }) - # params.to_query - # # => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash - # - # safe_params = params.permit(:name, :nationality) - # safe_params.to_query - # # => "name=David&nationality=Danish" - # - # An optional namespace can be passed to enclose key names: - # - # params = ActionController::Parameters.new({ - # name: "David", - # nationality: "Danish" - # }) - # safe_params = params.permit(:name, :nationality) - # safe_params.to_query("user") - # # => "user%5Bname%5D=David&user%5Bnationality%5D=Danish" - # - # The string pairs `"key=value"` that conform the query string are sorted - # lexicographically in ascending order. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#384 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:384 def to_param(*args); end # Returns a string representation of the receiver suitable for use as a URL @@ -6620,10 +6374,10 @@ class ActionController::Parameters # The string pairs `"key=value"` that conform the query string are sorted # lexicographically in ascending order. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#381 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:381 def to_query(*args); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:250 def to_s(*_arg0, **_arg1, &_arg2); end # Returns an unsafe, unfiltered ActiveSupport::HashWithIndifferentAccess @@ -6636,32 +6390,22 @@ class ActionController::Parameters # params.to_unsafe_h # # => {"name"=>"Senjougahara Hitagi", "oddity" => "Heavy stone crab"} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#395 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:395 def to_unsafe_h; end - # Returns an unsafe, unfiltered ActiveSupport::HashWithIndifferentAccess - # representation of the parameters. - # - # params = ActionController::Parameters.new({ - # name: "Senjougahara Hitagi", - # oddity: "Heavy stone crab" - # }) - # params.to_unsafe_h - # # => {"name"=>"Senjougahara Hitagi", "oddity" => "Heavy stone crab"} - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#398 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:398 def to_unsafe_hash; end # Returns a new `ActionController::Parameters` instance with the results of # running `block` once for every key. The values are unchanged. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#906 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:906 def transform_keys(&block); end # Performs keys transformation and returns the altered # `ActionController::Parameters` instance. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#915 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:915 def transform_keys!(&block); end # Returns a new `ActionController::Parameters` instance with the results of @@ -6671,88 +6415,63 @@ class ActionController::Parameters # params.transform_values { |x| x * 2 } # # => #2, "b"=>4, "c"=>6} permitted: false> # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#889 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:889 def transform_values; end # Performs values transformation and returns the altered # `ActionController::Parameters` instance. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#898 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:898 def transform_values!; end - # Returns true if the given value is present for some key in the parameters. - # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1001 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1001 def value?(value); end # Returns a new array of the values of the parameters. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#424 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:424 def values; end # Returns values that were assigned to the given `keys`. Note that all the # `Hash` objects will be converted to `ActionController::Parameters`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1005 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1005 def values_at(*keys); end - # Returns a new `ActionController::Parameters` instance with all keys from - # current hash merged into `other_hash`. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1038 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1038 def with_defaults(other_hash); end - # Returns the current `ActionController::Parameters` instance with current hash - # merged into `other_hash`. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1046 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1046 def with_defaults!(other_hash); end - # Returns a new `ActionController::Parameters` instance that filters out the - # given `keys`. - # - # params = ActionController::Parameters.new(a: 1, b: 2, c: 3) - # params.except(:a, :b) # => #3} permitted: false> - # params.except(:d) # => #1, "b"=>2, "c"=>3} permitted: false> - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#872 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:872 def without(*keys); end protected - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1123 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1123 def each_nested_attribute; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1119 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1119 def nested_attributes?; end - # Returns the value of attribute parameters. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1115 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1115 def parameters; end # Filters self and optionally checks for unpermitted keys # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1130 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1130 def permit_filters(filters, on_unpermitted: T.unsafe(nil), explicit_arrays: T.unsafe(nil)); end - # Sets the attribute permitted - # - # @param value the value to set the attribute permitted to. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1117 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1117 def permitted=(_arg0); end private - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1192 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1192 def _deep_transform_keys_in_object(object, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1211 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1211 def _deep_transform_keys_in_object!(object, &block); end # When an array is expected, you must specify an array explicitly @@ -6773,63 +6492,57 @@ class ActionController::Parameters # # { pies: { flavor: "cherry" } } # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1256 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1256 def array_filter?(filter); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1172 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1172 def convert_hashes_to_parameters(key, value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1156 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1156 def convert_parameters_to_hashes(value, using, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1178 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1178 def convert_value_to_parameters(value); end # Called when an explicit array filter is encountered. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1261 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1261 def each_array_element(object, filter, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1349 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb: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#1434 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1434 def initialize_copy(source); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1150 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1150 def new_instance_with_inherited_permitted_status(hash); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1343 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1343 def non_scalar?(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1417 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1417 def permit_any_in_array(array); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1400 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1400 def permit_any_in_parameters(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1379 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1379 def permit_array_of_hashes(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1375 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1375 def permit_array_of_scalars(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1385 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1385 def permit_hash(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1395 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1395 def permit_hash_or_array(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1361 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1361 def permit_value(value, filter, on_unpermitted:, explicit_arrays:); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1314 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1314 def permitted_scalar?(value); end # Adds existing keys to the params if their values are scalar. @@ -6843,53 +6556,49 @@ class ActionController::Parameters # # puts params.keys # => ["zipcode"] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1328 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1328 def permitted_scalar_filter(params, permitted_key); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1232 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1232 def specify_numeric_keys?(filter); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1286 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1286 def unpermitted_keys(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1272 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1272 def unpermitted_parameters!(params, on_unpermitted: T.unsafe(nil)); end class << self - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:165 def action_on_unpermitted_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:165 def action_on_unpermitted_parameters=(val); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:263 def always_permitted_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:263 def always_permitted_parameters=(val); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1059 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1059 def hook_into_yaml_loading; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#266 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:266 def nested_attribute?(key, value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#163 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:163 def permit_all_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#163 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:163 def permit_all_parameters=(val); end end end -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1347 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1347 ActionController::Parameters::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1348 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1348 ActionController::Parameters::EMPTY_HASH = T.let(T.unsafe(nil), Hash) # This is a list of permitted scalar types that includes the ones supported in @@ -6901,7 +6610,7 @@ ActionController::Parameters::EMPTY_HASH = T.let(T.unsafe(nil), Hash) # If you modify this collection please update the one in the #permit doc as # well. # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1298 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1298 ActionController::Parameters::PERMITTED_SCALAR_TYPES = T.let(T.unsafe(nil), Array) # # Action Controller Params Wrapper @@ -6977,7 +6686,7 @@ ActionController::Parameters::PERMITTED_SCALAR_TYPES = T.let(T.unsafe(nil), Arra # wrap_parameters false # end # -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#83 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:83 module ActionController::ParamsWrapper extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -6987,38 +6696,36 @@ module ActionController::ParamsWrapper private - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#277 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:277 def _extract_parameters(parameters); end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#299 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:299 def _perform_parameter_wrapping; end # Returns the list of parameters which will be selected for wrapped. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#273 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:273 def _wrap_parameters(parameters); end # Checks if we should perform parameters wrapping. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#289 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:289 def _wrapper_enabled?; end # Returns the list of enabled formats. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#268 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:268 def _wrapper_formats; end # Returns the wrapper key which will be used to store wrapped parameters. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:263 def _wrapper_key; end # Performs parameters wrapping upon the request. Called automatically by the # metal call stack. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#257 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:257 def process_action(*_arg0); end module GeneratedClassMethods @@ -7034,15 +6741,15 @@ module ActionController::ParamsWrapper end end -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#188 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:188 module ActionController::ParamsWrapper::ClassMethods - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#189 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:189 def _set_wrapper_options(options); end # Sets the default wrapper key or model which will be used to determine wrapper # key and attribute names. Called automatically when the module is inherited. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#244 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:244 def inherited(klass); end # Sets the name of the wrapper key, or the model which `ParamsWrapper` would use @@ -7073,39 +6780,25 @@ module ActionController::ParamsWrapper::ClassMethods # * `:exclude` - The list of attribute names which parameters wrapper will # exclude from a nested hash. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#221 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:221 def wrap_parameters(name_or_model_or_options, options = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#86 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:86 ActionController::ParamsWrapper::EXCLUDE_PARAMETERS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#88 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:88 class ActionController::ParamsWrapper::Options < ::Struct - # @return [Options] a new instance of Options - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:97 def initialize(name, format, include, exclude, klass, model); end - # Returns the value of attribute include - # - # @return [Object] the current value of include - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#108 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:108 def include; end - # Returns the value of attribute model - # - # @return [Object] the current value of model - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#104 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:104 def model; end - # Returns the value of attribute name - # - # @return [Object] the current value of name - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#141 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:141 def name; end private @@ -7118,23 +6811,23 @@ class ActionController::ParamsWrapper::Options < ::Struct # This method also does namespace lookup. Foo::Bar::UsersController will try to # find Foo::Bar::User, Foo::User and finally User. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:165 def _default_wrap_model; end class << self - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:89 def from_hash(hash); end end end -# source://actionpack//lib/action_controller/metal/permissions_policy.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/permissions_policy.rb:6 module ActionController::PermissionsPolicy extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::PermissionsPolicy::ClassMethods end -# source://actionpack//lib/action_controller/metal/permissions_policy.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/permissions_policy.rb:9 module ActionController::PermissionsPolicy::ClassMethods # Overrides parts of the globally configured `Feature-Policy` header: # @@ -7160,23 +6853,23 @@ module ActionController::PermissionsPolicy::ClassMethods # # policy.gyroscope :none # end # - # source://actionpack//lib/action_controller/metal/permissions_policy.rb#33 + # pkg:gem/actionpack#lib/action_controller/metal/permissions_policy.rb:33 def permissions_policy(**options, &block); end end -# source://actionpack//lib/action_controller/railtie.rb#13 +# pkg:gem/actionpack#lib/action_controller/railtie.rb:13 class ActionController::Railtie < ::Rails::Railtie; end -# source://actionpack//lib/action_controller/railties/helpers.rb#6 +# pkg:gem/actionpack#lib/action_controller/railties/helpers.rb:6 module ActionController::Railties; end -# source://actionpack//lib/action_controller/railties/helpers.rb#7 +# pkg:gem/actionpack#lib/action_controller/railties/helpers.rb:7 module ActionController::Railties::Helpers - # source://actionpack//lib/action_controller/railties/helpers.rb#8 + # pkg:gem/actionpack#lib/action_controller/railties/helpers.rb:8 def inherited(klass); end end -# source://actionpack//lib/action_controller/metal/rate_limiting.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:6 module ActionController::RateLimiting extend ::ActiveSupport::Concern @@ -7184,11 +6877,11 @@ module ActionController::RateLimiting private - # source://actionpack//lib/action_controller/metal/rate_limiting.rb#72 + # pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:72 def rate_limiting(to:, within:, by:, with:, store:, name:, scope:); end end -# source://actionpack//lib/action_controller/metal/rate_limiting.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:9 module ActionController::RateLimiting::ClassMethods # Applies a rate limit to all actions or those specified by the normal # `before_action` filters with `only:` and `except:`. @@ -7247,11 +6940,11 @@ module ActionController::RateLimiting::ClassMethods # rate_limit to: 10, within: 5.minutes, name: "long-term" # end # - # source://actionpack//lib/action_controller/metal/rate_limiting.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:66 def rate_limit(to:, within:, by: T.unsafe(nil), with: T.unsafe(nil), store: T.unsafe(nil), name: T.unsafe(nil), scope: T.unsafe(nil), **options); end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:6 module ActionController::Redirecting extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7265,14 +6958,14 @@ module ActionController::Redirecting mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods mixes_in_class_methods ::ActionController::Redirecting::ClassMethods - # source://actionpack//lib/action_controller/metal/redirecting.rb#206 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:206 def _compute_redirect_to_location(request, options); end # Soft deprecated alias for #redirect_back_or_to where the `fallback_location` # location is supplied as a keyword argument instead of the first positional # argument. # - # source://actionpack//lib/action_controller/metal/redirecting.rb#169 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:169 def redirect_back(fallback_location:, allow_other_host: T.unsafe(nil), **args); end # Redirects the browser to the page that issued the request (the referrer) if @@ -7299,7 +6992,7 @@ module ActionController::Redirecting # All other options that can be passed to #redirect_to are accepted as options, # and the behavior is identical. # - # source://actionpack//lib/action_controller/metal/redirecting.rb#196 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:196 def redirect_back_or_to(fallback_location, allow_other_host: T.unsafe(nil), **options); end # Redirects the browser to the target specified in `options`. This parameter can @@ -7407,9 +7100,7 @@ module ActionController::Redirecting # (includes stack trace to help identify the source) # * `:raise` - Raises an UnsafeRedirectError # - # @raise [ActionControllerError] - # - # source://actionpack//lib/action_controller/metal/redirecting.rb#150 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:150 def redirect_to(options = T.unsafe(nil), response_options = T.unsafe(nil)); end # Verifies the passed `location` is an internal URL that's safe to redirect to @@ -7437,33 +7128,31 @@ module ActionController::Redirecting # `url_for(@post)`. However, #url_from is meant to take an external parameter to # verify as in `url_from(params[:redirect_url])`. # - # source://actionpack//lib/action_controller/metal/redirecting.rb#254 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:254 def url_from(location); end private - # source://actionpack//lib/action_controller/metal/redirecting.rb#260 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:260 def _allow_other_host; end - # source://actionpack//lib/action_controller/metal/redirecting.rb#276 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:276 def _enforce_open_redirect_protection(location, allow_other_host:); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#317 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:317 def _ensure_url_is_http_header_safe(url); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#266 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:266 def _extract_redirect_to_status(options, response_options); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#327 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:327 def _handle_path_relative_redirect(url); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/redirecting.rb#304 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:304 def _url_host_allowed?(url); end class << self - # source://actionpack//lib/action_controller/metal/redirecting.rb#227 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:227 def _compute_redirect_to_location(request, options); end end @@ -7484,35 +7173,31 @@ module ActionController::Redirecting end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#36 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:36 module ActionController::Redirecting::ClassMethods - # source://actionpack//lib/action_controller/metal/redirecting.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:37 def allowed_redirect_hosts=(hosts); end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#26 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:26 ActionController::Redirecting::ILLEGAL_HEADER_VALUE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_controller/metal/redirecting.rb#14 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:14 class ActionController::Redirecting::OpenRedirectError < ::ActionController::Redirecting::UnsafeRedirectError - # @return [OpenRedirectError] a new instance of OpenRedirectError - # - # source://actionpack//lib/action_controller/metal/redirecting.rb#15 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:15 def initialize(location); end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#20 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:20 class ActionController::Redirecting::PathRelativeRedirectError < ::ActionController::Redirecting::UnsafeRedirectError - # @return [PathRelativeRedirectError] a new instance of PathRelativeRedirectError - # - # source://actionpack//lib/action_controller/metal/redirecting.rb#21 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:21 def initialize(url); end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#12 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:12 class ActionController::Redirecting::UnsafeRedirectError < ::StandardError; end -# source://actionpack//lib/action_controller/metal/exceptions.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:16 class ActionController::RenderError < ::ActionController::ActionControllerError; end # # Action Controller Renderer @@ -7536,7 +7221,7 @@ class ActionController::RenderError < ::ActionController::ActionControllerError; # ApplicationController.render template: "posts/show", assigns: { post: Post.first } # PostsController.render :show, assigns: { post: Post.first } # -# source://actionpack//lib/action_controller/renderer.rb#27 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:27 class ActionController::Renderer # Initializes a new Renderer. # @@ -7567,73 +7252,66 @@ class ActionController::Renderer # `Rails.application.config.force_ssl` if `default_url_options` does not specify # a `protocol`. # - # @return [Renderer] a new instance of Renderer - # - # source://actionpack//lib/action_controller/renderer.rb#110 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:110 def initialize(controller, env, defaults); end - # Returns the value of attribute controller. - # - # source://actionpack//lib/action_controller/renderer.rb#28 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:28 def controller; end - # source://actionpack//lib/action_controller/renderer.rb#121 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:121 def defaults; end # Creates a new renderer using the same controller, but with a new Rack env. # # ApplicationController.renderer.new(method: "post") # - # source://actionpack//lib/action_controller/renderer.rb#72 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:72 def new(env = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/renderer.rb#150 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:150 def normalize_env(env, &_arg1); end # Renders a template to a string, just like # ActionController::Rendering#render_to_string. # - # source://actionpack//lib/action_controller/renderer.rb#128 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:128 def render(*args); end - # Renders a template to a string, just like - # ActionController::Rendering#render_to_string. - # - # source://actionpack//lib/action_controller/renderer.rb#137 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:137 def render_to_string(*args); end # Creates a new renderer using the same controller, but with the given defaults # merged on top of the previous defaults. # - # source://actionpack//lib/action_controller/renderer.rb#78 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:78 def with_defaults(defaults); end private - # source://actionpack//lib/action_controller/renderer.rb#152 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:152 def env_for_request; end class << self # Creates a new renderer using the given controller class. See ::new. # - # source://actionpack//lib/action_controller/renderer.rb#64 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:64 def for(controller, env = T.unsafe(nil), defaults = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/renderer.rb#35 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:35 def normalize_env(env); end end end -# source://actionpack//lib/action_controller/renderer.rb#30 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:30 ActionController::Renderer::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/renderer.rb#148 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:148 ActionController::Renderer::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/renderer.rb#140 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:140 ActionController::Renderer::RACK_KEY_TRANSLATION = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/metal/renderers.rb#23 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:23 module ActionController::Renderers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7642,19 +7320,19 @@ module ActionController::Renderers mixes_in_class_methods ::ActionController::Renderers::ClassMethods mixes_in_class_methods ::ActionController::Renderers::DeprecatedEscapeJsonResponses - # source://actionpack//lib/action_controller/metal/renderers.rb#158 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:158 def _render_to_body_with_renderer(options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:89 def _render_with_renderer_js(js, options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:89 def _render_with_renderer_json(json, options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:89 def _render_with_renderer_markdown(md, options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:89 def _render_with_renderer_xml(xml, options); end # Called by `render` in AbstractController::Rendering which sets the return @@ -7663,11 +7341,11 @@ module ActionController::Renderers # If no renderer is found, `super` returns control to # `ActionView::Rendering.render_to_body`, if present. # - # source://actionpack//lib/action_controller/metal/renderers.rb#154 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:154 def render_to_body(options); end class << self - # source://actionpack//lib/action_controller/metal/renderers.rb#104 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:104 def _render_with_renderer_method_name(key); end # Adds a new renderer to call within controller actions. A renderer is invoked @@ -7699,7 +7377,7 @@ module ActionController::Renderers # end # end # - # source://actionpack//lib/action_controller/metal/renderers.rb#88 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:88 def add(key, &block); end # This method is the opposite of add method. @@ -7708,7 +7386,7 @@ module ActionController::Renderers # # ActionController::Renderers.remove(:csv) # - # source://actionpack//lib/action_controller/metal/renderers.rb#98 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:98 def remove(key); end end @@ -7731,7 +7409,7 @@ end # Used in ActionController::Base and ActionController::API to include all # renderers by default. # -# source://actionpack//lib/action_controller/metal/renderers.rb#51 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:51 module ActionController::Renderers::All extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7757,43 +7435,9 @@ module ActionController::Renderers::All end end -# source://actionpack//lib/action_controller/metal/renderers.rb#108 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:108 module ActionController::Renderers::ClassMethods - # Adds, by name, a renderer or renderers to the `_renderers` available to call - # within controller actions. - # - # It is useful when rendering from an ActionController::Metal controller or - # otherwise to add an available renderer proc to a specific controller. - # - # Both ActionController::Base and ActionController::API include - # ActionController::Renderers::All, making all renderers available in the - # controller. See Renderers::RENDERERS and Renderers.add. - # - # Since ActionController::Metal controllers cannot render, the controller must - # include AbstractController::Rendering, ActionController::Rendering, and - # ActionController::Renderers, and have at least one renderer. - # - # Rather than including ActionController::Renderers::All and including all - # renderers, you may specify which renderers to include by passing the renderer - # name or names to `use_renderers`. For example, a controller that includes only - # the `:json` renderer (`_render_with_renderer_json`) might look like: - # - # class MetalRenderingController < ActionController::Metal - # include AbstractController::Rendering - # include ActionController::Rendering - # include ActionController::Renderers - # - # use_renderers :json - # - # def show - # render json: record - # end - # end - # - # You must specify a `use_renderer`, else the `controller.renderer` and - # `controller._renderers` will be `nil`, and the action will fail. - # - # source://actionpack//lib/action_controller/metal/renderers.rb#146 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:146 def use_renderer(*args); end # Adds, by name, a renderer or renderers to the `_renderers` available to call @@ -7830,23 +7474,23 @@ module ActionController::Renderers::ClassMethods # You must specify a `use_renderer`, else the `controller.renderer` and # `controller._renderers` will be `nil`, and the action will fail. # - # source://actionpack//lib/action_controller/metal/renderers.rb#142 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:142 def use_renderers(*args); end end -# source://actionpack//lib/action_controller/metal/renderers.rb#30 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:30 module ActionController::Renderers::DeprecatedEscapeJsonResponses - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:31 def escape_json_responses=(value); end end # A Set containing renderer names that correspond to available renderer procs. # Default values are `:json`, `:js`, `:xml`. # -# source://actionpack//lib/action_controller/metal/renderers.rb#28 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:28 ActionController::Renderers::RENDERERS = T.let(T.unsafe(nil), Set) -# source://actionpack//lib/action_controller/metal/rendering.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:6 module ActionController::Rendering extend ::ActiveSupport::Concern @@ -7982,12 +7626,10 @@ module ActionController::Rendering # -- # Check for double render errors and set the content_type after rendering. # - # @raise [::AbstractController::DoubleRenderError] - # - # source://actionpack//lib/action_controller/metal/rendering.rb#171 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:171 def render(*args); end - # source://actionpack//lib/action_controller/metal/rendering.rb#191 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:191 def render_to_body(options = T.unsafe(nil)); end # Similar to #render, but only returns the rendered template as a string, @@ -7995,64 +7637,64 @@ module ActionController::Rendering # -- # Override render_to_string because body can now be set to a Rack body. # - # source://actionpack//lib/action_controller/metal/rendering.rb#180 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:180 def render_to_string(*_arg0); end private # Normalize both text and status options. # - # source://actionpack//lib/action_controller/metal/rendering.rb#233 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:233 def _normalize_options(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#247 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:247 def _normalize_text(options); end # Process controller specific options, as status, content-type and location. # - # source://actionpack//lib/action_controller/metal/rendering.rb#256 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:256 def _process_options(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#202 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:202 def _process_variant(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#208 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:208 def _render_in_priorities(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#216 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:216 def _set_html_content_type; end - # source://actionpack//lib/action_controller/metal/rendering.rb#220 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:220 def _set_rendered_content_type(format); end - # source://actionpack//lib/action_controller/metal/rendering.rb#226 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:226 def _set_vary_header; end # Before processing, set the request formats in current controller formats. # - # source://actionpack//lib/action_controller/metal/rendering.rb#197 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:197 def process_action(*_arg0); end end -# source://actionpack//lib/action_controller/metal/rendering.rb#11 +# pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:11 module ActionController::Rendering::ClassMethods - # source://actionpack//lib/action_controller/metal/rendering.rb#23 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:23 def inherited(klass); end - # source://actionpack//lib/action_controller/metal/rendering.rb#13 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:13 def render(*_arg0, **_arg1, &_arg2); end # Returns a renderer instance (inherited from ActionController::Renderer) for # the controller. # - # source://actionpack//lib/action_controller/metal/rendering.rb#17 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:17 def renderer; end - # source://actionpack//lib/action_controller/metal/rendering.rb#19 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:19 def setup_renderer!; end end -# source://actionpack//lib/action_controller/metal/rendering.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:9 ActionController::Rendering::RENDER_FORMATS_IN_PRIORITY = T.let(T.unsafe(nil), Array) # # Action Controller Request Forgery Protection @@ -8103,7 +7745,7 @@ ActionController::Rendering::RENDER_FORMATS_IN_PRIORITY = T.let(T.unsafe(nil), A # Learn more about CSRF attacks and securing your application in the [Ruby on # Rails Security Guide](https://guides.rubyonrails.org/security.html). # -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#63 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:63 module ActionController::RequestForgeryProtection extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -8113,136 +7755,122 @@ module ActionController::RequestForgeryProtection mixes_in_class_methods GeneratedClassMethods - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#373 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:373 def initialize(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#383 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:383 def commit_csrf_token(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#378 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:378 def reset_csrf_token(request); end private # Checks if any of the authenticity tokens from the request are valid. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#476 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:476 def any_authenticity_token_valid?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#557 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:557 def compare_with_global_token(token, session = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#553 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:553 def compare_with_real_token(token, session = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#594 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:594 def csrf_token_hmac(session, identifier); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#673 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:673 def decode_csrf_token(encoded_csrf_token); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#669 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:669 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#614 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:614 def form_authenticity_param; end # Creates the authenticity token for the current request. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#488 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:488 def form_authenticity_token(form_options: T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#665 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:665 def generate_csrf_token; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#590 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:590 def global_csrf_token(session = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#408 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:408 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#446 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:446 def mark_for_same_origin_verification!; end # If the `verify_authenticity_token` before_action ran, verify that JavaScript # responses are only served to same-origin GET requests. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#452 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:452 def marked_for_same_origin_verification?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#546 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:546 def 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#494 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:494 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#457 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:457 def non_xhr_javascript_response?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#645 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:645 def normalize_action_path(action_path); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#655 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:655 def normalize_relative_action_path(rel_action_path); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#583 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:583 def 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#619 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:619 def protect_against_forgery?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#575 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:575 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#483 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:483 def request_authenticity_tokens; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#539 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:539 def unmask_token(masked_token); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#418 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:418 def unverified_request_warning_message; end # Checks the client's masked token to see if it matches the session token. # Essentially the inverse of `masked_authenticity_token`. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#509 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:509 def valid_authenticity_token?(session, encoded_masked_token); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#561 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:561 def valid_per_form_csrf_token?(token, session = T.unsafe(nil)); end # Checks if the request originated from the same origin by looking at the Origin # header. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#635 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:635 def valid_request_origin?; end # Returns true or false if a request is verified. Checks: @@ -8252,9 +7880,7 @@ module ActionController::RequestForgeryProtection # params? # * Does the `X-CSRF-Token` header match the form_authenticity_token? # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#470 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:470 def verified_request?; end # The actual before_action that is used to verify the CSRF token. Don't override @@ -8267,17 +7893,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#398 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:398 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#436 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:436 def verify_same_origin_request; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#602 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:602 def xor_byte_strings(s1, s2); end module GeneratedClassMethods @@ -8296,16 +7922,16 @@ module ActionController::RequestForgeryProtection end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#461 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:461 ActionController::RequestForgeryProtection::AUTHENTICITY_TOKEN_LENGTH = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#426 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:426 ActionController::RequestForgeryProtection::CROSS_ORIGIN_JAVASCRIPT_WARNING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#64 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:64 ActionController::RequestForgeryProtection::CSRF_TOKEN = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#113 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:113 module ActionController::RequestForgeryProtection::ClassMethods # Turn on request forgery protection. Bear in mind that GET and HEAD requests # are not checked. @@ -8400,7 +8026,7 @@ module ActionController::RequestForgeryProtection::ClassMethods # protect_from_forgery store: CustomStore.new # end # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#206 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:206 def protect_from_forgery(options = T.unsafe(nil)); end # Turn off request forgery protection. This is a wrapper for: @@ -8409,137 +8035,113 @@ module ActionController::RequestForgeryProtection::ClassMethods # # See `skip_before_action` for allowed options. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#223 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:223 def skip_forgery_protection(options = T.unsafe(nil)); end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#255 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:255 def is_storage_strategy?(object); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#228 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:228 def protection_method_class(name); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#243 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:243 def storage_strategy(name); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#340 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:340 class ActionController::RequestForgeryProtection::CookieStore - # @return [CookieStore] a new instance of CookieStore - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#341 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:341 def initialize(cookie = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#345 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:345 def fetch(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#368 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:368 def reset(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#357 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:357 def store(request, csrf_token); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#587 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:587 ActionController::RequestForgeryProtection::GLOBAL_CSRF_TOKEN_IDENTIFIER = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#623 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:623 ActionController::RequestForgeryProtection::NULL_ORIGIN_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#260 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:260 module ActionController::RequestForgeryProtection::ProtectionMethods; end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#313 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:313 class ActionController::RequestForgeryProtection::ProtectionMethods::Exception - # @return [Exception] a new instance of Exception - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#316 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:316 def initialize(controller); end - # @raise [ActionController::InvalidAuthenticityToken] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#320 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:320 def handle_unverified_request; end - # Returns the value of attribute warning_message. - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#314 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:314 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#314 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:314 def warning_message=(_arg0); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#261 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:261 class ActionController::RequestForgeryProtection::ProtectionMethods::NullSession - # @return [NullSession] a new instance of NullSession - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#262 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:262 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#268 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:268 def handle_unverified_request; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#296 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:296 class ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullCookieJar < ::ActionDispatch::Cookies::CookieJar - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#297 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:297 def write(*_arg0); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#277 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:277 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#278 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:278 def initialize(req); end # no-op # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#285 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:285 def destroy; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#291 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:291 def enabled?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#287 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:287 def exists?; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#303 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:303 class ActionController::RequestForgeryProtection::ProtectionMethods::ResetSession - # @return [ResetSession] a new instance of ResetSession - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#304 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:304 def initialize(controller); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#308 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:308 def handle_unverified_request; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#326 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:326 class ActionController::RequestForgeryProtection::SessionStore - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#327 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:327 def fetch(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#335 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:335 def reset(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:331 def store(request, csrf_token); end end @@ -8550,7 +8152,7 @@ end # controllers, wrapping actions to handle configured errors, and configuring # when detailed exceptions must be shown. # -# source://actionpack//lib/action_controller/metal/rescue.rb#12 +# pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:12 module ActionController::Rescue extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -8566,14 +8168,12 @@ module ActionController::Rescue # `request.local?` so local requests in production still show the detailed # exception pages. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/rescue.rb#30 + # pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:30 def show_detailed_exceptions?; end private - # source://actionpack//lib/action_controller/metal/rescue.rb#35 + # pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:35 def process_action(*_arg0); end module GeneratedClassMethods @@ -8589,9 +8189,9 @@ module ActionController::Rescue end end -# source://actionpack//lib/action_controller/metal/rescue.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:16 module ActionController::Rescue::ClassMethods - # source://actionpack//lib/action_controller/metal/rescue.rb#17 + # pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:17 def handler_for_rescue(exception, *_arg1, **_arg2, &_arg3); end end @@ -8606,39 +8206,31 @@ end # end # end # -# source://actionpack//lib/action_controller/metal/exceptions.rb#88 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:88 class ActionController::RespondToMismatchError < ::ActionController::ActionControllerError - # @return [RespondToMismatchError] a new instance of RespondToMismatchError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#91 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:91 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#89 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:89 ActionController::RespondToMismatchError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/exceptions.rb#19 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:19 class ActionController::RoutingError < ::ActionController::ActionControllerError - # @return [RoutingError] a new instance of RoutingError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#21 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:21 def initialize(message, failures = T.unsafe(nil)); end - # Returns the value of attribute failures. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#20 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:20 def failures; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#64 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:64 class ActionController::SessionOverflowError < ::ActionController::ActionControllerError - # @return [SessionOverflowError] a new instance of SessionOverflowError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#67 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:67 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#65 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:65 ActionController::SessionOverflowError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) # # Action Controller Streaming @@ -8805,13 +8397,13 @@ ActionController::SessionOverflowError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), S # # Rack 3+ compatible servers all support streaming. # -# source://actionpack//lib/action_controller/metal/streaming.rb#169 +# pkg:gem/actionpack#lib/action_controller/metal/streaming.rb:169 module ActionController::Streaming private # Call render_body if we are streaming instead of usual `render`. # - # source://actionpack//lib/action_controller/metal/streaming.rb#172 + # pkg:gem/actionpack#lib/action_controller/metal/streaming.rb:172 def _render_template(options); end end @@ -8884,79 +8476,75 @@ end # See ActionController::Parameters.require, and # ActionController::Parameters.permit for more information. # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1508 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb: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#1511 + # pkg:gem/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#1526 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1526 def params=(value); end end -# source://actionpack//lib/action_controller/structured_event_subscriber.rb#4 +# pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:4 class ActionController::StructuredEventSubscriber < ::ActiveSupport::StructuredEventSubscriber - # @return [Boolean] - # - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#91 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:91 def exist_fragment?(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#95 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:95 def expire_fragment(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#43 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:43 def halted_callback(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#25 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:25 def process_action(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#87 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:87 def read_fragment(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#64 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:64 def redirect_to(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#47 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:47 def rescue_from_callback(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#68 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:68 def send_data(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#60 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:60 def send_file(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:7 def start_processing(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#72 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:72 def unpermitted_parameters(event); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#83 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:83 def write_fragment(event); end private - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#110 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:110 def additions_for(payload); end - # source://actionpack//lib/action_controller/structured_event_subscriber.rb#100 + # pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:100 def fragment_cache(method_name, event); end end -# source://actionpack//lib/action_controller/structured_event_subscriber.rb#5 +# pkg:gem/actionpack#lib/action_controller/structured_event_subscriber.rb:5 ActionController::StructuredEventSubscriber::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/template_assertions.rb#6 +# pkg:gem/actionpack#lib/action_controller/template_assertions.rb:6 module ActionController::TemplateAssertions - # @raise [NoMethodError] - # - # source://actionpack//lib/action_controller/template_assertions.rb#7 + # pkg:gem/actionpack#lib/action_controller/template_assertions.rb:7 def assert_template(options = T.unsafe(nil), message = T.unsafe(nil)); end end @@ -9014,11 +8602,14 @@ end # ActionController::TestCase will also automatically provide the following # instance variables for use in the tests: # +# @controller # +# @request # You can modify this object before sending the HTTP request. For example, # you might want to set some session properties before sending a GET # request. # +# @response # last HTTP response. In the above example, `@response` becomes valid after # calling `post`. If the various assert methods are not sufficient, then you # may use this object to inspect the HTTP response in detail. @@ -9076,7 +8667,7 @@ end # # assert_redirected_to page_url(title: 'foo') # -# source://actionpack//lib/action_controller/test_case.rb#368 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:368 class ActionController::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActionDispatch::TestProcess::FixtureFile @@ -9093,51 +8684,51 @@ class ActionController::TestCase < ::ActiveSupport::TestCase extend ::ActionController::TestCase::Behavior::ClassMethods extend ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class=(_arg0); end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class?; end - # source://actionpack//lib/action_controller/test_case.rb#600 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:600 def _run_setup_callbacks(&block); end class << self - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class=(value); end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class?; end - # source://actionpack//lib/action_controller/test_case.rb#369 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:369 def executor_around_each_request; end - # source://actionpack//lib/action_controller/test_case.rb#369 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:369 def executor_around_each_request=(_arg0); end private - # source://actionpack//lib/action_controller/test_case.rb#600 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:600 def __class_attr___callbacks; end - # source://actionpack//lib/action_controller/test_case.rb#600 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:600 def __class_attr___callbacks=(new_value); end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def __class_attr__controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def __class_attr__controller_class=(new_value); end end end -# source://actionpack//lib/action_controller/test_case.rb#371 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:371 module ActionController::TestCase::Behavior include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess @@ -9156,19 +8747,19 @@ module ActionController::TestCase::Behavior mixes_in_class_methods ::ActionController::TestCase::Behavior::ClassMethods mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#592 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:592 def build_response(klass); end - # source://actionpack//lib/action_controller/test_case.rb#552 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:552 def controller_class_name; end # Simulate a DELETE request with the given parameters and set/volley the # response. See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#463 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:463 def delete(action, **args); end - # source://actionpack//lib/action_controller/test_case.rb#556 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:556 def generated_path(generated_extras); end # Simulate a GET request with the given parameters. @@ -9195,25 +8786,25 @@ module ActionController::TestCase::Behavior # Note that the request method is not verified. The different methods are # available to make the tests more expressive. # - # source://actionpack//lib/action_controller/test_case.rb#439 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:439 def get(action, **args); end # Simulate a HEAD request with the given parameters and set/volley the response. # See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#469 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:469 def head(action, **args); end # Simulate a PATCH request with the given parameters and set/volley the # response. See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#451 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:451 def patch(action, **args); end # Simulate a POST request with the given parameters and set/volley the response. # See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#445 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:445 def post(action, **args); end # Simulate an HTTP request to `action` by specifying request method, parameters @@ -9256,49 +8847,45 @@ module ActionController::TestCase::Behavior # # Note that the request method is not verified. # - # source://actionpack//lib/action_controller/test_case.rb#512 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:512 def process(action, method: T.unsafe(nil), params: T.unsafe(nil), session: T.unsafe(nil), body: T.unsafe(nil), flash: T.unsafe(nil), format: T.unsafe(nil), xhr: T.unsafe(nil), as: T.unsafe(nil)); end # Simulate a PUT request with the given parameters and set/volley the response. # See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#457 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:457 def put(action, **args); end - # source://actionpack//lib/action_controller/test_case.rb#560 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:560 def query_parameter_names(generated_extras); end - # Returns the value of attribute request. - # - # source://actionpack//lib/action_controller/test_case.rb#377 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:377 def request; end - # Returns the value of attribute response. - # - # source://actionpack//lib/action_controller/test_case.rb#377 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:377 def response; end - # source://actionpack//lib/action_controller/test_case.rb#564 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:564 def setup_controller_request_and_response; end private - # source://actionpack//lib/action_controller/test_case.rb#685 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:685 def check_required_ivars; end - # source://actionpack//lib/action_controller/test_case.rb#681 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:681 def document_root_element; end - # source://actionpack//lib/action_controller/test_case.rb#635 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:635 def process_controller_response(action, cookies, xhr); end - # source://actionpack//lib/action_controller/test_case.rb#671 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:671 def scrub_env!(env); end - # source://actionpack//lib/action_controller/test_case.rb#605 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:605 def setup_request(controller_class_name, action, parameters, session, flash, xhr); end - # source://actionpack//lib/action_controller/test_case.rb#627 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:627 def wrap_execution(&block); end module GeneratedClassMethods @@ -9314,15 +8901,15 @@ module ActionController::TestCase::Behavior end end -# source://actionpack//lib/action_controller/test_case.rb#379 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:379 module ActionController::TestCase::Behavior::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#401 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:401 def controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#397 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:397 def controller_class=(new_class); end - # source://actionpack//lib/action_controller/test_case.rb#409 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:409 def determine_default_controller_class(name); end # Sets the controller class name. Useful if the name can't be inferred from test @@ -9332,125 +8919,116 @@ module ActionController::TestCase::Behavior::ClassMethods # tests :widget # tests 'widget' # - # source://actionpack//lib/action_controller/test_case.rb#386 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:386 def tests(controller_class); end end # ActionController::TestCase will be deprecated and moved to a gem in the # future. Please use ActionDispatch::IntegrationTest going forward. # -# source://actionpack//lib/action_controller/test_case.rb#46 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:46 class ActionController::TestRequest < ::ActionDispatch::TestRequest - # @return [TestRequest] a new instance of TestRequest - # - # source://actionpack//lib/action_controller/test_case.rb#69 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:69 def initialize(env, session, controller_class); end - # source://actionpack//lib/action_controller/test_case.rb#88 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:88 def assign_parameters(routes, controller_path, action, parameters, generated_path, query_string_keys); end - # source://actionpack//lib/action_controller/test_case.rb#84 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:84 def content_type=(type); end - # Returns the value of attribute controller_class. - # - # source://actionpack//lib/action_controller/test_case.rb#54 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:54 def controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#80 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:80 def query_string=(string); end private - # source://actionpack//lib/action_controller/test_case.rb#179 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:179 def params_parsers; end class << self # Create a new test request with default `env` values. # - # source://actionpack//lib/action_controller/test_case.rb#57 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:57 def create(controller_class); end - # source://actionpack//lib/action_controller/test_case.rb#50 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:50 def new_session; end private - # source://actionpack//lib/action_controller/test_case.rb#64 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:64 def default_env; end end end -# source://actionpack//lib/action_controller/test_case.rb#47 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:47 ActionController::TestRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/test_case.rb#151 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:151 ActionController::TestRequest::ENCODER = T.let(T.unsafe(nil), T.untyped) # Methods #destroy and #load! are overridden to avoid calling methods on the +# @store object, which does not exist for the TestSession class. # -# source://actionpack//lib/action_controller/test_case.rb#197 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:197 class ActionController::TestSession < ::Rack::Session::Abstract::PersistedSecure::SecureSessionHash - # @return [TestSession] a new instance of TestSession - # - # source://actionpack//lib/action_controller/test_case.rb#200 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:200 def initialize(session = T.unsafe(nil), id = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/test_case.rb#220 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:220 def destroy; end - # source://actionpack//lib/action_controller/test_case.rb#224 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:224 def dig(*keys); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/test_case.rb#233 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:233 def enabled?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/test_case.rb#208 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:208 def exists?; end - # source://actionpack//lib/action_controller/test_case.rb#229 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:229 def fetch(key, *args, &block); end - # source://actionpack//lib/action_controller/test_case.rb#237 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:237 def id_was; end - # source://actionpack//lib/action_controller/test_case.rb#212 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:212 def keys; end - # source://actionpack//lib/action_controller/test_case.rb#216 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:216 def values; end private - # source://actionpack//lib/action_controller/test_case.rb#242 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:242 def load!; end end -# source://actionpack//lib/action_controller/test_case.rb#198 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:198 ActionController::TestSession::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/metal/testing.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/testing.rb:6 module ActionController::Testing; end # Behavior specific to functional tests # -# source://actionpack//lib/action_controller/metal/testing.rb#8 +# pkg:gem/actionpack#lib/action_controller/metal/testing.rb:8 module ActionController::Testing::Functional - # source://actionpack//lib/action_controller/metal/testing.rb#9 + # pkg:gem/actionpack#lib/action_controller/metal/testing.rb:9 def clear_instance_variables_between_requests; end - # source://actionpack//lib/action_controller/metal/testing.rb#18 + # pkg:gem/actionpack#lib/action_controller/metal/testing.rb:18 def recycle!; end end # Raised when a Rate Limit is exceeded by too many requests within a period of # time. # -# source://actionpack//lib/action_controller/metal/exceptions.rb#109 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:109 class ActionController::TooManyRequests < ::ActionController::ActionControllerError; end # Raised when a Parameters instance is not marked as permitted and an operation @@ -9460,18 +9038,16 @@ class ActionController::TooManyRequests < ::ActionController::ActionControllerEr # params.to_h # # => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#74 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:74 class ActionController::UnfilteredParameters < ::ArgumentError - # @return [UnfilteredParameters] a new instance of UnfilteredParameters - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#75 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:75 def initialize; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#75 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:75 class ActionController::UnknownFormat < ::ActionController::ActionControllerError; end -# source://actionpack//lib/action_controller/metal/exceptions.rb#72 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:72 class ActionController::UnknownHttpMethod < ::ActionController::ActionControllerError; end # Raised when a supplied parameter is not expected and @@ -9482,14 +9058,12 @@ class ActionController::UnknownHttpMethod < ::ActionController::ActionController # params.permit(:c) # # => ActionController::UnpermittedParameters: found unpermitted parameters: :a, :b # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#59 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:59 class ActionController::UnpermittedParameters < ::IndexError - # @return [UnpermittedParameters] a new instance of UnpermittedParameters - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#62 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:62 def initialize(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#60 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:60 def params; end end @@ -9515,7 +9089,7 @@ end # end # end # -# source://actionpack//lib/action_controller/metal/url_for.rb#27 +# pkg:gem/actionpack#lib/action_controller/metal/url_for.rb:27 module ActionController::UrlFor extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -9525,10 +9099,10 @@ module ActionController::UrlFor mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/action_controller/metal/url_for.rb#32 + # pkg:gem/actionpack#lib/action_controller/metal/url_for.rb:32 def initialize(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_controller/metal/url_for.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/url_for.rb:37 def url_options; end module GeneratedClassMethods @@ -9544,31 +9118,23 @@ module ActionController::UrlFor end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#27 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:27 class ActionController::UrlGenerationError < ::ActionController::ActionControllerError include ::DidYouMean::Correctable - # @return [UrlGenerationError] a new instance of UrlGenerationError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#30 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:30 def initialize(message, routes = T.unsafe(nil), route_name = T.unsafe(nil), method_name = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/exceptions.rb#41 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:41 def corrections; end - # Returns the value of attribute method_name. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:28 def method_name; end - # Returns the value of attribute route_name. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:28 def route_name; end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:28 def routes; end end @@ -9580,69 +9146,97 @@ end # defined by the user, and does advanced processing related to HTTP such as # MIME-type negotiation, decoding parameters in POST, PATCH, or PUT bodies, # handling HTTP caching logic, cookies and sessions. +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown +# :markup: markdown # -# source://actionpack//lib/action_dispatch/deprecator.rb#5 +# pkg:gem/actionpack#lib/action_dispatch/deprecator.rb:5 module ActionDispatch extend ::ActiveSupport::Autoload - # source://actionpack//lib/action_dispatch.rb#149 + # pkg:gem/actionpack#lib/action_dispatch.rb:149 def eager_load!; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app=(val); end class << self - # source://actionpack//lib/action_dispatch/deprecator.rb#6 + # pkg:gem/actionpack#lib/action_dispatch/deprecator.rb:6 def deprecator; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app=(val); end - # source://actionpack//lib/action_dispatch.rb#146 + # pkg:gem/actionpack#lib/action_dispatch.rb:146 def verbose_redirect_logs; end - # source://actionpack//lib/action_dispatch.rb#146 + # pkg:gem/actionpack#lib/action_dispatch.rb:146 def verbose_redirect_logs=(_arg0); end end end -# source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:9 class ActionDispatch::ActionableExceptions - # @return [ActionableExceptions] a new instance of ActionableExceptions - # - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:12 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:16 def call(env); end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint; end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint=(val); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:26 def actionable_request?(request); end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:30 def redirect_to(location); end class << self - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint; end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint=(val); end end end @@ -9651,44 +9245,37 @@ end # not inherit from Response because it doesn't need it. That means it does not # have headers or a body. # -# source://actionpack//lib/action_dispatch/testing/assertion_response.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:9 class ActionDispatch::AssertionResponse # Accepts a specific response status code as an Integer (404) or String ('404') # or a response status range as a Symbol pseudo-code (:success, indicating any # 200-299 status code). # - # @raise [ArgumentError] - # @return [AssertionResponse] a new instance of AssertionResponse - # - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:22 def initialize(code_or_name); end - # Returns the value of attribute code. - # - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:10 def code; end - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:35 def code_and_name; end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:10 def name; end private - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:40 def code_from_name(name); end - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:44 def name_from_code(code); end end -# source://actionpack//lib/action_dispatch/testing/assertion_response.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:12 ActionDispatch::AssertionResponse::GENERIC_RESPONSE_CODES = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/testing/assertions/response.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:6 module ActionDispatch::Assertions include ::ActionDispatch::Assertions::ResponseAssertions include ::Rails::Dom::Testing::Assertions::DomAssertions @@ -9699,26 +9286,26 @@ module ActionDispatch::Assertions mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions.rb:17 def html_document; end end # A small suite of assertions that test responses from Rails applications. # -# source://actionpack//lib/action_dispatch/testing/assertions/response.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:8 module ActionDispatch::Assertions::ResponseAssertions # Asserts that the given +text+ is present somewhere in the response body. # # assert_in_body fixture(:name).description # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:77 def assert_in_body(text); end # Asserts that the given +text+ is not present anywhere in the response body. # # assert_not_in_body fixture(:name).description # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:84 def assert_not_in_body(text); end # Asserts that the response is a redirect to a URL matching the given options. @@ -9739,7 +9326,7 @@ module ActionDispatch::Assertions::ResponseAssertions # # Permanently). # assert_redirected_to "/some/path", status: :moved_permanently # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:60 def assert_redirected_to(url_options = T.unsafe(nil), options = T.unsafe(nil), message = T.unsafe(nil)); end # Asserts that the response is one of the following types: @@ -9760,42 +9347,42 @@ module ActionDispatch::Assertions::ResponseAssertions # # Asserts that the response code was status code 401 (unauthorized) # assert_response 401 # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:33 def assert_response(type, message = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:129 def code_with_name(code_or_name); end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:118 def exception_if_present; end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:103 def generate_response_message(expected, actual = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:123 def location_if_redirected; end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:94 def normalize_argument_to_redirection(fragment); end # Proxy to to_param if the object will respond to it. # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#90 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:90 def parameterize(value); end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:113 def response_body_if_short; end end -# source://actionpack//lib/action_dispatch/testing/assertions/response.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:9 ActionDispatch::Assertions::ResponseAssertions::RESPONSE_PREDICATES = T.let(T.unsafe(nil), Hash) # Suite of assertions to test routes generated by Rails and the handling of # requests made to them. # -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:15 module ActionDispatch::Assertions::RoutingAssertions extend ::ActiveSupport::Concern @@ -9821,7 +9408,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#216 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:216 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 @@ -9861,7 +9448,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#176 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:176 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 @@ -9887,15 +9474,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#260 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:260 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#273 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:273 def method_missing(selector, *_arg1, **_arg2, &_arg3); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:115 def setup; end # A helper to make it easier to test different route configurations. This method @@ -9911,29 +9498,27 @@ module ActionDispatch::Assertions::RoutingAssertions # assert_equal "/users", users_path # end # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:133 def with_routing(config = T.unsafe(nil), &block); end private - # @yield [@routes] - # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#282 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:282 def create_routes(config = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#348 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:348 def fail_on(exception_class, message); end # Recognizes the route for a given path. # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#314 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:314 def recognized_request_for(path, extras = T.unsafe(nil), msg); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#306 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:306 def reset_routes(old_routes, old_controller); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#88 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:88 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. @@ -9947,36 +9532,34 @@ module ActionDispatch::Assertions::RoutingAssertions::ClassMethods # end # end # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:101 def with_routing(&block); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:18 module ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:40 def with_routing(&block); end private - # @yield [routes] - # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:58 def create_routes; end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:50 def initialize_lazy_routes(routes); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:80 def reset_routes(old_routes, old_routes_call_method, old_integration_session); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:21 module ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:22 def with_routing(&block); end end @@ -9988,14 +9571,12 @@ end # middleware makes the server assume that the proxy already terminated SSL, and # that the request really is HTTPS. # -# source://actionpack//lib/action_dispatch/middleware/assume_ssl.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/middleware/assume_ssl.rb:13 class ActionDispatch::AssumeSSL - # @return [AssumeSSL] a new instance of AssumeSSL - # - # source://actionpack//lib/action_dispatch/middleware/assume_ssl.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/middleware/assume_ssl.rb:14 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/assume_ssl.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/middleware/assume_ssl.rb:18 def call(env); end end @@ -10003,95 +9584,93 @@ end # # Provides callbacks to be executed before and after dispatching the request. # -# source://actionpack//lib/action_dispatch/middleware/callbacks.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:9 class ActionDispatch::Callbacks include ::ActiveSupport::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # @return [Callbacks] a new instance of Callbacks - # - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:24 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __callbacks; end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _call_callbacks; end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _run_call_callbacks; end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _run_call_callbacks!(&block); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:28 def call(env); end class << self - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __callbacks; end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __callbacks=(value); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _call_callbacks; end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _call_callbacks=(value); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:19 def after(*args, &block); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:15 def before(*args, &block); end private - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __class_attr___callbacks; end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __class_attr___callbacks=(new_value); end end end -# source://actionpack//lib/action_dispatch/constants.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:8 module ActionDispatch::Constants; end -# source://actionpack//lib/action_dispatch/constants.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:23 ActionDispatch::Constants::CONTENT_ENCODING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:24 ActionDispatch::Constants::CONTENT_SECURITY_POLICY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:25 ActionDispatch::Constants::CONTENT_SECURITY_POLICY_REPORT_ONLY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#27 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:27 ActionDispatch::Constants::FEATURE_POLICY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:26 ActionDispatch::Constants::LOCATION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#30 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:30 ActionDispatch::Constants::SERVER_TIMING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#31 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:31 ActionDispatch::Constants::STRICT_TRANSPORT_SECURITY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#37 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:37 ActionDispatch::Constants::UNPROCESSABLE_CONTENT = T.let(T.unsafe(nil), Symbol) -# source://actionpack//lib/action_dispatch/constants.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:22 ActionDispatch::Constants::VARY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:29 ActionDispatch::Constants::X_CASCADE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:28 ActionDispatch::Constants::X_REQUEST_ID = T.let(T.unsafe(nil), String) # # Action Dispatch Content Security Policy @@ -10114,16 +9693,12 @@ ActionDispatch::Constants::X_REQUEST_ID = T.let(T.unsafe(nil), String) # policy.report_uri "/csp-violation-report-endpoint" # end # -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:28 class ActionDispatch::ContentSecurityPolicy - # @return [ContentSecurityPolicy] a new instance of ContentSecurityPolicy - # @yield [_self] - # @yieldparam _self [ActionDispatch::ContentSecurityPolicy] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:182 def initialize; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def base_uri(*sources); end # Specify whether to prevent the user agent from loading any assets over HTTP @@ -10135,48 +9710,46 @@ class ActionDispatch::ContentSecurityPolicy # # policy.block_all_mixed_content false # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#210 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:210 def block_all_mixed_content(enabled = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#299 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:299 def build(context = T.unsafe(nil), nonce = T.unsafe(nil), nonce_directives = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def child_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def connect_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def default_src(*sources); end - # Returns the value of attribute directives. - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:180 def directives; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def font_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def form_action(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def frame_ancestors(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def frame_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def img_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def manifest_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def media_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def object_src(*sources); end # Restricts the set of plugins that can be embedded: @@ -10187,10 +9760,10 @@ class ActionDispatch::ContentSecurityPolicy # # policy.plugin_types # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#226 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:226 def plugin_types(*types); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def prefetch_src(*sources); end # Enable the [report-uri](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri) @@ -10199,7 +9772,7 @@ class ActionDispatch::ContentSecurityPolicy # # policy.report_uri "/csp-violation-report-endpoint" # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#240 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:240 def report_uri(uri); end # Specify asset types for which [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) is required: @@ -10210,10 +9783,10 @@ class ActionDispatch::ContentSecurityPolicy # # policy.require_sri_for # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#252 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:252 def require_sri_for(*types); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def require_trusted_types_for(*sources); end # Specify whether a [sandbox](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox) @@ -10229,28 +9802,28 @@ class ActionDispatch::ContentSecurityPolicy # # policy.sandbox false # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:273 def sandbox(*values); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def script_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def script_src_attr(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def script_src_elem(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def style_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def style_src_attr(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def style_src_elem(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def trusted_types(*sources); end # Specify whether user agents should treat any assets over HTTP as HTTPS: @@ -10261,130 +9834,122 @@ class ActionDispatch::ContentSecurityPolicy # # policy.upgrade_insecure_requests false # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#291 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:291 def upgrade_insecure_requests(enabled = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def worker_src(*sources); end private - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:324 def apply_mapping(source); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#305 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:305 def apply_mappings(sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#358 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:358 def build_directive(directive, sources, context); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:330 def build_directives(context, nonce, nonce_directives); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#386 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:386 def hash_source?(source); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#187 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:187 def initialize_copy(other); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:382 def nonce_directive?(directive, nonce_directives); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#364 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:364 def resolve_source(source, context); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#346 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:346 def validate(directive, sources); end end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#176 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:176 ActionDispatch::ContentSecurityPolicy::DEFAULT_NONCE_DIRECTIVES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#149 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:149 ActionDispatch::ContentSecurityPolicy::DIRECTIVES = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#174 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:174 ActionDispatch::ContentSecurityPolicy::HASH_SOURCE_ALGORITHM_PREFIXES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:29 class ActionDispatch::ContentSecurityPolicy::InvalidDirectiveError < ::StandardError; end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#128 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:128 ActionDispatch::ContentSecurityPolicy::MAPPINGS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#32 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:32 class ActionDispatch::ContentSecurityPolicy::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:33 def initialize(app); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:37 def call(env); end private - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:59 def header_name(request); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:67 def policy_present?(headers); end end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#73 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:73 module ActionDispatch::ContentSecurityPolicy::Request - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:80 def content_security_policy; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:84 def content_security_policy=(policy); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:112 def content_security_policy_nonce; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:104 def content_security_policy_nonce_directives; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:108 def content_security_policy_nonce_directives=(generator); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#96 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:96 def content_security_policy_nonce_generator; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:100 def content_security_policy_nonce_generator=(generator); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:88 def content_security_policy_report_only; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:92 def content_security_policy_report_only=(value); end private - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:123 def generate_content_security_policy_nonce; end end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#77 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:77 ActionDispatch::ContentSecurityPolicy::Request::NONCE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#78 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:78 ActionDispatch::ContentSecurityPolicy::Request::NONCE_DIRECTIVES = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#76 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:76 ActionDispatch::ContentSecurityPolicy::Request::NONCE_GENERATOR = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#74 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:74 ActionDispatch::ContentSecurityPolicy::Request::POLICY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#75 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:75 ActionDispatch::ContentSecurityPolicy::Request::POLICY_REPORT_ONLY = T.let(T.unsafe(nil), String) # Read and write data to cookies through ActionController::Cookies#cookies. @@ -10485,70 +10050,66 @@ ActionDispatch::ContentSecurityPolicy::Request::POLICY_REPORT_ONLY = T.let(T.uns # Possible values are `nil`, `:none`, `:lax`, and `:strict`. Defaults to # `:lax`. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#195 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:195 class ActionDispatch::Cookies - # @return [Cookies] a new instance of Cookies - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#702 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:702 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#706 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:706 def call(env); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#201 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:201 ActionDispatch::Cookies::AUTHENTICATED_ENCRYPTED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#506 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:506 class ActionDispatch::Cookies::AbstractCookieJar include ::ActionDispatch::Cookies::ChainedCookieJars - # @return [AbstractCookieJar] a new instance of AbstractCookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#509 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:509 def initialize(parent_jar); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#513 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:513 def [](name); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#525 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:525 def []=(name, options); end protected - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#537 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:537 def request; end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#555 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:555 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#548 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:548 def cookie_metadata(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#540 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:540 def expiry_options(options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#554 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:554 def parse(name, data, purpose: T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#207 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:207 ActionDispatch::Cookies::COOKIES_DIGEST = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#208 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:208 ActionDispatch::Cookies::COOKIES_ROTATIONS = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#209 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:209 ActionDispatch::Cookies::COOKIES_SAME_SITE_PROTECTION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#206 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:206 ActionDispatch::Cookies::COOKIES_SERIALIZER = T.let(T.unsafe(nil), String) # Include in a cookie jar to allow chaining, e.g. `cookies.permanent.signed`. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#219 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:219 module ActionDispatch::Cookies::ChainedCookieJars # Returns a jar that'll automatically encrypt cookie values before sending them # to the client and will decrypt them for read. If the cookie was tampered with @@ -10568,7 +10129,7 @@ module ActionDispatch::Cookies::ChainedCookieJars # # cookies.encrypted[:discount] # => 45 # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#274 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:274 def encrypted; end # Returns a jar that'll automatically set the assigned cookies to have an @@ -10586,7 +10147,7 @@ module ActionDispatch::Cookies::ChainedCookieJars # cookies.permanent.signed[:remember_me] = current_user.id # # => Set-Cookie: remember_me=BAhU--848956038e692d7046deab32b7131856ab20e14e; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:234 def permanent; end # Returns a jar that'll automatically generate a signed representation of cookie @@ -10605,73 +10166,65 @@ module ActionDispatch::Cookies::ChainedCookieJars # # cookies.signed[:discount] # => 45 # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#253 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:253 def signed; end # Returns the `signed` or `encrypted` jar, preferring `encrypted` if # `secret_key_base` is set. Used by ActionDispatch::Session::CookieStore to # avoid the need to introduce new cookie stores. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#281 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:281 def signed_or_encrypted; end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#304 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:304 def encrypted_cookie_cipher; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#298 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:298 def prepare_upgrade_legacy_hmac_aes_cbc_cookies?; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#308 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:308 def signed_cookie_digest; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#291 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:291 def upgrade_legacy_hmac_aes_cbc_cookies?; end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#313 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:313 class ActionDispatch::Cookies::CookieJar include ::ActionDispatch::Cookies::ChainedCookieJars include ::Enumerable - # @return [CookieJar] a new instance of CookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:324 def initialize(request); end # Returns the value of the cookie by `name`, or `nil` if no such cookie exists. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#345 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:345 def [](name); end # Sets the cookie named `name`. The second argument may be the cookie's value or # a hash of options as documented above. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#379 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:379 def []=(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:441 def always_write_cookie; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:441 def always_write_cookie=(val); end # Removes all cookies on the client machine by calling `delete` for each cookie. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#425 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:425 def clear(options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#334 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:334 def commit!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#332 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:332 def committed?; end # Removes the cookie on the client machine by setting the value to an empty @@ -10680,193 +10233,177 @@ class ActionDispatch::Cookies::CookieJar # # Returns the value of the cookie, or `nil` if the cookie does not exist. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#404 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:404 def delete(name, options = T.unsafe(nil)); end # Whether the given cookie is to be deleted by this CookieJar. Like `[]=`, you # can pass in an options hash to test if a deletion applies to a specific # `:path`, `:domain` etc. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#418 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:418 def deleted?(name, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:340 def each(&block); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#349 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:349 def fetch(name, *args, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:356 def has_key?(name); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:353 def key?(name); end - # Returns the value of attribute request. - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#322 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:322 def request; end # Returns the cookies as Hash. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#359 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:359 def to_hash(*_arg0); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#373 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:373 def to_header; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#361 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:361 def update(other_hash); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#366 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:366 def update_cookies_from_jar; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#429 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:429 def write(response); end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#444 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:444 def escape(string); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#452 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:452 def handle_options(options); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#448 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:448 def write_cookie?(cookie); end class << self - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:441 def always_write_cookie; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:441 def always_write_cookie=(val); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#316 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:316 def build(req, cookies); end end end # Raised when storing more than 4K of session data. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#216 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:216 class ActionDispatch::Cookies::CookieOverflow < ::StandardError; end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#203 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:203 ActionDispatch::Cookies::ENCRYPTED_COOKIE_CIPHER = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#199 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:199 ActionDispatch::Cookies::ENCRYPTED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#200 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:200 ActionDispatch::Cookies::ENCRYPTED_SIGNED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#650 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:650 class ActionDispatch::Cookies::EncryptedKeyRotatingCookieJar < ::ActionDispatch::Cookies::AbstractCookieJar include ::ActionDispatch::Cookies::SerializedCookieJars - # @return [EncryptedKeyRotatingCookieJar] a new instance of EncryptedKeyRotatingCookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#653 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:653 def initialize(parent_jar); end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#695 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:695 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#687 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:687 def parse(name, encrypted_message, purpose: T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#197 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:197 ActionDispatch::Cookies::GENERATOR_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#196 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:196 ActionDispatch::Cookies::HTTP_HEADER = T.let(T.unsafe(nil), String) # Cookies can typically store 4096 bytes. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#213 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:213 ActionDispatch::Cookies::MAX_COOKIE_SIZE = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#558 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:558 class ActionDispatch::Cookies::PermanentCookieJar < ::ActionDispatch::Cookies::AbstractCookieJar private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#560 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:560 def commit(name, options); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#205 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:205 ActionDispatch::Cookies::SECRET_KEY_BASE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#204 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:204 ActionDispatch::Cookies::SIGNED_COOKIE_DIGEST = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#198 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:198 ActionDispatch::Cookies::SIGNED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#565 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:565 module ActionDispatch::Cookies::SerializedCookieJars protected - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#569 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:569 def digest; end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#612 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:612 def check_for_overflow!(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#608 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:608 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#594 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:594 def parse(name, dumped, force_reserialize: T.unsafe(nil), **_arg3); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#588 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:588 def reserialize?(dumped); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#574 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:574 def serializer; end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#566 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:566 ActionDispatch::Cookies::SerializedCookieJars::SERIALIZER = ActiveSupport::MessageEncryptor::NullSerializer -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#621 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:621 class ActionDispatch::Cookies::SignedKeyRotatingCookieJar < ::ActionDispatch::Cookies::AbstractCookieJar include ::ActionDispatch::Cookies::SerializedCookieJars - # @return [SignedKeyRotatingCookieJar] a new instance of SignedKeyRotatingCookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#624 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:624 def initialize(parent_jar); end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#643 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:643 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#637 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:637 def parse(name, signed_message, purpose: T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#202 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:202 ActionDispatch::Cookies::USE_AUTHENTICATED_COOKIE_ENCRYPTION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#210 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:210 ActionDispatch::Cookies::USE_COOKIES_WITH_METADATA = T.let(T.unsafe(nil), String) # # Action Dispatch DebugExceptions @@ -10874,69 +10411,63 @@ ActionDispatch::Cookies::USE_COOKIES_WITH_METADATA = T.let(T.unsafe(nil), String # This middleware is responsible for logging exceptions and showing a debugging # page in case the request is local. # -# source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:15 class ActionDispatch::DebugExceptions - # @return [DebugExceptions] a new instance of DebugExceptions - # - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:23 def initialize(app, routes_app = T.unsafe(nil), response_format = T.unsafe(nil), interceptors = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:30 def call(env); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:206 def api_request?(content_type); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:148 def compose_exception_message(wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:118 def create_template(request, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:50 def invoke_interceptors(request, exception, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:180 def log_array(logger, lines, request); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:138 def log_error(request, wrapper); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#210 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:210 def log_rescued_responses?(request); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:192 def logger(request); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:134 def render(status, body, format); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:58 def render_exception(request, exception, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:94 def render_for_api_request(content_type, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:80 def render_for_browser_request(request, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:200 def routes_inspector(exception); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#196 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:196 def stderr_logger; end class << self - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:16 def interceptors; end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:18 def register_interceptor(object = T.unsafe(nil), &block); end end end @@ -10965,296 +10496,258 @@ end # This middleware exposes operational details of the server, with no access # control. It should only be enabled when in use, and removed thereafter. # -# source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:29 class ActionDispatch::DebugLocks - # @return [DebugLocks] a new instance of DebugLocks - # - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:30 def initialize(app, path = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:35 def call(env); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:108 def blocked_by?(victim, blocker, all_threads); end - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:49 def render_details(req); end end -# source://actionpack//lib/action_dispatch/middleware/debug_view.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:11 class ActionDispatch::DebugView < ::ActionView::Base - # @return [DebugView] a new instance of DebugView - # - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:14 def initialize(assigns); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:20 def compiled_method_container; end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:44 def debug_hash(object); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:36 def debug_headers(headers); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:24 def debug_params(params); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:58 def editor_url(location, line: T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:73 def params_valid?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:69 def protect_against_forgery?; end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:48 def render(*_arg0); end end -# source://actionpack//lib/action_dispatch/middleware/debug_view.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:12 ActionDispatch::DebugView::RESCUES_TEMPLATE_PATHS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:11 class ActionDispatch::ExceptionWrapper - # @return [ExceptionWrapper] a new instance of ExceptionWrapper - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:51 def initialize(backtrace_cleaner, exception); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:102 def actions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:114 def annotated_source_code; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#136 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:136 def application_trace; end - # Returns the value of attribute backtrace_cleaner. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:49 def backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#90 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:90 def corrections; end - # Returns the value of attribute exception. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:49 def exception; end - # Returns the value of attribute exception_class_name. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:49 def exception_class_name; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:234 def exception_id; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#230 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:230 def exception_inspect; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#222 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:222 def exception_name; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:130 def exception_trace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:78 def failures; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:94 def file_name; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:140 def framework_trace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:144 def full_trace; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:74 def has_cause?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:82 def has_corrections?; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:98 def line_number; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#226 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:226 def message; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:86 def original_message; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:200 def rescue_response?; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:122 def rescue_template; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:31 def rescue_templates; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:31 def rescue_templates=(val); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:62 def routing_error?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:185 def show?(request); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:44 def silent_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:44 def silent_exceptions=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:204 def source_extracts; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#218 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:218 def source_to_show_id; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#126 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:126 def status_code; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:70 def sub_template_message; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:66 def template_error?; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#210 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:210 def trace_to_show; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:148 def traces; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:106 def unwrapped_exception; end - # Returns the value of attribute wrapped_causes. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:49 def wrapped_causes; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:40 def wrapper_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:40 def wrapper_exceptions=(val); end private - # Returns the value of attribute backtrace. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:258 def backtrace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#260 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:260 def build_backtrace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#283 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:283 def causes_for(exception); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#293 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:293 def clean_backtrace(*args); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#346 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:346 def extract_file_and_line_number(trace); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#301 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:301 def extract_source(trace); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:330 def extract_source_fragment_lines(source_lines, line); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#336 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:336 def source_fragment(path, line); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#289 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:289 def wrapped_causes_for(exception, backtrace_cleaner); end class << self - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:31 def rescue_templates; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:31 def rescue_templates=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:44 def silent_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:44 def silent_exceptions=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#181 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:181 def status_code_for_exception(class_name); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:40 def wrapper_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:40 def wrapper_exceptions=(val); end end end -# source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#239 +# pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:239 class ActionDispatch::ExceptionWrapper::SourceMapLocation - # @return [SourceMapLocation] a new instance of SourceMapLocation - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#240 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:240 def initialize(location, template); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:245 def spot(exc); end end -# source://actionpack//lib/action_dispatch/middleware/executor.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/middleware/executor.rb:8 class ActionDispatch::Executor - # @return [Executor] a new instance of Executor - # - # source://actionpack//lib/action_dispatch/middleware/executor.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/middleware/executor.rb:9 def initialize(app, executor); end - # source://actionpack//lib/action_dispatch/middleware/executor.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/middleware/executor.rb:13 def call(env); end end @@ -11274,40 +10767,32 @@ end # "index"` to change the default `path`/index.html, and optional additional # response headers. # -# source://actionpack//lib/action_dispatch/middleware/static.rb#47 +# pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:47 class ActionDispatch::FileHandler - # @return [FileHandler] a new instance of FileHandler - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#55 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:55 def initialize(root, index: T.unsafe(nil), headers: T.unsafe(nil), precompressed: T.unsafe(nil), compressible_content_types: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:69 def attempt(env); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:65 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/static.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:185 def clean_path(path_info); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#149 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:149 def compressible?(content_type); end - # @yield [path, content_type || "text/plain"] - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:162 def each_candidate_filepath(path_info); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#153 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:153 def each_precompressed_filepath(filepath); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:144 def file_readable?(path); end # Match a URI path to a static file to be served. @@ -11321,22 +10806,22 @@ class ActionDispatch::FileHandler # If a matching file is found, the path and necessary response headers # (Content-Type, Content-Encoding) are returned. # - # source://actionpack//lib/action_dispatch/middleware/static.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:104 def find_file(path_info, accept_encoding:); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:80 def serve(request, filepath, content_headers); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:112 def try_files(filepath, content_type, accept_encoding:); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:122 def try_precompressed_files(filepath, headers, accept_encoding:); end end # `Accept-Encoding` value -> file extension # -# source://actionpack//lib/action_dispatch/middleware/static.rb#49 +# pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:49 ActionDispatch::FileHandler::PRECOMPRESSED = T.let(T.unsafe(nil), Hash) # # Action Dispatch Flash @@ -11382,46 +10867,44 @@ ActionDispatch::FileHandler::PRECOMPRESSED = T.let(T.unsafe(nil), Hash) # # See docs on the FlashHash class for more details about the flash. # -# source://actionpack//lib/action_dispatch/middleware/flash.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:50 class ActionDispatch::Flash class << self - # source://actionpack//lib/action_dispatch/middleware/flash.rb#312 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:312 def new(app); end end end -# source://actionpack//lib/action_dispatch/middleware/flash.rb#119 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:119 class ActionDispatch::Flash::FlashHash include ::Enumerable - # @return [FlashHash] a new instance of FlashHash - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#149 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:149 def initialize(flashes = T.unsafe(nil), discard = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:169 def [](k); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:163 def []=(k, v); end # Convenience accessor for `flash[:alert]`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#280 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:280 def alert; end # Convenience accessor for `flash[:alert]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#285 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:285 def alert=(message); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:204 def clear; end # Immediately deletes the single flash entry. Use this method when you want # remove the message within the current action. See also #discard. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:189 def delete(key); end # Marks the entire flash or a single flash entry to be discarded by the end of @@ -11433,15 +10916,13 @@ class ActionDispatch::Flash::FlashHash # Use this method when you want to display the message in the current action but # not in the next one. See also #delete. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#264 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:264 def discard(k = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#209 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:209 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:200 def empty?; end # Keeps either the entire current flash or a specific flash entry available for @@ -11450,28 +10931,26 @@ class ActionDispatch::Flash::FlashHash # flash.keep # keeps the entire flash # flash.keep(:notice) # keeps only the "notice" entry, the rest of the flash is discarded # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#250 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:250 def keep(k = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:183 def key?(name); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:179 def keys; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#213 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:213 def merge!(h); end # Convenience accessor for `flash[:notice]`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#290 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:290 def notice; end # Convenience accessor for `flash[:notice]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#295 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:295 def notice=(message); end # Sets a flash that will not be available to the next action, only to the @@ -11495,10 +10974,10 @@ class ActionDispatch::Flash::FlashHash # flash.now.notice = "Good luck now!" # # Equivalent to flash.now[:notice] = "Good luck now!" # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#241 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:241 def now; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#215 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:215 def replace(h); end # Mark for removal entries that were kept, and delete unkept ones. @@ -11506,100 +10985,90 @@ class ActionDispatch::Flash::FlashHash # This method is called automatically by filters, so you generally don't need to # care about it. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#274 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:274 def sweep; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#196 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:196 def to_hash; end # Builds a hash containing the flashes to keep for the next request. If there # are none to keep, returns `nil`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:143 def to_session_value; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:173 def update(h); end protected - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:300 def now_is_loaded?; end private - # source://actionpack//lib/action_dispatch/middleware/flash.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:155 def initialize_copy(other); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#305 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:305 def stringify_array(array); end class << self - # source://actionpack//lib/action_dispatch/middleware/flash.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:122 def from_session_value(value); end end end -# source://actionpack//lib/action_dispatch/middleware/flash.rb#90 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:90 class ActionDispatch::Flash::FlashNow - # @return [FlashNow] a new instance of FlashNow - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:93 def initialize(flash); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:104 def [](k); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:97 def []=(k, v); end # Convenience accessor for `flash.now[:alert]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:109 def alert=(message); end - # Returns the value of attribute flash. - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:91 def flash; end - # Sets the attribute flash - # - # @param value the value to set the attribute flash to. - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:91 def flash=(_arg0); end # Convenience accessor for `flash.now[:notice]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:114 def notice=(message); end end -# source://actionpack//lib/action_dispatch/middleware/flash.rb#51 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:51 ActionDispatch::Flash::KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/flash.rb#53 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:53 module ActionDispatch::Flash::RequestMethods - # source://actionpack//lib/action_dispatch/middleware/flash.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:71 def commit_flash; end # Access the contents of the flash. Returns a ActionDispatch::Flash::FlashHash. # # See ActionDispatch::Flash for example usage. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#57 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:57 def flash; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:63 def flash=(flash); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:67 def flash_hash; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:84 def reset_session; end end @@ -11620,122 +11089,110 @@ end # info if `config.consider_all_requests_local` is set to true, otherwise the # body is empty. # -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:22 class ActionDispatch::HostAuthorization - # @return [HostAuthorization] a new instance of HostAuthorization - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:127 def initialize(app, hosts, exclude: T.unsafe(nil), response_app: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#135 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:135 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:151 def blocked_hosts(request); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:163 def excluded?(request); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:167 def mark_as_authorized(request); end end -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:23 ActionDispatch::HostAuthorization::ALLOWED_HOSTS_IN_DEVELOPMENT = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#88 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:88 class ActionDispatch::HostAuthorization::DefaultResponseApp - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:91 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:122 def available_logger(request); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:114 def log_error(request); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:107 def response(format, body); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:100 def response_body(request); end end -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#89 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:89 ActionDispatch::HostAuthorization::DefaultResponseApp::RESPONSE_STATUS = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:26 ActionDispatch::HostAuthorization::IPV4_HOSTNAME = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#27 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:27 ActionDispatch::HostAuthorization::IPV6_HOSTNAME = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:28 ActionDispatch::HostAuthorization::IPV6_HOSTNAME_WITH_PORT = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:24 ActionDispatch::HostAuthorization::PORT_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#35 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:35 class ActionDispatch::HostAuthorization::Permissions - # @return [Permissions] a new instance of Permissions - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:36 def initialize(hosts); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:44 def allows?(host); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:40 def empty?; end private - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:83 def extract_hostname(host); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:61 def sanitize_hosts(hosts); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:71 def sanitize_regexp(host); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#75 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:75 def sanitize_string(host); end end -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:25 ActionDispatch::HostAuthorization::SUBDOMAIN_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:29 ActionDispatch::HostAuthorization::VALID_IP_HOSTNAME = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch.rb#95 +# pkg:gem/actionpack#lib/action_dispatch.rb:95 module ActionDispatch::Http extend ::ActiveSupport::Autoload end -# source://actionpack//lib/action_dispatch/http/cache.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:7 module ActionDispatch::Http::Cache; end -# source://actionpack//lib/action_dispatch/http/cache.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:8 module ActionDispatch::Http::Cache::Request - # source://actionpack//lib/action_dispatch/http/cache.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:67 def cache_control_directives; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:32 def etag_matches?(etag); end # Check response freshness (`Last-Modified` and `ETag`) against request @@ -11745,36 +11202,32 @@ module ActionDispatch::Http::Cache::Request # `config.action_dispatch.strict_freshness`. # Reference: http://tools.ietf.org/html/rfc7232#section-6 # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:45 def fresh?(response); end - # source://actionpack//lib/action_dispatch/http/cache.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:14 def if_modified_since; end - # source://actionpack//lib/action_dispatch/http/cache.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:20 def if_none_match; end - # source://actionpack//lib/action_dispatch/http/cache.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:24 def if_none_match_etags; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:28 def not_modified?(modified_at); end - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness; end - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness=(val); end class << self - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness; end - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness=(val); end end end @@ -11783,18 +11236,16 @@ end # providing methods to access various cache control directives # Reference: https://www.rfc-editor.org/rfc/rfc9111.html#name-request-directives # -# source://actionpack//lib/action_dispatch/http/cache.rb#74 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:74 class ActionDispatch::Http::Cache::Request::CacheControlDirectives - # @return [CacheControlDirectives] a new instance of CacheControlDirectives - # - # source://actionpack//lib/action_dispatch/http/cache.rb#75 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:75 def initialize(cache_control_header); end # Returns the value of the max-age directive. # This directive indicates that the client is willing to accept a response # whose age is no greater than the specified number of seconds. # - # source://actionpack//lib/action_dispatch/http/cache.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:118 def max_age; end # Returns the value of the max-stale directive. @@ -11802,54 +11253,44 @@ class ActionDispatch::Http::Cache::Request::CacheControlDirectives # When max-stale is present without a value, returns true (unlimited staleness). # When max-stale is not present, returns nil. # - # source://actionpack//lib/action_dispatch/http/cache.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:124 def max_stale; end # Returns true if max-stale directive is present (with or without a value) # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:127 def max_stale?; end # Returns true if max-stale directive is present without a value (unlimited staleness) # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:132 def max_stale_unlimited?; end # Returns the value of the min-fresh directive. # This directive indicates that the client is willing to accept a response # whose freshness lifetime is no less than its current age plus the specified time in seconds. # - # source://actionpack//lib/action_dispatch/http/cache.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:139 def min_fresh; end # Returns true if the no-cache directive is present. # This directive indicates that a cache must not use the response # to satisfy subsequent requests without successful validation on the origin server. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:98 def no_cache?; end # Returns true if the no-store directive is present. # This directive indicates that a cache must not store any part of the # request or response. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:105 def no_store?; end # Returns true if the no-transform directive is present. # This directive indicates that a cache or proxy must not transform the payload. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:111 def no_transform?; end # Returns true if the only-if-cached directive is present. @@ -11857,46 +11298,40 @@ class ActionDispatch::Http::Cache::Request::CacheControlDirectives # stored response. If a valid stored response is not available, # the server should respond with a 504 (Gateway Timeout) status. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:91 def only_if_cached?; end # Returns the value of the stale-if-error directive. # This directive indicates that the client is willing to accept a stale response # if the check for a fresh one fails with an error for the specified number of seconds. # - # source://actionpack//lib/action_dispatch/http/cache.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:144 def stale_if_error; end private - # source://actionpack//lib/action_dispatch/http/cache.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:147 def parse_directives(header_value); end end -# source://actionpack//lib/action_dispatch/http/cache.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:9 ActionDispatch::Http::Cache::Request::HTTP_IF_MODIFIED_SINCE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:10 ActionDispatch::Http::Cache::Request::HTTP_IF_NONE_MATCH = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#176 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:176 module ActionDispatch::Http::Cache::Response - # Returns the value of attribute cache_control. - # - # source://actionpack//lib/action_dispatch/http/cache.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:177 def cache_control; end - # source://actionpack//lib/action_dispatch/http/cache.rb#193 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:193 def date; end - # source://actionpack//lib/action_dispatch/http/cache.rb#203 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:203 def date=(utc_time); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#199 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:199 def date?; end # This method sets a weak ETag validator on the response so browsers and proxies @@ -11918,144 +11353,130 @@ module ActionDispatch::Http::Cache::Response # Weak ETags are what we almost always need, so they're the default. Check out # #strong_etag= to provide a strong ETag validator. # - # source://actionpack//lib/action_dispatch/http/cache.rb#225 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:225 def etag=(weak_validators); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#237 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:237 def etag?; end - # source://actionpack//lib/action_dispatch/http/cache.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:179 def last_modified; end - # source://actionpack//lib/action_dispatch/http/cache.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:189 def last_modified=(utc_time); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:185 def last_modified?; end - # source://actionpack//lib/action_dispatch/http/cache.rb#233 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:233 def strong_etag=(strong_validators); end # True if an ETag is set, and it isn't a weak validator (not preceded with # `W/`). # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#246 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:246 def strong_etag?; end - # source://actionpack//lib/action_dispatch/http/cache.rb#229 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:229 def weak_etag=(weak_validators); end # True if an ETag is set, and it's a weak validator (preceded with `W/`). # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#240 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:240 def weak_etag?; end private - # source://actionpack//lib/action_dispatch/http/cache.rb#269 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:269 def cache_control_headers; end - # source://actionpack//lib/action_dispatch/http/cache.rb#263 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:263 def cache_control_segments; end - # source://actionpack//lib/action_dispatch/http/cache.rb#259 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:259 def generate_strong_etag(validators); end - # source://actionpack//lib/action_dispatch/http/cache.rb#255 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:255 def generate_weak_etag(validators); end - # source://actionpack//lib/action_dispatch/http/cache.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:300 def handle_conditional_get!; end - # source://actionpack//lib/action_dispatch/http/cache.rb#309 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:309 def merge_and_normalize_cache_control!(cache_control); end - # source://actionpack//lib/action_dispatch/http/cache.rb#287 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:287 def prepare_cache_control!; end end -# source://actionpack//lib/action_dispatch/http/cache.rb#251 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:251 ActionDispatch::Http::Cache::Response::DATE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#291 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:291 ActionDispatch::Http::Cache::Response::DEFAULT_CACHE_CONTROL = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#297 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:297 ActionDispatch::Http::Cache::Response::IMMUTABLE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#252 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:252 ActionDispatch::Http::Cache::Response::LAST_MODIFIED = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#296 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:296 ActionDispatch::Http::Cache::Response::MUST_REVALIDATE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#298 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:298 ActionDispatch::Http::Cache::Response::MUST_UNDERSTAND = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#293 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:293 ActionDispatch::Http::Cache::Response::NO_CACHE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#292 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:292 ActionDispatch::Http::Cache::Response::NO_STORE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#295 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:295 ActionDispatch::Http::Cache::Response::PRIVATE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#294 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:294 ActionDispatch::Http::Cache::Response::PUBLIC = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#253 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:253 ActionDispatch::Http::Cache::Response::SPECIAL_KEYS = T.let(T.unsafe(nil), Set) -# source://actionpack//lib/action_dispatch/http/content_disposition.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:7 class ActionDispatch::Http::ContentDisposition - # @return [ContentDisposition] a new instance of ContentDisposition - # - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:14 def initialize(disposition:, filename:); end - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:21 def ascii_filename; end - # Returns the value of attribute disposition. - # - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:12 def disposition; end - # Returns the value of attribute filename. - # - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:12 def filename; end - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:31 def to_s; end - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:27 def utf8_filename; end private - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:40 def percent_escape(string, pattern); end class << self - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#8 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:8 def format(disposition:, filename:); end end end -# source://actionpack//lib/action_dispatch/http/content_disposition.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:25 ActionDispatch::Http::ContentDisposition::RFC_5987_ESCAPED_CHAR = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/content_disposition.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:19 ActionDispatch::Http::ContentDisposition::TRADITIONAL_ESCAPED_CHAR = T.let(T.unsafe(nil), Regexp) # # Action Dispatch HTTP Filter Parameters @@ -12069,77 +11490,75 @@ ActionDispatch::Http::ContentDisposition::TRADITIONAL_ESCAPED_CHAR = T.let(T.uns # For more information about filter behavior, see # ActiveSupport::ParameterFilter. # -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:19 module ActionDispatch::Http::FilterParameters # :startdoc: # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:26 def initialize; end # Returns a hash of request.env with all sensitive data replaced. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:42 def filtered_env; end # Returns a hash of parameters with all sensitive data replaced. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:35 def filtered_parameters; end # Reconstructs a path with all sensitive GET parameters replaced. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#47 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:47 def filtered_path; end # Returns the `ActiveSupport::ParameterFilter` object used to filter in this # request. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#53 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:53 def parameter_filter; end private - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:62 def env_filter; end - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:73 def filtered_query_string; end - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:69 def parameter_filter_for(filters); end end # :stopdoc: # -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:21 ActionDispatch::Http::FilterParameters::ENV_MATCH = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:23 ActionDispatch::Http::FilterParameters::NULL_ENV_FILTER = T.let(T.unsafe(nil), ActiveSupport::ParameterFilter) -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:22 ActionDispatch::Http::FilterParameters::NULL_PARAM_FILTER = T.let(T.unsafe(nil), ActiveSupport::ParameterFilter) -# source://actionpack//lib/action_dispatch/http/filter_redirect.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:7 module ActionDispatch::Http::FilterRedirect - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:10 def filtered_location; end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:27 def location_filter_match?; end - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:19 def location_filters; end - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:37 def parameter_filtered_location; end end -# source://actionpack//lib/action_dispatch/http/filter_redirect.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:8 ActionDispatch::Http::FilterRedirect::FILTERED = T.let(T.unsafe(nil), String) # # Action Dispatch HTTP Headers @@ -12164,34 +11583,32 @@ ActionDispatch::Http::FilterRedirect::FILTERED = T.let(T.unsafe(nil), String) # headers["X_Custom_Header"] # => nil # headers["X-Custom-Header"] # => "token" # -# source://actionpack//lib/action_dispatch/http/headers.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:28 class ActionDispatch::Http::Headers include ::Enumerable - # @return [Headers] a new instance of Headers - # - # source://actionpack//lib/action_dispatch/http/headers.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:58 def initialize(request); end # Returns the value for the given key mapped to @env. # - # source://actionpack//lib/action_dispatch/http/headers.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:63 def [](key); end # Sets the given value for the key mapped to @env. # - # source://actionpack//lib/action_dispatch/http/headers.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:68 def []=(key, value); end # Add a value to a multivalued header like `Vary` or `Accept-Encoding`. # - # source://actionpack//lib/action_dispatch/http/headers.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:73 def add(key, value); end - # source://actionpack//lib/action_dispatch/http/headers.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:98 def each(&block); end - # source://actionpack//lib/action_dispatch/http/headers.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:118 def env; end # Returns the value for the given key mapped to @env. @@ -12201,29 +11618,25 @@ class ActionDispatch::Http::Headers # # If the code block is provided, then it will be run and its result returned. # - # source://actionpack//lib/action_dispatch/http/headers.rb#90 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:90 def fetch(key, default = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/headers.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:80 def include?(key); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/headers.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:77 def key?(key); end # Returns a new Http::Headers instance containing the contents of # `headers_or_env` and the original instance. # - # source://actionpack//lib/action_dispatch/http/headers.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:104 def merge(headers_or_env); end # Adds the contents of `headers_or_env` to original instance entries; duplicate # keys are overwritten with the values from `headers_or_env`. # - # source://actionpack//lib/action_dispatch/http/headers.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:112 def merge!(headers_or_env); end private @@ -12231,36 +11644,36 @@ class ActionDispatch::Http::Headers # Converts an HTTP header name to an environment variable name if it is not # contained within the headers hash. # - # source://actionpack//lib/action_dispatch/http/headers.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:123 def env_name(key); end class << self - # source://actionpack//lib/action_dispatch/http/headers.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:54 def from_hash(hash); end end end -# source://actionpack//lib/action_dispatch/http/headers.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:29 ActionDispatch::Http::Headers::CGI_VARIABLES = T.let(T.unsafe(nil), Set) -# source://actionpack//lib/action_dispatch/http/headers.rb#82 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:82 ActionDispatch::Http::Headers::DEFAULT = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/http/headers.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:50 ActionDispatch::Http::Headers::HTTP_HEADER = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:9 module ActionDispatch::Http::MimeNegotiation extend ::ActiveSupport::Concern # Returns the accepted MIME type for the request. # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:42 def accepts; end # The MIME type of the HTTP request, such as [Mime](:xml). # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:24 def content_mime_type; end # Returns the MIME type for the format used in the request. @@ -12274,7 +11687,7 @@ module ActionDispatch::Http::MimeNegotiation # # GET /posts/5 # request.format # => Mime[:html] or Mime[:js], or request.accepts.first # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:68 def format(_view_path = T.unsafe(nil)); end # Sets the format by string extension, which can be used to force custom formats @@ -12289,10 +11702,10 @@ module ActionDispatch::Http::MimeNegotiation # end # end # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:174 def format=(extension); end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:72 def formats; end # Sets the formats by string extensions. This differs from #format= by allowing @@ -12311,22 +11724,18 @@ module ActionDispatch::Http::MimeNegotiation # end # end # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:194 def formats=(extensions); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:37 def has_content_type?; end # Returns the first MIME type that matches the provided array of MIME types. # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#202 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:202 def negotiate_mime(order); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#214 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:214 def should_apply_vary_header?; end # Returns the \variant for the response template as an instance of @@ -12342,7 +11751,7 @@ module ActionDispatch::Http::MimeNegotiation # request.variant.any?(:phone, :desktop) # => true # request.variant.any?(:desktop, :watch) # => false # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:159 def variant; end # Sets the \variant for the response template. @@ -12389,39 +11798,37 @@ module ActionDispatch::Http::MimeNegotiation # end # end # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:137 def variant=(variant); end private - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#238 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:238 def format_from_path_extension; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#223 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:223 def params_readable?; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:234 def use_accept_header; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#229 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:229 def valid_accept_header; end end # We use normal content negotiation unless you include **/** in your list, in # which case we assume you're a browser and send HTML. # -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#221 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:221 ActionDispatch::Http::MimeNegotiation::BROWSER_LIKE_ACCEPTS = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:12 class ActionDispatch::Http::MimeNegotiation::InvalidType < ::Mime::Type::InvalidMimeType; end -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:14 ActionDispatch::Http::MimeNegotiation::RESCUABLE_MIME_FORMAT_ERRORS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/parameters.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:7 module ActionDispatch::Http::Parameters extend ::ActiveSupport::Concern @@ -12429,12 +11836,10 @@ module ActionDispatch::Http::Parameters # Returns both GET and POST parameters in a single hash. # - # source://actionpack//lib/action_dispatch/http/parameters.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:52 def parameters; end - # Returns both GET and POST parameters in a single hash. - # - # source://actionpack//lib/action_dispatch/http/parameters.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:65 def params; end # Returns a hash with the parameters used to form the path of the request. @@ -12442,25 +11847,25 @@ module ActionDispatch::Http::Parameters # # { action: "my_action", controller: "my_controller" } # - # source://actionpack//lib/action_dispatch/http/parameters.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:84 def path_parameters; end - # source://actionpack//lib/action_dispatch/http/parameters.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:67 def path_parameters=(parameters); end private - # source://actionpack//lib/action_dispatch/http/parameters.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:102 def log_parse_error_once; end - # source://actionpack//lib/action_dispatch/http/parameters.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:114 def params_parsers; end - # source://actionpack//lib/action_dispatch/http/parameters.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:89 def parse_formatted_parameters(parsers); end end -# source://actionpack//lib/action_dispatch/http/parameters.rb#36 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:36 module ActionDispatch::Http::Parameters::ClassMethods # Configure the parameter parser for a given MIME type. # @@ -12472,43 +11877,41 @@ module ActionDispatch::Http::Parameters::ClassMethods # new_parsers = original_parsers.merge(xml: xml_parser) # ActionDispatch::Request.parameter_parsers = new_parsers # - # source://actionpack//lib/action_dispatch/http/parameters.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:46 def parameter_parsers=(parsers); end end -# source://actionpack//lib/action_dispatch/http/parameters.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:12 ActionDispatch::Http::Parameters::DEFAULT_PARSERS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/parameters.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:10 ActionDispatch::Http::Parameters::PARAMETERS_KEY = T.let(T.unsafe(nil), String) # Raised when raw data from the request cannot be parsed by the parser defined # for request's content MIME type. # -# source://actionpack//lib/action_dispatch/http/parameters.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:21 class ActionDispatch::Http::Parameters::ParseError < ::StandardError - # @return [ParseError] a new instance of ParseError - # - # source://actionpack//lib/action_dispatch/http/parameters.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:22 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/http/url.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:9 module ActionDispatch::Http::URL - # source://actionpack//lib/action_dispatch/http/url.rb#277 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:277 def initialize; end # Returns the domain part of a host, such as "rubyonrails.org" in # "www.rubyonrails.org". You can specify a different `tld_length`, such as 2 to # catch rubyonrails.co.uk in "www.rubyonrails.co.uk". # - # source://actionpack//lib/action_dispatch/http/url.rb#420 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:420 def domain(tld_length = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/url.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:112 def domain_extractor; end - # source://actionpack//lib/action_dispatch/http/url.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:112 def domain_extractor=(val); end # Returns the host for this request, such as "example.com". @@ -12516,7 +11919,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.host # => "example.com" # - # source://actionpack//lib/action_dispatch/http/url.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:324 def host; end # Returns a host:port string for this request, such as "example.com" or @@ -12532,7 +11935,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.host_with_port # => "example.com:8080" # - # source://actionpack//lib/action_dispatch/http/url.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:340 def host_with_port; end # Returns a number port suffix like 8080 if the port number of this request is @@ -12544,7 +11947,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.optional_port # => 8080 # - # source://actionpack//lib/action_dispatch/http/url.rb#390 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:390 def optional_port; end # Returns the port number of this request as an integer. @@ -12555,7 +11958,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.port # => 8080 # - # source://actionpack//lib/action_dispatch/http/url.rb#351 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:351 def port; end # Returns a string port suffix, including colon, like ":8080" if the port number @@ -12567,7 +11970,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.port_string # => ":8080" # - # source://actionpack//lib/action_dispatch/http/url.rb#402 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:402 def port_string; end # Returns 'https://' if this is an SSL request and 'http://' otherwise. @@ -12578,7 +11981,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com', 'HTTPS' => 'on' # req.protocol # => "https://" # - # source://actionpack//lib/action_dispatch/http/url.rb#298 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:298 def protocol; end # Returns the host and port for this request, such as "example.com:8080". @@ -12592,13 +11995,13 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.raw_host_with_port # => "example.com:8080" # - # source://actionpack//lib/action_dispatch/http/url.rb#312 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:312 def raw_host_with_port; end - # source://actionpack//lib/action_dispatch/http/url.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:110 def secure_protocol; end - # source://actionpack//lib/action_dispatch/http/url.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:110 def secure_protocol=(val); end # Returns the requested port, such as 8080, based on SERVER_PORT. @@ -12609,7 +12012,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'SERVER_PORT' => '8080' # req.server_port # => 8080 # - # source://actionpack//lib/action_dispatch/http/url.rb#413 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:413 def server_port; end # Returns the standard port number for this request's protocol. @@ -12617,7 +12020,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.standard_port # => 80 # - # source://actionpack//lib/action_dispatch/http/url.rb#363 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:363 def standard_port; end # Returns whether this request is using the standard port. @@ -12628,16 +12031,14 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.standard_port? # => false # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/url.rb#378 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:378 def standard_port?; end # Returns all the subdomains as a string, so `"dev.www"` would be returned for # "dev.www.rubyonrails.org". You can specify a different `tld_length`, such as 2 # to catch `"www"` instead of `"www.rubyonrails"` in "www.rubyonrails.co.uk". # - # source://actionpack//lib/action_dispatch/http/url.rb#435 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:435 def subdomain(tld_length = T.unsafe(nil)); end # Returns all the subdomains as an array, so `["dev", "www"]` would be returned @@ -12645,13 +12046,13 @@ module ActionDispatch::Http::URL # as 2 to catch `["www"]` instead of `["www", "rubyonrails"]` in # "www.rubyonrails.co.uk". # - # source://actionpack//lib/action_dispatch/http/url.rb#428 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:428 def subdomains(tld_length = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/url.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:111 def tld_length; end - # source://actionpack//lib/action_dispatch/http/url.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:111 def tld_length=(val); end # Returns the complete URL used for this request. @@ -12659,14 +12060,14 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com' # req.url # => "http://example.com" # - # source://actionpack//lib/action_dispatch/http/url.rb#287 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:287 def url; end class << self - # source://actionpack//lib/action_dispatch/http/url.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:112 def domain_extractor; end - # source://actionpack//lib/action_dispatch/http/url.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:112 def domain_extractor=(val); end # Returns the domain part of a host given the domain level. @@ -12676,7 +12077,7 @@ module ActionDispatch::Http::URL # # Second-level domain example # extract_domain('dev.www.example.co.uk', 2) # => "example.co.uk" # - # source://actionpack//lib/action_dispatch/http/url.rb#121 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:121 def extract_domain(host, tld_length); end # Returns the subdomains of a host as a String given the domain level. @@ -12686,7 +12087,7 @@ module ActionDispatch::Http::URL # # Second-level domain example # extract_subdomain('dev.www.example.co.uk', 2) # => "dev.www" # - # source://actionpack//lib/action_dispatch/http/url.rb#145 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:145 def extract_subdomain(host, tld_length); end # Returns the subdomains of a host as an Array given the domain level. @@ -12696,59 +12097,57 @@ module ActionDispatch::Http::URL # # Second-level domain example # extract_subdomains('dev.www.example.co.uk', 2) # => ["dev", "www"] # - # source://actionpack//lib/action_dispatch/http/url.rb#131 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:131 def extract_subdomains(host, tld_length); end - # source://actionpack//lib/action_dispatch/http/url.rb#157 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:157 def full_url_for(options); end - # source://actionpack//lib/action_dispatch/http/url.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:169 def path_for(options); end - # source://actionpack//lib/action_dispatch/http/url.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:110 def secure_protocol; end - # source://actionpack//lib/action_dispatch/http/url.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:110 def secure_protocol=(val); end - # source://actionpack//lib/action_dispatch/http/url.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:111 def tld_length; end - # source://actionpack//lib/action_dispatch/http/url.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:111 def tld_length=(val); end - # source://actionpack//lib/action_dispatch/http/url.rb#149 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:149 def url_for(options); end private - # source://actionpack//lib/action_dispatch/http/url.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:189 def add_anchor(path, anchor); end - # source://actionpack//lib/action_dispatch/http/url.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:182 def add_params(path, params); end - # source://actionpack//lib/action_dispatch/http/url.rb#203 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:203 def build_host_url(host, port, protocol, options, path); end - # source://actionpack//lib/action_dispatch/http/url.rb#195 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:195 def extract_domain_from(host, tld_length); end - # source://actionpack//lib/action_dispatch/http/url.rb#199 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:199 def extract_subdomains_from(host, tld_length); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/url.rb#227 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:227 def named_host?(host); end - # source://actionpack//lib/action_dispatch/http/url.rb#244 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:244 def normalize_host(_host, options); end - # source://actionpack//lib/action_dispatch/http/url.rb#264 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:264 def normalize_port(port, protocol); end - # source://actionpack//lib/action_dispatch/http/url.rb#231 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:231 def normalize_protocol(protocol); end end end @@ -12768,7 +12167,7 @@ end # - Domain: "example.co.uk" (with tld_length=2) # - TLD: "co.uk" # -# source://actionpack//lib/action_dispatch/http/url.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:28 module ActionDispatch::Http::URL::DomainExtractor extend ::ActionDispatch::Http::URL::DomainExtractor @@ -12806,7 +12205,7 @@ module ActionDispatch::Http::URL::DomainExtractor # DomainExtractor.domain_from("localhost", 1) # # => "localhost" # - # source://actionpack//lib/action_dispatch/http/url.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:64 def domain_from(host, tld_length); end # Extracts the subdomain components from a host string as an Array. @@ -12846,17 +12245,17 @@ module ActionDispatch::Http::URL::DomainExtractor # DomainExtractor.subdomains_from("dev.api.staging.example.com", 1) # # => ["dev", "api", "staging"] # - # source://actionpack//lib/action_dispatch/http/url.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:104 def subdomains_from(host, tld_length); end end -# source://actionpack//lib/action_dispatch/http/url.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:11 ActionDispatch::Http::URL::HOST_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/url.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:10 ActionDispatch::Http::URL::IP_HOST_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/url.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:12 ActionDispatch::Http::URL::PROTOCOL_REGEXP = T.let(T.unsafe(nil), Regexp) # # Action Dispatch HTTP UploadedFile @@ -12870,111 +12269,106 @@ ActionDispatch::Http::URL::PROTOCOL_REGEXP = T.let(T.unsafe(nil), Regexp) # object is finalized Ruby unlinks the file, so there is no need to clean them # with a separate maintenance task. # -# source://actionpack//lib/action_dispatch/http/upload.rb#17 +# pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:17 class ActionDispatch::Http::UploadedFile - # @raise [ArgumentError] - # @return [UploadedFile] a new instance of UploadedFile - # - # source://actionpack//lib/action_dispatch/http/upload.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:31 def initialize(hash); end # Shortcut for `tempfile.close`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:73 def close(unlink_now = T.unsafe(nil)); end # A string with the MIME type of the file. # - # source://actionpack//lib/action_dispatch/http/upload.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:22 def content_type; end # A string with the MIME type of the file. # - # source://actionpack//lib/action_dispatch/http/upload.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:22 def content_type=(_arg0); end # Shortcut for `tempfile.eof?`. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/upload.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:98 def eof?; end # A string with the headers of the multipart request. # - # source://actionpack//lib/action_dispatch/http/upload.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:29 def headers; end # A string with the headers of the multipart request. # - # source://actionpack//lib/action_dispatch/http/upload.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:29 def headers=(_arg0); end # Shortcut for `tempfile.open`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:68 def open; end # The basename of the file in the client. # - # source://actionpack//lib/action_dispatch/http/upload.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:19 def original_filename; end # The basename of the file in the client. # - # source://actionpack//lib/action_dispatch/http/upload.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:19 def original_filename=(_arg0); end # Shortcut for `tempfile.path`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:78 def path; end # Shortcut for `tempfile.read`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:63 def read(length = T.unsafe(nil), buffer = T.unsafe(nil)); end # Shortcut for `tempfile.rewind`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:88 def rewind; end # Shortcut for `tempfile.size`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:93 def size; end # A `Tempfile` object with the actual uploaded file. Note that some of its # interface is available directly. # - # source://actionpack//lib/action_dispatch/http/upload.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:26 def tempfile; end # A `Tempfile` object with the actual uploaded file. Note that some of its # interface is available directly. # - # source://actionpack//lib/action_dispatch/http/upload.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:26 def tempfile=(_arg0); end - # source://actionpack//lib/action_dispatch/http/upload.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:102 def to_io; end # Shortcut for `tempfile.to_path`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:83 def to_path; end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:14 module ActionDispatch::Integration; end -# source://actionpack//lib/action_dispatch/testing/integration.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:15 module ActionDispatch::Integration::RequestHelpers # Performs a DELETE request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:42 def delete(path, **args); end # Follow a single redirect response. If the last response was not a redirect, an @@ -12985,47 +12379,47 @@ module ActionDispatch::Integration::RequestHelpers # # The HTTP_REFERER header will be set to the previous url. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:65 def follow_redirect!(headers: T.unsafe(nil), **args); end # Performs a GET request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:18 def get(path, **args); end # Performs a HEAD request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:48 def head(path, **args); end # Performs an OPTIONS request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:54 def options(path, **args); end # Performs a PATCH request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:30 def patch(path, **args); end # Performs a POST request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:24 def post(path, **args); end # Performs a PUT request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:36 def put(path, **args); end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#334 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:334 module ActionDispatch::Integration::Runner include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -13035,57 +12429,55 @@ module ActionDispatch::Integration::Runner include ::ActionDispatch::Assertions extend ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_dispatch/testing/integration.rb#342 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:342 def initialize(*args, &blk); end - # Returns the value of attribute app. - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#339 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:339 def app; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#412 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:412 def assertions; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#416 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:416 def assertions=(assertions); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def assigns(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#347 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:347 def before_setup; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def cookies(*_arg0, **_arg1, &_arg2); end # Copy the instance variables from the current session instance into the test # instance. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#422 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:422 def copy_session_variables!; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#362 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:362 def create_session(app); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#428 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:428 def default_url_options; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#432 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:432 def default_url_options=(options); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def delete(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def follow_redirect!(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def get(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def head(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:352 def integration_session; end # Open a new session instance. If a block is given, the new session is yielded @@ -13098,47 +12490,45 @@ module ActionDispatch::Integration::Runner # By default, a single session is automatically created for you, but you can use # this method to open multiple sessions that ought to be tested simultaneously. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#404 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:404 def open_session; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def patch(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def post(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 def put(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#374 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:374 def remove!; end # Reset the current session. This is useful for testing multiple sessions in a # single test case. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#358 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:358 def reset!; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:340 def root_session; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:340 def root_session=(_arg0); end private # Delegate unhandled messages to the current session instance. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#442 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:442 def method_missing(method, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#437 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:437 def respond_to_missing?(method, _); end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#337 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:337 ActionDispatch::Integration::Runner::APP_SESSIONS = T.let(T.unsafe(nil), Hash) # An instance of this class represents a set of requests and responses performed @@ -13149,7 +12539,7 @@ ActionDispatch::Integration::Runner::APP_SESSIONS = T.let(T.unsafe(nil), Hash) # Typically, you will instantiate a new session using Runner#open_session, # rather than instantiating a Session directly. # -# source://actionpack//lib/action_dispatch/testing/integration.rb#91 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:91 class ActionDispatch::Integration::Session include ::Minitest::Assertions include ::ActionDispatch::Assertions::RoutingAssertions @@ -13167,67 +12557,60 @@ class ActionDispatch::Integration::Session # Create and initialize a new Session instance. # - # @return [Session] a new instance of Session - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:133 def initialize(app); end # The Accept header to send. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:110 def accept; end # The Accept header to send. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:110 def accept=(_arg0); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 def body(*_arg0, **_arg1, &_arg2); end # A reference to the controller instance used by the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#119 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:119 def controller; end # A map of the cookies returned by the last response, and which will be sent # with the next request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:114 def cookies; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options?; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 def headers(*_arg0, **_arg1, &_arg2); end # The hostname used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:101 def host; end - # Sets the attribute host # Set the host name to use in the next request. # # session.host! "www.example.com" # - # @param value the value to set the attribute host to. - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#315 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:315 def host!(_arg0); end - # Sets the attribute host - # - # @param value the value to set the attribute host to. + # The hostname used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:104 def host=(_arg0); end # Specify whether or not the session should mimic a secure HTTPS request. @@ -13235,7 +12618,7 @@ class ActionDispatch::Integration::Session # session.https! # session.https!(false) # - # source://actionpack//lib/action_dispatch/testing/integration.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:180 def https!(flag = T.unsafe(nil)); end # Returns `true` if the session is mimicking a secure HTTPS request. @@ -13244,12 +12627,10 @@ class ActionDispatch::Integration::Session # ... # end # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:189 def https?; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:98 def path(*_arg0, **_arg1, &_arg2); end # Performs the actual request. @@ -13285,35 +12666,35 @@ class ActionDispatch::Integration::Session # Example: # process :get, '/author', params: { since: 201501011400 } # - # source://actionpack//lib/action_dispatch/testing/integration.rb#225 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:225 def process(method, path, params: T.unsafe(nil), headers: T.unsafe(nil), env: T.unsafe(nil), xhr: T.unsafe(nil), as: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 def redirect?(*_arg0, **_arg1, &_arg2); end # The remote_addr used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:107 def remote_addr; end # The remote_addr used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:107 def remote_addr=(_arg0); end # A reference to the request instance used by the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:122 def request; end # A running counter of the number of requests processed. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:128 def request_count; end # A running counter of the number of requests processed. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:128 def request_count=(_arg0); end # Resets the instance. This can be used to reset the state information in an @@ -13321,57 +12702,55 @@ class ActionDispatch::Integration::Session # # session.reset! # - # source://actionpack//lib/action_dispatch/testing/integration.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:156 def reset!; end # A reference to the response instance used by the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:125 def response; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 def status(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 def status_message(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:140 def url_options; end private - # source://actionpack//lib/action_dispatch/testing/integration.rb#318 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:318 def _mock_session; end - # @yield [location] - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#326 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:326 def build_expanded_path(path); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#322 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:322 def build_full_uri(path, env); end class << self - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options=(value); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options?; end private - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def __class_attr_default_url_options; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def __class_attr_default_url_options=(new_value); end end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#92 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:92 ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String) # An integration test spans multiple controllers and actions, tying them all @@ -13569,7 +12948,7 @@ ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String # Consult the [Rails Testing Guide](https://guides.rubyonrails.org/testing.html) # for more. # -# source://actionpack//lib/action_dispatch/testing/integration.rb#649 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:649 class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::Assertions::RoutingAssertions @@ -13590,7 +12969,7 @@ class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase extend ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods end -# source://actionpack//lib/action_dispatch/testing/integration.rb#659 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:659 module ActionDispatch::IntegrationTest::Behavior include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -13609,179 +12988,141 @@ module ActionDispatch::IntegrationTest::Behavior mixes_in_class_methods ::ActionDispatch::IntegrationTest::Behavior::ClassMethods mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/integration.rb#692 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:692 def app; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#696 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:696 def document_root_element; end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#674 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:674 module ActionDispatch::IntegrationTest::Behavior::ClassMethods - # source://actionpack//lib/action_dispatch/testing/integration.rb#675 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:675 def app; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#683 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:683 def app=(app); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#687 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:687 def register_encoder(*args, **options); end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#652 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:652 module ActionDispatch::IntegrationTest::UrlOptions extend ::ActiveSupport::Concern - # source://actionpack//lib/action_dispatch/testing/integration.rb#654 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:654 def url_options; end end -# source://actionpack//lib/action_dispatch/http/param_error.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:21 class ActionDispatch::InvalidParameterError < ::ActionDispatch::ParamError; end +# :stopdoc: +# :stopdoc: # :stopdoc: # -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:6 module ActionDispatch::Journey; end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:9 class ActionDispatch::Journey::Ast - # @return [Ast] a new instance of Ast - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:13 def initialize(tree, formatted); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:38 def glob?; end - # Returns the value of attribute names. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def names; end - # Returns the value of attribute path_params. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def path_params; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:25 def requirements=(requirements); end - # Returns the value of attribute tree. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:11 def root; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:34 def route=(route); end - # Returns the value of attribute terminals. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def terminals; end - # Returns the value of attribute tree. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def tree; end - # Returns the value of attribute wildcard_options. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def wildcard_options; end private - # Returns the value of attribute stars. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:43 def stars; end - # Returns the value of attribute symbols. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:43 def symbols; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:45 def visit_tree(formatted); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:8 class ActionDispatch::Journey::Format - # @return [Format] a new instance of Format - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:24 def initialize(parts); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:39 def evaluate(hash); end class << self - # source://actionpack//lib/action_dispatch/journey/visitors.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:16 def required_path(symbol); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:20 def required_segment(symbol); end end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:9 ActionDispatch::Journey::Format::ESCAPE_PATH = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:10 ActionDispatch::Journey::Format::ESCAPE_SEGMENT = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 class ActionDispatch::Journey::Format::Parameter < ::Struct - # source://actionpack//lib/action_dispatch/journey/visitors.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:13 def escape(value); end - # Returns the value of attribute escaper - # - # @return [Object] the current value of escaper - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def escaper; end - # Sets the attribute escaper - # - # @param value [Object] the value to set the attribute escaper to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def escaper=(_); end - # Returns the value of attribute name - # - # @return [Object] the current value of name - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def name=(_); end class << self - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def [](*_arg0); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def inspect; end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def keyword_init?; end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def members; end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def new(*_arg0); end end end @@ -13789,837 +13130,663 @@ end # The Formatter class is used for formatting URLs. For example, parameters # passed to `url_for` in Rails will eventually call Formatter#generate. # -# source://actionpack//lib/action_dispatch/journey/formatter.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:12 class ActionDispatch::Journey::Formatter - # @return [Formatter] a new instance of Formatter - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:15 def initialize(routes); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:110 def clear; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:114 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:61 def generate(name, options, path_parameters); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:13 def routes; end private - # source://actionpack//lib/action_dispatch/journey/formatter.rb#214 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:214 def build_cache; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#225 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:225 def cache; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:120 def extract_parameterized_parts(route, options, recall); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:147 def match_route(name, options); end # Returns an array populated with missing keys if any are present. # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#186 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:186 def missing_keys(route, parts); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:143 def named_routes; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:169 def non_recursive(cache, options); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:206 def possibles(cache, options, depth = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/journey/formatter.rb#34 +# pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:34 class ActionDispatch::Journey::Formatter::MissingRoute - # @return [MissingRoute] a new instance of MissingRoute - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:37 def initialize(constraints, missing_keys, unmatched_keys, routes, name); end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def constraints; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#53 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:53 def message; end - # Returns the value of attribute missing_keys. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def missing_keys; end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def name; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:49 def params; end - # @raise [ActionController::UrlGenerationError] - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:45 def path(method_name); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def routes; end - # Returns the value of attribute unmatched_keys. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def unmatched_keys; end end -# source://actionpack//lib/action_dispatch/journey/formatter.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:20 class ActionDispatch::Journey::Formatter::RouteWithParams - # @return [RouteWithParams] a new instance of RouteWithParams - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:23 def initialize(route, parameterized_parts, params); end - # Returns the value of attribute params. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:21 def params; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:29 def path(_); end end -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:9 module ActionDispatch::Journey::GTG; end -# source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:10 class ActionDispatch::Journey::GTG::Builder - # @return [Builder] a new instance of Builder - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:15 def initialize(root); end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:13 def ast; end - # Returns the value of attribute endpoints. - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:13 def endpoints; end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:87 def firstpos(node); end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:108 def lastpos(node); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:66 def nullable?(node); end - # Returns the value of attribute root. - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:13 def root; end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:21 def transition_table; end private - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:130 def build_followpos; end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:143 def symbol(edge); end end -# source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:11 ActionDispatch::Journey::GTG::Builder::DUMMY_END_NODE = T.let(T.unsafe(nil), ActionDispatch::Journey::Nodes::Dummy) -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:8 class ActionDispatch::Journey::GTG::MatchData - # @return [MatchData] a new instance of MatchData - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:11 def initialize(memos); end - # Returns the value of attribute memos. - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:9 def memos; end end -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#16 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:16 class ActionDispatch::Journey::GTG::Simulator - # @return [Simulator] a new instance of Simulator - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:27 def initialize(transition_table); end - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:31 def memos(string); end - # Returns the value of attribute tt. - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:25 def tt; end end -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:23 ActionDispatch::Journey::GTG::Simulator::INITIAL_STATE = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#17 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:17 ActionDispatch::Journey::GTG::Simulator::STATIC_TOKENS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:10 class ActionDispatch::Journey::GTG::TransitionTable include ::ActionDispatch::Journey::NFA::Dot - # @return [TransitionTable] a new instance of TransitionTable - # - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:17 def initialize; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:168 def []=(from, to, sym); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:33 def accepting?(state); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:29 def accepting_states; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:25 def add_accepting(state); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:37 def add_memo(idx, memo); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:103 def as_json(options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:45 def eclosure(t); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#41 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:41 def memo(idx); end - # Returns the value of attribute memos. - # - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:13 def memos; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:49 def move(t, full_string, token, start_index, token_matches_default); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#187 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:187 def states; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:120 def to_svg; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:194 def transitions; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:130 def visualizer(paths, title = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:15 ActionDispatch::Journey::GTG::TransitionTable::DEFAULT_EXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/nfa/dot.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/journey/nfa/dot.rb:7 module ActionDispatch::Journey::NFA; end -# source://actionpack//lib/action_dispatch/journey/nfa/dot.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/nfa/dot.rb:8 module ActionDispatch::Journey::NFA::Dot - # source://actionpack//lib/action_dispatch/journey/nfa/dot.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/nfa/dot.rb:9 def to_dot; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:68 module ActionDispatch::Journey::Nodes; end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#182 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:182 class ActionDispatch::Journey::Nodes::Binary < ::ActionDispatch::Journey::Nodes::Node - # @return [Binary] a new instance of Binary - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:185 def initialize(left, right); end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:190 def children; end - # Returns the value of attribute right. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:183 def right; end - # Sets the attribute right - # - # @param value the value to set the attribute right to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:183 def right=(_arg0); end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#193 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:193 class ActionDispatch::Journey::Nodes::Cat < ::ActionDispatch::Journey::Nodes::Binary - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:194 def cat?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#195 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:195 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#134 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:134 class ActionDispatch::Journey::Nodes::Dot < ::ActionDispatch::Journey::Nodes::Terminal - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#135 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:135 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#122 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:122 class ActionDispatch::Journey::Nodes::Dummy < ::ActionDispatch::Journey::Nodes::Literal - # @return [Dummy] a new instance of Dummy - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:123 def initialize(x = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:127 def literal?; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#159 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:159 class ActionDispatch::Journey::Nodes::Group < ::ActionDispatch::Journey::Nodes::Unary - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:161 def group?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:160 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#117 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:117 class ActionDispatch::Journey::Nodes::Literal < ::ActionDispatch::Journey::Nodes::Terminal - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:118 def literal?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#119 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:119 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#69 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:69 class ActionDispatch::Journey::Nodes::Node include ::Enumerable - # @return [Node] a new instance of Node - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:74 def initialize(left); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:108 def cat?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:80 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:109 def group?; end - # Returns the value of attribute left. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def left; end - # Sets the attribute left - # - # @param value the value to set the attribute left to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def left=(_arg0); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:105 def literal?; end - # Returns the value of attribute memo. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def memo; end - # Sets the attribute memo - # - # @param value the value to set the attribute memo to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def memo=(_arg0); end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#96 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:96 def name; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:107 def star?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:104 def symbol?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:106 def terminal?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:88 def to_dot; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:84 def to_s; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:92 def to_sym; end - # @raise [NotImplementedError] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:100 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#198 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:198 class ActionDispatch::Journey::Nodes::Or < ::ActionDispatch::Journey::Nodes::Node - # @return [Or] a new instance of Or - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#201 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:201 def initialize(children); end - # Returns the value of attribute children. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#199 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:199 def children; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#205 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:205 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#130 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:130 class ActionDispatch::Journey::Nodes::Slash < ::ActionDispatch::Journey::Nodes::Terminal - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#131 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:131 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#164 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:164 class ActionDispatch::Journey::Nodes::Star < ::ActionDispatch::Journey::Nodes::Unary - # @return [Star] a new instance of Star - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:167 def initialize(left); end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:177 def name; end - # Returns the value of attribute regexp. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:165 def regexp; end - # Sets the attribute regexp - # - # @param value the value to set the attribute regexp to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:165 def regexp=(_arg0); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:174 def star?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:175 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#138 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:138 class ActionDispatch::Journey::Nodes::Symbol < ::ActionDispatch::Journey::Nodes::Terminal - # @return [Symbol] a new instance of Symbol - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#145 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:145 def initialize(left, regexp = T.unsafe(nil)); end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#141 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:141 def name; end - # Returns the value of attribute regexp. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:139 def regexp; end - # Sets the attribute regexp - # - # @param value the value to set the attribute regexp to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:139 def regexp=(_arg0); end - # Returns the value of attribute regexp. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:140 def symbol; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#152 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:152 def symbol?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:151 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#143 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:143 ActionDispatch::Journey::Nodes::Symbol::DEFAULT_EXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#144 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:144 ActionDispatch::Journey::Nodes::Symbol::GREEDY_EXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#112 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:112 class ActionDispatch::Journey::Nodes::Terminal < ::ActionDispatch::Journey::Nodes::Node - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:113 def symbol; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:114 def terminal?; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#155 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:155 class ActionDispatch::Journey::Nodes::Unary < ::ActionDispatch::Journey::Nodes::Node - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:156 def children; end end -# source://actionpack//lib/action_dispatch/journey/parser.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:8 class ActionDispatch::Journey::Parser include ::ActionDispatch::Journey::Nodes - # @return [Parser] a new instance of Parser - # - # source://actionpack//lib/action_dispatch/journey/parser.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:15 def initialize; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:20 def parse(string); end private - # source://actionpack//lib/action_dispatch/journey/parser.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:27 def advance_token; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:31 def do_parse; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:58 def parse_expression; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:35 def parse_expressions; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:74 def parse_group; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:52 def parse_or(lhs); end - # source://actionpack//lib/action_dispatch/journey/parser.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:68 def parse_star; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:86 def parse_terminal; end class << self - # source://actionpack//lib/action_dispatch/journey/parser.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:11 def parse(string); end end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:7 module ActionDispatch::Journey::Path; end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:8 class ActionDispatch::Journey::Path::Pattern - # @return [Pattern] a new instance of Pattern - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:11 def initialize(ast, requirements, separators, anchored); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:163 def =~(other); end - # Returns the value of attribute anchored. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def anchored; end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def ast; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:25 def build_formatter; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:29 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:159 def match(other); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:165 def match?(other); end - # Returns the value of attribute names. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def names; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:62 def optional_names; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:58 def required_names; end - # Returns the value of attribute requirements. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def requirements; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:36 def requirements_anchored?; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:177 def requirements_for_missing_keys_check; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:169 def source; end - # Returns the value of attribute spec. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def spec; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:173 def to_regexp; end private - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#188 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:188 def offsets; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:184 def regexp_visitor; end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:68 class ActionDispatch::Journey::Path::Pattern::AnchoredRegexp < ::ActionDispatch::Journey::Visitors::Visitor - # @return [AnchoredRegexp] a new instance of AnchoredRegexp - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:69 def initialize(separator, matchers); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:76 def accept(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:80 def visit_CAT(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:100 def visit_DOT(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:93 def visit_GROUP(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:97 def visit_LITERAL(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:111 def visit_OR(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:102 def visit_SLASH(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:106 def visit_STAR(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:84 def visit_SYMBOL(node); end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#124 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:124 class ActionDispatch::Journey::Path::Pattern::MatchData - # @return [MatchData] a new instance of MatchData - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:127 def initialize(names, offsets, match); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#141 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:141 def [](x); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:133 def captures; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#146 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:146 def length; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:137 def named_captures; end - # Returns the value of attribute names. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:125 def names; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:150 def post_match; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#154 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:154 def to_s; end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#117 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:117 class ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp < ::ActionDispatch::Journey::Path::Pattern::AnchoredRegexp - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:118 def accept(node); end end -# source://actionpack//lib/action_dispatch/journey/route.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:8 class ActionDispatch::Journey::Route # +path+ is a path constraint. # `constraints` is a hash of constraints to be applied to this route. # - # @return [Route] a new instance of Route - # - # source://actionpack//lib/action_dispatch/journey/route.rb#79 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:79 def initialize(name:, path:, app: T.unsafe(nil), constraints: T.unsafe(nil), required_defaults: T.unsafe(nil), defaults: T.unsafe(nil), via: T.unsafe(nil), precedence: T.unsafe(nil), scope_options: T.unsafe(nil), internal: T.unsafe(nil), source_location: T.unsafe(nil)); end - # Returns the value of attribute app. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def app; end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def ast; end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:12 def conditions; end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def constraints; end - # Returns the value of attribute defaults. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def defaults; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:165 def dispatcher?; end - # source://actionpack//lib/action_dispatch/journey/route.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:101 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/route.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:143 def format(path_options); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:161 def glob?; end - # Returns the value of attribute internal. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def internal; end - # source://actionpack//lib/action_dispatch/journey/route.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:189 def ip; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:169 def matches?(request); end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def name; end - # source://actionpack//lib/action_dispatch/journey/route.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:138 def parts; end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def path; end - # Returns the value of attribute precedence. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def precedence; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:151 def required_default?(key); end - # source://actionpack//lib/action_dispatch/journey/route.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:155 def required_defaults; end - # source://actionpack//lib/action_dispatch/journey/route.rb#126 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:126 def required_keys; end - # source://actionpack//lib/action_dispatch/journey/route.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:147 def required_parts; end # Needed for `bin/rails routes`. Picks up succinctly defined requirements for a @@ -14631,257 +13798,235 @@ class ActionDispatch::Journey::Route # will have {:controller=>"photos", :action=>"show", :[id=>/](A-Z){5}/} as # requirements. # - # source://actionpack//lib/action_dispatch/journey/route.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:116 def requirements; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#193 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:193 def requires_matching_verb?; end - # Returns the value of attribute scope_options. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def scope_options; end - # source://actionpack//lib/action_dispatch/journey/route.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:130 def score(supplied_keys); end - # source://actionpack//lib/action_dispatch/journey/route.rb#141 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:141 def segment_keys; end - # source://actionpack//lib/action_dispatch/journey/route.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:122 def segments; end - # Returns the value of attribute source_location. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def source_location; end - # source://actionpack//lib/action_dispatch/journey/route.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:197 def verb; end end -# source://actionpack//lib/action_dispatch/journey/route.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:14 module ActionDispatch::Journey::Route::VerbMatchers class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:65 def for(verbs); end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#36 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:36 class ActionDispatch::Journey::Route::VerbMatchers::All class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:37 def call(_); end - # source://actionpack//lib/action_dispatch/journey/route.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:38 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::DELETE class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::GET class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::HEAD class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::LINK class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::OPTIONS class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#41 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:41 class ActionDispatch::Journey::Route::VerbMatchers::Or - # @return [Or] a new instance of Or - # - # source://actionpack//lib/action_dispatch/journey/route.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:44 def initialize(verbs); end - # source://actionpack//lib/action_dispatch/journey/route.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:49 def call(req); end - # Returns the value of attribute verb. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:42 def verb; end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::PATCH class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::POST class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::PUT class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::TRACE class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::UNLINK class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:26 class ActionDispatch::Journey::Route::VerbMatchers::Unknown - # @return [Unknown] a new instance of Unknown - # - # source://actionpack//lib/action_dispatch/journey/route.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:29 def initialize(verb); end - # source://actionpack//lib/action_dispatch/journey/route.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:33 def call(request); end - # Returns the value of attribute verb. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:27 def verb; end end -# source://actionpack//lib/action_dispatch/journey/route.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:15 ActionDispatch::Journey::Route::VerbMatchers::VERBS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/route.rb#54 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:54 ActionDispatch::Journey::Route::VerbMatchers::VERB_TO_CLASS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:7 class ActionDispatch::Journey::Router - # @return [Router] a new instance of Router - # - # source://actionpack//lib/action_dispatch/journey/router.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:19 def initialize(routes); end - # source://actionpack//lib/action_dispatch/journey/router.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:23 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/router.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:43 def recognize(req, &block); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/router.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:17 def routes; end - # Sets the attribute routes - # - # @param value the value to set the attribute routes to. - # - # source://actionpack//lib/action_dispatch/journey/router.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:17 def routes=(_arg0); end - # source://actionpack//lib/action_dispatch/journey/router.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:30 def serve(req); end private - # source://actionpack//lib/action_dispatch/journey/router.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:107 def custom_routes; end - # source://actionpack//lib/action_dispatch/journey/router.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:111 def filter_routes(path); end - # source://actionpack//lib/action_dispatch/journey/router.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:115 def match_head_routes(routes, req); end - # source://actionpack//lib/action_dispatch/journey/router.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:103 def simulator; end end -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:8 class ActionDispatch::Journey::Router::Utils class << self - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:93 def escape_fragment(fragment); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:85 def escape_path(path); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:89 def escape_segment(segment); end # Normalizes URI path. @@ -14895,180 +14040,166 @@ class ActionDispatch::Journey::Router::Utils # normalize_path("") # => "/" # normalize_path("/%ab") # => "/%AB" # - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:19 def normalize_path(path); end end end -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#83 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:83 ActionDispatch::Journey::Router::Utils::ENCODER = T.let(T.unsafe(nil), ActionDispatch::Journey::Router::Utils::UriEncoder) # URI path and fragment escaping https://tools.ietf.org/html/rfc3986 # -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#41 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:41 class ActionDispatch::Journey::Router::Utils::UriEncoder - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:59 def escape_fragment(fragment); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:63 def escape_path(path); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:67 def escape_segment(segment); end private - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:72 def escape(component, pattern); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:76 def percent_encode(unsafe); end end -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#48 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:48 ActionDispatch::Journey::Router::Utils::UriEncoder::ALPHA = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#46 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:46 ActionDispatch::Journey::Router::Utils::UriEncoder::DEC2HEX = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#49 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:49 ActionDispatch::Journey::Router::Utils::UriEncoder::DIGIT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#45 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:45 ActionDispatch::Journey::Router::Utils::UriEncoder::EMPTY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#42 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:42 ActionDispatch::Journey::Router::Utils::UriEncoder::ENCODE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#53 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:53 ActionDispatch::Journey::Router::Utils::UriEncoder::ESCAPED = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#55 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:55 ActionDispatch::Journey::Router::Utils::UriEncoder::FRAGMENT = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#57 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:57 ActionDispatch::Journey::Router::Utils::UriEncoder::PATH = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#56 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:56 ActionDispatch::Journey::Router::Utils::UriEncoder::SEGMENT = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#51 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:51 ActionDispatch::Journey::Router::Utils::UriEncoder::SUB_DELIMS = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:50 ActionDispatch::Journey::Router::Utils::UriEncoder::UNRESERVED = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#43 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:43 ActionDispatch::Journey::Router::Utils::UriEncoder::US_ASCII = T.let(T.unsafe(nil), Encoding) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#44 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:44 ActionDispatch::Journey::Router::Utils::UriEncoder::UTF_8 = T.let(T.unsafe(nil), Encoding) # The Routing table. Contains all routes for a system. Routes can be added to # the table by calling Routes#add_route. # -# source://actionpack//lib/action_dispatch/journey/routes.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:9 class ActionDispatch::Journey::Routes include ::Enumerable - # @return [Routes] a new instance of Routes - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:14 def initialize(routes = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/journey/routes.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:67 def add_route(name, mapping); end - # Returns the value of attribute anchored_routes. - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:12 def anchored_routes; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#53 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:53 def ast; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:39 def clear; end - # Returns the value of attribute custom_routes. - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:12 def custom_routes; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:35 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:22 def empty?; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:31 def last; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:26 def length; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:45 def partition_route(route); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:12 def routes; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:60 def simulator; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:29 def size; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#75 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:75 def visualizer; end private - # source://actionpack//lib/action_dispatch/journey/routes.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:83 def clear_cache!; end end -# source://actionpack//lib/action_dispatch/journey/scanner.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:9 class ActionDispatch::Journey::Scanner - # @return [Scanner] a new instance of Scanner - # - # source://actionpack//lib/action_dispatch/journey/scanner.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:28 def initialize; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:48 def last_literal; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:44 def last_string; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:37 def next_token; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:33 def scan_setup(str); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/scanner.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:69 def next_byte_is_not_a_token?; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#55 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:55 def scan; end end -# source://actionpack//lib/action_dispatch/journey/scanner.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:10 ActionDispatch::Journey::Scanner::STATIC_TOKENS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/scanner.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:20 class ActionDispatch::Journey::Scanner::Scanner < ::StringScanner; end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#55 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:55 module ActionDispatch::Journey::Visitors; end # private @@ -15096,221 +14227,219 @@ module ActionDispatch::Journey::Visitors; end # INSTANCE = new # end # -# source://actionpack//lib/action_dispatch/journey/visitors.rb#228 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:228 class ActionDispatch::Journey::Visitors::Dot < ::ActionDispatch::Journey::Visitors::FunctionalVisitor - # @return [Dot] a new instance of Dot - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#229 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:229 def initialize; end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:234 def accept(node, seed = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/journey/visitors.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:249 def binary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#256 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:256 def nary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#288 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:288 def terminal(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#263 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:263 def unary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:273 def visit_CAT(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#268 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:268 def visit_GROUP(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#283 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:283 def visit_OR(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#278 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:278 def visit_STAR(node, seed); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#294 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:294 ActionDispatch::Journey::Visitors::Dot::INSTANCE = T.let(T.unsafe(nil), ActionDispatch::Journey::Visitors::Dot) # Loop through the requirements AST. # -# source://actionpack//lib/action_dispatch/journey/visitors.rb#161 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:161 class ActionDispatch::Journey::Visitors::Each < ::ActionDispatch::Journey::Visitors::FunctionalVisitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:162 def visit(node, block); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#167 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:167 ActionDispatch::Journey::Visitors::Each::INSTANCE = T.let(T.unsafe(nil), ActionDispatch::Journey::Visitors::Each) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#136 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:136 class ActionDispatch::Journey::Visitors::FormatBuilder < ::ActionDispatch::Journey::Visitors::Visitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:137 def accept(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:140 def binary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:138 def terminal(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:144 def visit_GROUP(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#146 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:146 def visit_STAR(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:150 def visit_SYMBOL(n); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#97 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:97 class ActionDispatch::Journey::Visitors::FunctionalVisitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:100 def accept(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:108 def binary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:113 def nary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:124 def terminal(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:118 def unary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:104 def visit(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:111 def visit_CAT(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:128 def visit_DOT(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#121 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:121 def visit_GROUP(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:125 def visit_LITERAL(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:116 def visit_OR(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:127 def visit_SLASH(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:122 def visit_STAR(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#126 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:126 def visit_SYMBOL(n, seed); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#98 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:98 ActionDispatch::Journey::Visitors::FunctionalVisitor::DISPATCH_CACHE = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#170 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:170 class ActionDispatch::Journey::Visitors::String - # source://actionpack//lib/action_dispatch/journey/visitors.rb#171 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:171 def accept(node, seed); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#199 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:199 ActionDispatch::Journey::Visitors::String::INSTANCE = T.let(T.unsafe(nil), ActionDispatch::Journey::Visitors::String) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#56 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:56 class ActionDispatch::Journey::Visitors::Visitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:59 def accept(node); end private - # source://actionpack//lib/action_dispatch/journey/visitors.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:68 def binary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:74 def nary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:85 def terminal(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#79 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:79 def unary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:64 def visit(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:72 def visit_CAT(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:89 def visit_DOT(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:82 def visit_GROUP(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:86 def visit_LITERAL(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:77 def visit_OR(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:88 def visit_SLASH(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:83 def visit_STAR(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:87 def visit_SYMBOL(n); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#57 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:57 ActionDispatch::Journey::Visitors::Visitor::DISPATCH_CACHE = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/log_subscriber.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:4 class ActionDispatch::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def backtrace_cleaner=(_arg0); end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def backtrace_cleaner?; end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:7 def redirect(event); end class << self - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def backtrace_cleaner=(value); end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def backtrace_cleaner?; end private - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def __class_attr_backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:5 def __class_attr_backtrace_cleaner=(new_value); end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:25 def __class_attr_log_levels; end - # source://actionpack//lib/action_dispatch/log_subscriber.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:25 def __class_attr_log_levels=(new_value); end end end @@ -15321,21 +14450,17 @@ end # stack](https://guides.rubyonrails.org/rails_on_rack.html#action-dispatcher-middleware-stack) # in the guides. # -# source://actionpack//lib/action_dispatch/middleware/stack.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:14 class ActionDispatch::MiddlewareStack include ::Enumerable - # @return [MiddlewareStack] a new instance of MiddlewareStack - # @yield [_self] - # @yieldparam _self [ActionDispatch::MiddlewareStack] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:76 def initialize(*args); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:93 def [](i); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#166 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:166 def build(app = T.unsafe(nil), &block); end # Deletes a middleware from the middleware stack. @@ -15343,7 +14468,7 @@ class ActionDispatch::MiddlewareStack # Returns the array of middlewares not including the deleted item, or returns # nil if the target is not found. # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#131 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:131 def delete(target); end # Deletes a middleware from the middleware stack. @@ -15351,224 +14476,200 @@ class ActionDispatch::MiddlewareStack # Returns the array of middlewares not including the deleted item, or raises # `RuntimeError` if the target is not found. # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:139 def delete!(target); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:81 def each(&block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:106 def insert(index, klass, *args, **_arg3, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:114 def insert_after(index, *args, **_arg2, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:112 def insert_before(index, klass, *args, **_arg3, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:89 def last; end - # Returns the value of attribute middlewares. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:74 def middlewares; end - # Sets the attribute middlewares - # - # @param value the value to set the attribute middlewares to. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:74 def middlewares=(_arg0); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:143 def move(target, source); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#153 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:153 def move_after(target, source); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:151 def move_before(target, source); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:85 def size; end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:120 def swap(target, *args, **_arg2, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:97 def unshift(klass, *args, **_arg2, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:161 def use(klass, *args, **_arg2, &block); end private - # source://actionpack//lib/action_dispatch/middleware/stack.rb#178 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:178 def assert_index(index, where); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:184 def build_middleware(klass, args, block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#188 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:188 def index_of(klass); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:102 def initialize_copy(other); end end # This class is used to instrument the execution of a single middleware. It # proxies the `call` method transparently and instruments the method call. # -# source://actionpack//lib/action_dispatch/middleware/stack.rb#54 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:54 class ActionDispatch::MiddlewareStack::InstrumentationProxy - # @return [InstrumentationProxy] a new instance of InstrumentationProxy - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#57 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:57 def initialize(middleware, class_name); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:65 def call(env); end end -# source://actionpack//lib/action_dispatch/middleware/stack.rb#55 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:55 ActionDispatch::MiddlewareStack::InstrumentationProxy::EVENT_NAME = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/stack.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:15 class ActionDispatch::MiddlewareStack::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:18 def initialize(klass, args, block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:26 def ==(middleware); end - # Returns the value of attribute args. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:16 def args; end - # Returns the value of attribute block. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:16 def block; end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:43 def build(app); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#47 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:47 def build_instrumented(app); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:35 def inspect; end - # Returns the value of attribute klass. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:16 def klass; end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:24 def name; end end -# source://actionpack//lib/action_dispatch.rb#50 +# pkg:gem/actionpack#lib/action_dispatch.rb:50 class ActionDispatch::MissingController < ::NameError; end -# source://actionpack//lib/action_dispatch/http/param_builder.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:4 class ActionDispatch::ParamBuilder - # @return [ParamBuilder] a new instance of ParamBuilder - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:15 def initialize(param_depth_limit); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def default; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def default=(val); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:62 def from_hash(hash, encoding_template: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:46 def from_pairs(pairs, encoding_template: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:42 def from_query_string(qs, separator: T.unsafe(nil), encoding_template: T.unsafe(nil)); end - # Returns the value of attribute param_depth_limit. - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:13 def param_depth_limit; end private - # source://actionpack//lib/action_dispatch/http/param_builder.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:163 def make_params; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:167 def new_depth_limit(param_depth_limit); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:175 def params_hash_has_key?(hash, key); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#171 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:171 def params_hash_type?(obj); end - # @raise [ParamsTooDeepError] - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:77 def store_nested_param(params, name, v, depth, encoding_template = T.unsafe(nil)); end class << self - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def default; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def default=(val); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def from_hash(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def from_pairs(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def from_query_string(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:25 def ignore_leading_brackets; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:33 def ignore_leading_brackets=(value); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#9 + # -- + # This implementation is based on Rack::QueryParser, + # Copyright (C) 2007-2021 Leah Neukirchen + # + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:9 def make_default(param_depth_limit); end end end -# source://actionpack//lib/action_dispatch/http/param_error.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:4 class ActionDispatch::ParamError < ::ActionDispatch::Http::Parameters::ParseError - # @return [ParamError] a new instance of ParamError - # - # source://actionpack//lib/action_dispatch/http/param_error.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:5 def initialize(message = T.unsafe(nil)); end class << self - # source://actionpack//lib/action_dispatch/http/param_error.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:9 def ===(other); end end end -# source://actionpack//lib/action_dispatch/http/param_error.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:18 class ActionDispatch::ParameterTypeError < ::ActionDispatch::ParamError; end -# source://actionpack//lib/action_dispatch/http/param_error.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:24 class ActionDispatch::ParamsTooDeepError < ::ActionDispatch::ParamError; end # # Action Dispatch PermissionsPolicy @@ -15595,152 +14696,140 @@ class ActionDispatch::ParamsTooDeepError < ::ActionDispatch::ParamError; end # use the new name for the middleware but keep the old header name and # implementation for now. # -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#31 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:31 class ActionDispatch::PermissionsPolicy - # @return [PermissionsPolicy] a new instance of PermissionsPolicy - # @yield [_self] - # @yieldparam _self [ActionDispatch::PermissionsPolicy] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:113 def initialize; end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def accelerometer(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def ambient_light_sensor(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def autoplay(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:132 def build(context = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def camera(*sources); end - # Returns the value of attribute directives. - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:111 def directives; end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def display_capture(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def encrypted_media(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def fullscreen(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def geolocation(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def gyroscope(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def hid(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def idle_detection(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def keyboard_map(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def magnetometer(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def microphone(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def midi(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def payment(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def picture_in_picture(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def screen_wake_lock(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def serial(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def sync_xhr(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def usb(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def web_share(*sources); end private - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:150 def apply_mapping(source); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:137 def apply_mappings(sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:168 def build_directive(sources, context); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:156 def build_directives(context); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:118 def initialize_copy(other); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#172 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:172 def resolve_source(source, context); end end # List of available permissions can be found at # https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md#policy-controlled-features # -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:84 ActionDispatch::PermissionsPolicy::DIRECTIVES = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#77 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:77 ActionDispatch::PermissionsPolicy::MAPPINGS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#32 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:32 class ActionDispatch::PermissionsPolicy::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:33 def initialize(app); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:37 def call(env); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:60 def policy_empty?(policy); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:56 def policy_present?(headers); end end -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#65 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:65 module ActionDispatch::PermissionsPolicy::Request - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:68 def permissions_policy; end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:72 def permissions_policy=(policy); end end -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#66 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:66 ActionDispatch::PermissionsPolicy::Request::POLICY = T.let(T.unsafe(nil), String) # # Action Dispatch PublicExceptions @@ -15756,41 +14845,33 @@ ActionDispatch::PermissionsPolicy::Request::POLICY = T.let(T.unsafe(nil), String # When a request with a content type other than HTML is made, this middleware # will attempt to convert error information into the appropriate response type. # -# source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:18 class ActionDispatch::PublicExceptions - # @return [PublicExceptions] a new instance of PublicExceptions - # - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:21 def initialize(public_path); end - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:25 def call(env); end - # Returns the value of attribute public_path. - # - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:19 def public_path; end - # Sets the attribute public_path - # - # @param value the value to set the attribute public_path to. - # - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:19 def public_path=(_arg0); end private - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:39 def render(status, content_type, body); end - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:48 def render_format(status, content_type, body); end - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#53 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:53 def render_html(status); end end -# source://actionpack//lib/action_dispatch/http/query_parser.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:7 class ActionDispatch::QueryParser class << self # -- @@ -15798,24 +14879,24 @@ class ActionDispatch::QueryParser # giving a nil value for keys that do not use '='. Callers that need # the standard's interpretation can use `v.to_s`. # - # source://actionpack//lib/action_dispatch/http/query_parser.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:29 def each_pair(s, separator = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/query_parser.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:11 def strict_query_string_separator; end - # source://actionpack//lib/action_dispatch/http/query_parser.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:18 def strict_query_string_separator=(value); end end end -# source://actionpack//lib/action_dispatch/http/query_parser.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:9 ActionDispatch::QueryParser::COMMON_SEP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/query_parser.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:8 ActionDispatch::QueryParser::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/railtie.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/railtie.rb:12 class ActionDispatch::Railtie < ::Rails::Railtie; end # # Action Dispatch Reloader @@ -15827,7 +14908,7 @@ class ActionDispatch::Railtie < ::Rails::Railtie; end # ActionDispatch::Reloader is included in the middleware stack only if reloading # is enabled, which it is by the default in `development` mode. # -# source://actionpack//lib/action_dispatch/middleware/reloader.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/middleware/reloader.rb:14 class ActionDispatch::Reloader < ::ActionDispatch::Executor; end # # Action Dispatch RemoteIp @@ -15856,7 +14937,7 @@ class ActionDispatch::Reloader < ::ActionDispatch::Executor; end # middleware runs. Alternatively, remove this middleware to avoid inadvertently # relying on it. # -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#33 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:33 class ActionDispatch::RemoteIp # Create a new `RemoteIp` middleware instance. # @@ -15873,9 +14954,7 @@ class ActionDispatch::RemoteIp # `custom_proxies` parameter. That way, the middleware will ignore those IP # addresses, and return the one that you want. # - # @return [RemoteIp] a new instance of RemoteIp - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:67 def initialize(app, ip_spoofing_check = T.unsafe(nil), custom_proxies = T.unsafe(nil)); end # Since the IP address may not be needed, we store the object here without @@ -15883,17 +14962,13 @@ class ActionDispatch::RemoteIp # those requests that do need to know the IP, the GetIp#calculate_ip method will # calculate the memoized client IP address. # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:95 def call(env); end - # Returns the value of attribute check_ip. - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:51 def check_ip; end - # Returns the value of attribute proxies. - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:51 def proxies; end end @@ -15901,11 +14976,9 @@ end # an actual IP address. If the ActionDispatch::Request#remote_ip method is # called, this class will calculate the value and then memoize it. # -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#104 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:104 class ActionDispatch::RemoteIp::GetIp - # @return [GetIp] a new instance of GetIp - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:105 def initialize(req, check_ip, proxies); end # Sort through the various IP address headers, looking for the IP most likely to @@ -15927,28 +15000,28 @@ class ActionDispatch::RemoteIp::GetIp # list of IPs, remove known and trusted proxies, and then take the last address # left, which was presumably set by one of those proxies. # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:129 def calculate_ip; end # Memoizes the value returned by #calculate_ip and returns it for # ActionDispatch::Request to use. # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:174 def to_s; end private - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:197 def filter_proxies(ips); end - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:179 def ips_from(header); end - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:185 def sanitize_ips(ips); end end -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#34 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:34 class ActionDispatch::RemoteIp::IpSpoofAttackError < ::StandardError; end # The default trusted IPs list simply includes IP addresses that are guaranteed @@ -15956,10 +15029,10 @@ class ActionDispatch::RemoteIp::IpSpoofAttackError < ::StandardError; end # ultimate client IP in production, and so are discarded. See # https://en.wikipedia.org/wiki/Private_network for details. # -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#40 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:40 ActionDispatch::RemoteIp::TRUSTED_PROXIES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/request.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:20 class ActionDispatch::Request include ::ActionDispatch::Flash::RequestMethods include ::Rack::Request::Helpers @@ -15974,87 +15047,85 @@ class ActionDispatch::Request include ::ActionDispatch::RequestCookieMethods extend ::ActionDispatch::Http::Parameters::ClassMethods - # @return [Request] a new instance of Request - # - # source://actionpack//lib/action_dispatch/http/request.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:63 def initialize(env); end # Override Rack's GET method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#400 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:400 def GET; end # Override Rack's POST method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#413 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:413 def POST; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def accept; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def accept_charset; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def accept_encoding; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def accept_language; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def auth_type; end # Returns the authorization header regardless of whether it was specified # directly or through one of the proxy alternatives. # - # source://actionpack//lib/action_dispatch/http/request.rb#465 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:465 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#362 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:362 def body; end - # source://actionpack//lib/action_dispatch/http/request.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:382 def body_stream; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def cache_control; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def client_ip; end - # source://actionpack//lib/action_dispatch/http/request.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:78 def commit_cookie_jar!; end - # source://actionpack//lib/action_dispatch/http/request.rb#497 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:497 def commit_csrf_token; end - # source://actionpack//lib/action_dispatch/http/request.rb#486 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:486 def commit_flash; end # Returns the content length of the request as an integer. # - # source://actionpack//lib/action_dispatch/http/request.rb#297 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:297 def content_length; end - # source://actionpack//lib/action_dispatch/http/request.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:87 def controller_class; end - # source://actionpack//lib/action_dispatch/http/request.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:93 def controller_class_for(name); end - # source://actionpack//lib/action_dispatch/http/request.rb#195 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:195 def controller_instance; end - # source://actionpack//lib/action_dispatch/http/request.rb#199 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:199 def controller_instance=(controller); end - # source://actionpack//lib/action_dispatch/http/request.rb#181 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:181 def engine_script_name(_routes); end - # source://actionpack//lib/action_dispatch/http/request.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:185 def engine_script_name=(name); end # Determine whether the request body contains form-data by checking the request @@ -16065,12 +15136,10 @@ class ActionDispatch::Request # A request body is not assumed to contain form-data when no `Content-Type` # header is provided and the request_method is POST. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#378 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:378 def form_data?; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def from; end # Returns the `String` full path including params of the last URL requested. @@ -16081,53 +15150,49 @@ class ActionDispatch::Request # # get "/articles?page=2" # request.fullpath # => "/articles?page=2" # - # source://actionpack//lib/action_dispatch/http/request.rb#276 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:276 def fullpath; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def gateway_interface; end # Provides access to the request's HTTP headers, for example: # # request.headers["Content-Type"] # => "text/plain" # - # source://actionpack//lib/action_dispatch/http/request.rb#237 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:237 def headers; end - # source://actionpack//lib/action_dispatch/http/request.rb#203 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:203 def http_auth_salt; end - # source://actionpack//lib/action_dispatch/http/request.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header; end - # source://actionpack//lib/action_dispatch/http/request.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header=(val); end - # source://actionpack//lib/action_dispatch/http/request.rb#489 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:489 def inspect; end # Returns the IP address of client as a `String`. # - # source://actionpack//lib/action_dispatch/http/request.rb#311 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:311 def ip; end # Returns true if the request has a header matching the given key parameter. # # request.key? :ip_spoofing_check # => true # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:114 def key?(key); end # True if the request came from localhost, 127.0.0.1, or ::1. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#473 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:473 def local?; end - # source://actionpack//lib/action_dispatch/http/request.rb#482 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:482 def logger; end # The `String` MIME type of the request. @@ -16135,7 +15200,7 @@ class ActionDispatch::Request # # get "/articles" # request.media_type # => "application/x-www-form-urlencoded" # - # source://actionpack//lib/action_dispatch/http/request.rb#292 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:292 def media_type; end # Returns the original value of the environment's REQUEST_METHOD, even if it was @@ -16144,18 +15209,18 @@ class ActionDispatch::Request # For debugging purposes, when called with arguments this method will fall back # to Object#method # - # source://actionpack//lib/action_dispatch/http/request.rb#217 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:217 def method(*args, **_arg1); end # Returns a symbol form of the #method. # - # source://actionpack//lib/action_dispatch/http/request.rb#230 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:230 def method_symbol; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def negotiate; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def origin; end # Returns a `String` with the last requested path including their params. @@ -16166,10 +15231,10 @@ class ActionDispatch::Request # # get '/foo?bar' # request.original_fullpath # => '/foo?bar' # - # source://actionpack//lib/action_dispatch/http/request.rb#265 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:265 def original_fullpath; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def original_script_name; end # Returns the original request URL as a `String`. @@ -16177,53 +15242,49 @@ class ActionDispatch::Request # # get "/articles?page=2" # request.original_url # => "http://www.example.com/articles?page=2" # - # source://actionpack//lib/action_dispatch/http/request.rb#284 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:284 def original_url; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def path_translated; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def pragma; end - # Override Rack's GET method to support indifferent access. - # - # source://actionpack//lib/action_dispatch/http/request.rb#410 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:410 def query_parameters; end - # Returns the value of attribute rack_request. - # - # source://actionpack//lib/action_dispatch/http/request.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:76 def rack_request; end # Read the request body. This is useful for web services that need to work with # raw requests directly. # - # source://actionpack//lib/action_dispatch/http/request.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:353 def raw_post; end - # source://actionpack//lib/action_dispatch/http/request.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:144 def raw_request_method; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def remote_addr; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def remote_host; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def remote_ident; end # Returns the IP address of client as a `String`, usually set by the RemoteIp # middleware. # - # source://actionpack//lib/action_dispatch/http/request.rb#317 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:317 def remote_ip; end - # source://actionpack//lib/action_dispatch/http/request.rb#321 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:321 def remote_ip=(remote_ip); end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def remote_user; end # Returns the unique request id, which is based on either the `X-Request-Id` @@ -16235,10 +15296,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#336 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:336 def request_id; end - # source://actionpack//lib/action_dispatch/http/request.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:340 def request_id=(id); end # Returns the HTTP method that the application should see. In the case where the @@ -16247,35 +15308,33 @@ class ActionDispatch::Request # the application should use), this method returns the overridden value, not the # original. # - # source://actionpack//lib/action_dispatch/http/request.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:151 def request_method; end - # source://actionpack//lib/action_dispatch/http/request.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:189 def request_method=(request_method); end # Returns a symbol form of the #request_method. # - # source://actionpack//lib/action_dispatch/http/request.rb#208 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:208 def request_method_symbol; end - # Override Rack's POST method to support indifferent access. - # - # source://actionpack//lib/action_dispatch/http/request.rb#440 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:440 def request_parameters; end - # source://actionpack//lib/action_dispatch/http/request.rb#477 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:477 def request_parameters=(params); end - # source://actionpack//lib/action_dispatch/http/request.rb#442 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:442 def request_parameters_list; end - # source://actionpack//lib/action_dispatch/http/request.rb#493 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:493 def reset_csrf_token; end - # source://actionpack//lib/action_dispatch/http/request.rb#386 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:386 def reset_session; end - # source://actionpack//lib/action_dispatch/http/request.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:169 def route=(route); end # Returns the URI pattern of the matched route for the request, using the same @@ -16283,13 +15342,13 @@ class ActionDispatch::Request # # request.route_uri_pattern # => "/:controller(/:action(/:id))(.:format)" # - # source://actionpack//lib/action_dispatch/http/request.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:159 def route_uri_pattern; end - # source://actionpack//lib/action_dispatch/http/request.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:173 def routes; end - # source://actionpack//lib/action_dispatch/http/request.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:177 def routes=(routes); end # Early Hints is an HTTP/2 status code that indicates hints to help a client @@ -16306,227 +15365,202 @@ class ActionDispatch::Request # or {stylesheet_link_tag}[rdoc-ref:ActionView::Helpers::AssetTagHelper#stylesheet_link_tag] # the Early Hints headers are included by default if supported. # - # source://actionpack//lib/action_dispatch/http/request.rb#254 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:254 def send_early_hints(links); end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def server_name; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def server_protocol; end # Returns the lowercase name of the HTTP server software. # - # source://actionpack//lib/action_dispatch/http/request.rb#347 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:347 def server_software; end - # source://actionpack//lib/action_dispatch/http/request.rb#391 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:391 def session=(session); end - # source://actionpack//lib/action_dispatch/http/request.rb#395 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:395 def session_options=(options); end - # Returns the unique request id, which is based on either the `X-Request-Id` - # header that can be generated by a firewall, load balancer, or web server, or - # by the RequestId middleware (which sets the `action_dispatch.request_id` - # environment variable). - # - # This unique ID is useful for tracing a request from end-to-end as part of - # logging or debugging. This relies on the Rack variable set by the - # ActionDispatch::RequestId middleware. - # - # source://actionpack//lib/action_dispatch/http/request.rb#344 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:344 def uuid; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def version; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def x_csrf_token; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def x_forwarded_for; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def x_forwarded_host; end - # source://actionpack//lib/action_dispatch/http/request.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:49 def x_request_id; end - # Returns true if the `X-Requested-With` header contains "XMLHttpRequest" - # (case-insensitive), which may need to be manually added depending on the - # choice of JavaScript libraries and frameworks. - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#308 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:308 def xhr?; end # Returns true if the `X-Requested-With` header contains "XMLHttpRequest" # (case-insensitive), which may need to be manually added depending on the # choice of JavaScript libraries and frameworks. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#305 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:305 def xml_http_request?; end private - # source://actionpack//lib/action_dispatch/http/request.rb#502 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:502 def check_method(name); end - # source://actionpack//lib/action_dispatch/http/request.rb#510 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:510 def default_session; end - # source://actionpack//lib/action_dispatch/http/request.rb#540 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:540 def fallback_request_parameters; end - # source://actionpack//lib/action_dispatch/http/request.rb#514 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:514 def read_body_stream; end - # source://actionpack//lib/action_dispatch/http/request.rb#526 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:526 def reset_stream(body_stream); end class << self - # source://actionpack//lib/action_dispatch/http/request.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:59 def empty; end - # source://actionpack//lib/action_dispatch/http/request.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header; end - # source://actionpack//lib/action_dispatch/http/request.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header=(val); end - # source://actionpack//lib/action_dispatch/http/request.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:24 def parameter_parsers; end end end -# source://actionpack//lib/action_dispatch/http/request.rb#326 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:326 ActionDispatch::Request::ACTION_DISPATCH_REQUEST_ID = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/request.rb#35 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:35 ActionDispatch::Request::ENV_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/request.rb#135 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:135 ActionDispatch::Request::HTTP_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/request.rb#137 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:137 ActionDispatch::Request::HTTP_METHOD_LOOKUP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/request.rb#33 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:33 ActionDispatch::Request::LOCALHOST = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/request.rb#81 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:81 class ActionDispatch::Request::PASS_NOT_FOUND class << self - # source://actionpack//lib/action_dispatch/http/request.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:82 def action(_); end - # source://actionpack//lib/action_dispatch/http/request.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:84 def action_encoding_template(action); end - # source://actionpack//lib/action_dispatch/http/request.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:83 def call(_); end end end # HTTP methods from [RFC 2518: HTTP Extensions for Distributed Authoring -- WEBDAV](https://www.ietf.org/rfc/rfc2518.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#121 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:121 ActionDispatch::Request::RFC2518 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1](https://www.ietf.org/rfc/rfc2616.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#119 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:119 ActionDispatch::Request::RFC2616 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 3253: Versioning Extensions to WebDAV](https://www.ietf.org/rfc/rfc3253.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#123 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:123 ActionDispatch::Request::RFC3253 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 3648: WebDAV Ordered Collections Protocol](https://www.ietf.org/rfc/rfc3648.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#125 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:125 ActionDispatch::Request::RFC3648 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 3744: WebDAV Access Control Protocol](https://www.ietf.org/rfc/rfc3744.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#127 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:127 ActionDispatch::Request::RFC3744 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 4791: Calendaring Extensions to WebDAV](https://www.ietf.org/rfc/rfc4791.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#131 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:131 ActionDispatch::Request::RFC4791 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 5323: WebDAV SEARCH](https://www.ietf.org/rfc/rfc5323.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#129 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:129 ActionDispatch::Request::RFC5323 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 5789: PATCH Method for HTTP](https://www.ietf.org/rfc/rfc5789.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#133 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:133 ActionDispatch::Request::RFC5789 = T.let(T.unsafe(nil), Array) # Session is responsible for lazily loading the session from store. # -# source://actionpack//lib/action_dispatch/request/session.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:10 class ActionDispatch::Request::Session - # @return [Session] a new instance of Session - # - # source://actionpack//lib/action_dispatch/request/session.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:76 def initialize(by, req, enabled: T.unsafe(nil)); end # Returns value of the key stored in the session or `nil` if the given key is # not found in the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:114 def [](key); end # Writes given value to given key of the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#154 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:154 def []=(key, value); end # Clears the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:161 def clear; end # Deletes given key from the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:194 def delete(key); end - # source://actionpack//lib/action_dispatch/request/session.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:99 def destroy; end # Returns the nested value specified by the sequence of keys, returning `nil` if # any intermediate step is `nil`. # - # source://actionpack//lib/action_dispatch/request/session.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:127 def dig(*keys); end - # source://actionpack//lib/action_dispatch/request/session.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:245 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#240 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:240 def empty?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:91 def enabled?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#230 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:230 def exists?; end # Returns value of the given key from the session, or raises `KeyError` if can't @@ -16544,79 +15578,52 @@ class ActionDispatch::Request::Session # end # # => :bar # - # source://actionpack//lib/action_dispatch/request/session.rb#213 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:213 def fetch(key, default = T.unsafe(nil), &block); end # Returns true if the session has the given key or false. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:134 def has_key?(key); end - # source://actionpack//lib/action_dispatch/request/session.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:87 def id; end - # source://actionpack//lib/action_dispatch/request/session.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:249 def id_was; end - # Returns true if the session has the given key or false. - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:139 def include?(key); end - # source://actionpack//lib/action_dispatch/request/session.rb#222 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:222 def inspect; end - # Returns true if the session has the given key or false. - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:138 def key?(key); end # Returns keys of the session as Array. # - # source://actionpack//lib/action_dispatch/request/session.rb#142 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:142 def keys; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#236 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:236 def loaded?; end - # Updates the session with given Hash. - # - # session.to_hash - # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2"} - # - # session.update({ "foo" => "bar" }) - # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2", "foo" => "bar"} - # - # session.to_hash - # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2", "foo" => "bar"} - # - # source://actionpack//lib/action_dispatch/request/session.rb#191 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:191 def merge!(hash); end - # source://actionpack//lib/action_dispatch/request/session.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:95 def options; end - # Writes given value to given key of the session. - # - # source://actionpack//lib/action_dispatch/request/session.rb#158 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:158 def store(key, value); end - # Returns the session as Hash. - # - # source://actionpack//lib/action_dispatch/request/session.rb#171 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:171 def to_h; end # Returns the session as Hash. # - # source://actionpack//lib/action_dispatch/request/session.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:167 def to_hash; end # Updates the session with given Hash. @@ -16630,265 +15637,255 @@ class ActionDispatch::Request::Session # session.to_hash # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2", "foo" => "bar"} # - # source://actionpack//lib/action_dispatch/request/session.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:183 def update(hash); end # Returns values of the session as Array. # - # source://actionpack//lib/action_dispatch/request/session.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:148 def values; end private - # source://actionpack//lib/action_dispatch/request/session.rb#271 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:271 def load!; end - # source://actionpack//lib/action_dispatch/request/session.rb#267 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:267 def load_for_delete!; end - # source://actionpack//lib/action_dispatch/request/session.rb#255 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:255 def load_for_read!; end - # source://actionpack//lib/action_dispatch/request/session.rb#259 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:259 def load_for_write!; end class << self # Creates a session hash, merging the properties of the previous session if any. # - # source://actionpack//lib/action_dispatch/request/session.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:19 def create(store, req, default_options); end - # source://actionpack//lib/action_dispatch/request/session.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:43 def delete(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:29 def disabled(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:35 def find(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:39 def set(req, session); end end end -# source://actionpack//lib/action_dispatch/request/session.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:11 class ActionDispatch::Request::Session::DisabledSessionError < ::StandardError; end -# source://actionpack//lib/action_dispatch/request/session.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:12 ActionDispatch::Request::Session::ENV_SESSION_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/request/session.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:13 ActionDispatch::Request::Session::ENV_SESSION_OPTIONS_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/request/session.rb#47 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:47 class ActionDispatch::Request::Session::Options - # @return [Options] a new instance of Options - # - # source://actionpack//lib/action_dispatch/request/session.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:56 def initialize(by, default_options); end - # source://actionpack//lib/action_dispatch/request/session.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:61 def [](key); end - # source://actionpack//lib/action_dispatch/request/session.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:71 def []=(k, v); end - # source://actionpack//lib/action_dispatch/request/session.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:65 def id(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:72 def to_hash; end - # source://actionpack//lib/action_dispatch/request/session.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:73 def values_at(*args); end class << self - # source://actionpack//lib/action_dispatch/request/session.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:52 def find(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:48 def set(req, options); end end end # Singleton object used to determine if an optional param wasn't specified. # -# source://actionpack//lib/action_dispatch/request/session.rb#16 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:16 ActionDispatch::Request::Session::Unspecified = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/http/request.rb#57 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:57 ActionDispatch::Request::TRANSFER_ENCODING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/request/utils.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:9 class ActionDispatch::Request::Utils - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge; end - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge=(val); end class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:31 def check_param_encoding(params); end - # source://actionpack//lib/action_dispatch/request/utils.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:12 def each_param_value(params, &block); end - # source://actionpack//lib/action_dispatch/request/utils.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:23 def normalize_encode_params(params); end - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge; end - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge=(val); end - # source://actionpack//lib/action_dispatch/request/utils.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:46 def set_binary_encoding(request, params, controller, action); end end end -# source://actionpack//lib/action_dispatch/request/utils.rb#85 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:85 class ActionDispatch::Request::Utils::CustomParamEncoder class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:106 def action_encoding_template(request, controller, action); end - # source://actionpack//lib/action_dispatch/request/utils.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:101 def encode(request, params, controller, action); end - # source://actionpack//lib/action_dispatch/request/utils.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:86 def encode_for_template(params, encoding_template); end end end # Remove nils from the params hash. # -# source://actionpack//lib/action_dispatch/request/utils.rb#77 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:77 class ActionDispatch::Request::Utils::NoNilParamEncoder < ::ActionDispatch::Request::Utils::ParamEncoder class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:78 def handle_array(params); end end end -# source://actionpack//lib/action_dispatch/request/utils.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:50 class ActionDispatch::Request::Utils::ParamEncoder class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:71 def handle_array(params); end # Convert nested Hash to HashWithIndifferentAccess. # - # source://actionpack//lib/action_dispatch/request/utils.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:52 def normalize_encode_params(params); end end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:12 module ActionDispatch::RequestCookieMethods - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:50 def authenticated_encrypted_cookie_salt; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:13 def cookie_jar; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:30 def cookie_jar=(jar); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:78 def cookies_digest; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:82 def cookies_rotations; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:74 def cookies_same_site_protection; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:70 def cookies_serializer; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:58 def encrypted_cookie_cipher; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:42 def encrypted_cookie_salt; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:46 def encrypted_signed_cookie_salt; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:26 def have_cookie_jar?; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:34 def key_generator; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:66 def secret_key_base; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:62 def signed_cookie_digest; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:38 def signed_cookie_salt; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:54 def use_authenticated_cookie_encryption; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:86 def use_cookies_with_metadata; end end -# source://actionpack//lib/action_dispatch/testing/request_encoder.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:9 class ActionDispatch::RequestEncoder - # @return [RequestEncoder] a new instance of RequestEncoder - # - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:21 def initialize(mime_name, param_encoder, response_parser, content_type); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:34 def accept_header; end - # Returns the value of attribute content_type. - # - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:19 def content_type; end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:38 def encode_params(params); end - # Returns the value of attribute response_parser. - # - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:19 def response_parser; end class << self - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#47 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:47 def encoder(name); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:42 def parser(content_type); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:51 def register_encoder(mime_name, param_encoder: T.unsafe(nil), response_parser: T.unsafe(nil), content_type: T.unsafe(nil)); end end end -# source://actionpack//lib/action_dispatch/testing/request_encoder.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:10 class ActionDispatch::RequestEncoder::IdentityEncoder - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:12 def accept_header; end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:11 def content_type; end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:13 def encode_params(params); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:14 def response_parser; end end @@ -16908,22 +15905,20 @@ end # The unique request id can be used to trace a request end-to-end and would # typically end up being part of log files from multiple pieces of the stack. # -# source://actionpack//lib/action_dispatch/middleware/request_id.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:24 class ActionDispatch::RequestId - # @return [RequestId] a new instance of RequestId - # - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:25 def initialize(app, header:); end - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:31 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:46 def internal_request_id; end - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:38 def make_request_id(request_id); end end @@ -16955,61 +15950,57 @@ end # end # end # -# source://actionpack//lib/action_dispatch/http/response.rb#38 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:38 class ActionDispatch::Response include ::Rack::Response::Helpers include ::ActionDispatch::Http::FilterRedirect include ::ActionDispatch::Http::Cache::Response include ::MonitorMixin - # @return [Response] a new instance of Response - # @yield [_self] - # @yieldparam _self [ActionDispatch::Response] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/http/response.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:197 def initialize(status = T.unsafe(nil), headers = T.unsafe(nil), body = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/response.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:89 def [](*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/http/response.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:89 def []=(*_arg0, **_arg1, &_arg2); end # Aliasing these off because AD::Http::Cache::Response defines them. # - # source://actionpack//lib/action_dispatch/http/response.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:107 def _cache_control; end - # source://actionpack//lib/action_dispatch/http/response.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:108 def _cache_control=(value); end - # source://actionpack//lib/action_dispatch/http/response.rb#446 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:446 def abort; end - # source://actionpack//lib/action_dispatch/http/response.rb#223 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:223 def await_commit; end - # source://actionpack//lib/action_dispatch/http/response.rb#229 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:229 def await_sent; end # Returns the content of the response as a string. This contains the contents of # any calls to `render`. # - # source://actionpack//lib/action_dispatch/http/response.rb#369 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:369 def body; end # Allows you to manually set or override the response body. # - # source://actionpack//lib/action_dispatch/http/response.rb#384 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:384 def body=(body); end - # source://actionpack//lib/action_dispatch/http/response.rb#433 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:433 def body_parts; end # The charset of the response. HTML wants to know the encoding of the content # you're giving them, so we need to send that along. # - # source://actionpack//lib/action_dispatch/http/response.rb#339 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:339 def charset; end # Sets the HTTP character set. In case of `nil` parameter it sets the charset to @@ -17018,28 +16009,26 @@ class ActionDispatch::Response # response.charset = 'utf-16' # => 'utf-16' # response.charset = nil # => 'utf-8' # - # source://actionpack//lib/action_dispatch/http/response.rb#328 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:328 def charset=(charset); end - # source://actionpack//lib/action_dispatch/http/response.rb#442 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:442 def close; end # Returns a string to ensure compatibility with `Net::HTTPResponse`. # - # source://actionpack//lib/action_dispatch/http/response.rb#350 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:350 def code; end - # source://actionpack//lib/action_dispatch/http/response.rb#233 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:233 def commit!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#257 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:257 def committed?; end # Content type of response. # - # source://actionpack//lib/action_dispatch/http/response.rb#308 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:308 def content_type; end # Sets the HTTP response's content MIME type. For example, in the controller you @@ -17055,57 +16044,41 @@ class ActionDispatch::Response # character set information will also be included in the content type # information. # - # source://actionpack//lib/action_dispatch/http/response.rb#289 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:289 def content_type=(content_type); end # Returns the response cookies, converted to a Hash of (name => value) pairs # # assert_equal 'AuthorOfNewPage', r.cookies['author'] # - # source://actionpack//lib/action_dispatch/http/response.rb#469 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:469 def cookies; end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset; end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers; end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#221 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:221 def delete_header(key); end - # source://actionpack//lib/action_dispatch/http/response.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:91 def each(&block); end - # source://actionpack//lib/action_dispatch/http/response.rb#219 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:219 def get_header(key); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#218 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:218 def has_header?(key); end - # The headers for the response. - # - # header["Content-Type"] # => "text/plain" - # header["Content-Type"] = "application/json" - # header["Content-Type"] # => "application/json" - # - # Also aliased as `headers`. - # - # headers["Content-Type"] # => "text/plain" - # headers["Content-Type"] = "application/json" - # headers["Content-Type"] # => "application/json" - # - # Also aliased as `header` for compatibility. - # - # source://actionpack//lib/action_dispatch/http/response.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:87 def header; end # The headers for the response. @@ -17122,12 +16095,12 @@ class ActionDispatch::Response # # Also aliased as `header` for compatibility. # - # source://actionpack//lib/action_dispatch/http/response.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:85 def headers; end # Media type of response. # - # source://actionpack//lib/action_dispatch/http/response.rb#313 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:313 def media_type; end # Returns the corresponding message for the current HTTP status code: @@ -17138,91 +16111,74 @@ class ActionDispatch::Response # response.status = 404 # response.message # => "Not Found" # - # source://actionpack//lib/action_dispatch/http/response.rb#362 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:362 def message; end - # Turns the Response into a Rack-compatible array of the status, headers, and - # body. Allows explicit splatting: - # - # status, headers, body = *response - # - # source://actionpack//lib/action_dispatch/http/response.rb#464 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:464 def prepare!; end # The location header we'll be responding with. # - # source://actionpack//lib/action_dispatch/http/response.rb#440 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:440 def redirect_url; end # The request that the response is responding to. # - # source://actionpack//lib/action_dispatch/http/response.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:67 def request; end # The request that the response is responding to. # - # source://actionpack//lib/action_dispatch/http/response.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:67 def request=(_arg0); end - # source://actionpack//lib/action_dispatch/http/response.rb#429 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:429 def reset_body!; end # The response code of the request. # - # source://actionpack//lib/action_dispatch/http/response.rb#345 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:345 def response_code; end # Send the file stored at `path` as the response body. # - # source://actionpack//lib/action_dispatch/http/response.rb#424 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:424 def send_file(path); end - # source://actionpack//lib/action_dispatch/http/response.rb#241 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:241 def sending!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#256 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:256 def sending?; end - # source://actionpack//lib/action_dispatch/http/response.rb#317 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:317 def sending_file=(v); end - # source://actionpack//lib/action_dispatch/http/response.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:249 def sent!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:258 def sent?; end - # source://actionpack//lib/action_dispatch/http/response.rb#220 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:220 def set_header(key, v); end # The HTTP status code. # - # source://actionpack//lib/action_dispatch/http/response.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:70 def status; end # Sets the HTTP status code. # - # source://actionpack//lib/action_dispatch/http/response.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:273 def status=(status); end - # Returns the corresponding message for the current HTTP status code: - # - # response.status = 200 - # response.message # => "OK" - # - # response.status = 404 - # response.message # => "Not Found" - # - # source://actionpack//lib/action_dispatch/http/response.rb#365 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:365 def status_message; end # The underlying body, as a streamable object. # - # source://actionpack//lib/action_dispatch/http/response.rb#195 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:195 def stream; end # Turns the Response into a Rack-compatible array of the status, headers, and @@ -17230,171 +16186,143 @@ class ActionDispatch::Response # # status, headers, body = *response # - # source://actionpack//lib/action_dispatch/http/response.rb#460 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:460 def to_a; end - # source://actionpack//lib/action_dispatch/http/response.rb#379 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:379 def write(string); end private - # source://actionpack//lib/action_dispatch/http/response.rb#535 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:535 def assign_default_content_type_and_charset!; end - # source://actionpack//lib/action_dispatch/http/response.rb#513 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:513 def before_committed; end - # source://actionpack//lib/action_dispatch/http/response.rb#521 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:521 def before_sending; end - # source://actionpack//lib/action_dispatch/http/response.rb#531 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:531 def build_buffer(response, body); end - # source://actionpack//lib/action_dispatch/http/response.rb#587 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:587 def handle_no_content!; end - # source://actionpack//lib/action_dispatch/http/response.rb#493 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:493 def parse_content_type(content_type); end # Small internal convenience method to get the parsed version of the current # content type header. # - # source://actionpack//lib/action_dispatch/http/response.rb#503 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:503 def parsed_content_type_header; end - # source://actionpack//lib/action_dispatch/http/response.rb#594 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:594 def rack_response(status, headers); end - # source://actionpack//lib/action_dispatch/http/response.rb#507 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:507 def set_content_type(content_type, charset); end class << self - # source://actionpack//lib/action_dispatch/http/response.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:185 def create(status = T.unsafe(nil), headers = T.unsafe(nil), body = T.unsafe(nil), default_headers: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset; end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers; end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:190 def merge_default_headers(original, default); end - # source://actionpack//lib/action_dispatch/http/response.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:51 def rack_status_code(status); end end end -# source://actionpack//lib/action_dispatch/http/response.rb#114 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:114 class ActionDispatch::Response::Buffer - # @return [Buffer] a new instance of Buffer - # - # source://actionpack//lib/action_dispatch/http/response.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:115 def initialize(response, buf); end - # @raise [IOError] - # - # source://actionpack//lib/action_dispatch/http/response.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:155 def <<(string); end - # source://actionpack//lib/action_dispatch/http/response.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:167 def abort; end - # source://actionpack//lib/action_dispatch/http/response.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:140 def body; end - # source://actionpack//lib/action_dispatch/http/response.rb#170 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:170 def close; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:175 def closed?; end - # source://actionpack//lib/action_dispatch/http/response.rb#157 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:157 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:124 def respond_to?(method, include_private = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/response.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:132 def to_ary; end - # @raise [IOError] - # - # source://actionpack//lib/action_dispatch/http/response.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:148 def write(string); end private - # source://actionpack//lib/action_dispatch/http/response.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:180 def each_chunk(&block); end end -# source://actionpack//lib/action_dispatch/http/response.rb#122 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:122 ActionDispatch::Response::Buffer::BODY_METHODS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/response.rb#98 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:98 ActionDispatch::Response::CONTENT_TYPE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/response.rb#487 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:487 ActionDispatch::Response::CONTENT_TYPE_PARSER = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/response.rb#484 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 class ActionDispatch::Response::ContentTypeHeader < ::Struct - # Returns the value of attribute charset - # - # @return [Object] the current value of charset - # - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def charset; end - # Sets the attribute charset - # - # @param value [Object] the value to set the attribute charset to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def charset=(_); end - # Returns the value of attribute mime_type - # - # @return [Object] the current value of mime_type - # - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def mime_type; end - # Sets the attribute mime_type - # - # @param value [Object] the value to set the attribute mime_type to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def mime_type=(_); end class << self - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def [](*_arg0); end - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def inspect; end - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def keyword_init?; end - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def members; end - # source://actionpack//lib/action_dispatch/http/response.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:484 def new(*_arg0); end end end @@ -17403,79 +16331,71 @@ end # will usually intercept the response and uses the path directly, so there is no # reason to open the file. # -# source://actionpack//lib/action_dispatch/http/response.rb#402 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:402 class ActionDispatch::Response::FileBody - # @return [FileBody] a new instance of FileBody - # - # source://actionpack//lib/action_dispatch/http/response.rb#405 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:405 def initialize(path); end - # source://actionpack//lib/action_dispatch/http/response.rb#409 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:409 def body; end # Stream the file's contents if Rack::Sendfile isn't present. # - # source://actionpack//lib/action_dispatch/http/response.rb#414 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:414 def each; end - # source://actionpack//lib/action_dispatch/http/response.rb#403 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:403 def to_path; end end # To be deprecated: # -# source://actionpack//lib/action_dispatch/http/response.rb#64 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:64 ActionDispatch::Response::Header = Rack::Headers -# source://actionpack//lib/action_dispatch/http/response.rb#42 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:42 ActionDispatch::Response::Headers = Rack::Headers -# source://actionpack//lib/action_dispatch/http/response.rb#100 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:100 ActionDispatch::Response::NO_CONTENT_CODES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/response.rb#485 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:485 ActionDispatch::Response::NullContentTypeHeader = T.let(T.unsafe(nil), ActionDispatch::Response::ContentTypeHeader) -# source://actionpack//lib/action_dispatch/http/response.rb#543 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:543 class ActionDispatch::Response::RackBody - # @return [RackBody] a new instance of RackBody - # - # source://actionpack//lib/action_dispatch/http/response.rb#544 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:544 def initialize(response); end - # source://actionpack//lib/action_dispatch/http/response.rb#556 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:556 def body; end - # source://actionpack//lib/action_dispatch/http/response.rb#578 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:578 def call(*arguments, &block); end - # source://actionpack//lib/action_dispatch/http/response.rb#550 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:550 def close; end - # source://actionpack//lib/action_dispatch/http/response.rb#574 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:574 def each(*args, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#562 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:562 def respond_to?(method, include_private = T.unsafe(nil)); end - # Returns the value of attribute response. - # - # source://actionpack//lib/action_dispatch/http/response.rb#548 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:548 def response; end - # source://actionpack//lib/action_dispatch/http/response.rb#570 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:570 def to_ary; end - # source://actionpack//lib/action_dispatch/http/response.rb#582 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:582 def to_path; end end -# source://actionpack//lib/action_dispatch/http/response.rb#560 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:560 ActionDispatch::Response::RackBody::BODY_METHODS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/response.rb#99 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:99 ActionDispatch::Response::SET_COOKIE = T.let(T.unsafe(nil), String) # The routing module provides URL rewriting in native Ruby. It's a way to @@ -17721,161 +16641,147 @@ ActionDispatch::Response::SET_COOKIE = T.let(T.unsafe(nil), String) # Target a specific controller with `-c`, or grep routes using `-g`. Useful in # conjunction with `--expanded` which displays routes vertically. # -# source://actionpack//lib/action_dispatch/routing.rb#248 +# pkg:gem/actionpack#lib/action_dispatch/routing.rb:248 module ActionDispatch::Routing extend ::ActiveSupport::Autoload end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#158 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:158 module ActionDispatch::Routing::ConsoleFormatter; end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#159 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:159 class ActionDispatch::Routing::ConsoleFormatter::Base - # @return [Base] a new instance of Base - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:160 def initialize; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:177 def footer(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:174 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:180 def no_routes(engine, routes, filter); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#164 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:164 def result; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#171 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:171 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:168 def section_title(title); end end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#244 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:244 class ActionDispatch::Routing::ConsoleFormatter::Expanded < ::ActionDispatch::Routing::ConsoleFormatter::Base - # @return [Expanded] a new instance of Expanded - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:245 def initialize(width: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:258 def footer(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#254 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:254 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#250 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:250 def section_title(title); end private - # source://actionpack//lib/action_dispatch/routing/inspector.rb#263 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:263 def draw_expanded_section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#278 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:278 def route_header(index:); end end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#204 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:204 class ActionDispatch::Routing::ConsoleFormatter::Sheet < ::ActionDispatch::Routing::ConsoleFormatter::Base - # source://actionpack//lib/action_dispatch/routing/inspector.rb#217 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:217 def footer(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#213 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:213 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#209 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:209 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#205 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:205 def section_title(title); end private - # source://actionpack//lib/action_dispatch/routing/inspector.rb#231 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:231 def draw_header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#222 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:222 def draw_section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#237 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:237 def widths(routes); end end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#283 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:283 class ActionDispatch::Routing::ConsoleFormatter::Unused < ::ActionDispatch::Routing::ConsoleFormatter::Sheet - # source://actionpack//lib/action_dispatch/routing/inspector.rb#284 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:284 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#292 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:292 def no_routes(engine, routes, filter); end end -# source://actionpack//lib/action_dispatch/routing/endpoint.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:7 class ActionDispatch::Routing::Endpoint - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:11 def app; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#8 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:8 def dispatcher?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:14 def engine?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:10 def matches?(req); end - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:12 def rack_app; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:9 def redirect?; end end -# source://actionpack//lib/action_dispatch/routing.rb#260 +# pkg:gem/actionpack#lib/action_dispatch/routing.rb:260 ActionDispatch::Routing::HTTP_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/inspector.rb#305 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:305 class ActionDispatch::Routing::HtmlTableFormatter - # @return [HtmlTableFormatter] a new instance of HtmlTableFormatter - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#306 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:306 def initialize(view); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#323 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:323 def footer(routes); end # The header is part of the HTML page, so we don't construct it here. # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#320 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:320 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#326 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:326 def no_routes(*_arg0); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#339 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:339 def result; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#315 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:315 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#311 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:311 def section_title(title); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:14 class ActionDispatch::Routing::Mapper include ::ActionDispatch::Routing::Mapper::Base include ::ActionDispatch::Routing::Mapper::HttpHelpers @@ -17885,57 +16791,51 @@ class ActionDispatch::Routing::Mapper include ::ActionDispatch::Routing::Mapper::Resources include ::ActionDispatch::Routing::Mapper::CustomUrls - # @return [Mapper] a new instance of Mapper - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2530 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2530 def initialize(set); end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:27 def backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:27 def backtrace_cleaner=(val); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#407 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:407 def normalize_name(name); end # Invokes Journey::Router::Utils.normalize_path, then ensures that /(:locale) # becomes (/:locale). Except for root cases, where the former is the correct # one. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#392 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:392 def normalize_path(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:26 def route_source_locations; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:26 def route_source_locations=(val); end end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:15 class ActionDispatch::Routing::Mapper::BacktraceCleaner < ::ActiveSupport::BacktraceCleaner - # @return [BacktraceCleaner] a new instance of BacktraceCleaner - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:16 def initialize; end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#411 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:411 module ActionDispatch::Routing::Mapper::Base - # source://actionpack//lib/action_dispatch/routing/mapper.rb#653 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:653 def default_url_options(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#650 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:650 def default_url_options=(options); end # Query if the following named route was already defined. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#662 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:662 def has_named_route?(name); end # Matches a URL pattern to one or more routes. @@ -18100,7 +17000,7 @@ module ActionDispatch::Routing::Mapper::Base # :format # disable it by supplying `false`. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#587 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:587 def match(path, options = T.unsafe(nil)); end # Mount a Rack-based application to be used within the application. @@ -18119,31 +17019,27 @@ module ActionDispatch::Routing::Mapper::Base # This will generate the `exciting_path` and `exciting_url` helpers which can be # used to navigate to this mounted app. # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#605 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:605 def mount(app = T.unsafe(nil), deprecated_options = T.unsafe(nil), as: T.unsafe(nil), via: T.unsafe(nil), at: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#655 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:655 def with_default_scope(scope, &block); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#689 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:689 def app_name(app, rails_app); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#667 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:667 def assign_deprecated_option(deprecated_options, key, method_name); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#676 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:676 def assign_deprecated_options(deprecated_options, options, method_name); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#698 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:698 def define_generate_prefix(app, name); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#685 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:685 def rails_app?(app); end end @@ -18168,7 +17064,7 @@ end # concerns :commentable # end # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2242 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2242 module ActionDispatch::Routing::Mapper::Concerns # Define a routing concern using a name. # @@ -18225,7 +17121,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#2297 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2297 def concern(name, callable = T.unsafe(nil), &block); end # Use the named concerns @@ -18240,53 +17136,43 @@ module ActionDispatch::Routing::Mapper::Concerns # concerns :commentable # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2313 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2313 def concerns(*args, **options); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:29 class ActionDispatch::Routing::Mapper::Constraints < ::ActionDispatch::Routing::Endpoint - # @return [Constraints] a new instance of Constraints - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:35 def initialize(app, constraints, strategy); end - # Returns the value of attribute app. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:30 def app; end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:30 def constraints; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:50 def dispatcher?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:52 def matches?(req); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:59 def serve(req); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:66 def constraint_args(constraint, request); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#33 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:33 ActionDispatch::Routing::Mapper::Constraints::CALL = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#32 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:32 ActionDispatch::Routing::Mapper::Constraints::SERVE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2324 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2324 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, @@ -18338,7 +17224,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#2374 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2374 def direct(name, options = T.unsafe(nil), &block); end # Define custom polymorphic mappings of models to URLs. This alters the behavior @@ -18386,14 +17272,14 @@ 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#2426 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2426 def resolve(*args, &block); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2528 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2528 ActionDispatch::Routing::Mapper::DEFAULT = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#733 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:733 module ActionDispatch::Routing::Mapper::HttpHelpers # Define a route that recognizes HTTP CONNECT (and GET) requests. More # specifically this recognizes HTTP/1 protocol upgrade requests and HTTP/2 @@ -18402,7 +17288,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # connect 'live', to: 'live#index' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#884 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:884 def connect(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # Define a route that only recognizes HTTP DELETE. For supported arguments, see @@ -18410,7 +17296,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # delete 'broccoli', to: 'food#broccoli' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#834 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:834 def delete(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # Define a route that only recognizes HTTP GET. For supported arguments, see @@ -18418,7 +17304,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # get 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#738 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:738 def get(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # Define a route that only recognizes HTTP OPTIONS. For supported arguments, see @@ -18426,7 +17312,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # options 'carrots', to: 'food#carrots' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#858 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:858 def options(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # Define a route that only recognizes HTTP PATCH. For supported arguments, see @@ -18434,7 +17320,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # patch 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#786 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:786 def patch(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # Define a route that only recognizes HTTP POST. For supported arguments, see @@ -18442,7 +17328,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # post 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#762 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:762 def post(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # Define a route that only recognizes HTTP PUT. For supported arguments, see @@ -18450,145 +17336,123 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # put 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#810 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:810 def put(*path_or_actions, as: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#83 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:83 class ActionDispatch::Routing::Mapper::Mapping - # @return [Mapping] a new instance of Mapping - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:132 def initialize(set:, ast:, controller:, default_action:, to:, formatted:, via:, options_constraints:, anchor:, scope_params:, internal:, options:); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:190 def application; end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def ast; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:194 def conditions; end - # Returns the value of attribute default_action. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def default_action; end - # Returns the value of attribute default_controller. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def default_controller; end - # Returns the value of attribute defaults. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def defaults; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:183 def make_route(name, precedence); end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def path; end - # Returns the value of attribute required_defaults. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def required_defaults; end - # Returns the value of attribute requirements. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def requirements; end - # Returns the value of attribute scope_options. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def scope_options; end - # Returns the value of attribute to. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def to; end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#329 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:329 def add_controller_module(controller, modyoule); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#290 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:290 def app(blocks); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#348 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:348 def blocks(callable_constraint); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#198 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:198 def build_conditions(current_conditions, request_class); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#302 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:302 def check_controller_and_action(path_params, controller, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#317 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:317 def check_part(name, part, path_params, hash); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:355 def constraints(options, path_params); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#369 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:369 def dispatcher(raise_on_name_error); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#208 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:208 def intern(object); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#286 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:286 def normalize_defaults(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#254 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:254 def normalize_format(formatted); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#212 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:212 def normalize_options!(options, path_params, modyoule); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#373 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:373 def route_source_location; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#248 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:248 def split_constraints(path_params, constraints); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#341 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:341 def translate_controller(controller); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#270 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:270 def verify_regexp_requirements(requirements, wildcard_options); end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#90 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:90 def build(scope, set, ast, controller, default_action, to, via, formatted, options_constraints, anchor, internal, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:104 def check_via(via); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:116 def normalize_path(path, format); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:128 def optional_format?(path, format); end end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:84 ActionDispatch::Routing::Mapper::Mapping::ANCHOR_CHARACTERS_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#181 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:181 ActionDispatch::Routing::Mapper::Mapping::JOINED_SEPARATORS = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#85 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:85 ActionDispatch::Routing::Mapper::Mapping::OPTIONAL_FORMAT_REGEX = T.let(T.unsafe(nil), Regexp) # Resource routing allows you to quickly declare all of the common routes for a @@ -18629,7 +17493,7 @@ ActionDispatch::Routing::Mapper::Mapping::OPTIONAL_FORMAT_REGEX = T.let(T.unsafe # # This allows any character other than a slash as part of your `:id`. # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1299 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1299 module ActionDispatch::Routing::Mapper::Resources # To add a route to the collection: # @@ -18643,7 +17507,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#1707 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1707 def collection(&block); end # Loads another routes file with the given `name` located inside the @@ -18669,7 +17533,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#1816 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1816 def draw(name); end # Matches a URL pattern to one or more routes. For more information, see @@ -18678,9 +17542,7 @@ module ActionDispatch::Routing::Mapper::Resources # match 'path', to: 'controller#action', via: :post # match 'otherpath', on: :member, via: :get # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1837 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1837 def match(*path_or_actions, as: T.unsafe(nil), via: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), defaults: T.unsafe(nil), constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), internal: T.unsafe(nil), **mapping, &block); end # To add a member route, add a member block into the resource block: @@ -18695,18 +17557,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#1728 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1728 def member(&block); end # See ActionDispatch::Routing::Mapper::Scoping#namespace. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1775 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1775 def namespace(name, deprecated_options = T.unsafe(nil), as: T.unsafe(nil), path: T.unsafe(nil), shallow_path: T.unsafe(nil), shallow_prefix: T.unsafe(nil), **options, &block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1754 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1754 def nested(&block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1744 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1744 def new(&block); end # Sometimes, you have a resource that clients always look up without referencing @@ -18739,7 +17601,7 @@ module ActionDispatch::Routing::Mapper::Resources # ### Options # Takes same options as [resources](rdoc-ref:#resources) # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1490 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1490 def resource(*resources, concerns: T.unsafe(nil), **options, &block); end # In Rails, a resourceful route provides a mapping between HTTP verbs and URLs @@ -18875,10 +17737,10 @@ module ActionDispatch::Routing::Mapper::Resources # # resource actions are at /admin/posts. # resources :posts, path: "admin/posts" # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1663 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1663 def resources(*resources, concerns: T.unsafe(nil), **options, &block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1457 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1457 def resources_path_names(options); end # You can specify what Rails should route "/" to with the root method: @@ -18895,262 +17757,224 @@ module ActionDispatch::Routing::Mapper::Resources # means it will be matched first. As this is the most popular route of most # Rails applications, this is beneficial. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1903 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1903 def root(path, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1783 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1783 def shallow; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1790 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1790 def shallow?; end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1968 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1968 def action_options?(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2066 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2066 def action_path(name); end - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2195 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2195 def add_route(action, controller, as, options_action, _path, to, via, formatted, anchor, options_constraints, internal, options_mapping); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2120 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2120 def api_only?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1982 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1982 def applicable_actions_for(method); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1963 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1963 def apply_action_options(method, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1928 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1928 def apply_common_behavior_for(method, resources, shallow: T.unsafe(nil), **options, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2041 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2041 def canonical_action?(action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2180 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2180 def decomposed_match(path, controller, as, action, _path, to, via, formatted, anchor, options_constraints, internal, options_mapping, on = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2165 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2165 def get_to_from_path(path, to, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2131 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2131 def map_match(path_or_action, constraints: T.unsafe(nil), anchor: T.unsafe(nil), format: T.unsafe(nil), path: T.unsafe(nil), as: T.unsafe(nil), via: T.unsafe(nil), to: T.unsafe(nil), controller: T.unsafe(nil), action: T.unsafe(nil), on: T.unsafe(nil), internal: T.unsafe(nil), mapping: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2217 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2217 def match_root_route(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2082 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2082 def name_for_action(as, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2018 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2018 def nested_options; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1999 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1999 def nested_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2037 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2037 def param_constraint; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2033 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2033 def param_constraint?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1924 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1924 def parent_resource; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2056 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2056 def path_for_action(action, path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2124 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2124 def path_scope(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2070 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2070 def prefix_name_for_action(as, action); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1995 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1995 def resource_method_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2010 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2010 def resource_scope(resource, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1991 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1991 def resource_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1972 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1972 def scope_action_options(method); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2108 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2108 def set_member_mappings_for_resource; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2027 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2027 def shallow_nesting_depth; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2045 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2045 def shallow_scope; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2176 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2176 def using_match_shorthand?(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2003 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2003 def with_scope_level(kind); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1304 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1304 ActionDispatch::Routing::Mapper::Resources::CANONICAL_ACTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1303 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1303 ActionDispatch::Routing::Mapper::Resources::RESOURCE_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1306 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1306 class ActionDispatch::Routing::Mapper::Resources::Resource - # @return [Resource] a new instance of Resource - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1319 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1319 def initialize(entities, api_only, shallow, only: T.unsafe(nil), except: T.unsafe(nil), **options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1346 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1346 def actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1354 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1354 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#1378 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1378 def collection_name; end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1386 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1386 def collection_scope; end - # Returns the value of attribute controller. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1317 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1317 def controller; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1342 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1342 def default_actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1374 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1374 def member_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1388 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1388 def member_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1362 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1362 def name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1398 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1398 def nested_param; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1402 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1402 def nested_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1394 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1394 def new_scope(new_path); end - # Returns the value of attribute param. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1317 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1317 def param; end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1317 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1317 def path; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1366 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1366 def plural; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1382 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1382 def resource_scope; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1406 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1406 def shallow?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1392 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1392 def shallow_scope; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1410 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1410 def singleton?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1370 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1370 def singular; end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1413 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1413 def invalid_only_except_options(valid_actions, only:, except:); end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1308 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1308 def default_actions(api_only); end end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1418 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1418 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#1429 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1429 def initialize(entities, api_only, shallow, **options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1449 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1449 def collection_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1436 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1436 def default_actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1448 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1448 def member_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1451 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1451 def member_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1452 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1452 def nested_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1440 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1440 def plural; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1454 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1454 def singleton?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1444 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1444 def singular; end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1420 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1420 def default_actions(api_only); end end end @@ -19158,90 +17982,72 @@ end # CANONICAL_ACTIONS holds all actions that does not need a prefix or a path # appended since they fit properly in their scope level. # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1302 ActionDispatch::Routing::Mapper::Resources::VALID_ON_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2440 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2440 class ActionDispatch::Routing::Mapper::Scope include ::Enumerable - # @return [Scope] a new instance of Scope - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2450 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2450 def initialize(hash, parent = T.unsafe(nil), scope_level = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2509 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2509 def [](key); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2476 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2476 def action_name(name_prefix, prefix, collection_name, member_name); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2517 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2517 def each; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2513 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2513 def frame; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2456 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2456 def nested?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2501 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2501 def new(hash); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2505 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2505 def new_level(level); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2460 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2460 def null?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2497 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2497 def options; end - # Returns the value of attribute parent. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2448 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2448 def parent; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2472 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2472 def resource_method_scope?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2493 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2493 def resource_scope?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2468 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2468 def resources?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2464 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2464 def root?; end - # Returns the value of attribute scope_level. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2448 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2448 def scope_level; end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2441 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2441 ActionDispatch::Routing::Mapper::Scope::OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2446 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2446 ActionDispatch::Routing::Mapper::Scope::RESOURCE_METHOD_SCOPES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2445 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2445 ActionDispatch::Routing::Mapper::Scope::RESOURCE_SCOPES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2525 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2525 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 @@ -19298,7 +18104,7 @@ ActionDispatch::Routing::Mapper::Scope::ROOT = T.let(T.unsafe(nil), ActionDispat # PATCH/PUT /admin/posts/1 # DELETE /admin/posts/1 # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#958 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:958 module ActionDispatch::Routing::Mapper::Scoping # ### Parameter Restriction # Allows you to constrain the nested routes based on a set of rules. For @@ -19359,7 +18165,7 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :iphones # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1176 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1176 def constraints(constraints = T.unsafe(nil), &block); end # Scopes routes to a specific controller @@ -19368,7 +18174,7 @@ module ActionDispatch::Routing::Mapper::Scoping # match "bacon", action: :bacon, via: :get # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1052 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1052 def controller(controller); end # Allows you to set default parameters for a route, such as this: @@ -19379,7 +18185,7 @@ module ActionDispatch::Routing::Mapper::Scoping # # Using this, the `:id` parameter here will default to 'home'. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1187 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1187 def defaults(defaults = T.unsafe(nil)); end # Scopes routes to a specific namespace. For example: @@ -19421,7 +18227,7 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :posts # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1097 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1097 def namespace(name, deprecated_options = T.unsafe(nil), as: T.unsafe(nil), path: T.unsafe(nil), shallow_path: T.unsafe(nil), shallow_prefix: T.unsafe(nil), **options, &block); end # Scopes a set of routes to the given default options. @@ -19455,95 +18261,93 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :posts # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#989 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:989 def scope(*args, only: T.unsafe(nil), except: T.unsafe(nil), **options); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1219 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1219 def merge_action_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1203 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1203 def merge_as_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1243 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1243 def merge_blocks_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1235 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1235 def merge_constraints_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1215 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1215 def merge_controller_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1239 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1239 def merge_defaults_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1227 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1227 def merge_format_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1211 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1211 def merge_module_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1249 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1249 def merge_options_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1231 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1231 def merge_path_names_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1195 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1195 def merge_path_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1199 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1199 def merge_shallow_path_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1207 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1207 def merge_shallow_prefix_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1253 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1253 def merge_shallow_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1257 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1257 def merge_to_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1223 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1223 def merge_via_scope(parent, child); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1045 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1045 ActionDispatch::Routing::Mapper::Scoping::POISON = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:24 ActionDispatch::Routing::Mapper::URL_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/redirection.rb#116 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:116 class ActionDispatch::Routing::OptionRedirect < ::ActionDispatch::Routing::Redirect - # source://actionpack//lib/action_dispatch/routing/redirection.rb#145 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:145 def inspect; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:117 def options; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#119 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:119 def path(params, request); end end -# source://actionpack//lib/action_dispatch/routing/redirection.rb#91 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:91 class ActionDispatch::Routing::PathRedirect < ::ActionDispatch::Routing::Redirect - # source://actionpack//lib/action_dispatch/routing/redirection.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:106 def inspect; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:94 def path(params, request); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:111 def interpolation_required?(string, params); end end -# source://actionpack//lib/action_dispatch/routing/redirection.rb#92 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:92 ActionDispatch::Routing::PathRedirect::URL_PARTS = T.let(T.unsafe(nil), Regexp) # # Action Dispatch Routing PolymorphicRoutes @@ -19605,23 +18409,23 @@ ActionDispatch::Routing::PathRedirect::URL_PARTS = T.let(T.unsafe(nil), Regexp) # polymorphic_url([blog, @post]) # calls blog.post_path(@post) # form_with(model: [blog, @post]) # => "/blog/posts/1" # -# source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#66 +# pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:66 module ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def edit_polymorphic_path(record_or_hash, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def edit_polymorphic_url(record_or_hash, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def new_polymorphic_path(record_or_hash, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def new_polymorphic_url(record_or_hash, options = T.unsafe(nil)); end # Returns the path component of a URL for the given record. # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:133 def polymorphic_path(record_or_hash_or_array, options = T.unsafe(nil)); end # Constructs a call to a named RESTful route for the given record and returns @@ -19667,149 +18471,133 @@ module ActionDispatch::Routing::PolymorphicRoutes # # the class of a record will also map to the collection # polymorphic_url(Comment) # same as comments_url() # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:110 def polymorphic_url(record_or_hash_or_array, options = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:177 def polymorphic_mapping(record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:173 def polymorphic_path_for_action(action, record_or_hash, options); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:169 def polymorphic_url_for_action(action, record_or_hash, options); end end -# source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#185 +# pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:185 class ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder - # @return [HelperMethodBuilder] a new instance of HelperMethodBuilder - # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#248 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:248 def initialize(key_strategy, prefix, suffix); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#262 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:262 def handle_class(klass); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#266 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:266 def handle_class_call(target, klass); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#293 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:293 def handle_list(list); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#270 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:270 def handle_model(record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#284 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:284 def handle_model_call(target, record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#254 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:254 def handle_string(record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:258 def handle_string_call(target, str); end - # Returns the value of attribute prefix. - # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#246 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:246 def prefix; end - # Returns the value of attribute suffix. - # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#246 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:246 def suffix; end private - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#347 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:347 def get_method_for_class(klass); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:352 def get_method_for_string(str); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#339 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:339 def polymorphic_mapping(target, record); end class << self - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#196 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:196 def build(action, type); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#188 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:188 def get(action, type); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:194 def path; end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#210 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:210 def plural(prefix, suffix); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#214 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:214 def polymorphic_method(recipient, record_or_hash_or_array, action, type, options); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:206 def singular(prefix, suffix); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#193 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:193 def url; end end end -# source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#186 +# pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:186 ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder::CACHE = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/routing/redirection.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:12 class ActionDispatch::Routing::Redirect < ::ActionDispatch::Routing::Endpoint - # @return [Redirect] a new instance of Redirect - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:15 def initialize(status, block, source_location); end - # Returns the value of attribute block. - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:13 def block; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:37 def build_response(req); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:23 def call(env); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:69 def inspect; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:65 def path(params, request); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:21 def redirect?; end - # Returns the value of attribute status. - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:13 def status; end private - # source://actionpack//lib/action_dispatch/routing/redirection.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:78 def escape(params); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:82 def escape_fragment(params); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:86 def escape_path(params); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:74 def relative_path?(path); end end -# source://actionpack//lib/action_dispatch/routing/redirection.rb#150 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:150 module ActionDispatch::Routing::Redirection # Redirect any path to another path: # @@ -19866,133 +18654,97 @@ module ActionDispatch::Routing::Redirection # # get 'accounts/:name' => redirect(SubdomainRedirector.new('api')) # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:206 def redirect(*args, &block); end end # The RouteSet contains a collection of Route instances, representing the routes # typically defined in `config/routes.rb`. # -# source://actionpack//lib/action_dispatch/routing/route_set.rb#17 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:17 class ActionDispatch::Routing::RouteSet - # @return [RouteSet] a new instance of RouteSet - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#386 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:386 def initialize(config = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#674 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:674 def add_polymorphic_mapping(klass, options, &block); end - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#643 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:643 def add_route(mapping, name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#678 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:678 def add_url_helper(name, options, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#417 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:417 def api_only?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#464 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:464 def append(&block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#903 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:903 def call(env); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#488 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:488 def clear!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#438 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:438 def default_env; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#421 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:421 def default_scope; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#425 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:425 def default_scope=(new_default_scope); end - # Returns the value of attribute default_url_options. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def default_url_options; end - # Sets the attribute default_url_options - # - # @param value the value to set the attribute default_url_options to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#509 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:509 def define_mounted_helper(name, script_namer = T.unsafe(nil)); end - # Returns the value of attribute disable_clear_and_finalize. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:353 def disable_clear_and_finalize; end - # Sets the attribute disable_clear_and_finalize - # - # @param value the value to set the attribute disable_clear_and_finalize to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:353 def disable_clear_and_finalize=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#457 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:457 def draw(&block); end - # Returns the value of attribute draw_paths. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def draw_paths; end - # Sets the attribute draw_paths - # - # @param value the value to set the attribute draw_paths to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def draw_paths=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#406 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:406 def eager_load!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#639 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:639 def empty?; end - # Returns the value of attribute env_key. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:355 def env_key; end # Generate the path indicated by the arguments, and return an array of the keys # that were not used to generate it. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#818 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:818 def extra_keys(options, recall = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#482 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:482 def finalize!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#846 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:846 def find_script_name(options); end - # Returns the value of attribute formatter. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def formatter; end - # Sets the attribute formatter - # - # @param value the value to set the attribute formatter to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def formatter=(_arg0); end # Returns a Route matching the given requirements, or `nil` if none are found. @@ -20007,296 +18759,221 @@ class ActionDispatch::Routing::RouteSet # # Rails.application.routes.from_requirements(controller: "posts", action: "show") # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:29 def from_requirements(requirements); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#822 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:822 def generate_extras(options, recall = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#536 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:536 def generate_url_helpers(supports_path); end # Since the router holds references to many parts of the system like engines, # controllers and the application itself, inspecting the route set can actually # be really slow, therefore we default alias inspect to to_s. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:37 def inspect; end # Contains all the mounted helpers across different engines and the `main_app` # helper for the application. You can include this in your classes if you want # to access routes for other engines. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#505 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:505 def mounted_helpers; end - # Returns the value of attribute named_routes. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def named_routes; end - # Sets the attribute named_routes - # - # @param value the value to set the attribute named_routes to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def named_routes=(_arg0); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#842 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:842 def optimize_routes_generation?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#850 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:850 def path_for(options, route_name = T.unsafe(nil), reserved = T.unsafe(nil)); end - # Returns the value of attribute polymorphic_mappings. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:355 def polymorphic_mappings; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#468 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:468 def prepend(&block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#909 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:909 def recognize_path(path, environment = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#924 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:924 def recognize_path_with_request(req, path, extras, raise_on_missing: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#413 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:413 def relative_url_root; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#429 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:429 def request_class; end - # Returns the value of attribute resources_path_names. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:353 def resources_path_names; end - # Sets the attribute resources_path_names - # - # @param value the value to set the attribute resources_path_names to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:353 def resources_path_names=(_arg0); end - # Returns the value of attribute router. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def router; end - # Sets the attribute router - # - # @param value the value to set the attribute router to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def router=(_arg0); end - # Returns the value of attribute set. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#357 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:357 def routes; end - # Returns the value of attribute set. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def set; end - # Sets the attribute set - # - # @param value the value to set the attribute set to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 def set=(_arg0); end # The `options` argument must be a hash whose keys are **symbols**. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#855 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:855 def url_for(options, route_name = T.unsafe(nil), url_strategy = T.unsafe(nil), method_name = T.unsafe(nil), reserved = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#528 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:528 def url_helpers(supports_path = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#472 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:472 def eval_block(block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#833 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:833 def generate(route_name, options, recall = T.unsafe(nil), method_name = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#433 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:433 def make_request(env); end class << self - # source://actionpack//lib/action_dispatch/routing/route_set.rb#359 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:359 def default_resources_path_names; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#363 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:363 def new_with_config(config); end end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#382 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 class ActionDispatch::Routing::RouteSet::Config < ::Struct - # Returns the value of attribute api_only - # - # @return [Object] the current value of api_only - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def api_only; end - # Sets the attribute api_only - # - # @param value [Object] the value to set the attribute api_only to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def api_only=(_); end - # Returns the value of attribute default_scope - # - # @return [Object] the current value of default_scope - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def default_scope; end - # Sets the attribute default_scope - # - # @param value [Object] the value to set the attribute default_scope to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def default_scope=(_); end - # Returns the value of attribute relative_url_root - # - # @return [Object] the current value of relative_url_root - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def relative_url_root; end - # Sets the attribute relative_url_root - # - # @param value [Object] the value to set the attribute relative_url_root to. - # @return [Object] the newly set value - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def relative_url_root=(_); end class << self - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def [](*_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def inspect; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def keyword_init?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def members; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:382 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#682 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:682 class ActionDispatch::Routing::RouteSet::CustomUrlHelper - # @return [CustomUrlHelper] a new instance of CustomUrlHelper - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#685 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:685 def initialize(name, defaults, &block); end - # Returns the value of attribute block. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#683 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:683 def block; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#691 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:691 def call(t, args, only_path = T.unsafe(nil)); end - # Returns the value of attribute defaults. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#683 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:683 def defaults; end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#683 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:683 def name; end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#703 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:703 def eval_block(t, args, options); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#707 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:707 def merge_defaults(options); end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#384 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 ActionDispatch::Routing::RouteSet::DEFAULT_CONFIG = T.let(T.unsafe(nil), ActionDispatch::Routing::RouteSet::Config) -# source://actionpack//lib/action_dispatch/routing/route_set.rb#39 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:39 class ActionDispatch::Routing::RouteSet::Dispatcher < ::ActionDispatch::Routing::Endpoint - # @return [Dispatcher] a new instance of Dispatcher - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:40 def initialize(raise_on_name_error); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:44 def dispatcher?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:46 def serve(req); end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:60 def controller(req); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:64 def dispatch(controller, action, req, res); end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#712 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:712 class ActionDispatch::Routing::RouteSet::Generator - # @return [Generator] a new instance of Generator - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#715 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:715 def initialize(named_route, options, recall, set); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#727 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:727 def controller; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#731 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:731 def current_controller; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#801 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:801 def different_controller?; end # Generates a path from routes, returns a RouteWithParams or MissingRoute. # MissingRoute will raise ActionController::UrlGenerationError. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#797 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:797 def generate; end - # Returns the value of attribute named_route. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#713 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:713 def named_route; end # Remove leading slashes from controllers # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#785 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:785 def normalize_controller!; end # This pulls :controller, :action, and :id out of the recall. The recall key is @@ -20304,48 +18981,40 @@ class ActionDispatch::Routing::RouteSet::Generator # identical. If any of :controller, :action or :id is not found, don't pull any # more keys from the recall. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#767 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:767 def normalize_controller_action_id!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#743 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:743 def normalize_options!; end - # Returns the value of attribute options. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#713 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:713 def options; end - # Returns the value of attribute recall. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#713 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:713 def recall; end - # Returns the value of attribute set. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#713 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:713 def set; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#735 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:735 def use_recall_for(key); end # if the current controller is "foo/bar/baz" and controller: "baz/bat" is # specified, the controller becomes "foo/baz/bat" # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#775 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:775 def use_relative_controller!; end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#807 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:807 def named_route_exists?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#811 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:811 def segment_keys; end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#497 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:497 module ActionDispatch::Routing::RouteSet::MountedHelpers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -20370,69 +19039,59 @@ end # maintains an anonymous module that can be used to install helpers for the # named routes. # -# source://actionpack//lib/action_dispatch/routing/route_set.rb#82 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:82 class ActionDispatch::Routing::RouteSet::NamedRouteCollection include ::Enumerable - # @return [NamedRouteCollection] a new instance of NamedRouteCollection - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:87 def initialize; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:147 def [](name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#146 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:146 def []=(name, route); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:118 def add(name, route); end # Given a `name`, defines name_path and name_url helpers. Used by 'direct', # 'resolve', and 'polymorphic' route helpers. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:165 def add_url_helper(name, defaults, &block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:148 def clear; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:104 def clear!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:150 def each(&block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:137 def get(name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:100 def helper_names; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#141 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:141 def key?(name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:159 def length; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:155 def names; end - # Returns the value of attribute path_helpers_module. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:84 def path_helpers_module; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:95 def route_defined?(name); end - # Returns the value of attribute url_helpers_module. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:84 def url_helpers_module; end private @@ -20450,144 +19109,120 @@ class ActionDispatch::Routing::RouteSet::NamedRouteCollection # # foo_url(bar, baz, bang, sort_by: 'baz') # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#333 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:333 def define_url_helper(mod, name, helper, url_strategy); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:84 def routes; end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#188 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:188 class ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper - # @return [UrlHelper] a new instance of UrlHelper - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#271 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:271 def initialize(route, options, route_name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#278 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:278 def call(t, method_name, args, inner_options, url_strategy); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#290 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:290 def handle_positional_args(controller_options, inner_options, args, result, path_params); end - # Returns the value of attribute route_name. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#201 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:201 def route_name; end class << self - # source://actionpack//lib/action_dispatch/routing/route_set.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:189 def create(route, options, route_name); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:197 def optimize_helper?(route); end end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#203 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:203 class ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper::OptimizedUrlHelper < ::ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper - # @return [OptimizedUrlHelper] a new instance of OptimizedUrlHelper - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:206 def initialize(route, options, route_name); end - # Returns the value of attribute arg_size. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:204 def arg_size; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#212 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:212 def call(t, method_name, args, inner_options, url_strategy); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#243 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:243 def optimize_routes_generation?(t); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#235 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:235 def optimized_helper(args); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#247 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:247 def parameterize_args(args); end - # @raise [ActionController::UrlGenerationError] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:258 def raise_generation_error(args); end end # strategy for building URLs to send to the client # -# source://actionpack//lib/action_dispatch/routing/route_set.rb#349 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:349 ActionDispatch::Routing::RouteSet::PATH = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/route_set.rb#838 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:838 ActionDispatch::Routing::RouteSet::RESERVED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/route_set.rb#69 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:69 class ActionDispatch::Routing::RouteSet::StaticDispatcher < ::ActionDispatch::Routing::RouteSet::Dispatcher - # @return [StaticDispatcher] a new instance of StaticDispatcher - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:70 def initialize(controller_class); end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:76 def controller(_); end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#350 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:350 ActionDispatch::Routing::RouteSet::UNKNOWN = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/inspector.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:10 class ActionDispatch::Routing::RouteWrapper < ::SimpleDelegator - # source://actionpack//lib/action_dispatch/routing/inspector.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:56 def action; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:28 def constraints; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:52 def controller; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:17 def endpoint; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:64 def engine?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:60 def internal?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:11 def matches_filter?(filter, value); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:40 def name; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:36 def path; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:32 def rack_app; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:44 def reqs; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:68 def to_h; end end @@ -20595,83 +19230,65 @@ end # executes `bin/rails routes` or looks at the RoutingError page. People should # not use this class. # -# source://actionpack//lib/action_dispatch/routing/inspector.rb#81 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:81 class ActionDispatch::Routing::RoutesInspector - # @return [RoutesInspector] a new instance of RoutesInspector - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:82 def initialize(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:87 def format(formatter, filter = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/routing/inspector.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:147 def filter_routes(routes, filter); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:98 def format_routes(formatter, filter, engine_name, routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:115 def load_engines_routes; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:128 def normalize_filter(filter); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:111 def wrap_routes(routes); end end -# source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:9 class ActionDispatch::Routing::RoutesProxy include ::ActionDispatch::Routing::PolymorphicRoutes include ::ActionDispatch::Routing::UrlFor - # @return [RoutesProxy] a new instance of RoutesProxy - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:15 def initialize(routes, scope, helpers, script_namer = T.unsafe(nil)); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:13 def _routes; end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options?; end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def routes; end - # Sets the attribute routes - # - # @param value the value to set the attribute routes to. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def routes=(_arg0); end - # Returns the value of attribute scope. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def scope; end - # Sets the attribute scope - # - # @param value the value to set the attribute scope to. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def scope=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:21 def url_options; end private @@ -20681,38 +19298,36 @@ class ActionDispatch::Routing::RoutesProxy # specific request, but use our script name resolver for the mount point # dependent part. # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#55 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:55 def merge_script_names(previous_script_name, new_script_name); end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:32 def method_missing(method, *args); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:28 def respond_to_missing?(method, _); end class << self - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options=(value); end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options?; end private - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def __class_attr_default_url_options; end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def __class_attr_default_url_options=(new_value); end end end -# source://actionpack//lib/action_dispatch/routing.rb#259 +# pkg:gem/actionpack#lib/action_dispatch/routing.rb:259 ActionDispatch::Routing::SEPARATORS = T.let(T.unsafe(nil), Array) # # Action Dispatch Routing UrlFor @@ -20800,7 +19415,7 @@ ActionDispatch::Routing::SEPARATORS = T.let(T.unsafe(nil), Array) # # User.find(1).base_uri # => "/users/1" # -# source://actionpack//lib/action_dispatch/routing/url_for.rb#92 +# pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:92 module ActionDispatch::Routing::UrlFor include ::ActionDispatch::Routing::PolymorphicRoutes extend ::ActiveSupport::Concern @@ -20808,10 +19423,10 @@ module ActionDispatch::Routing::UrlFor mixes_in_class_methods GeneratedClassMethods - # source://actionpack//lib/action_dispatch/routing/url_for.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:111 def initialize(*_arg0, **_arg1, &_arg2); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:182 def full_url_for(options = T.unsafe(nil)); end # Allows calling direct or regular named route. @@ -20832,7 +19447,7 @@ module ActionDispatch::Routing::UrlFor # threadable_path(threadable) # => "/buckets/1" # threadable_url(threadable) # => "http://example.com/buckets/1" # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#222 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:222 def route_for(name, *args); end # Generate a URL based on the options provided, `default_url_options`, and the @@ -20892,28 +19507,26 @@ module ActionDispatch::Routing::UrlFor # used by `url_for` can always be overwritten like shown on the last `url_for` # calls. # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#178 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:178 def url_for(options = T.unsafe(nil)); end # Hook overridden in controller to add request information with # `default_url_options`. Application logic should not go into url_options. # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:118 def url_options; end protected - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#227 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:227 def optimize_routes_generation?; end private - # source://actionpack//lib/action_dispatch/routing/url_for.rb#239 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:239 def _routes_context; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#232 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:232 def _with_routes(routes); end module GeneratedClassMethods @@ -20989,132 +19602,126 @@ end # header to tell browsers to expire HSTS immediately. Setting `hsts: false` # is a shortcut for `hsts: { expires: 0 }`. # -# source://actionpack//lib/action_dispatch/middleware/ssl.rb#66 +# pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:66 class ActionDispatch::SSL - # @return [SSL] a new instance of SSL - # - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:76 def initialize(app, redirect: T.unsafe(nil), hsts: T.unsafe(nil), secure_cookies: T.unsafe(nil), ssl_default_redirect_status: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:88 def call(env); end private # https://tools.ietf.org/html/rfc6797#section-6.1 # - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:122 def build_hsts_header(hsts); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:129 def flag_cookies_as_secure!(headers); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#170 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:170 def https_location_for(request); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:107 def normalize_hsts_options(options); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#153 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:153 def redirect_to_https(request); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:160 def redirection_status(request); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:103 def set_hsts_header!(headers); end class << self - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:72 def default_hsts_options; end end end # :stopdoc: Default to 2 years as recommended on hstspreload.org. # -# source://actionpack//lib/action_dispatch/middleware/ssl.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:68 ActionDispatch::SSL::HSTS_EXPIRES_IN = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_dispatch/middleware/ssl.rb#70 +# pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:70 ActionDispatch::SSL::PERMANENT_REDIRECT_REQUEST_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/middleware/server_timing.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:8 class ActionDispatch::ServerTiming - # @return [ServerTiming] a new instance of ServerTiming - # - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:52 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:58 def call(env); end class << self - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:48 def unsubscribe; end end end -# source://actionpack//lib/action_dispatch/middleware/server_timing.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:9 class ActionDispatch::ServerTiming::Subscriber include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [Subscriber] a new instance of Subscriber - # - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:13 def initialize; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:17 def call(event); end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:23 def collect_events; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:32 def ensure_subscribed; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:40 def unsubscribe; end class << self private - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:10 def allocate; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:10 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/middleware/server_timing.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:11 ActionDispatch::ServerTiming::Subscriber::KEY = T.let(T.unsafe(nil), Symbol) -# source://actionpack//lib/action_dispatch.rb#106 +# pkg:gem/actionpack#lib/action_dispatch.rb:106 module ActionDispatch::Session class << self - # source://actionpack//lib/action_dispatch.rb#113 + # pkg:gem/actionpack#lib/action_dispatch.rb:113 def resolve_store(session_store); end end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#97 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:97 class ActionDispatch::Session::AbstractSecureStore < ::Rack::Session::Abstract::PersistedSecure include ::ActionDispatch::Session::Compatibility include ::ActionDispatch::Session::StaleSessionCheck include ::ActionDispatch::Session::SessionObject - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:102 def generate_sid; end private - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:107 def set_cookie(request, response, cookie); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#86 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:86 class ActionDispatch::Session::AbstractStore < ::Rack::Session::Abstract::Persisted include ::ActionDispatch::Session::Compatibility include ::ActionDispatch::Session::StaleSessionCheck @@ -21122,7 +19729,7 @@ class ActionDispatch::Session::AbstractStore < ::Rack::Session::Abstract::Persis private - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:92 def set_cookie(request, response, cookie); end end @@ -21143,56 +19750,54 @@ end # collisions, this option can be enabled to ensure newly generated ids aren't in use. # By default, it is set to `false` to avoid additional cache write operations. # -# source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:26 class ActionDispatch::Session::CacheStore < ::ActionDispatch::Session::AbstractSecureStore - # @return [CacheStore] a new instance of CacheStore - # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:27 def initialize(app, options = T.unsafe(nil)); end # Remove a session from the cache. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:54 def delete_session(env, sid, options); end # Get a session from the cache. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:35 def find_session(env, sid); end # Set a session in the cache. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:43 def write_session(env, sid, session, options); end private # Turn the session id into a cache key. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:62 def cache_key(id); end - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:70 def generate_sid; end - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:66 def get_session_with_fallback(sid); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:22 module ActionDispatch::Session::Compatibility - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:23 def initialize(app, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:28 def generate_sid; end private - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:35 def initialize_sid; end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:40 def make_request(env); end end @@ -21238,90 +19843,80 @@ end # would set the session cookie to expire automatically 14 days after creation. # Other useful options include `:key`, `:secure`, `:httponly`, and `:same_site`. # -# source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#52 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:52 class ActionDispatch::Session::CookieStore < ::ActionDispatch::Session::AbstractSecureStore - # @return [CookieStore] a new instance of CookieStore - # - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:64 def initialize(app, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:70 def delete_session(req, session_id, options); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:77 def load_session(req); end private - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:124 def cookie_jar(request); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:86 def extract_session_id(req); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:120 def get_cookie(req); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:105 def persistent_session_id!(data, sid = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:116 def set_cookie(request, session_id, cookie); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:93 def unpacked_cookie_data(req); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:111 def write_session(req, sid, session_data, options); end end -# source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#62 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:62 ActionDispatch::Session::CookieStore::DEFAULT_SAME_SITE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#53 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:53 class ActionDispatch::Session::CookieStore::SessionId - # @return [SessionId] a new instance of SessionId - # - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:56 def initialize(session_id, cookie_value = T.unsafe(nil)); end - # Returns the value of attribute cookie_value. - # - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:54 def cookie_value; end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#71 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:71 module ActionDispatch::Session::SessionObject - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:72 def commit_session(req, res); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:81 def loaded_session?(session); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:77 def prepare_session(req); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:13 class ActionDispatch::Session::SessionRestoreError < ::StandardError - # @return [SessionRestoreError] a new instance of SessionRestoreError - # - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:14 def initialize; end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#45 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:45 module ActionDispatch::Session::StaleSessionCheck - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:50 def extract_session_id(env); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:46 def load_session(env); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:54 def stale_session_check!; end end @@ -21343,25 +19938,23 @@ end # correct status code. If any exception happens inside the exceptions app, this # middleware catches the exceptions and returns a failsafe response. # -# source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:25 class ActionDispatch::ShowExceptions - # @return [ShowExceptions] a new instance of ShowExceptions - # - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:26 def initialize(app, exceptions_app); end - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:31 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:67 def fallback_to_html_format_if_invalid_mime_type(request); end - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:83 def pass_response(status); end - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:48 def render_exception(request, wrapper); end end @@ -21378,74 +19971,68 @@ end # # Only files in the root directory are served; path traversal is denied. # -# source://actionpack//lib/action_dispatch/middleware/static.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:20 class ActionDispatch::Static - # @return [Static] a new instance of Static - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:21 def initialize(app, path, index: T.unsafe(nil), headers: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:26 def call(env); end end -# source://actionpack//lib/action_dispatch/structured_event_subscriber.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/structured_event_subscriber.rb:4 class ActionDispatch::StructuredEventSubscriber < ::ActiveSupport::StructuredEventSubscriber - # source://actionpack//lib/action_dispatch/structured_event_subscriber.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/structured_event_subscriber.rb:5 def redirect(event); end end -# source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:4 module ActionDispatch::TestHelpers; end -# source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#5 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:5 module ActionDispatch::TestHelpers::PageDumpHelper # Saves the content of response body to a file and tries to open it in your browser. # Launchy must be present in your Gemfile for the page to open automatically. # - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:10 def save_and_open_page(path = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:30 def html_dump_default_path; end - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:23 def open_file(path); end - # @raise [InvalidResponse] - # - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:15 def save_page(path = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:6 class ActionDispatch::TestHelpers::PageDumpHelper::InvalidResponse < ::StandardError; end -# source://actionpack//lib/action_dispatch/testing/test_process.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:9 module ActionDispatch::TestProcess include ::ActionDispatch::TestProcess::FixtureFile - # @raise [NoMethodError] - # - # source://actionpack//lib/action_dispatch/testing/test_process.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:34 def assigns(key = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:48 def cookies; end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:44 def flash; end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:52 def redirect_to_url; end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:40 def session; end end -# source://actionpack//lib/action_dispatch/testing/test_process.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:10 module ActionDispatch::TestProcess::FixtureFile # Shortcut for # `Rack::Test::UploadedFile.new(File.join(ActionDispatch::IntegrationTest.file_fixture_path, path), type)`: @@ -21459,74 +20046,62 @@ module ActionDispatch::TestProcess::FixtureFile # # post :change_avatar, params: { avatar: file_fixture_upload('david.png', 'image/png', :binary) } # - # source://actionpack//lib/action_dispatch/testing/test_process.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:22 def file_fixture_upload(path, mime_type = T.unsafe(nil), binary = T.unsafe(nil)); end - # Shortcut for - # `Rack::Test::UploadedFile.new(File.join(ActionDispatch::IntegrationTest.file_fixture_path, path), type)`: - # - # post :change_avatar, params: { avatar: file_fixture_upload('david.png', 'image/png') } - # - # Default fixture files location is `test/fixtures/files`. - # - # To upload binary files on Windows, pass `:binary` as the last parameter. This - # will not affect other platforms: - # - # post :change_avatar, params: { avatar: file_fixture_upload('david.png', 'image/png', :binary) } - # - # source://actionpack//lib/action_dispatch/testing/test_process.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:29 def fixture_file_upload(path, mime_type = T.unsafe(nil), binary = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/testing/test_request.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:9 class ActionDispatch::TestRequest < ::ActionDispatch::Request - # source://actionpack//lib/action_dispatch/testing/test_request.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:68 def accept=(mime_types); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:48 def action=(action_name); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:32 def host=(host); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:52 def if_modified_since=(last_modified); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:56 def if_none_match=(etag); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:44 def path=(path); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:36 def port=(number); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:60 def remote_addr=(addr); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:28 def request_method=(method); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:40 def request_uri=(uri); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:64 def user_agent=(user_agent); end class << self # Create a new test request with default `env` values. # - # source://actionpack//lib/action_dispatch/testing/test_request.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:17 def create(env = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/testing/test_request.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:23 def default_env; end end end -# source://actionpack//lib/action_dispatch/testing/test_request.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:10 ActionDispatch::TestRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) # Integration test methods such as Integration::RequestHelpers#get and @@ -21535,7 +20110,7 @@ ActionDispatch::TestRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) # # See Response for more information on controller response objects. # -# source://actionpack//lib/action_dispatch/testing/test_response.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:13 class ActionDispatch::TestResponse < ::ActionDispatch::Response # Returns a parsed body depending on the response MIME type. When a parser # corresponding to the MIME type is not found, it returns the raw body. @@ -21570,51 +20145,51 @@ class ActionDispatch::TestResponse < ::ActionDispatch::Response # assert_equal 42, id # assert_equal "Title", title # - # source://actionpack//lib/action_dispatch/testing/test_response.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:50 def parsed_body; end - # source://actionpack//lib/action_dispatch/testing/test_response.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:54 def response_parser; end class << self - # source://actionpack//lib/action_dispatch/testing/test_response.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:14 def from_response(response); end end end # :markup: markdown # -# source://actionpack//lib/action_pack/gem_version.rb#5 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:5 module ActionPack class << self # Returns the currently loaded version of Action Pack as a `Gem::Version`. # - # source://actionpack//lib/action_pack/gem_version.rb#7 + # pkg:gem/actionpack#lib/action_pack/gem_version.rb:7 def gem_version; end # Returns the currently loaded version of Action Pack as a `Gem::Version`. # - # source://actionpack//lib/action_pack/version.rb#9 + # pkg:gem/actionpack#lib/action_pack/version.rb:9 def version; end end end -# source://actionpack//lib/action_pack/gem_version.rb#11 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:11 module ActionPack::VERSION; end -# source://actionpack//lib/action_pack/gem_version.rb#12 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:12 ActionPack::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_pack/gem_version.rb#13 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:13 ActionPack::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_pack/gem_version.rb#15 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:15 ActionPack::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) -# source://actionpack//lib/action_pack/gem_version.rb#17 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:17 ActionPack::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_pack/gem_version.rb#14 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:14 ActionPack::VERSION::TINY = T.let(T.unsafe(nil), Integer) module ActionView::RoutingUrlFor @@ -21622,21 +20197,19 @@ module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::UrlFor end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:7 module Mime class << self - # source://actionpack//lib/action_dispatch/http/mime_type.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:51 def [](type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:64 def fetch(type, &block); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:56 def symbols; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:60 def valid_symbols?(symbols); end end end @@ -21645,117 +20218,99 @@ end # concrete types. It's a wildcard match that we use for `respond_to` negotiation # internals. # -# source://actionpack//lib/action_dispatch/http/mime_type.rb#363 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:363 Mime::ALL = T.let(T.unsafe(nil), Mime::AllType) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#349 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:349 class Mime::AllType < ::Mime::Type include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [AllType] a new instance of AllType - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:352 def initialize; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:356 def all?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#357 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:357 def html?; end class << self private - # source://actionpack//lib/action_dispatch/http/mime_type.rb#350 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:350 def allocate; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#350 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:350 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#47 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:47 Mime::EXTENSION_LOOKUP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#48 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:48 Mime::LOOKUP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:8 class Mime::Mimes include ::Enumerable - # @return [Mimes] a new instance of Mimes - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:13 def initialize; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:23 def <<(type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:30 def delete_if; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:19 def each(&block); end - # Returns the value of attribute symbols. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:9 def symbols; end - # :nodoc - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#41 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:41 def valid_symbols?(symbols); end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#365 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:365 class Mime::NullType include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#368 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:368 def nil?; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#376 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:376 def ref; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#372 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:372 def to_s; end private - # source://actionpack//lib/action_dispatch/http/mime_type.rb#383 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:383 def method_missing(method, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#379 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:379 def respond_to_missing?(method, _); end class << self private - # source://actionpack//lib/action_dispatch/http/mime_type.rb#366 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:366 def allocate; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#366 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:366 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#46 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:46 Mime::SET = T.let(T.unsafe(nil), Mime::Mimes) # Encapsulates the notion of a MIME type. Can be used at render time, for @@ -21773,100 +20328,80 @@ Mime::SET = T.let(T.unsafe(nil), Mime::Mimes) # end # end # -# source://actionpack//lib/action_dispatch/http/mime_type.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:84 class Mime::Type - # @return [Type] a new instance of Type - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#264 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:264 def initialize(string, symbol = T.unsafe(nil), synonyms = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#297 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:297 def ==(mime_type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#289 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:289 def ===(list); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#311 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:311 def =~(mime_type); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#327 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:327 def all?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#304 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:304 def eql?(other); end - # Returns the value of attribute hash. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#255 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:255 def hash; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#323 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:323 def html?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#317 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:317 def match?(mime_type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#285 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:285 def ref; end - # Returns the value of attribute symbol. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:85 def symbol; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:273 def to_s; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#277 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:277 def to_str; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#281 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:281 def to_sym; end protected - # Returns the value of attribute string. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:330 def string; end - # Returns the value of attribute synonyms. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:330 def synonyms; end private - # source://actionpack//lib/action_dispatch/http/mime_type.rb#336 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:336 def method_missing(method, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#344 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:344 def respond_to_missing?(method, include_private = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#334 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:334 def to_a; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#333 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:333 def to_ary; end class << self - # source://actionpack//lib/action_dispatch/http/mime_type.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:167 def lookup(string); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:175 def lookup_by_extension(extension); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:200 def parse(accept_header); end # For an input of `'text'`, returns `[Mime[:json], Mime[:xml], Mime[:ics], @@ -21875,23 +20410,23 @@ class Mime::Type # For an input of `'application'`, returns `[Mime[:html], Mime[:js], Mime[:xml], # Mime[:yaml], Mime[:atom], Mime[:json], Mime[:rss], Mime[:url_encoded_form]]`. # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#236 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:236 def parse_data_with_trailing_star(type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#227 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:227 def parse_trailing_star(accept_header); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#186 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:186 def register(string, symbol, mime_type_synonyms = T.unsafe(nil), extension_synonyms = T.unsafe(nil), skip_lookup = T.unsafe(nil)); end # Registers an alias that's not used on MIME type lookup, but can be referenced # directly. Especially useful for rendering different HTML versions depending on # the user agent, like an iPhone. # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:182 def register_alias(string, symbol, extension_synonyms = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:163 def register_callback(&block); end # This method is opposite of register method. @@ -21900,70 +20435,71 @@ class Mime::Type # # Mime::Type.unregister(:mobile) # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:245 def unregister(symbol); end end end # A simple helper class used in parsing the accept header. # -# source://actionpack//lib/action_dispatch/http/mime_type.rb#90 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:90 class Mime::Type::AcceptItem - # @return [AcceptItem] a new instance of AcceptItem - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:94 def initialize(index, name, q = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:101 def <=>(item); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def index; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def index=(_arg0); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def name; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def name=(_arg0); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def q; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def q=(_arg0); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:92 def to_s; end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#108 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:108 class Mime::Type::AcceptList class << self - # source://actionpack//lib/action_dispatch/http/mime_type.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:151 def find_item_by_name(array, name); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:109 def sort!(list); end end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#262 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:262 class Mime::Type::InvalidMimeType < ::StandardError; end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#257 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:257 Mime::Type::MIME_NAME = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#259 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:259 Mime::Type::MIME_PARAMETER = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#258 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:258 Mime::Type::MIME_PARAMETER_VALUE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#260 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:260 Mime::Type::MIME_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch.rb#35 +# pkg:gem/actionpack#lib/action_dispatch.rb:35 module Rack; end + +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:42 +class Rack::Headers < ::Hash; end diff --git a/sorbet/rbi/gems/actionview@8.1.2.rbi b/sorbet/rbi/gems/actionview@8.1.2.rbi index 9c70c65..4fc2463 100644 --- a/sorbet/rbi/gems/actionview@8.1.2.rbi +++ b/sorbet/rbi/gems/actionview@8.1.2.rbi @@ -15,32 +15,33 @@ class ActionController::Base < ::ActionController::Metal end # :include: ../README.rdoc +# :markup: markdown # -# source://actionview//lib/action_view/gem_version.rb#3 +# pkg:gem/actionview#lib/action_view/gem_version.rb:3 module ActionView extend ::ActiveSupport::Autoload class << self - # source://actionview//lib/action_view/deprecator.rb#4 + # pkg:gem/actionview#lib/action_view/deprecator.rb:4 def deprecator; end - # source://actionview//lib/action_view.rb#97 + # pkg:gem/actionview#lib/action_view.rb:97 def eager_load!; end # Returns the currently loaded version of Action View as a +Gem::Version+. # - # source://actionview//lib/action_view/gem_version.rb#5 + # pkg:gem/actionview#lib/action_view/gem_version.rb:5 def gem_version; end - # source://actionview//lib/action_view.rb#94 + # pkg:gem/actionview#lib/action_view.rb:94 def render_tracker; end - # source://actionview//lib/action_view.rb#94 + # pkg:gem/actionview#lib/action_view.rb:94 def render_tracker=(_arg0); end # Returns the currently loaded version of Action View as a +Gem::Version+. # - # source://actionview//lib/action_view/version.rb#7 + # pkg:gem/actionview#lib/action_view/version.rb:7 def version; end end end @@ -61,56 +62,52 @@ end # that new object is called in turn. This abstracts the set up and rendering # into a separate classes for partials and templates. # -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#21 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:21 class ActionView::AbstractRenderer - # @return [AbstractRenderer] a new instance of AbstractRenderer - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#24 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:24 def initialize(lookup_context); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#22 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:22 def any_templates?(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#22 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:22 def formats(*_arg0, **_arg1, &_arg2); end - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#28 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:28 def render; end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#22 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:22 def template_exists?(*_arg0, **_arg1, &_arg2); end private - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#182 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:182 def build_rendered_collection(templates, spacer); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#178 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:178 def build_rendered_template(content, template); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#159 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:159 def extract_details(options); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#171 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:171 def prepend_formats(formats); end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#157 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:157 ActionView::AbstractRenderer::NO_DETAILS = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#32 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:32 module ActionView::AbstractRenderer::ObjectRendering - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#37 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:37 def initialize(lookup_context, options); end private - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#43 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:43 def local_variable(path); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#92 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:92 def merge_prefix_into_object_path(prefix, object_path); end # Obtains the path to where the object's partial is located. If the object @@ -121,96 +118,78 @@ module ActionView::AbstractRenderer::ObjectRendering # If +prefix_partial_path_with_controller_namespace+ is true, then this # method will prefix the partial paths with a namespace. # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#76 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:76 def partial_path(object, view); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#61 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:61 def raise_invalid_identifier(path); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#65 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:65 def raise_invalid_option_as(as); end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#54 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:54 ActionView::AbstractRenderer::ObjectRendering::IDENTIFIER_ERROR_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#57 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:57 ActionView::AbstractRenderer::ObjectRendering::OPTION_AS_ERROR_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#33 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:33 ActionView::AbstractRenderer::ObjectRendering::PREFIXED_PARTIAL_NAMES = T.let(T.unsafe(nil), Concurrent::Map) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#110 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:110 class ActionView::AbstractRenderer::RenderedCollection - # @return [RenderedCollection] a new instance of RenderedCollection - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#117 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:117 def initialize(rendered_templates, spacer); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#122 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:122 def body; end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#126 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:126 def format; end - # Returns the value of attribute rendered_templates. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#115 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:115 def rendered_templates; end class << self - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#111 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:111 def empty(format); end end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#130 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:130 class ActionView::AbstractRenderer::RenderedCollection::EmptyCollection - # @return [EmptyCollection] a new instance of EmptyCollection - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#133 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:133 def initialize(format); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#137 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:137 def body; end - # Returns the value of attribute format. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#131 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:131 def format; end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#141 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:141 class ActionView::AbstractRenderer::RenderedTemplate - # @return [RenderedTemplate] a new instance of RenderedTemplate - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#144 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:144 def initialize(body, template); end - # Returns the value of attribute body. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#142 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:142 def body; end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#149 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:149 def format; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#142 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:142 def template; end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#153 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:153 ActionView::AbstractRenderer::RenderedTemplate::EMPTY_SPACER = T.let(T.unsafe(nil), T.untyped) # = Action View Errors # -# source://actionview//lib/action_view/template/error.rb#8 +# pkg:gem/actionview#lib/action_view/template/error.rb:8 class ActionView::ActionViewError < ::StandardError; end # = Action View \Base @@ -358,7 +337,7 @@ class ActionView::ActionViewError < ::StandardError; end # # For more information on Builder please consult the {source code}[https://github.com/rails/builder]. # -# source://actionview//lib/action_view/base.rb#158 +# pkg:gem/actionview#lib/action_view/base.rb:158 class ActionView::Base include ::ActionView::Context include ::ERB::Escape @@ -398,319 +377,301 @@ class ActionView::Base # :startdoc: # - # @return [Base] a new instance of Base - # - # source://actionview//lib/action_view/base.rb#249 + # pkg:gem/actionview#lib/action_view/base.rb:249 def initialize(lookup_context, assigns, controller); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def _routes; end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def _routes=(_arg0); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def _routes?; end - # source://actionview//lib/action_view/base.rb#264 + # pkg:gem/actionview#lib/action_view/base.rb:264 def _run(method, template, locals, buffer, add_to_stack: T.unsafe(nil), has_strict_locals: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/base.rb#180 + # pkg:gem/actionview#lib/action_view/base.rb:180 def annotate_rendered_view_with_filenames; end - # source://actionview//lib/action_view/base.rb#180 + # pkg:gem/actionview#lib/action_view/base.rb:180 def annotate_rendered_view_with_filenames=(val); end - # source://actionview//lib/action_view/base.rb#228 + # pkg:gem/actionview#lib/action_view/base.rb:228 def assign(new_assigns); end - # source://actionview//lib/action_view/base.rb#224 + # pkg:gem/actionview#lib/action_view/base.rb:224 def assigns; end - # source://actionview//lib/action_view/base.rb#224 + # pkg:gem/actionview#lib/action_view/base.rb:224 def assigns=(_arg0); end - # source://actionview//lib/action_view/base.rb#177 + # pkg:gem/actionview#lib/action_view/base.rb:177 def automatically_disable_submit_tag; end - # source://actionview//lib/action_view/base.rb#177 + # pkg:gem/actionview#lib/action_view/base.rb:177 def automatically_disable_submit_tag=(val); end - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/base.rb#287 + # pkg:gem/actionview#lib/action_view/base.rb:287 def compiled_method_container; end - # source://actionview//lib/action_view/base.rb#224 + # pkg:gem/actionview#lib/action_view/base.rb:224 def config; end - # source://actionview//lib/action_view/base.rb#224 + # pkg:gem/actionview#lib/action_view/base.rb:224 def config=(_arg0); end - # source://actionview//lib/action_view/base.rb#159 + # pkg:gem/actionview#lib/action_view/base.rb:159 def debug_missing_translation; end - # source://actionview//lib/action_view/base.rb#159 + # pkg:gem/actionview#lib/action_view/base.rb:159 def debug_missing_translation=(val); end - # source://actionview//lib/action_view/base.rb#174 + # pkg:gem/actionview#lib/action_view/base.rb:174 def default_formats; end - # source://actionview//lib/action_view/base.rb#174 + # pkg:gem/actionview#lib/action_view/base.rb:174 def default_formats=(val); end - # source://actionview//lib/action_view/base.rb#162 + # pkg:gem/actionview#lib/action_view/base.rb:162 def field_error_proc; end - # source://actionview//lib/action_view/base.rb#162 + # pkg:gem/actionview#lib/action_view/base.rb:162 def field_error_proc=(val); end - # source://actionview//lib/action_view/base.rb#226 + # pkg:gem/actionview#lib/action_view/base.rb:226 def formats(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/base.rb#226 + # pkg:gem/actionview#lib/action_view/base.rb:226 def formats=(arg); end - # source://actionview//lib/action_view/base.rb#295 + # pkg:gem/actionview#lib/action_view/base.rb:295 def in_rendering_context(options); end - # source://actionview//lib/action_view/base.rb#226 + # pkg:gem/actionview#lib/action_view/base.rb:226 def locale(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/base.rb#226 + # pkg:gem/actionview#lib/action_view/base.rb:226 def locale=(arg); end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def logger; end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def logger=(_arg0); end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def logger?; end - # Returns the value of attribute lookup_context. - # - # source://actionview//lib/action_view/base.rb#223 + # pkg:gem/actionview#lib/action_view/base.rb:223 def lookup_context; end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def prefix_partial_path_with_controller_namespace=(_arg0); end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def prefix_partial_path_with_controller_namespace?; end - # source://actionview//lib/action_view/base.rb#187 + # pkg:gem/actionview#lib/action_view/base.rb:187 def remove_hidden_field_autocomplete; end - # source://actionview//lib/action_view/base.rb#187 + # pkg:gem/actionview#lib/action_view/base.rb:187 def remove_hidden_field_autocomplete=(val); end - # source://actionview//lib/action_view/base.rb#166 + # pkg:gem/actionview#lib/action_view/base.rb:166 def streaming_completion_on_exception; end - # source://actionview//lib/action_view/base.rb#166 + # pkg:gem/actionview#lib/action_view/base.rb:166 def streaming_completion_on_exception=(val); end - # source://actionview//lib/action_view/base.rb#226 + # pkg:gem/actionview#lib/action_view/base.rb:226 def view_paths(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/base.rb#226 + # pkg:gem/actionview#lib/action_view/base.rb:226 def view_paths=(arg); end - # Returns the value of attribute view_renderer. - # - # source://actionview//lib/action_view/base.rb#223 + # pkg:gem/actionview#lib/action_view/base.rb:223 def view_renderer; end class << self - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def _routes; end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def _routes=(value); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def _routes?; end - # source://actionview//lib/action_view/base.rb#180 + # pkg:gem/actionview#lib/action_view/base.rb:180 def annotate_rendered_view_with_filenames; end - # source://actionview//lib/action_view/base.rb#180 + # pkg:gem/actionview#lib/action_view/base.rb:180 def annotate_rendered_view_with_filenames=(val); end - # source://actionview//lib/action_view/base.rb#177 + # pkg:gem/actionview#lib/action_view/base.rb:177 def automatically_disable_submit_tag; end - # source://actionview//lib/action_view/base.rb#177 + # pkg:gem/actionview#lib/action_view/base.rb:177 def automatically_disable_submit_tag=(val); end - # source://actionview//lib/action_view/base.rb#192 + # pkg:gem/actionview#lib/action_view/base.rb:192 def cache_template_loading; end - # source://actionview//lib/action_view/base.rb#196 + # pkg:gem/actionview#lib/action_view/base.rb:196 def cache_template_loading=(value); end - # @return [Boolean] - # - # source://actionview//lib/action_view/base.rb#218 + # pkg:gem/actionview#lib/action_view/base.rb:218 def changed?(other); end - # source://actionview//lib/action_view/base.rb#159 + # pkg:gem/actionview#lib/action_view/base.rb:159 def debug_missing_translation; end - # source://actionview//lib/action_view/base.rb#159 + # pkg:gem/actionview#lib/action_view/base.rb:159 def debug_missing_translation=(val); end - # source://actionview//lib/action_view/base.rb#314 + # pkg:gem/actionview#lib/action_view/base.rb:314 def default_form_builder; end - # source://actionview//lib/action_view/base.rb#314 + # pkg:gem/actionview#lib/action_view/base.rb:314 def default_form_builder=(val); end - # source://actionview//lib/action_view/base.rb#174 + # pkg:gem/actionview#lib/action_view/base.rb:174 def default_formats; end - # source://actionview//lib/action_view/base.rb#174 + # pkg:gem/actionview#lib/action_view/base.rb:174 def default_formats=(val); end # :stopdoc: # - # source://actionview//lib/action_view/base.rb#235 + # pkg:gem/actionview#lib/action_view/base.rb:235 def empty; end - # source://actionview//lib/action_view/base.rb#190 + # pkg:gem/actionview#lib/action_view/base.rb:190 def erb_trim_mode=(arg); end - # source://actionview//lib/action_view/base.rb#162 + # pkg:gem/actionview#lib/action_view/base.rb:162 def field_error_proc; end - # source://actionview//lib/action_view/base.rb#162 + # pkg:gem/actionview#lib/action_view/base.rb:162 def field_error_proc=(val); end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def logger; end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def logger=(value); end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def logger?; end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def prefix_partial_path_with_controller_namespace=(value); end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def prefix_partial_path_with_controller_namespace?; end - # source://actionview//lib/action_view/base.rb#187 + # pkg:gem/actionview#lib/action_view/base.rb:187 def remove_hidden_field_autocomplete; end - # source://actionview//lib/action_view/base.rb#187 + # pkg:gem/actionview#lib/action_view/base.rb:187 def remove_hidden_field_autocomplete=(val); end - # source://actionview//lib/action_view/base.rb#166 + # pkg:gem/actionview#lib/action_view/base.rb:166 def streaming_completion_on_exception; end - # source://actionview//lib/action_view/base.rb#166 + # pkg:gem/actionview#lib/action_view/base.rb:166 def streaming_completion_on_exception=(val); end - # source://actionview//lib/action_view/base.rb#243 + # pkg:gem/actionview#lib/action_view/base.rb:243 def with_context(context, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end - # source://actionview//lib/action_view/base.rb#204 + # pkg:gem/actionview#lib/action_view/base.rb:204 def with_empty_template_cache; end - # source://actionview//lib/action_view/base.rb#239 + # pkg:gem/actionview#lib/action_view/base.rb:239 def with_view_paths(view_paths, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/base.rb#200 + # pkg:gem/actionview#lib/action_view/base.rb:200 def xss_safe?; end private - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def __class_attr__routes; end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def __class_attr__routes=(new_value); end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def __class_attr_logger; end - # source://actionview//lib/action_view/base.rb#183 + # pkg:gem/actionview#lib/action_view/base.rb:183 def __class_attr_logger=(new_value); end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def __class_attr_prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#171 + # pkg:gem/actionview#lib/action_view/base.rb:171 def __class_attr_prefix_partial_path_with_controller_namespace=(new_value); end end end -# source://actionview//lib/action_view/cache_expiry.rb#4 +# pkg:gem/actionview#lib/action_view/cache_expiry.rb:4 module ActionView::CacheExpiry; end -# source://actionview//lib/action_view/cache_expiry.rb#5 +# pkg:gem/actionview#lib/action_view/cache_expiry.rb:5 class ActionView::CacheExpiry::ViewReloader - # @return [ViewReloader] a new instance of ViewReloader - # - # source://actionview//lib/action_view/cache_expiry.rb#6 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:6 def initialize(watcher:, &block); end - # source://actionview//lib/action_view/cache_expiry.rb#21 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:21 def execute; end - # @return [Boolean] - # - # source://actionview//lib/action_view/cache_expiry.rb#16 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:16 def updated?; end private - # source://actionview//lib/action_view/cache_expiry.rb#64 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:64 def all_view_paths; end - # source://actionview//lib/action_view/cache_expiry.rb#37 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:37 def build_watcher; end - # source://actionview//lib/action_view/cache_expiry.rb#60 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:60 def dirs_to_watch; end - # source://actionview//lib/action_view/cache_expiry.rb#55 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:55 def rebuild_watcher; end - # source://actionview//lib/action_view/cache_expiry.rb#33 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:33 def reload!; end end -# source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#6 +# pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:6 module ActionView::CollectionCaching extend ::ActiveSupport::Concern private - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#20 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:20 def cache_collection_render(instrumentation_payload, view, template, collection); end - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#54 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:54 def callable_cache_key?; end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#58 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:58 def collection_by_cache_keys(view, template, collection); end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#71 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:71 def expanded_cache_key(key, view, template, digest_path); end # `order_by` is an enumerable object containing keys of the cache, @@ -729,98 +690,88 @@ module ActionView::CollectionCaching # If the partial is not already cached it will also be # written back to the underlying cache store. # - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#91 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:91 def fetch_or_cache_partial(cached_partials, template, order_by:); end - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:16 def will_cache?(options, view); end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#33 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:33 class ActionView::CollectionRenderer < ::ActionView::PartialRenderer include ::ActionView::AbstractRenderer::ObjectRendering - # source://actionview//lib/action_view/renderer/collection_renderer.rb#130 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:130 def render_collection_derive_partial(collection, context, block); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#112 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:112 def render_collection_with_partial(collection, partial, context, block); end private - # source://actionview//lib/action_view/renderer/collection_renderer.rb#182 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:182 def collection_with_template(view, template, layout, collection); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#153 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:153 def render_collection(collection, view, path, template, layout, block); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#148 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:148 def retrieve_variable(path); end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#36 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:36 class ActionView::CollectionRenderer::CollectionIterator include ::Enumerable - # @return [CollectionIterator] a new instance of CollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#39 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:39 def initialize(collection); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#43 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:43 def each(&blk); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#51 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:51 def length; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#55 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:55 def preload!; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#47 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:47 def size; end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#100 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:100 class ActionView::CollectionRenderer::MixedCollectionIterator < ::ActionView::CollectionRenderer::CollectionIterator - # @return [MixedCollectionIterator] a new instance of MixedCollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#101 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:101 def initialize(collection, paths); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#106 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:106 def each_with_info; end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#78 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:78 class ActionView::CollectionRenderer::PreloadCollectionIterator < ::ActionView::CollectionRenderer::SameCollectionIterator - # @return [PreloadCollectionIterator] a new instance of PreloadCollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#79 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:79 def initialize(collection, path, variables, relation); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#89 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:89 def each_with_info; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#85 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:85 def from_collection(collection); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#95 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:95 def preload!; end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#60 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:60 class ActionView::CollectionRenderer::SameCollectionIterator < ::ActionView::CollectionRenderer::CollectionIterator - # @return [SameCollectionIterator] a new instance of SameCollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#61 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:61 def initialize(collection, path, variables); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#71 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:71 def each_with_info; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#67 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:67 def from_collection(collection); end end @@ -835,134 +786,114 @@ end # object that includes this module (although you can call _prepare_context # defined below). # -# source://actionview//lib/action_view/context.rb#14 +# pkg:gem/actionview#lib/action_view/context.rb:14 module ActionView::Context # Encapsulates the interaction with the view flow so it # returns the correct buffer on +yield+. This is usually # overwritten by helpers to add more behavior. # - # source://actionview//lib/action_view/context.rb#27 + # pkg:gem/actionview#lib/action_view/context.rb:27 def _layout_for(name = T.unsafe(nil)); end # Prepares the context by setting the appropriate instance variables. # - # source://actionview//lib/action_view/context.rb#18 + # pkg:gem/actionview#lib/action_view/context.rb:18 def _prepare_context; end - # Returns the value of attribute output_buffer. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def output_buffer; end - # Sets the attribute output_buffer - # - # @param value the value to set the attribute output_buffer to. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def output_buffer=(_arg0); end - # Returns the value of attribute view_flow. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def view_flow; end - # Sets the attribute view_flow - # - # @param value the value to set the attribute view_flow to. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def view_flow=(_arg0); end end -# source://actionview//lib/action_view/dependency_tracker.rb#8 +# pkg:gem/actionview#lib/action_view/dependency_tracker.rb:8 class ActionView::DependencyTracker extend ::ActiveSupport::Autoload class << self - # source://actionview//lib/action_view/dependency_tracker.rb#17 + # pkg:gem/actionview#lib/action_view/dependency_tracker.rb:17 def find_dependencies(name, template, view_paths = T.unsafe(nil)); end - # source://actionview//lib/action_view/dependency_tracker.rb#24 + # pkg:gem/actionview#lib/action_view/dependency_tracker.rb:24 def register_tracker(extension, tracker); end - # source://actionview//lib/action_view/dependency_tracker.rb#35 + # pkg:gem/actionview#lib/action_view/dependency_tracker.rb:35 def remove_tracker(handler); end end end -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#5 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:5 class ActionView::DependencyTracker::ERBTracker - # @return [ERBTracker] a new instance of ERBTracker - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#72 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:72 def initialize(name, template, view_paths = T.unsafe(nil)); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#76 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:76 def dependencies; end private - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#104 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:104 def add_dependencies(render_dependencies, arguments, pattern); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#112 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:112 def add_dynamic_dependency(dependencies, dependency); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#118 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:118 def add_static_dependency(dependencies, dependency, quote_type); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#88 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:88 def directory; end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#158 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:158 def explicit_dependencies; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#80 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:80 def name; end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#92 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:92 def render_dependencies; end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#84 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:84 def source; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#80 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:80 def template; end class << self - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#68 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:68 def call(name, template, view_paths = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#64 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:64 def supports_view_paths?; end end end -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#6 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:6 ActionView::DependencyTracker::ERBTracker::EXPLICIT_DEPENDENCY = T.let(T.unsafe(nil), Regexp) # A valid ruby identifier - suitable for class, method and specially variable names # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#9 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:9 ActionView::DependencyTracker::ERBTracker::IDENTIFIER = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#58 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:58 ActionView::DependencyTracker::ERBTracker::LAYOUT_DEPENDENCY = T.let(T.unsafe(nil), Regexp) # Part of any hash containing the :layout key # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#36 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:36 ActionView::DependencyTracker::ERBTracker::LAYOUT_HASH_KEY = T.let(T.unsafe(nil), Regexp) # Part of any hash containing the :partial key # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#30 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:30 ActionView::DependencyTracker::ERBTracker::PARTIAL_HASH_KEY = T.let(T.unsafe(nil), Regexp) # Matches: @@ -977,99 +908,81 @@ ActionView::DependencyTracker::ERBTracker::PARTIAL_HASH_KEY = T.let(T.unsafe(nil # topics => "topics/topic" # (message.topics) => "topics/topic" # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#52 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:52 ActionView::DependencyTracker::ERBTracker::RENDER_ARGUMENTS = T.let(T.unsafe(nil), Regexp) # A simple string literal. e.g. "School's out!" # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#23 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:23 ActionView::DependencyTracker::ERBTracker::STRING = T.let(T.unsafe(nil), Regexp) # Any kind of variable name. e.g. @instance, @@class, $global or local. # Possibly following a method call chain # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#16 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:16 ActionView::DependencyTracker::ERBTracker::VARIABLE_OR_METHOD_CHAIN = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#5 +# pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:5 class ActionView::DependencyTracker::RubyTracker - # @return [RubyTracker] a new instance of RubyTracker - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:20 def initialize(name, template, view_paths = T.unsafe(nil), parser_class: T.unsafe(nil)); end - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#12 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:12 def dependencies; end private - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#38 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:38 def explicit_dependencies; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#26 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:26 def name; end - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#28 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:28 def render_dependencies; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#26 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:26 def template; end - # Returns the value of attribute view_paths. - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#26 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:26 def view_paths; end class << self - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#8 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:8 def call(name, template, view_paths = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#16 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:16 def supports_view_paths?; end end end -# source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#6 +# pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:6 ActionView::DependencyTracker::RubyTracker::EXPLICIT_DEPENDENCY = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#5 +# pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:5 class ActionView::DependencyTracker::WildcardResolver - # @return [WildcardResolver] a new instance of WildcardResolver - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#6 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:6 def initialize(view_paths, dependencies); end - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#13 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:13 def resolve; end private - # Returns the value of attribute explicit_dependencies. - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:20 def explicit_dependencies; end - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#22 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:22 def resolved_wildcard_dependencies; end - # Returns the value of attribute view_paths. - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:20 def view_paths; end - # Returns the value of attribute wildcard_dependencies. - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:20 def wildcard_dependencies; end end -# source://actionview//lib/action_view/digestor.rb#6 +# pkg:gem/actionview#lib/action_view/digestor.rb:6 class ActionView::Digestor class << self # Supported options: @@ -1079,165 +992,146 @@ class ActionView::Digestor # * +finder+ - An instance of ActionView::LookupContext # * dependencies - An array of dependent views # - # source://actionview//lib/action_view/digestor.rb#16 + # pkg:gem/actionview#lib/action_view/digestor.rb:16 def digest(name:, finder:, format: T.unsafe(nil), dependencies: T.unsafe(nil)); end - # source://actionview//lib/action_view/digestor.rb#38 + # pkg:gem/actionview#lib/action_view/digestor.rb:38 def logger; end # Create a dependency tree for template named +name+. # - # source://actionview//lib/action_view/digestor.rb#43 + # pkg:gem/actionview#lib/action_view/digestor.rb:43 def tree(name, finder, partial = T.unsafe(nil), seen = T.unsafe(nil)); end private - # source://actionview//lib/action_view/digestor.rb#71 + # pkg:gem/actionview#lib/action_view/digestor.rb:71 def find_template(finder, name, prefixes, partial, keys); end end end -# source://actionview//lib/action_view/digestor.rb#125 +# pkg:gem/actionview#lib/action_view/digestor.rb:125 class ActionView::Digestor::Injected < ::ActionView::Digestor::Node - # source://actionview//lib/action_view/digestor.rb#126 + # pkg:gem/actionview#lib/action_view/digestor.rb:126 def digest(finder, _ = T.unsafe(nil)); end end -# source://actionview//lib/action_view/digestor.rb#121 +# pkg:gem/actionview#lib/action_view/digestor.rb:121 class ActionView::Digestor::Missing < ::ActionView::Digestor::Node - # source://actionview//lib/action_view/digestor.rb#122 + # pkg:gem/actionview#lib/action_view/digestor.rb:122 def digest(finder, _ = T.unsafe(nil)); end end -# source://actionview//lib/action_view/digestor.rb#78 +# pkg:gem/actionview#lib/action_view/digestor.rb:78 class ActionView::Digestor::Node - # @return [Node] a new instance of Node - # - # source://actionview//lib/action_view/digestor.rb#86 + # pkg:gem/actionview#lib/action_view/digestor.rb:86 def initialize(name, logical_name, template, children = T.unsafe(nil)); end - # Returns the value of attribute children. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def children; end - # source://actionview//lib/action_view/digestor.rb#97 + # pkg:gem/actionview#lib/action_view/digestor.rb:97 def dependency_digest(finder, stack); end - # source://actionview//lib/action_view/digestor.rb#93 + # pkg:gem/actionview#lib/action_view/digestor.rb:93 def digest(finder, stack = T.unsafe(nil)); end - # Returns the value of attribute logical_name. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def logical_name; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def name; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def template; end - # source://actionview//lib/action_view/digestor.rb#110 + # pkg:gem/actionview#lib/action_view/digestor.rb:110 def to_dep_map(seen = T.unsafe(nil)); end class << self - # source://actionview//lib/action_view/digestor.rb#81 + # pkg:gem/actionview#lib/action_view/digestor.rb:81 def create(name, logical_name, template, partial); end end end -# source://actionview//lib/action_view/digestor.rb#129 +# pkg:gem/actionview#lib/action_view/digestor.rb:129 class ActionView::Digestor::NullLogger class << self - # source://actionview//lib/action_view/digestor.rb#130 + # pkg:gem/actionview#lib/action_view/digestor.rb:130 def debug(_); end - # source://actionview//lib/action_view/digestor.rb#131 + # pkg:gem/actionview#lib/action_view/digestor.rb:131 def error(_); end end end -# source://actionview//lib/action_view/digestor.rb#119 +# pkg:gem/actionview#lib/action_view/digestor.rb:119 class ActionView::Digestor::Partial < ::ActionView::Digestor::Node; end -# source://actionview//lib/action_view.rb#35 +# pkg:gem/actionview#lib/action_view.rb:35 ActionView::ENCODING_FLAG = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/template/error.rb#11 +# pkg:gem/actionview#lib/action_view/template/error.rb:11 class ActionView::EncodingError < ::StandardError; end # A resolver that loads files from the filesystem. # -# source://actionview//lib/action_view/template/resolver.rb#90 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:90 class ActionView::FileSystemResolver < ::ActionView::Resolver - # @raise [ArgumentError] - # @return [FileSystemResolver] a new instance of FileSystemResolver - # - # source://actionview//lib/action_view/template/resolver.rb#93 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:93 def initialize(path); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/resolver.rb#115 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:115 def ==(resolver); end - # source://actionview//lib/action_view/template/resolver.rb#117 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:117 def all_template_paths; end - # source://actionview//lib/action_view/template/resolver.rb#126 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:126 def built_templates; end - # source://actionview//lib/action_view/template/resolver.rb#101 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:101 def clear_cache; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/resolver.rb#112 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:112 def eql?(resolver); end - # Returns the value of attribute path. - # - # source://actionview//lib/action_view/template/resolver.rb#91 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:91 def path; end - # source://actionview//lib/action_view/template/resolver.rb#110 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:110 def to_path; end - # source://actionview//lib/action_view/template/resolver.rb#107 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:107 def to_s; end private - # source://actionview//lib/action_view/template/resolver.rb#131 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:131 def _find_all(name, prefix, partial, details, key, locals); end - # source://actionview//lib/action_view/template/resolver.rb#150 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:150 def build_unbound_template(template); end - # source://actionview//lib/action_view/template/resolver.rb#208 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:208 def escape_entry(entry); end - # source://actionview//lib/action_view/template/resolver.rb#180 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:180 def filter_and_sort_by_details(templates, requested_details); end - # source://actionview//lib/action_view/template/resolver.rb#146 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:146 def source_for_template(template); end # Safe glob within @path # - # source://actionview//lib/action_view/template/resolver.rb#195 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:195 def template_glob(glob); end - # source://actionview//lib/action_view/template/resolver.rb#163 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:163 def unbound_templates_from_path(path); end end -# source://actionview//lib/action_view/helpers/capture_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:6 module ActionView::Helpers include ::ActiveSupport::Benchmarkable include ::ActionView::Helpers::ActiveModelHelper @@ -1273,48 +1167,42 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods class << self - # source://actionview//lib/action_view/helpers.rb#35 + # pkg:gem/actionview#lib/action_view/helpers.rb:35 def eager_load!; end end end -# source://actionview//lib/action_view/helpers/active_model_helper.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:8 module ActionView::Helpers::ActiveModelHelper; end # = Active \Model Instance Tag \Helpers # -# source://actionview//lib/action_view/helpers/active_model_helper.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:12 module ActionView::Helpers::ActiveModelInstanceTag - # source://actionview//lib/action_view/helpers/active_model_helper.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:20 def content_tag(type, options, *_arg2); end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#36 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:36 def error_message; end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:28 def error_wrapping(html_tag); end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:13 def object; end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#24 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:24 def tag(type, options, *_arg2); end private - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/active_model_helper.rb#41 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:41 def object_has_errors?; end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/active_model_helper.rb#45 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:45 def select_markup_helper?(type); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/active_model_helper.rb#49 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:49 def tag_generate_errors?(options); end end @@ -1329,17 +1217,17 @@ end # stylesheet_link_tag("application") # # => # -# source://actionview//lib/action_view/helpers/asset_tag_helper.rb#21 +# pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:21 module ActionView::Helpers::AssetTagHelper include ::ActionView::Helpers::AssetUrlHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper include ::ActionView::Helpers::TagHelper - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default=(val); end # Returns an HTML audio tag for the +sources+. If +sources+ is a string, @@ -1365,7 +1253,7 @@ module ActionView::Helpers::AssetTagHelper # audio_tag(user.name_pronunciation_audio) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#612 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:612 def audio_tag(*sources); end # Returns a link tag that browsers and feed readers can use to auto-detect @@ -1396,19 +1284,19 @@ module ActionView::Helpers::AssetTagHelper # auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {title: "Example RSS"}) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#279 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:279 def auto_discovery_link_tag(type = T.unsafe(nil), url_options = T.unsafe(nil), tag_options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:29 def auto_include_nonce_for_scripts; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:29 def auto_include_nonce_for_scripts=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:30 def auto_include_nonce_for_styles; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:30 def auto_include_nonce_for_styles=(val); end # Returns a link tag for a favicon managed by the asset pipeline. @@ -1439,19 +1327,19 @@ module ActionView::Helpers::AssetTagHelper # favicon_link_tag 'mb-icon.png', rel: 'apple-touch-icon', type: 'image/png' # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#320 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:320 def favicon_link_tag(source = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading=(val); end # Returns an HTML image tag for the +source+. The +source+ can be a full @@ -1500,7 +1388,7 @@ module ActionView::Helpers::AssetTagHelper # image_tag(user.avatar.variant(resize_to_limit: [100, 100]), size: '100') # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#449 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:449 def image_tag(source, options = T.unsafe(nil)); end # Returns an HTML script tag for each of the +sources+ provided. @@ -1587,7 +1475,7 @@ module ActionView::Helpers::AssetTagHelper # javascript_include_tag "http://www.example.com/xmlhr.js", defer: true # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#115 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:115 def javascript_include_tag(*sources); end # Returns an HTML picture tag for the +sources+. If +sources+ is a string, @@ -1630,7 +1518,7 @@ module ActionView::Helpers::AssetTagHelper # picture_tag(user.profile_picture) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#510 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:510 def picture_tag(*sources, &block); end # Returns a link tag that browsers can use to preload the +source+. @@ -1668,13 +1556,13 @@ module ActionView::Helpers::AssetTagHelper # preload_link_tag("/media/audio.ogg", nopush: true) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#363 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:363 def preload_link_tag(source, options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header=(val); end # Returns a stylesheet link tag for the sources specified as arguments. @@ -1730,7 +1618,7 @@ module ActionView::Helpers::AssetTagHelper # stylesheet_link_tag "style", nonce: true # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#207 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:207 def stylesheet_link_tag(*sources); end # Returns an HTML video tag for the +sources+. If +sources+ is a string, @@ -1782,66 +1670,64 @@ module ActionView::Helpers::AssetTagHelper # video_tag(user.intro_video) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#580 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:580 def video_tag(*sources); end private - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#653 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:653 def check_for_image_tag_errors(options); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#644 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:644 def extract_dimensions(size); end - # @yield [options] - # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#617 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:617 def multiple_sources_tag_builder(type, sources); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#634 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:634 def resolve_asset_source(asset_type, source, skip_pipeline); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#659 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:659 def resolve_link_as(extname, mime_type); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#673 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:673 def send_preload_links_header(preload_links, max_header_size: T.unsafe(nil)); end class << self - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:29 def auto_include_nonce_for_scripts; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:29 def auto_include_nonce_for_scripts=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:30 def auto_include_nonce_for_styles; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:30 def auto_include_nonce_for_styles=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header=(val); end end end @@ -1849,7 +1735,7 @@ end # Some HTTP client and proxies have a 4kiB header limit, but more importantly # including preload links has diminishing returns so it's best to not go overboard # -# source://actionview//lib/action_view/helpers/asset_tag_helper.rb#671 +# pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:671 ActionView::Helpers::AssetTagHelper::MAX_HEADER_SIZE = T.let(T.unsafe(nil), Integer) # = Action View Asset URL \Helpers @@ -1966,7 +1852,7 @@ ActionView::Helpers::AssetTagHelper::MAX_HEADER_SIZE = T.let(T.unsafe(nil), Inte # "http://asset%d.example.com", "https://asset1.example.com" # ) # -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#121 +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:121 module ActionView::Helpers::AssetUrlHelper # This is the entry point for all assets. # When using an asset pipeline gem (e.g. propshaft or sprockets-rails), the @@ -2032,9 +1918,7 @@ module ActionView::Helpers::AssetUrlHelper # asset_path("foo", skip_pipeline: true, extname: ".js") # => "/foo.js" # asset_path("foo.css", skip_pipeline: true, extname: ".js") # => "/foo.css.js" # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#187 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:187 def asset_path(source, options = T.unsafe(nil)); end # Computes the full URL to an asset in the public directory. This @@ -2047,7 +1931,7 @@ module ActionView::Helpers::AssetUrlHelper # asset_url "application.js" # => http://example.com/assets/application.js # asset_url "application.js", host: "http://cdn.example.com" # => http://cdn.example.com/assets/application.js # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#231 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:231 def asset_url(source, options = T.unsafe(nil)); end # Computes the path to an audio asset in the public audios directory. @@ -2060,7 +1944,7 @@ module ActionView::Helpers::AssetUrlHelper # audio_path("/sounds/horse.wav") # => /sounds/horse.wav # audio_path("http://www.example.com/sounds/horse.wav") # => http://www.example.com/sounds/horse.wav # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#430 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:430 def audio_path(source, options = T.unsafe(nil)); end # Computes the full URL to an audio asset in the public audios directory. @@ -2070,13 +1954,13 @@ module ActionView::Helpers::AssetUrlHelper # # audio_url "horse.wav", host: "http://stage.example.com" # => http://stage.example.com/audios/horse.wav # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#442 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:442 def audio_url(source, options = T.unsafe(nil)); end # Compute extname to append to asset path. Returns +nil+ if # nothing should be added. # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#243 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:243 def compute_asset_extname(source, options = T.unsafe(nil)); end # Pick an asset host for this source. Returns +nil+ if no host is set, @@ -2085,14 +1969,14 @@ module ActionView::Helpers::AssetUrlHelper # or the value returned from invoking call on an object responding to call # (proc or otherwise). # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#277 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:277 def compute_asset_host(source = T.unsafe(nil), options = T.unsafe(nil)); end # Computes asset path to public directory. Plugins and # extensions can override this method to point to custom assets # or generate digested paths or query strings. # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#266 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:266 def compute_asset_path(source, options = T.unsafe(nil)); end # Computes the path to a font asset. @@ -2104,7 +1988,7 @@ module ActionView::Helpers::AssetUrlHelper # font_path("/dir/font.ttf") # => /dir/font.ttf # font_path("http://www.example.com/dir/font.ttf") # => http://www.example.com/dir/font.ttf # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#455 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:455 def font_path(source, options = T.unsafe(nil)); end # Computes the full URL to a font asset. @@ -2114,7 +1998,7 @@ module ActionView::Helpers::AssetUrlHelper # # font_url "font.ttf", host: "http://stage.example.com" # => http://stage.example.com/fonts/font.ttf # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#467 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:467 def font_url(source, options = T.unsafe(nil)); end # Computes the path to an image asset. @@ -2131,7 +2015,7 @@ module ActionView::Helpers::AssetUrlHelper # The alias +path_to_image+ is provided to avoid that. \Rails uses the alias internally, and # plugin authors are encouraged to do so. # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#378 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:378 def image_path(source, options = T.unsafe(nil)); end # Computes the full URL to an image asset. @@ -2141,7 +2025,7 @@ module ActionView::Helpers::AssetUrlHelper # # image_url "edit.png", host: "http://stage.example.com" # => http://stage.example.com/assets/edit.png # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#390 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:390 def image_url(source, options = T.unsafe(nil)); end # Computes the path to a JavaScript asset in the public javascripts directory. @@ -2155,7 +2039,7 @@ module ActionView::Helpers::AssetUrlHelper # javascript_path "http://www.example.com/js/xmlhr" # => http://www.example.com/js/xmlhr # javascript_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#321 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:321 def javascript_path(source, options = T.unsafe(nil)); end # Computes the full URL to a JavaScript asset in the public javascripts directory. @@ -2165,173 +2049,31 @@ module ActionView::Helpers::AssetUrlHelper # # javascript_url "js/xmlhr.js", host: "http://stage.example.com" # => http://stage.example.com/assets/js/xmlhr.js # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#333 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:333 def javascript_url(source, options = T.unsafe(nil)); end - # This is the entry point for all assets. - # When using an asset pipeline gem (e.g. propshaft or sprockets-rails), the - # behavior is "enhanced". You can bypass the asset pipeline by passing in - # skip_pipeline: true to the options. - # - # All other asset *_path helpers delegate through this method. - # - # === With the asset pipeline - # - # All options passed to +asset_path+ will be passed to +compute_asset_path+ - # which is implemented by asset pipeline gems. - # - # asset_path("application.js") # => "/assets/application-60aa4fdc5cea14baf5400fba1abf4f2a46a5166bad4772b1effe341570f07de9.js" - # asset_path('application.js', host: 'example.com') # => "//example.com/assets/application.js" - # asset_path("application.js", host: 'example.com', protocol: 'https') # => "https://example.com/assets/application.js" - # - # === Without the asset pipeline (skip_pipeline: true) - # - # Accepts a type option that can specify the asset's extension. No error - # checking is done to verify the source passed into +asset_path+ is valid - # and that the file exists on disk. - # - # asset_path("application.js", skip_pipeline: true) # => "application.js" - # asset_path("filedoesnotexist.png", skip_pipeline: true) # => "filedoesnotexist.png" - # asset_path("application", type: :javascript, skip_pipeline: true) # => "/javascripts/application.js" - # asset_path("application", type: :stylesheet, skip_pipeline: true) # => "/stylesheets/application.css" - # - # === Options applying to all assets - # - # Below lists scenarios that apply to +asset_path+ whether or not you're - # using the asset pipeline. - # - # - All fully qualified URLs are returned immediately. This bypasses the - # asset pipeline and all other behavior described. - # - # asset_path("http://www.example.com/js/xmlhr.js") # => "http://www.example.com/js/xmlhr.js" - # - # - All assets that begin with a forward slash are assumed to be full - # URLs and will not be expanded. This will bypass the asset pipeline. - # - # asset_path("/foo.png") # => "/foo.png" - # - # - All blank strings will be returned immediately. This bypasses the - # asset pipeline and all other behavior described. - # - # asset_path("") # => "" - # - # - If config.relative_url_root is specified, all assets will have that - # root prepended. - # - # Rails.application.config.relative_url_root = "bar" - # asset_path("foo.js", skip_pipeline: true) # => "bar/foo.js" - # - # - A different asset host can be specified via config.action_controller.asset_host - # this is commonly used in conjunction with a CDN. - # - # Rails.application.config.action_controller.asset_host = "assets.example.com" - # asset_path("foo.js", skip_pipeline: true) # => "http://assets.example.com/foo.js" - # - # - An extension name can be specified manually with extname. - # - # asset_path("foo", skip_pipeline: true, extname: ".js") # => "/foo.js" - # asset_path("foo.css", skip_pipeline: true, extname: ".js") # => "/foo.css.js" - # aliased to avoid conflicts with an asset_path named route - # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#219 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:219 def path_to_asset(source, options = T.unsafe(nil)); end - # Computes the path to an audio asset in the public audios directory. - # Full paths from the document root will be passed through. - # Used internally by +audio_tag+ to build the audio path. - # - # audio_path("horse") # => /audios/horse - # audio_path("horse.wav") # => /audios/horse.wav - # audio_path("sounds/horse.wav") # => /audios/sounds/horse.wav - # audio_path("/sounds/horse.wav") # => /sounds/horse.wav - # audio_path("http://www.example.com/sounds/horse.wav") # => http://www.example.com/sounds/horse.wav - # aliased to avoid conflicts with an audio_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#433 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:433 def path_to_audio(source, options = T.unsafe(nil)); end - # Computes the path to a font asset. - # Full paths from the document root will be passed through. - # - # font_path("font") # => /fonts/font - # font_path("font.ttf") # => /fonts/font.ttf - # font_path("dir/font.ttf") # => /fonts/dir/font.ttf - # font_path("/dir/font.ttf") # => /dir/font.ttf - # font_path("http://www.example.com/dir/font.ttf") # => http://www.example.com/dir/font.ttf - # aliased to avoid conflicts with a font_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#458 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:458 def path_to_font(source, options = T.unsafe(nil)); end - # Computes the path to an image asset. - # Full paths from the document root will be passed through. - # Used internally by +image_tag+ to build the image path: - # - # image_path("edit") # => "/assets/edit" - # image_path("edit.png") # => "/assets/edit.png" - # image_path("icons/edit.png") # => "/assets/icons/edit.png" - # image_path("/icons/edit.png") # => "/icons/edit.png" - # image_path("http://www.example.com/img/edit.png") # => "http://www.example.com/img/edit.png" - # - # If you have images as application resources this method may conflict with their named routes. - # The alias +path_to_image+ is provided to avoid that. \Rails uses the alias internally, and - # plugin authors are encouraged to do so. - # aliased to avoid conflicts with an image_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#381 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:381 def path_to_image(source, options = T.unsafe(nil)); end - # Computes the path to a JavaScript asset in the public javascripts directory. - # If the +source+ filename has no extension, .js will be appended (except for explicit URIs) - # Full paths from the document root will be passed through. - # Used internally by +javascript_include_tag+ to build the script path. - # - # javascript_path "xmlhr" # => /assets/xmlhr.js - # javascript_path "dir/xmlhr.js" # => /assets/dir/xmlhr.js - # javascript_path "/dir/xmlhr" # => /dir/xmlhr.js - # javascript_path "http://www.example.com/js/xmlhr" # => http://www.example.com/js/xmlhr - # javascript_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js - # aliased to avoid conflicts with a javascript_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#324 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:324 def path_to_javascript(source, options = T.unsafe(nil)); end - # Computes the path to a stylesheet asset in the public stylesheets directory. - # If the +source+ filename has no extension, .css will be appended (except for explicit URIs). - # Full paths from the document root will be passed through. - # Used internally by +stylesheet_link_tag+ to build the stylesheet path. - # - # stylesheet_path "style" # => /assets/style.css - # stylesheet_path "dir/style.css" # => /assets/dir/style.css - # stylesheet_path "/dir/style.css" # => /dir/style.css - # stylesheet_path "http://www.example.com/css/style" # => http://www.example.com/css/style - # stylesheet_path "http://www.example.com/css/style.css" # => http://www.example.com/css/style.css - # aliased to avoid conflicts with a stylesheet_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#351 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:351 def path_to_stylesheet(source, options = T.unsafe(nil)); end - # Computes the path to a video asset in the public videos directory. - # Full paths from the document root will be passed through. - # Used internally by +video_tag+ to build the video path. - # - # video_path("hd") # => /videos/hd - # video_path("hd.avi") # => /videos/hd.avi - # video_path("trailers/hd.avi") # => /videos/trailers/hd.avi - # video_path("/trailers/hd.avi") # => /trailers/hd.avi - # video_path("http://www.example.com/vid/hd.avi") # => http://www.example.com/vid/hd.avi - # aliased to avoid conflicts with a video_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#407 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:407 def path_to_video(source, options = T.unsafe(nil)); end - # Computes asset path to public directory. Plugins and - # extensions can override this method to point to custom assets - # or generate digested paths or query strings. - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#270 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:270 def public_compute_asset_path(source, options = T.unsafe(nil)); end # Computes the path to a stylesheet asset in the public stylesheets directory. @@ -2345,7 +2087,7 @@ module ActionView::Helpers::AssetUrlHelper # stylesheet_path "http://www.example.com/css/style" # => http://www.example.com/css/style # stylesheet_path "http://www.example.com/css/style.css" # => http://www.example.com/css/style.css # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#348 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:348 def stylesheet_path(source, options = T.unsafe(nil)); end # Computes the full URL to a stylesheet asset in the public stylesheets directory. @@ -2355,87 +2097,28 @@ module ActionView::Helpers::AssetUrlHelper # # stylesheet_url "css/style.css", host: "http://stage.example.com" # => http://stage.example.com/assets/css/style.css # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#360 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:360 def stylesheet_url(source, options = T.unsafe(nil)); end - # Computes the full URL to an asset in the public directory. This - # will use +asset_path+ internally, so most of their behaviors - # will be the same. If +:host+ options is set, it overwrites global - # +config.action_controller.asset_host+ setting. - # - # All other options provided are forwarded to +asset_path+ call. - # - # asset_url "application.js" # => http://example.com/assets/application.js - # asset_url "application.js", host: "http://cdn.example.com" # => http://cdn.example.com/assets/application.js - # aliased to avoid conflicts with an asset_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#234 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:234 def url_to_asset(source, options = T.unsafe(nil)); end - # Computes the full URL to an audio asset in the public audios directory. - # This will use +audio_path+ internally, so most of their behaviors will be the same. - # Since +audio_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # audio_url "horse.wav", host: "http://stage.example.com" # => http://stage.example.com/audios/horse.wav - # aliased to avoid conflicts with an audio_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#445 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:445 def url_to_audio(source, options = T.unsafe(nil)); end - # Computes the full URL to a font asset. - # This will use +font_path+ internally, so most of their behaviors will be the same. - # Since +font_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # font_url "font.ttf", host: "http://stage.example.com" # => http://stage.example.com/fonts/font.ttf - # aliased to avoid conflicts with a font_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#470 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:470 def url_to_font(source, options = T.unsafe(nil)); end - # Computes the full URL to an image asset. - # This will use +image_path+ internally, so most of their behaviors will be the same. - # Since +image_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # image_url "edit.png", host: "http://stage.example.com" # => http://stage.example.com/assets/edit.png - # aliased to avoid conflicts with an image_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#393 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:393 def url_to_image(source, options = T.unsafe(nil)); end - # Computes the full URL to a JavaScript asset in the public javascripts directory. - # This will use +javascript_path+ internally, so most of their behaviors will be the same. - # Since +javascript_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # javascript_url "js/xmlhr.js", host: "http://stage.example.com" # => http://stage.example.com/assets/js/xmlhr.js - # aliased to avoid conflicts with a javascript_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#336 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:336 def url_to_javascript(source, options = T.unsafe(nil)); end - # Computes the full URL to a stylesheet asset in the public stylesheets directory. - # This will use +stylesheet_path+ internally, so most of their behaviors will be the same. - # Since +stylesheet_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # stylesheet_url "css/style.css", host: "http://stage.example.com" # => http://stage.example.com/assets/css/style.css - # aliased to avoid conflicts with a stylesheet_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#363 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:363 def url_to_stylesheet(source, options = T.unsafe(nil)); end - # Computes the full URL to a video asset in the public videos directory. - # This will use +video_path+ internally, so most of their behaviors will be the same. - # Since +video_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # video_url "hd.avi", host: "http://stage.example.com" # => http://stage.example.com/videos/hd.avi - # aliased to avoid conflicts with a video_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#419 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:419 def url_to_video(source, options = T.unsafe(nil)); end # Computes the path to a video asset in the public videos directory. @@ -2448,7 +2131,7 @@ module ActionView::Helpers::AssetUrlHelper # video_path("/trailers/hd.avi") # => /trailers/hd.avi # video_path("http://www.example.com/vid/hd.avi") # => http://www.example.com/vid/hd.avi # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#404 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:404 def video_path(source, options = T.unsafe(nil)); end # Computes the full URL to a video asset in the public videos directory. @@ -2458,24 +2141,26 @@ module ActionView::Helpers::AssetUrlHelper # # video_url "hd.avi", host: "http://stage.example.com" # => http://stage.example.com/videos/hd.avi # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#416 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:416 def video_url(source, options = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#236 +# aliased to avoid conflicts with an asset_url named route +# +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:236 ActionView::Helpers::AssetUrlHelper::ASSET_EXTENSIONS = T.let(T.unsafe(nil), Hash) # Maps asset types to public directory. # -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#254 +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:254 ActionView::Helpers::AssetUrlHelper::ASSET_PUBLIC_DIRECTORIES = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#122 +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:122 ActionView::Helpers::AssetUrlHelper::URI_REGEXP = T.let(T.unsafe(nil), Regexp) # = Action View Atom Feed \Helpers # -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:6 module ActionView::Helpers::AtomFeedHelper # Adds easy defaults to writing Atom feeds with the Builder template engine (this does not work on ERB or any other # template languages). @@ -2567,15 +2252,13 @@ module ActionView::Helpers::AtomFeedHelper # atom_feed yields an +AtomFeedBuilder+ instance. Nested elements yield # an +AtomBuilder+ instance. # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#96 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:96 def atom_feed(options = T.unsafe(nil), &block); end end -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#127 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:127 class ActionView::Helpers::AtomFeedHelper::AtomBuilder - # @return [AtomBuilder] a new instance of AtomBuilder - # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#130 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:130 def initialize(xml); end private @@ -2584,27 +2267,23 @@ class ActionView::Helpers::AtomFeedHelper::AtomBuilder # namespaced div element if the method and arguments indicate # that an xhtml_block? is desired. # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#138 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:138 def method_missing(method, *arguments, &block); end # True if the method name matches one of the five elements defined # in the Atom spec as potentially containing XHTML content and # if type: 'xhtml' is, in fact, specified. # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#153 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:153 def xhtml_block?(method, arguments); end end -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#128 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:128 ActionView::Helpers::AtomFeedHelper::AtomBuilder::XHTML_TAG_NAMES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#161 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:161 class ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder < ::ActionView::Helpers::AtomFeedHelper::AtomBuilder - # @return [AtomFeedBuilder] a new instance of AtomFeedBuilder - # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#162 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:162 def initialize(xml, view, feed_options = T.unsafe(nil)); end # Creates an entry tag for a specific record and prefills the id using class and id. @@ -2617,18 +2296,18 @@ class ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder < ::ActionView::Helpe # * :id: The ID for this entry. Defaults to "tag:#{@view.request.host},#{@feed_options[:schema_date]}:#{record.class}/#{record.id}" # * :type: The TYPE for this entry. Defaults to "text/html". # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#180 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:180 def entry(record, options = T.unsafe(nil)); end # Accepts a Date or Time object and inserts it in the proper format. If +nil+ is passed, current time in UTC is used. # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#167 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:167 def updated(date_or_time = T.unsafe(nil)); end end # = Action View Cache \Helpers # -# source://actionview//lib/action_view/helpers/cache_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:6 module ActionView::Helpers::CacheHelper # This helper exposes a method for caching fragments of a view # rather than an entire action or page. This technique is useful @@ -2798,7 +2477,7 @@ module ActionView::Helpers::CacheHelper # This will include both records as part of the cache key and updating either of them will # expire the cache. # - # source://actionview//lib/action_view/helpers/cache_helper.rb#176 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:176 def cache(name = T.unsafe(nil), options = T.unsafe(nil), &block); end # This helper returns the name of a cache key for a given fragment cache @@ -2807,7 +2486,7 @@ module ActionView::Helpers::CacheHelper # cannot be manually expired unless you know the exact key which is the # case when using memcached. # - # source://actionview//lib/action_view/helpers/cache_helper.rb#248 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:248 def cache_fragment_name(name = T.unsafe(nil), skip_digest: T.unsafe(nil), digest_path: T.unsafe(nil)); end # Cache fragments of a view if +condition+ is true @@ -2817,7 +2496,7 @@ module ActionView::Helpers::CacheHelper # <%= render project.topics %> # <% end %> # - # source://actionview//lib/action_view/helpers/cache_helper.rb#223 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:223 def cache_if(condition, name = T.unsafe(nil), options = T.unsafe(nil), &block); end # Cache fragments of a view unless +condition+ is true @@ -2827,7 +2506,7 @@ module ActionView::Helpers::CacheHelper # <%= render project.topics %> # <% end %> # - # source://actionview//lib/action_view/helpers/cache_helper.rb#239 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:239 def cache_unless(condition, name = T.unsafe(nil), options = T.unsafe(nil), &block); end # Returns whether the current view fragment is within a +cache+ block. @@ -2838,12 +2517,10 @@ module ActionView::Helpers::CacheHelper # <% raise StandardError, "Caching private data!" if caching? %> # <% end %> # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/cache_helper.rb#196 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:196 def caching?; end - # source://actionview//lib/action_view/helpers/cache_helper.rb#256 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:256 def digest_path_from_template(template); end # Raises UncacheableFragmentError when called from within a +cache+ block. @@ -2860,40 +2537,36 @@ module ActionView::Helpers::CacheHelper # <%= project_name_with_time(project) %> # <% end %> # - # @raise [UncacheableFragmentError] - # - # source://actionview//lib/action_view/helpers/cache_helper.rb#213 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:213 def uncacheable!; end private - # source://actionview//lib/action_view/helpers/cache_helper.rb#278 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:278 def fragment_for(name = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview//lib/action_view/helpers/cache_helper.rb#267 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:267 def fragment_name_with_digest(name, digest_path); end - # source://actionview//lib/action_view/helpers/cache_helper.rb#288 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:288 def read_fragment_for(name, options); end - # source://actionview//lib/action_view/helpers/cache_helper.rb#292 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:292 def write_fragment_for(name, options, &block); end end -# source://actionview//lib/action_view/helpers/cache_helper.rb#297 +# pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:297 module ActionView::Helpers::CacheHelper::CachingRegistry extend ::ActionView::Helpers::CacheHelper::CachingRegistry - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/cache_helper.rb#300 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:300 def caching?; end - # source://actionview//lib/action_view/helpers/cache_helper.rb#304 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:304 def track_caching; end end -# source://actionview//lib/action_view/helpers/cache_helper.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:7 class ActionView::Helpers::CacheHelper::UncacheableFragmentError < ::StandardError; end # = Action View Capture \Helpers @@ -2907,7 +2580,7 @@ class ActionView::Helpers::CacheHelper::UncacheableFragmentError < ::StandardErr # As well as provides a method when using streaming responses through #provide. # See ActionController::Streaming for more information. # -# source://actionview//lib/action_view/helpers/capture_helper.rb#17 +# pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:17 module ActionView::Helpers::CaptureHelper # The capture method extracts part of a template as a string object. # You can then use this object anywhere in your templates, layout, or helpers. @@ -2938,7 +2611,7 @@ module ActionView::Helpers::CaptureHelper # # @greeting # => "Welcome to my shiny new web page! The date and time is 2018-09-06 11:09:16 -0500" # - # source://actionview//lib/action_view/helpers/capture_helper.rb#47 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:47 def capture(*_arg0, **_arg1, &block); end # Calling content_for stores a block of markup in an identifier for later use. @@ -3046,7 +2719,7 @@ module ActionView::Helpers::CaptureHelper # # WARNING: content_for is ignored in caches. So you shouldn't use it for elements that will be fragment cached. # - # source://actionview//lib/action_view/helpers/capture_helper.rb#172 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:172 def content_for(name, content = T.unsafe(nil), options = T.unsafe(nil), &block); end # content_for? checks whether any content has been captured yet using content_for. @@ -3065,9 +2738,7 @@ module ActionView::Helpers::CaptureHelper # # # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/capture_helper.rb#215 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:215 def content_for?(name); end # The same as +content_for+ but when used with streaming flushes @@ -3078,32 +2749,32 @@ module ActionView::Helpers::CaptureHelper # # See ActionController::Streaming for more information. # - # source://actionview//lib/action_view/helpers/capture_helper.rb#194 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:194 def provide(name, content = T.unsafe(nil), &block); end # Use an alternate output buffer for the duration of the block. # Defaults to a new empty string. # - # source://actionview//lib/action_view/helpers/capture_helper.rb#221 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:221 def with_output_buffer(buf = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#5 +# pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:5 module ActionView::Helpers::ContentExfiltrationPreventionHelper - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention; end - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention=(val); end - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#61 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:61 def prevent_content_exfiltration(html); end class << self - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention; end - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention=(val); end end end @@ -3121,7 +2792,7 @@ end # - # - # textarea(:comment, :text, size: "20x30") - # # => - # - # textarea(:application, :notes, cols: 40, rows: 15, class: 'app_input') - # # => - # - # textarea(:entry, :body, size: "20x20", disabled: 'disabled') - # # => - # - # source://actionview//lib/action_view/helpers/form_helper.rb#1280 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1280 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 @@ -6886,7 +6288,7 @@ module ActionView::Helpers::FormHelper # text_field(:snippet, :code, size: 20, class: 'code_input') # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1175 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1175 def text_field(object_name, method, options = T.unsafe(nil)); end # Returns a textarea opening and closing tag set tailored for accessing a specified attribute (identified by +method+) @@ -6914,7 +6316,7 @@ module ActionView::Helpers::FormHelper # # #{@entry.body} # # # - # source://actionview//lib/action_view/helpers/form_helper.rb#1277 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1277 def textarea(object_name, method, options = T.unsafe(nil)); end # Returns a text_field of type "time". @@ -6952,7 +6354,7 @@ module ActionView::Helpers::FormHelper # time_field("task", "started_at", value: Time.now, include_seconds: false) # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1479 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1479 def time_field(object_name, method, options = T.unsafe(nil)); end # Returns a text_field of type "url". @@ -6960,7 +6362,7 @@ module ActionView::Helpers::FormHelper # url_field("user", "homepage") # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1559 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1559 def url_field(object_name, method, options = T.unsafe(nil)); end # Returns a text_field of type "week". @@ -6976,40 +6378,40 @@ module ActionView::Helpers::FormHelper # week_field("user", "born_on") # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1550 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1550 def week_field(object_name, method, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/form_helper.rb#465 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:465 def apply_form_for_options!(object, options); end - # source://actionview//lib/action_view/helpers/form_helper.rb#1624 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1624 def default_form_builder_class; end - # source://actionview//lib/action_view/helpers/form_helper.rb#1595 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1595 def html_options_for_form_with(url_for_options = T.unsafe(nil), model = T.unsafe(nil), html: T.unsafe(nil), local: T.unsafe(nil), skip_enforcing_utf8: T.unsafe(nil), **options); end - # source://actionview//lib/action_view/helpers/form_helper.rb#1610 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1610 def instantiate_builder(record_name, record_object, options); end class << self - # source://actionview//lib/action_view/helpers/form_helper.rb#481 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:481 def form_with_generates_ids; end - # source://actionview//lib/action_view/helpers/form_helper.rb#481 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:481 def form_with_generates_ids=(val); end - # source://actionview//lib/action_view/helpers/form_helper.rb#479 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:479 def form_with_generates_remote_forms; end - # source://actionview//lib/action_view/helpers/form_helper.rb#479 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:479 def form_with_generates_remote_forms=(val); end - # source://actionview//lib/action_view/helpers/form_helper.rb#483 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:483 def multiple_file_field_include_hidden; end - # source://actionview//lib/action_view/helpers/form_helper.rb#483 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:483 def multiple_file_field_include_hidden=(val); end end end @@ -7025,169 +6427,88 @@ end # select(:post, :category, Post::CATEGORIES, { include_blank: true }) # # could become: -# -# -# -# Another common case is a select tag for a belongs_to-associated object. -# -# Example with @post.person_id => 2: -# -# select(:post, :person_id, Person.all.collect { |p| [ p.name, p.id ] }, { include_blank: "None" }) -# -# could become: -# -# -# -# * :prompt - set to true or a prompt string. When the select element doesn't have a value yet, this prepends an option with a generic prompt -- "Please select" -- or the given prompt string. -# -# select(:post, :person_id, Person.all.collect { |p| [ p.name, p.id ] }, { prompt: "Select Person" }) -# -# could become: -# -# -# -# * :index - like the other form helpers, #select can accept an :index option to manually set the ID used in the resulting output. Unlike other helpers, #select expects this -# option to be in the +html_options+ parameter. -# -# select("album[]", :genre, %w[ rap rock country ], {}, { index: nil }) -# -# becomes: -# -# -# -# * :disabled - can be a single value or an array of values that will be disabled options in the final output. -# -# select(:post, :category, Post::CATEGORIES, { disabled: "restricted" }) -# -# could become: -# -# -# -# When used with the #collection_select helper, :disabled can also be a Proc that identifies those options that should be disabled. -# -# collection_select(:post, :category_id, Category.all, :id, :name, { disabled: -> (category) { category.archived? } }) -# -# If the categories "2008 stuff" and "Christmas" return true when the method archived? is called, this would return: -# -# -# source://actionview//lib/action_view/helpers/form_options_helper.rb#93 -module ActionView::Helpers::FormOptionsHelper - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::ActionView::Helpers::TextHelper - extend ::ActionView::Helpers::SanitizeHelper::ClassMethods - - # Returns check box tags for the collection of existing return values of - # +method+ for +object+'s class. The value returned from calling +method+ - # on the instance +object+ will be selected. If calling +method+ returns - # +nil+, no selection is made. - # - # The :value_method and :text_method parameters are - # methods to be called on each member of +collection+. The return values - # are used as the +value+ attribute and contents of each check box tag, - # respectively. They can also be any object that responds to +call+, such - # as a +proc+, that will be called for each member of the +collection+ to - # retrieve the value/text. - # - # Example object structure for use with this method: - # class Post < ActiveRecord::Base - # has_and_belongs_to_many :authors - # end - # class Author < ActiveRecord::Base - # has_and_belongs_to_many :posts - # def name_with_initial - # "#{first_name.first}. #{last_name}" - # end - # end - # - # Sample usage (selecting the associated Author for an instance of Post, @post): - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) - # - # If @post.author_ids is already [1], this would return: - # - # - # - # - # - # - # - # - # It is also possible to customize the way the elements will be shown by - # giving a block to the method: - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b| - # b.label { b.checkbox } - # end - # - # The argument passed to the block is a special kind of builder for this - # collection, which has the ability to generate the label and check box - # for the current item in the collection, with proper text and value. - # Using it, you can change the label and check box display order or even - # use the label as wrapper, as in the example above. - # - # The builder methods label and checkbox also accept - # extra HTML options: - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b| - # b.label(class: "checkbox") { b.checkbox(class: "checkbox") } - # end - # - # There are also three special methods available: object, text and - # value, which are the current item being rendered, its text and value methods, - # respectively. You can use them like this: - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b| - # b.label(:"data-value" => b.value) { b.checkbox + b.text } - # end - # - # ==== Gotcha - # - # When no selection is made for a collection of checkboxes most - # web browsers will not send any value. - # - # For example, if we have a +User+ model with +category_ids+ field and we - # have the following code in our update action: - # - # @user.update(params[:user]) - # - # If no +category_ids+ are selected then we can safely assume this field - # will not be updated. - # - # This is possible thanks to a hidden field generated by the helper method - # for every collection of checkboxes. - # This hidden field is given the same field name as the checkboxes with a - # blank value. - # - # In the rare case you don't want this hidden field, you can pass the - # include_hidden: false option to the helper method. - # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#787 +# +# +# +# Another common case is a select tag for a belongs_to-associated object. +# +# Example with @post.person_id => 2: +# +# select(:post, :person_id, Person.all.collect { |p| [ p.name, p.id ] }, { include_blank: "None" }) +# +# could become: +# +# +# +# * :prompt - set to true or a prompt string. When the select element doesn't have a value yet, this prepends an option with a generic prompt -- "Please select" -- or the given prompt string. +# +# select(:post, :person_id, Person.all.collect { |p| [ p.name, p.id ] }, { prompt: "Select Person" }) +# +# could become: +# +# +# +# * :index - like the other form helpers, #select can accept an :index option to manually set the ID used in the resulting output. Unlike other helpers, #select expects this +# option to be in the +html_options+ parameter. +# +# select("album[]", :genre, %w[ rap rock country ], {}, { index: nil }) +# +# becomes: +# +# +# +# * :disabled - can be a single value or an array of values that will be disabled options in the final output. +# +# select(:post, :category, Post::CATEGORIES, { disabled: "restricted" }) +# +# could become: +# +# +# +# When used with the #collection_select helper, :disabled can also be a Proc that identifies those options that should be disabled. +# +# collection_select(:post, :category_id, Category.all, :id, :name, { disabled: -> (category) { category.archived? } }) +# +# If the categories "2008 stuff" and "Christmas" return true when the method archived? is called, this would return: +# +# +# pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:93 +module ActionView::Helpers::FormOptionsHelper + include ::ActionView::Helpers::SanitizeHelper + include ::ActionView::Helpers::CaptureHelper + include ::ActionView::Helpers::OutputSafetyHelper + include ::ActionView::Helpers::TagHelper + include ::ActionView::Helpers::TextHelper + extend ::ActionView::Helpers::SanitizeHelper::ClassMethods + + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:787 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 @@ -7271,7 +6592,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#784 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:784 def collection_checkboxes(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns radio button tags for the collection of existing return values @@ -7354,7 +6675,7 @@ module ActionView::Helpers::FormOptionsHelper # In case if you don't want the helper to generate this hidden field you can specify # include_hidden: false option. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#700 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:700 def collection_radio_buttons(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#198 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:198 def collection_select(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end # Returns # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#257 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:257 def grouped_collection_select(object, method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end # Returns a string of tags, like #options_for_select, but @@ -7522,7 +6843,7 @@ module ActionView::Helpers::FormOptionsHelper # Note: Only the and tags are returned, so you still have to # wrap the output in an appropriate tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#461 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:461 def option_groups_from_collection_for_select(collection, group_method, group_label_method, option_key_method, option_value_method, selected_key = T.unsafe(nil)); end # Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. Given a container @@ -7634,7 +6955,7 @@ module ActionView::Helpers::FormOptionsHelper # # NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#357 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:357 def options_for_select(container, selected = T.unsafe(nil)); end # Returns a string of option tags that have been compiled by iterating over the +collection+ and assigning @@ -7662,7 +6983,7 @@ module ActionView::Helpers::FormOptionsHelper # options_from_collection_for_select(@people, 'id', 'name', 1) # should produce the desired results. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#400 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:400 def options_from_collection_for_select(collection, value_method, text_method, selected = T.unsafe(nil)); end # Create a select tag and a series of contained option tags for the provided object and method. @@ -7727,7 +7048,7 @@ module ActionView::Helpers::FormOptionsHelper # In case if you don't want the helper to generate this hidden field you can specify # include_hidden: false option. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#158 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:158 def select(object, method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns a string of option tags for pretty much any time zone in the @@ -7750,7 +7071,7 @@ module ActionView::Helpers::FormOptionsHelper # NOTE: Only the option tags are returned, you have to wrap this call in # a regular HTML select tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#580 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:580 def time_zone_options_for_select(selected = T.unsafe(nil), priority_zones = T.unsafe(nil), model = T.unsafe(nil)); end # Returns select and option tags for the given object and method, using @@ -7784,7 +7105,7 @@ module ActionView::Helpers::FormOptionsHelper # # time_zone_select(:user, :time_zone, ActiveSupport::TimeZone.all.sort, model: ActiveSupport::TimeZone) # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#291 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:291 def time_zone_select(object, method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end # Returns a string of option tags for the days of the week. @@ -7800,38 +7121,36 @@ module ActionView::Helpers::FormOptionsHelper # NOTE: Only the option tags are returned, you have to wrap this call in # a regular HTML select tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#613 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:613 def weekday_options_for_select(selected = T.unsafe(nil), index_as_value: T.unsafe(nil), day_format: T.unsafe(nil), beginning_of_week: T.unsafe(nil)); end # Returns select and option tags for the given object and method, using # #weekday_options_for_select to generate the list of option tags. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#297 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:297 def weekday_select(object, method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end private - # source://actionview//lib/action_view/helpers/form_options_helper.rb#812 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:812 def extract_selected_and_disabled(selected); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#823 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:823 def extract_values_from_collection(collection, value_method, selected); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#790 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:790 def option_html_attributes(element); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#798 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:798 def option_text_and_value(option); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#808 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:808 def option_value_selected?(value, selected); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#837 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:837 def prompt_text(prompt); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#833 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:833 def value_for_collection(item, value); end end @@ -7843,7 +7162,7 @@ end # NOTE: The HTML options disabled, readonly, and multiple can all be treated as booleans. So specifying # disabled: true will give disabled="disabled". # -# source://actionview//lib/action_view/helpers/form_tag_helper.rb#18 +# pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:18 module ActionView::Helpers::FormTagHelper include ::ActionView::Helpers::ContentExfiltrationPreventionHelper extend ::ActiveSupport::Concern @@ -7888,39 +7207,10 @@ module ActionView::Helpers::FormTagHelper # # Ask me! # # # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#571 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:571 def button_tag(content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end - # :call-seq: - # checkbox_tag(name, options = {}) - # checkbox_tag(name, value, options = {}) - # checkbox_tag(name, value, checked, options = {}) - # - # Creates a check box form input tag. - # - # ==== Options - # * :value - The value of the input. Defaults to "1". - # * :checked - If set to true, the checkbox will be checked by default. - # * :disabled - If set to true, the user will not be able to use this input. - # * Any other key creates standard HTML options for the tag. - # - # ==== Examples - # checkbox_tag 'accept' - # # => - # - # checkbox_tag 'rock', 'rock music' - # # => - # - # checkbox_tag 'receive_email', 'yes', true - # # => - # - # checkbox_tag 'tos', 'yes', false, class: 'accept_tos' - # # => - # - # checkbox_tag 'eula', 'accepted', false, disabled: true - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#469 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:469 def check_box_tag(name, *args); end # :call-seq: @@ -7952,7 +7242,7 @@ module ActionView::Helpers::FormTagHelper # checkbox_tag 'eula', 'accepted', false, disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#459 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:459 def checkbox_tag(name, *args); end # Creates a text field of type "color". @@ -7975,7 +7265,7 @@ module ActionView::Helpers::FormTagHelper # color_field_tag 'color', '#DEF726', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#671 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:671 def color_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "date". @@ -7998,7 +7288,7 @@ module ActionView::Helpers::FormTagHelper # date_field_tag 'date', '2014-12-31', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#741 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:741 def date_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "datetime-local". @@ -8026,41 +7316,16 @@ module ActionView::Helpers::FormTagHelper # datetime_field_tag 'datetime', '2014-01-01T01:01', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#800 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:800 def datetime_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # Creates a text field of type "datetime-local". - # - # ==== Options - # - # Supports the same options as #text_field_tag. Additionally, supports: - # - # * :min - The minimum acceptable value. - # * :max - The maximum acceptable value. - # * :step - The acceptable value granularity. - # * :include_seconds - Include seconds in the output timestamp format (true by default). - # - # ==== Examples - # - # datetime_field_tag 'name' - # # => - # - # datetime_field_tag 'datetime', '2014-01-01T01:01' - # # => - # - # datetime_field_tag 'datetime', nil, class: 'special_input' - # # => - # - # datetime_field_tag 'datetime', '2014-01-01T01:01', class: 'special_input', disabled: true - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#804 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:804 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#28 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:28 def default_enforce_utf8; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:28 def default_enforce_utf8=(val); end # Creates a text field of type "email". @@ -8083,13 +7348,13 @@ module ActionView::Helpers::FormTagHelper # email_field_tag 'email', 'email@example.com', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#902 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:902 def email_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:25 def embed_authenticity_token_in_remote_forms; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:25 def embed_authenticity_token_in_remote_forms=(val); end # Generate an HTML id attribute value for the given name and @@ -8108,7 +7373,7 @@ module ActionView::Helpers::FormTagHelper # element, sharing a common id root (post_title, in this # case). # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#101 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:101 def field_id(object_name, method_name, *suffixes, index: T.unsafe(nil), namespace: T.unsafe(nil)); end # Generate an HTML name attribute value for the given name and @@ -8123,7 +7388,7 @@ module ActionView::Helpers::FormTagHelper # <%= text_field :post, :tag, name: field_name(:post, :tag, multiple: true) %> # <%# => %> # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#131 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:131 def field_name(object_name, method_name, *method_names, multiple: T.unsafe(nil), index: T.unsafe(nil)); end # Creates a field set for grouping HTML form elements. @@ -8147,31 +7412,10 @@ module ActionView::Helpers::FormTagHelper # <% end %> # # =>

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

<%= text_field_tag 'name' %>

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

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

<%= text_field_tag 'name' %>

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

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

<%= text_field_tag 'name' %>

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

- # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#650 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:650 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 @@ -8210,7 +7454,7 @@ module ActionView::Helpers::FormTagHelper # file_field_tag 'file', accept: 'text/html', class: 'upload', value: 'index.html' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#350 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:350 def file_field_tag(name, options = T.unsafe(nil)); end # Starts a form tag that points the action to a URL configured with url_for_options just like @@ -8260,7 +7504,7 @@ module ActionView::Helpers::FormTagHelper # form_tag('http://far.away.com/form', authenticity_token: "cf50faa3fe97702ca1ae") # # form with custom authenticity token # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#77 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:77 def form_tag(url_for_options = T.unsafe(nil), options = T.unsafe(nil), &block); end # Creates a hidden form input field used to transmit data that would be lost due to HTTP's statelessness or @@ -8280,7 +7524,7 @@ module ActionView::Helpers::FormTagHelper # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#307 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:307 def hidden_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Displays an image which when clicked will submit the form. @@ -8314,7 +7558,7 @@ module ActionView::Helpers::FormTagHelper # image_submit_tag("save.png", data: { confirm: "Are you sure?" }) # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#617 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:617 def image_submit_tag(source, options = T.unsafe(nil)); end # Creates a label element. Accepts a block. @@ -8332,7 +7576,7 @@ module ActionView::Helpers::FormTagHelper # label_tag 'name', nil, class: 'small_label' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#280 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:280 def label_tag(name = T.unsafe(nil), content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end # Creates a text field of type "month". @@ -8359,7 +7603,7 @@ module ActionView::Helpers::FormTagHelper # month_field_tag 'month', '2014-01', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#829 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:829 def month_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a number field. @@ -8407,7 +7651,7 @@ module ActionView::Helpers::FormTagHelper # number_field_tag 'quantity', '1', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#950 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:950 def number_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a password field, a masked text field that will hide the users input behind a mask character. @@ -8440,30 +7684,10 @@ module ActionView::Helpers::FormTagHelper # password_field_tag 'pin', '1234', maxlength: 4, size: 6, class: "pin_input" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#383 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:383 def password_field_tag(name = T.unsafe(nil), value = T.unsafe(nil), options = T.unsafe(nil)); end - # Creates a text field of type "tel". - # - # ==== Options - # - # Supports the same options as #text_field_tag. - # - # ==== Examples - # - # telephone_field_tag 'name' - # # => - # - # telephone_field_tag 'tel', '0123456789' - # # => - # - # telephone_field_tag 'tel', nil, class: 'special_input' - # # => - # - # telephone_field_tag 'tel', '0123456789', class: 'special_input', disabled: true - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#720 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:720 def phone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -8491,7 +7715,7 @@ module ActionView::Helpers::FormTagHelper # radio_button_tag 'color', "green", true, class: "color_input" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#496 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:496 def radio_button_tag(name, value, *args); end # Creates a range form element. @@ -8511,7 +7735,7 @@ module ActionView::Helpers::FormTagHelper # range_field_tag 'quantity', min: 1, max: 10, step: 2 # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#694 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:694 def search_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a dropdown selection box, or if the :multiple option is set to true, a multiple @@ -8593,7 +7817,7 @@ module ActionView::Helpers::FormTagHelper # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#200 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:200 def select_tag(name, option_tags = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a submit button with the text value as the caption. @@ -8619,7 +7843,7 @@ module ActionView::Helpers::FormTagHelper # submit_tag "Edit", class: "edit_button" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#530 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:530 def submit_tag(value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "tel". @@ -8642,40 +7866,10 @@ module ActionView::Helpers::FormTagHelper # telephone_field_tag 'tel', '0123456789', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#717 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:717 def telephone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. - # - # ==== Options - # * :size - A string specifying the dimensions (columns by rows) of the textarea (e.g., "25x10"). - # * :rows - Specify the number of rows in the textarea - # * :cols - Specify the number of columns in the textarea - # * :disabled - If set to true, the user will not be able to use this input. - # * :escape - By default, the contents of the text input are HTML escaped. - # If you need unescaped contents, set this to false. - # * Any other key creates standard HTML attributes for the tag. - # - # ==== Examples - # textarea_tag 'post' - # # => - # - # textarea_tag 'bio', @user.bio - # # => - # - # textarea_tag 'body', nil, rows: 10, cols: 25 - # # => - # - # textarea_tag 'body', nil, size: "25x10" - # # => - # - # textarea_tag 'description', "Description goes here.", disabled: true - # # => - # - # textarea_tag 'comment', nil, class: 'comment_input' - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#428 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:428 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 @@ -8715,7 +7909,7 @@ module ActionView::Helpers::FormTagHelper # text_field_tag 'ip', '0.0.0.0', maxlength: 15, size: 20, class: "ip-input" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#262 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:262 def text_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. @@ -8748,7 +7942,7 @@ module ActionView::Helpers::FormTagHelper # textarea_tag 'comment', nil, class: 'comment_input' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#416 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:416 def textarea_tag(name, content = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "time". @@ -8779,7 +7973,7 @@ module ActionView::Helpers::FormTagHelper # time_field_tag 'time', '01:01', min: '00:00', max: '23:59', step: 1 # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#772 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:772 def time_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "url". @@ -8802,13 +7996,13 @@ module ActionView::Helpers::FormTagHelper # url_field_tag 'url', 'http://rubyonrails.org', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#879 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:879 def url_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates the hidden UTF-8 enforcer tag. Override this method in a helper # to customize the tag. # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#981 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:981 def utf8_enforcer_tag; end # Creates a text field of type "week". @@ -8835,57 +8029,57 @@ module ActionView::Helpers::FormTagHelper # week_field_tag 'week', '2014-W01', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#856 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:856 def week_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1083 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1083 def convert_direct_upload_option_to_url(options); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1021 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1021 def extra_tags_for_form(html_options); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1051 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1051 def form_tag_html(html_options); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1057 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1057 def form_tag_with_body(html_options, content); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#994 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:994 def html_options_for_form(url_for_options, options); end # see http://www.w3.org/TR/html4/types.html#type-name # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1064 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1064 def sanitize_to_id(name); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1068 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1068 def set_default_disable_with(value, tag_options); end class << self - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:28 def default_enforce_utf8; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:28 def default_enforce_utf8=(val); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:25 def embed_authenticity_token_in_remote_forms; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:25 def embed_authenticity_token_in_remote_forms=(val); end end end # = Action View JavaScript \Helpers # -# source://actionview//lib/action_view/helpers/javascript_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:6 module ActionView::Helpers::JavaScriptHelper - # source://actionview//lib/action_view/helpers/javascript_helper.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:7 def auto_include_nonce; end - # source://actionview//lib/action_view/helpers/javascript_helper.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:7 def auto_include_nonce=(val); end # Escapes carriage returns and single and double quotes for JavaScript segments. @@ -8895,20 +8089,13 @@ module ActionView::Helpers::JavaScriptHelper # # $('some_element').replaceWith('<%= j render 'some/element_template' %>'); # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:30 def escape_javascript(javascript); end - # Escapes carriage returns and single and double quotes for JavaScript segments. - # - # Also available through the alias j(). This is particularly helpful in JavaScript - # responses, like: - # - # $('some_element').replaceWith('<%= j render 'some/element_template' %>'); - # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#40 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:40 def j(javascript); end - # source://actionview//lib/action_view/helpers/javascript_helper.rb#95 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:95 def javascript_cdata_section(content); end # Returns a JavaScript tag with the +content+ inside. Example: @@ -8947,19 +8134,19 @@ module ActionView::Helpers::JavaScriptHelper # alert('All is good') # <% end -%> # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#77 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:77 def javascript_tag(content_or_options_with_block = T.unsafe(nil), html_options = T.unsafe(nil), &block); end class << self - # source://actionview//lib/action_view/helpers/javascript_helper.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:7 def auto_include_nonce; end - # source://actionview//lib/action_view/helpers/javascript_helper.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:7 def auto_include_nonce=(val); end end end -# source://actionview//lib/action_view/helpers/javascript_helper.rb#9 +# pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:9 ActionView::Helpers::JavaScriptHelper::JS_ESCAPE_MAP = T.let(T.unsafe(nil), Hash) # = Action View Number \Helpers @@ -8971,7 +8158,7 @@ ActionView::Helpers::JavaScriptHelper::JS_ESCAPE_MAP = T.let(T.unsafe(nil), Hash # Most methods expect a +number+ argument, and will return it # unchanged if can't be converted into a valid number. # -# source://actionview//lib/action_view/helpers/number_helper.rb#17 +# pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:17 module ActionView::Helpers::NumberHelper # Delegates to ActiveSupport::NumberHelper#number_to_currency. # @@ -8983,7 +8170,7 @@ module ActionView::Helpers::NumberHelper # number_to_currency("12x34") # => "$12x34" # number_to_currency("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#55 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:55 def number_to_currency(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_human. @@ -8996,7 +8183,7 @@ module ActionView::Helpers::NumberHelper # number_to_human("12x34") # => "12x34" # number_to_human("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#125 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:125 def number_to_human(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_human_size. @@ -9009,7 +8196,7 @@ module ActionView::Helpers::NumberHelper # number_to_human_size("12x34") # => "12x34" # number_to_human_size("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#111 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:111 def number_to_human_size(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_percentage. @@ -9022,7 +8209,7 @@ module ActionView::Helpers::NumberHelper # number_to_percentage("99x") # => "99x%" # number_to_percentage("99x", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#69 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:69 def number_to_percentage(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_phone. @@ -9035,7 +8222,7 @@ module ActionView::Helpers::NumberHelper # number_to_phone("12x34") # => "12x34" # number_to_phone("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#37 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:37 def number_to_phone(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_delimited. @@ -9048,7 +8235,7 @@ module ActionView::Helpers::NumberHelper # number_with_delimiter("12x34") # => "12x34" # number_with_delimiter("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#83 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:83 def number_with_delimiter(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_rounded. @@ -9061,62 +8248,48 @@ module ActionView::Helpers::NumberHelper # number_with_precision("12x34") # => "12x34" # number_with_precision("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#97 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:97 def number_with_precision(number, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/number_helper.rb#130 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:130 def delegate_number_helper_method(method, number, options); end - # source://actionview//lib/action_view/helpers/number_helper.rb#149 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:149 def escape_units(units); end - # source://actionview//lib/action_view/helpers/number_helper.rb#139 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:139 def escape_unsafe_options(options); end - # @raise [InvalidNumberError] - # - # source://actionview//lib/action_view/helpers/number_helper.rb#172 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:172 def parse_float(number, raise_error); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/number_helper.rb#168 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:168 def valid_float?(number); end - # @raise [InvalidNumberError] - # - # source://actionview//lib/action_view/helpers/number_helper.rb#155 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:155 def wrap_with_output_safety_handling(number, raise_on_invalid, &block); end end # Raised when argument +number+ param given to the helpers is invalid and # the option +:raise+ is set to +true+. # -# source://actionview//lib/action_view/helpers/number_helper.rb#20 +# pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:20 class ActionView::Helpers::NumberHelper::InvalidNumberError < ::StandardError - # @return [InvalidNumberError] a new instance of InvalidNumberError - # - # source://actionview//lib/action_view/helpers/number_helper.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:22 def initialize(number); end - # Returns the value of attribute number. - # - # source://actionview//lib/action_view/helpers/number_helper.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:21 def number; end - # Sets the attribute number - # - # @param value the value to set the attribute number to. - # - # source://actionview//lib/action_view/helpers/number_helper.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:21 def number=(_arg0); end end # = Action View Raw Output \Helpers # -# source://actionview//lib/action_view/helpers/output_safety_helper.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:8 module ActionView::Helpers::OutputSafetyHelper # This method outputs without escaping a string. Since escaping tags is # now default, this can be used when you don't want \Rails to automatically @@ -9128,7 +8301,7 @@ module ActionView::Helpers::OutputSafetyHelper # raw @user.name # # => 'Jimmy Tables' # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#18 + # pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:18 def raw(stringish); end # This method returns an HTML safe string similar to what Array#join @@ -9142,14 +8315,14 @@ module ActionView::Helpers::OutputSafetyHelper # safe_join([tag.p("foo"), tag.p("bar")], tag.br) # # => "

foo


bar

" # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#33 + # pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:33 def safe_join(array, sep = T.unsafe(nil)); end # Converts the array to a comma-separated sentence where the last element is # joined by the connector word. This is the html_safe-aware version of # ActiveSupport's Array#to_sentence. # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#42 + # pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:42 def to_sentence(array, options = T.unsafe(nil)); end end @@ -9159,7 +8332,7 @@ end # this module, all you need is to implement view_renderer that returns an # ActionView::Renderer object. # -# source://actionview//lib/action_view/helpers/rendering_helper.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/rendering_helper.rb:12 module ActionView::Helpers::RenderingHelper # Overrides _layout_for in the context object so it supports the case a block is # passed to a partial. Returns the contents that are yielded to a layout, given @@ -9211,7 +8384,7 @@ module ActionView::Helpers::RenderingHelper # Hello David # # - # source://actionview//lib/action_view/helpers/rendering_helper.rb#207 + # pkg:gem/actionview#lib/action_view/helpers/rendering_helper.rb:207 def _layout_for(*args, &block); end # Renders a template and returns the result. @@ -9329,7 +8502,7 @@ module ActionView::Helpers::RenderingHelper # <%= render template: "posts/content", handlers: [:builder] %> # # => renders app/views/posts/content.html.builder # - # source://actionview//lib/action_view/helpers/rendering_helper.rb#138 + # pkg:gem/actionview#lib/action_view/helpers/rendering_helper.rb:138 def render(options = T.unsafe(nil), locals = T.unsafe(nil), &block); end end @@ -9338,7 +8511,7 @@ end # The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements. # These helper methods extend Action View making them callable within your template files. # -# source://actionview//lib/action_view/helpers/sanitize_helper.rb#11 +# pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:11 module ActionView::Helpers::SanitizeHelper extend ::ActiveSupport::Concern @@ -9446,18 +8619,18 @@ module ActionView::Helpers::SanitizeHelper # NOTE: +Rails::HTML5::Sanitizer+ is not supported on JRuby, so on JRuby platforms \Rails will # fall back to using +Rails::HTML4::Sanitizer+. # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#117 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb: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#122 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:122 def sanitize_css(style); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:12 def sanitizer_vendor; end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:12 def sanitizer_vendor=(val); end # Strips all link tags from +html+ leaving just the link text. @@ -9474,7 +8647,7 @@ module ActionView::Helpers::SanitizeHelper # strip_links('<malformed & link') # # => <malformed & link # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#156 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:156 def strip_links(html); end # Strips all HTML tags from +html+, including comments and special characters. @@ -9491,19 +8664,19 @@ module ActionView::Helpers::SanitizeHelper # strip_tags("> A quote from Smith & Wesson") # # => > A quote from Smith & Wesson # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#139 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:139 def strip_tags(html); end class << self - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:12 def sanitizer_vendor; end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:12 def sanitizer_vendor=(val); end end end -# source://actionview//lib/action_view/helpers/sanitize_helper.rb#160 +# pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:160 module ActionView::Helpers::SanitizeHelper::ClassMethods # Gets the Rails::HTML::FullSanitizer instance used by +strip_tags+. Replace with # any object that responds to +sanitize+. @@ -9512,14 +8685,17 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.full_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#181 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:181 def full_sanitizer; end - # Sets the attribute full_sanitizer + # Gets the Rails::HTML::FullSanitizer instance used by +strip_tags+. Replace with + # any object that responds to +sanitize+. # - # @param value the value to set the attribute full_sanitizer to. + # class Application < Rails::Application + # config.action_view.full_sanitizer = MySpecialSanitizer.new + # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:161 def full_sanitizer=(_arg0); end # Gets the Rails::HTML::LinkSanitizer instance used by +strip_links+. @@ -9529,14 +8705,17 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.link_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#191 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:191 def link_sanitizer; end - # Sets the attribute link_sanitizer + # Gets the Rails::HTML::LinkSanitizer instance used by +strip_links+. + # Replace with any object that responds to +sanitize+. # - # @param value the value to set the attribute link_sanitizer to. + # class Application < Rails::Application + # config.action_view.link_sanitizer = MySpecialSanitizer.new + # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:161 def link_sanitizer=(_arg0); end # Gets the Rails::HTML::SafeListSanitizer instance used by sanitize and +sanitize_css+. @@ -9546,23 +8725,26 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.safe_list_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#201 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:201 def safe_list_sanitizer; end - # Sets the attribute safe_list_sanitizer + # Gets the Rails::HTML::SafeListSanitizer instance used by sanitize and +sanitize_css+. + # Replace with any object that responds to +sanitize+. # - # @param value the value to set the attribute safe_list_sanitizer to. + # class Application < Rails::Application + # config.action_view.safe_list_sanitizer = MySpecialSanitizer.new + # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:161 def safe_list_sanitizer=(_arg0); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#171 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:171 def sanitized_allowed_attributes; end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#167 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:167 def sanitized_allowed_tags; end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#163 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:163 def sanitizer_vendor; end end @@ -9571,7 +8753,7 @@ end # Provides methods to generate HTML tags programmatically both as a modern # HTML5 compliant builder style and legacy XHTML compliant tags. # -# source://actionview//lib/action_view/helpers/tag_helper.rb#16 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:16 module ActionView::Helpers::TagHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -9590,22 +8772,10 @@ module ActionView::Helpers::TagHelper # cdata_section("hello]]>world") # # => world]]> # - # source://actionview//lib/action_view/helpers/tag_helper.rb#555 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:555 def cdata_section(content); end - # Returns a string of tokens built from +args+. - # - # ==== Examples - # token_list("foo", "bar") - # # => "foo bar" - # token_list("foo", "foo bar") - # # => "foo bar" - # token_list({ foo: true, bar: false }) - # # => "foo" - # token_list(nil, false, 123, "", "foo", { bar: true }) - # # => "123 foo bar" - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#540 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:540 def class_names(*args); end # Returns an HTML block tag of type +name+ surrounding the +content+. Add @@ -9637,7 +8807,7 @@ module ActionView::Helpers::TagHelper # <% end -%> # # =>
Hello world!
# - # source://actionview//lib/action_view/helpers/tag_helper.rb#513 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:513 def content_tag(name, content_or_options_with_block = T.unsafe(nil), options = T.unsafe(nil), escape = T.unsafe(nil), &block); end # Returns an escaped version of +html+ without affecting existing escaped entities. @@ -9648,7 +8818,7 @@ module ActionView::Helpers::TagHelper # escape_once("<< Accept & Checkout") # # => "<< Accept & Checkout" # - # source://actionview//lib/action_view/helpers/tag_helper.rb#567 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:567 def escape_once(html); end # Returns an HTML tag. @@ -9798,7 +8968,7 @@ module ActionView::Helpers::TagHelper # tag("div", class: { highlight: current_user.admin? }) # # =>
# - # source://actionview//lib/action_view/helpers/tag_helper.rb#476 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:476 def tag(name = T.unsafe(nil), options = T.unsafe(nil), open = T.unsafe(nil), escape = T.unsafe(nil)); end # Returns a string of tokens built from +args+. @@ -9813,80 +8983,74 @@ module ActionView::Helpers::TagHelper # token_list(nil, false, 123, "", "foo", { bar: true }) # # => "123 foo bar" # - # source://actionview//lib/action_view/helpers/tag_helper.rb#535 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:535 def token_list(*args); end private - # source://actionview//lib/action_view/helpers/tag_helper.rb#577 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:577 def build_tag_values(*args); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#572 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:572 def ensure_valid_html5_tag_name(name); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#597 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:597 def tag_builder; end class << self - # source://actionview//lib/action_view/helpers/tag_helper.rb#595 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:595 def build_tag_values(*args); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#575 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:575 def ensure_valid_html5_tag_name(name); end end end -# source://actionview//lib/action_view/helpers/tag_helper.rb#33 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:33 ActionView::Helpers::TagHelper::ARIA_PREFIXES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/tag_helper.rb#20 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:20 ActionView::Helpers::TagHelper::BOOLEAN_ATTRIBUTES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/tag_helper.rb#34 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:34 ActionView::Helpers::TagHelper::DATA_PREFIXES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/tag_helper.rb#42 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:42 ActionView::Helpers::TagHelper::PRE_CONTENT_STRINGS = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/helpers/tag_helper.rb#36 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:36 ActionView::Helpers::TagHelper::TAG_TYPES = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/helpers/tag_helper.rb#46 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:46 class ActionView::Helpers::TagHelper::TagBuilder - # @return [TagBuilder] a new instance of TagBuilder - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#213 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:213 def initialize(view_context); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def a(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def abbr(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def address(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def animate(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def animate_motion(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def animate_transform(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def area(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def article(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def aside(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end # Transforms a Hash into HTML Attributes, ready to be interpolated into @@ -9895,415 +9059,413 @@ class ActionView::Helpers::TagHelper::TagBuilder # > # # => # - # source://actionview//lib/action_view/helpers/tag_helper.rb#222 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:222 def attributes(attributes); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def audio(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def b(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def base(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def bdi(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def bdo(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def blockquote(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def body(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def br(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def button(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def canvas(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def caption(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def circle(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def cite(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def code(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def col(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def colgroup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#226 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:226 def content_tag_string(name, content, options, escape = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def data(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def datalist(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def dd(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def del(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def details(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def dfn(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def dialog(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def div(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def dl(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def dt(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def ellipse(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def em(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def embed(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def fieldset(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def figcaption(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def figure(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def footer(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def form(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def h1(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def h2(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def h3(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def h4(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def h5(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def h6(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def head(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def header(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def hgroup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def hr(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def html(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def i(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def iframe(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def img(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def input(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def ins(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def kbd(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def keygen(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def label(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def legend(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def li(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def line(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def link(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def main(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def map(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def mark(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def menu(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def meta(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def meter(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def nav(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def noscript(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def object(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def ol(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def optgroup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def option(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def output(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def p(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def path(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def picture(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def polygon(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def polyline(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def portal(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def pre(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def progress(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def q(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def rect(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def rp(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def rt(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def ruby(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def s(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def samp(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def script(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def search(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def section(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def select(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def set(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def slot(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def small(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def source(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def span(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def stop(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def strong(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def style(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def sub(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def summary(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def sup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def table(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#235 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:235 def tag_options(options, escape = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def tbody(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def td(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def template(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def textarea(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def tfoot(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def th(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def thead(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def time(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def title(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def tr(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def track(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def u(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def ul(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def use(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def var(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def video(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def view(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#80 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:80 def wbr(escape: T.unsafe(nil), **options, &block); end private - # source://actionview//lib/action_view/helpers/tag_helper.rb#288 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:288 def boolean_tag_option(key); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#321 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:321 def method_missing(called, *args, escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#309 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:309 def prefix_tag_option(prefix, key, value, escape); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#317 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:317 def respond_to_missing?(*args); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#284 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:284 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#292 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:292 def tag_option(key, value, escape); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#278 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:278 def tag_string(name, content = T.unsafe(nil), options, escape: T.unsafe(nil), &block); end class << self - # source://actionview//lib/action_view/helpers/tag_helper.rb#47 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:47 def define_element(name, code_generator:, method_name: T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#67 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:67 def define_self_closing_element(name, code_generator:, method_name: T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#58 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:58 def define_void_element(name, code_generator:, method_name: T.unsafe(nil)); end end end -# source://actionview//lib/action_view/helpers/tags.rb#5 +# pkg:gem/actionview#lib/action_view/helpers/tags.rb:5 module ActionView::Helpers::Tags extend ::ActiveSupport::Autoload end -# source://actionview//lib/action_view/helpers/tags/base.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:6 class ActionView::Helpers::Tags::Base include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -10317,135 +9479,119 @@ class ActionView::Helpers::Tags::Base extend ::ActionView::Helpers::UrlHelper::ClassMethods extend ::ActionView::Helpers::SanitizeHelper::ClassMethods - # @return [Base] a new instance of Base - # - # source://actionview//lib/action_view/helpers/tags/base.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:11 def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end - # Returns the value of attribute object. - # - # source://actionview//lib/action_view/helpers/tags/base.rb#9 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:9 def object; end # This is what child classes implement. # - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/helpers/tags/base.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:31 def render; end private - # source://actionview//lib/action_view/helpers/tags/base.rb#97 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:97 def add_default_name_and_field(options, field = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#83 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:83 def add_default_name_and_field_for_value(tag_value, options, field = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#108 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:108 def add_default_name_and_id(options, field = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#95 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:95 def add_default_name_and_id_for_value(tag_value, options, field = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/base.rb#134 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:134 def generate_ids?; end - # source://actionview//lib/action_view/helpers/tags/base.rb#126 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:126 def name_and_id_index(options); end - # source://actionview//lib/action_view/helpers/tags/base.rb#74 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:74 def retrieve_autoindex(pre_match); end - # source://actionview//lib/action_view/helpers/tags/base.rb#63 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:63 def retrieve_object(object); end - # source://actionview//lib/action_view/helpers/tags/base.rb#118 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:118 def sanitized_method_name; end - # source://actionview//lib/action_view/helpers/tags/base.rb#122 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:122 def sanitized_value(value); end - # source://actionview//lib/action_view/helpers/tags/base.rb#114 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:114 def tag_id(index = T.unsafe(nil), namespace = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#110 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:110 def tag_name(multiple = T.unsafe(nil), index = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#36 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:36 def value; end - # source://actionview//lib/action_view/helpers/tags/base.rb#46 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:46 def value_before_type_cast; end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/base.rb#58 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:58 def value_came_from_user?; end end -# source://actionview//lib/action_view/helpers/tags/check_box.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:8 class ActionView::Helpers::Tags::CheckBox < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Checkable - # @return [CheckBox] a new instance of CheckBox - # - # source://actionview//lib/action_view/helpers/tags/check_box.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:11 def initialize(object_name, method_name, template_object, checked_value, unchecked_value, options); end - # source://actionview//lib/action_view/helpers/tags/check_box.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:17 def render; end private - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/check_box.rb#42 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:42 def checked?(value); end - # source://actionview//lib/action_view/helpers/tags/check_box.rb#59 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:59 def hidden_field_for_checkbox(options); end end -# source://actionview//lib/action_view/helpers/tags/checkable.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/checkable.rb:6 module ActionView::Helpers::Tags::Checkable - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/checkable.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/checkable.rb:7 def input_checked?(options); end end -# source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:8 class ActionView::Helpers::Tags::CollectionCheckBoxes < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::CollectionHelpers include ::ActionView::Helpers::FormOptionsHelper - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:22 def render(&block); end private - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:31 def hidden_field_name; end - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:27 def render_component(builder); end end -# source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:12 class ActionView::Helpers::Tags::CollectionCheckBoxes::CheckBoxBuilder < ::ActionView::Helpers::Tags::CollectionHelpers::Builder - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:19 def check_box(extra_html_options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:13 def checkbox(extra_html_options = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:6 module ActionView::Helpers::Tags::CollectionHelpers - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:30 def initialize(object_name, method_name, template_object, collection, value_method, text_method, options, html_options); end private @@ -10453,311 +9599,281 @@ module ActionView::Helpers::Tags::CollectionHelpers # Generate default options for collection helpers, such as :checked and # :disabled. # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#47 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:47 def default_html_options_for_collection(item, value); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#107 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:107 def hidden_field; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#113 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:113 def hidden_field_name; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#40 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:40 def instantiate_builder(builder_class, item, value, text, html_options); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#75 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:75 def render_collection; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#86 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:86 def render_collection_for(builder_class, &block); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#71 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:71 def sanitize_attribute_name(value); end end -# source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:7 class ActionView::Helpers::Tags::CollectionHelpers::Builder - # @return [Builder] a new instance of Builder - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:10 def initialize(template_object, object_name, method_name, object, sanitized_attribute_name, text, value, input_html_options); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:22 def label(label_html_options = T.unsafe(nil), &block); end - # Returns the value of attribute object. - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:8 def object; end - # Returns the value of attribute text. - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:8 def text; end - # Returns the value of attribute value. - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:8 def value; end end -# source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:8 class ActionView::Helpers::Tags::CollectionRadioButtons < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::CollectionHelpers include ::ActionView::Helpers::FormOptionsHelper - # source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:20 def render(&block); end private - # source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:25 def render_component(builder); end end -# source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:12 class ActionView::Helpers::Tags::CollectionRadioButtons::RadioButtonBuilder < ::ActionView::Helpers::Tags::CollectionHelpers::Builder - # source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:13 def radio_button(extra_html_options = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/tags/collection_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_select.rb:6 class ActionView::Helpers::Tags::CollectionSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [CollectionSelect] a new instance of CollectionSelect - # - # source://actionview//lib/action_view/helpers/tags/collection_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_select.rb:10 def initialize(object_name, method_name, template_object, collection, value_method, text_method, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/collection_select.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_select.rb:19 def render; end end -# source://actionview//lib/action_view/helpers/tags/color_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/color_field.rb:6 class ActionView::Helpers::Tags::ColorField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/color_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/color_field.rb:7 def render; end private - # source://actionview//lib/action_view/helpers/tags/color_field.rb#15 + # pkg:gem/actionview#lib/action_view/helpers/tags/color_field.rb:15 def validate_color_string(string); end end -# source://actionview//lib/action_view/helpers/tags/date_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/date_field.rb:6 class ActionView::Helpers::Tags::DateField < ::ActionView::Helpers::Tags::DatetimeField private - # source://actionview//lib/action_view/helpers/tags/date_field.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_field.rb:8 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/date_select.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:8 class ActionView::Helpers::Tags::DateSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer - # @return [DateSelect] a new instance of DateSelect - # - # source://actionview//lib/action_view/helpers/tags/date_select.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:11 def initialize(object_name, method_name, template_object, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/date_select.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:17 def render; end private - # source://actionview//lib/action_view/helpers/tags/date_select.rb#32 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:32 def datetime_selector(options, html_options); end - # source://actionview//lib/action_view/helpers/tags/date_select.rb#45 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:45 def default_datetime(options); end - # source://actionview//lib/action_view/helpers/tags/date_select.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:28 def select_type; end class << self - # source://actionview//lib/action_view/helpers/tags/date_select.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:22 def select_type; end end end -# source://actionview//lib/action_view/helpers/tags/datetime_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:6 class ActionView::Helpers::Tags::DatetimeField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:7 def render; end private - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:17 def datetime_value(value); end - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:25 def format_datetime(value); end - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:29 def parse_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:6 class ActionView::Helpers::Tags::DatetimeLocalField < ::ActionView::Helpers::Tags::DatetimeField - # @return [DatetimeLocalField] a new instance of DatetimeLocalField - # - # source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:7 def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:19 def format_datetime(value); end class << self - # source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:13 def field_type; end end end -# source://actionview//lib/action_view/helpers/tags/datetime_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/datetime_select.rb:6 class ActionView::Helpers::Tags::DatetimeSelect < ::ActionView::Helpers::Tags::DateSelect; end -# source://actionview//lib/action_view/helpers/tags/email_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/email_field.rb:6 class ActionView::Helpers::Tags::EmailField < ::ActionView::Helpers::Tags::TextField; end -# source://actionview//lib/action_view/helpers/tags/file_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/file_field.rb:6 class ActionView::Helpers::Tags::FileField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/file_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/file_field.rb:7 def render; end private - # source://actionview//lib/action_view/helpers/tags/file_field.rb#23 + # pkg:gem/actionview#lib/action_view/helpers/tags/file_field.rb:23 def hidden_field_for_multiple_file(options); end end -# source://actionview//lib/action_view/helpers/tags/grouped_collection_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/grouped_collection_select.rb:6 class ActionView::Helpers::Tags::GroupedCollectionSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [GroupedCollectionSelect] a new instance of GroupedCollectionSelect - # - # source://actionview//lib/action_view/helpers/tags/grouped_collection_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/grouped_collection_select.rb:10 def initialize(object_name, method_name, template_object, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/grouped_collection_select.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/tags/grouped_collection_select.rb:21 def render; end end -# source://actionview//lib/action_view/helpers/tags/hidden_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/hidden_field.rb:6 class ActionView::Helpers::Tags::HiddenField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/hidden_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/hidden_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/label.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:6 class ActionView::Helpers::Tags::Label < ::ActionView::Helpers::Tags::Base - # @return [Label] a new instance of Label - # - # source://actionview//lib/action_view/helpers/tags/label.rb#34 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:34 def initialize(object_name, method_name, template_object, content_or_options = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/label.rb#48 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:48 def render(&block); end private - # source://actionview//lib/action_view/helpers/tags/label.rb#71 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:71 def render_component(builder); end end -# source://actionview//lib/action_view/helpers/tags/label.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:7 class ActionView::Helpers::Tags::Label::LabelBuilder - # @return [LabelBuilder] a new instance of LabelBuilder - # - # source://actionview//lib/action_view/helpers/tags/label.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:10 def initialize(template_object, object_name, method_name, object, tag_value); end - # Returns the value of attribute object. - # - # source://actionview//lib/action_view/helpers/tags/label.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:8 def object; end - # source://actionview//lib/action_view/helpers/tags/label.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:29 def to_s; end - # source://actionview//lib/action_view/helpers/tags/label.rb#18 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:18 def translation; end end -# source://actionview//lib/action_view/helpers/tags/month_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/month_field.rb:6 class ActionView::Helpers::Tags::MonthField < ::ActionView::Helpers::Tags::DatetimeField private - # source://actionview//lib/action_view/helpers/tags/month_field.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/month_field.rb:8 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/number_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/number_field.rb:6 class ActionView::Helpers::Tags::NumberField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/number_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/number_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/password_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/password_field.rb:6 class ActionView::Helpers::Tags::PasswordField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/password_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/password_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/placeholderable.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/placeholderable.rb:6 module ActionView::Helpers::Tags::Placeholderable - # source://actionview//lib/action_view/helpers/tags/placeholderable.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/placeholderable.rb:7 def initialize(*_arg0); end end -# source://actionview//lib/action_view/helpers/tags/radio_button.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:8 class ActionView::Helpers::Tags::RadioButton < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Checkable - # @return [RadioButton] a new instance of RadioButton - # - # source://actionview//lib/action_view/helpers/tags/radio_button.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:11 def initialize(object_name, method_name, template_object, tag_value, options); end - # source://actionview//lib/action_view/helpers/tags/radio_button.rb#16 + # pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:16 def render; end private - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/radio_button.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:26 def checked?(value); end end -# source://actionview//lib/action_view/helpers/tags/range_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/range_field.rb:6 class ActionView::Helpers::Tags::RangeField < ::ActionView::Helpers::Tags::NumberField; end -# source://actionview//lib/action_view/helpers/tags/search_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/search_field.rb:6 class ActionView::Helpers::Tags::SearchField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/search_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/search_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:6 class ActionView::Helpers::Tags::Select < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [Select] a new instance of Select - # - # source://actionview//lib/action_view/helpers/tags/select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:10 def initialize(object_name, method_name, template_object, choices, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/select.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:19 def render; end private @@ -10767,148 +9883,128 @@ class ActionView::Helpers::Tags::Select < ::ActionView::Helpers::Tags::Base # [nil, []] # { nil => [] } # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/select.rb#39 + # pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:39 def grouped_choices?; end end -# source://actionview//lib/action_view/helpers/tags/select_renderer.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:6 module ActionView::Helpers::Tags::SelectRenderer private - # source://actionview//lib/action_view/helpers/tags/select_renderer.rb#38 + # pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:38 def add_options(option_tags, options, value = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/select_renderer.rb#33 + # pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:33 def placeholder_required?(html_options); end - # source://actionview//lib/action_view/helpers/tags/select_renderer.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:8 def select_content_tag(option_tags, options, html_options); end end -# source://actionview//lib/action_view/helpers/tags/tel_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/tel_field.rb:6 class ActionView::Helpers::Tags::TelField < ::ActionView::Helpers::Tags::TextField; end -# source://actionview//lib/action_view/helpers/tags/text_area.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/text_area.rb:8 class ActionView::Helpers::Tags::TextArea < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Placeholderable - # source://actionview//lib/action_view/helpers/tags/text_area.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_area.rb:11 def render; end end -# source://actionview//lib/action_view/helpers/tags/text_field.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:8 class ActionView::Helpers::Tags::TextField < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Placeholderable - # source://actionview//lib/action_view/helpers/tags/text_field.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:11 def render; end private - # source://actionview//lib/action_view/helpers/tags/text_field.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:27 def field_type; end class << self - # source://actionview//lib/action_view/helpers/tags/text_field.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:21 def field_type; end end end -# source://actionview//lib/action_view/helpers/tags/time_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/time_field.rb:6 class ActionView::Helpers::Tags::TimeField < ::ActionView::Helpers::Tags::DatetimeField - # @return [TimeField] a new instance of TimeField - # - # source://actionview//lib/action_view/helpers/tags/time_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_field.rb:7 def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/tags/time_field.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_field.rb:13 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/time_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/time_select.rb:6 class ActionView::Helpers::Tags::TimeSelect < ::ActionView::Helpers::Tags::DateSelect; end -# source://actionview//lib/action_view/helpers/tags/time_zone_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/time_zone_select.rb:6 class ActionView::Helpers::Tags::TimeZoneSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [TimeZoneSelect] a new instance of TimeZoneSelect - # - # source://actionview//lib/action_view/helpers/tags/time_zone_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_zone_select.rb:10 def initialize(object_name, method_name, template_object, priority_zones, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/time_zone_select.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_zone_select.rb:17 def render; end end -# source://actionview//lib/action_view/helpers/tags/translator.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:6 class ActionView::Helpers::Tags::Translator - # @return [Translator] a new instance of Translator - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:7 def initialize(object, object_name, method_and_value, scope:); end - # source://actionview//lib/action_view/helpers/tags/translator.rb#14 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:14 def translate; end private - # source://actionview//lib/action_view/helpers/tags/translator.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:31 def human_attribute_name; end - # source://actionview//lib/action_view/helpers/tags/translator.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:22 def i18n_default; end - # Returns the value of attribute method_and_value. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def method_and_value; end - # Returns the value of attribute model. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def model; end - # Returns the value of attribute object_name. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def object_name; end - # Returns the value of attribute scope. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def scope; end end -# source://actionview//lib/action_view/helpers/tags/url_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/url_field.rb:6 class ActionView::Helpers::Tags::UrlField < ::ActionView::Helpers::Tags::TextField; end -# source://actionview//lib/action_view/helpers/tags/week_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/week_field.rb:6 class ActionView::Helpers::Tags::WeekField < ::ActionView::Helpers::Tags::DatetimeField private - # source://actionview//lib/action_view/helpers/tags/week_field.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/week_field.rb:8 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/weekday_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/weekday_select.rb:6 class ActionView::Helpers::Tags::WeekdaySelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [WeekdaySelect] a new instance of WeekdaySelect - # - # source://actionview//lib/action_view/helpers/tags/weekday_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/weekday_select.rb:10 def initialize(object_name, method_name, template_object, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/weekday_select.rb#16 + # pkg:gem/actionview#lib/action_view/helpers/tags/weekday_select.rb:16 def render; end end @@ -10937,7 +10033,7 @@ end # simple_format h('Example') # # => "

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

" # -# source://actionview//lib/action_view/helpers/text_helper.rb#36 +# pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:36 module ActionView::Helpers::TextHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -10967,7 +10063,7 @@ module ActionView::Helpers::TextHelper # <%= link_to "Sign In", action: :sign_in %> # <% end %> # - # source://actionview//lib/action_view/helpers/text_helper.rb#63 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:63 def concat(string); end # Returns the current cycle string after a cycle has been started. Useful @@ -10982,7 +10078,7 @@ module ActionView::Helpers::TextHelper #
# <% end %> # - # source://actionview//lib/action_view/helpers/text_helper.rb#461 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:461 def current_cycle(name = T.unsafe(nil)); end # Creates a Cycle object whose +to_s+ method cycles through elements of an @@ -11025,7 +10121,7 @@ module ActionView::Helpers::TextHelper # # <% end %> # - # source://actionview//lib/action_view/helpers/text_helper.rb#437 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:437 def cycle(first_value, *values); end # Extracts the first occurrence of +phrase+ plus surrounding text from @@ -11068,7 +10164,7 @@ module ActionView::Helpers::TextHelper # excerpt('This is a very beautiful morning', 'very', separator: ' ', radius: 1) # # => "...a very beautiful..." # - # source://actionview//lib/action_view/helpers/text_helper.rb#235 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:235 def excerpt(text, phrase, options = T.unsafe(nil)); end # Highlights occurrences of +phrases+ in +text+ by formatting them with a @@ -11113,7 +10209,7 @@ module ActionView::Helpers::TextHelper # highlight('ruby on rails', 'rails', sanitize: false) # # => "ruby on rails" # - # source://actionview//lib/action_view/helpers/text_helper.rb#174 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:174 def highlight(text, phrases, options = T.unsafe(nil), &block); end # Attempts to pluralize the +singular+ word unless +count+ is 1. If @@ -11140,7 +10236,7 @@ module ActionView::Helpers::TextHelper # pluralize(2, 'Person', locale: :de) # # => "2 Personen" # - # source://actionview//lib/action_view/helpers/text_helper.rb#297 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:297 def pluralize(count, singular, plural_arg = T.unsafe(nil), plural: T.unsafe(nil), locale: T.unsafe(nil)); end # Resets a cycle so that it starts from the first element the next time @@ -11162,10 +10258,10 @@ module ActionView::Helpers::TextHelper # <% end %> # # - # source://actionview//lib/action_view/helpers/text_helper.rb#484 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:484 def reset_cycle(name = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/text_helper.rb#67 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:67 def safe_concat(string); end # Returns +text+ transformed into HTML using simple formatting rules. @@ -11209,7 +10305,7 @@ module ActionView::Helpers::TextHelper # simple_format("Continue", {}, { sanitize_options: { attributes: %w[target href] } }) # # => "

Continue

" # - # source://actionview//lib/action_view/helpers/text_helper.rb#383 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:383 def simple_format(text, html_options = T.unsafe(nil), options = T.unsafe(nil)); end # Truncates +text+ if it is longer than a specified +:length+. If +text+ @@ -11264,7 +10360,7 @@ module ActionView::Helpers::TextHelper # truncate("Once upon a time in a world far far away") { link_to "Continue", "#" } # # => "Once upon a time in a world...Continue" # - # source://actionview//lib/action_view/helpers/text_helper.rb#122 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:122 def truncate(text, options = T.unsafe(nil), &block); end # Wraps the +text+ into lines no longer than +line_width+ width. This method @@ -11288,76 +10384,67 @@ module ActionView::Helpers::TextHelper # word_wrap('Once upon a time', line_width: 1, break_sequence: "\r\n") # # => "Once\r\nupon\r\na\r\ntime" # - # source://actionview//lib/action_view/helpers/text_helper.rb#327 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:327 def word_wrap(text, line_width: T.unsafe(nil), break_sequence: T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/text_helper.rb#547 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:547 def cut_excerpt_part(part_position, part, separator, options); end # The cycle helpers need to store the cycles in a place that is # guaranteed to be reset every time a page is rendered, so it # uses an instance variable of ActionView::Base. # - # source://actionview//lib/action_view/helpers/text_helper.rb#529 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:529 def get_cycle(name); end - # source://actionview//lib/action_view/helpers/text_helper.rb#534 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:534 def set_cycle(name, cycle_object); end - # source://actionview//lib/action_view/helpers/text_helper.rb#539 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:539 def split_paragraphs(text); end end -# source://actionview//lib/action_view/helpers/text_helper.rb#489 +# pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:489 class ActionView::Helpers::TextHelper::Cycle - # @return [Cycle] a new instance of Cycle - # - # source://actionview//lib/action_view/helpers/text_helper.rb#492 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:492 def initialize(first_value, *values); end - # source://actionview//lib/action_view/helpers/text_helper.rb#501 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:501 def current_value; end - # source://actionview//lib/action_view/helpers/text_helper.rb#497 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:497 def reset; end - # source://actionview//lib/action_view/helpers/text_helper.rb#505 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:505 def to_s; end - # Returns the value of attribute values. - # - # source://actionview//lib/action_view/helpers/text_helper.rb#490 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:490 def values; end private - # source://actionview//lib/action_view/helpers/text_helper.rb#512 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:512 def next_index; end - # source://actionview//lib/action_view/helpers/text_helper.rb#516 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:516 def previous_index; end - # source://actionview//lib/action_view/helpers/text_helper.rb#520 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:520 def step_index(n); end end # = Action View Translation \Helpers # -# source://actionview//lib/action_view/helpers/translation_helper.rb#9 +# pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:9 module ActionView::Helpers::TranslationHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper include ::ActionView::Helpers::TagHelper extend ::ActiveSupport::Concern - # Delegates to I18n.localize with no additional functionality. - # - # See https://www.rubydoc.info/gems/i18n/I18n/Backend/Base:localize - # for more information. - # - # source://actionview//lib/action_view/helpers/translation_helper.rb#119 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:119 def l(object, **options); end # Delegates to I18n.localize with no additional functionality. @@ -11365,62 +10452,10 @@ module ActionView::Helpers::TranslationHelper # See https://www.rubydoc.info/gems/i18n/I18n/Backend/Base:localize # for more information. # - # source://actionview//lib/action_view/helpers/translation_helper.rb#116 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:116 def localize(object, **options); end - # Delegates to I18n#translate but also performs three additional - # functions. - # - # First, it will ensure that any thrown +MissingTranslation+ messages will - # be rendered as inline spans that: - # - # * Have a translation-missing class applied - # * Contain the missing key as the value of the +title+ attribute - # * Have a titleized version of the last key segment as text - # - # For example, the value returned for the missing translation key - # "blog.post.title" will be: - # - # Title - # - # This allows for views to display rather reasonable strings while still - # giving developers a way to find missing translations. - # - # If you would prefer missing translations to raise an error, you can - # opt out of span-wrapping behavior globally by setting - # config.i18n.raise_on_missing_translations = true or - # individually by passing raise: true as an option to - # translate. - # - # Second, if the key starts with a period translate will scope - # the key by the current partial. Calling translate(".foo") from - # the people/index.html.erb template is equivalent to calling - # translate("people.index.foo"). This makes it less - # repetitive to translate many keys within the same partial and provides - # a convention to scope keys consistently. - # - # Third, the translation will be marked as html_safe if the key - # has the suffix "_html" or the last element of the key is "html". Calling - # translate("footer_html") or translate("footer.html") - # will return an HTML safe string that won't be escaped by other HTML - # helper methods. This naming convention helps to identify translations - # that include HTML tags so that you know what kind of output to expect - # when you call translate in a template and translators know which keys - # they can provide HTML values for. - # - # To access the translated text along with the fully resolved - # translation key, translate accepts a block: - # - # <%= translate(".relative_key") do |translation, resolved_key| %> - # <%= translation %> - # <% end %> - # - # This enables annotate translated text to be aware of the scope it was - # resolved against. - # - # source://actionview//lib/action_view/helpers/translation_helper.rb#110 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:110 def t(key, **options); end # Delegates to I18n#translate but also performs three additional @@ -11475,30 +10510,30 @@ module ActionView::Helpers::TranslationHelper # This enables annotate translated text to be aware of the scope it was # resolved against. # - # source://actionview//lib/action_view/helpers/translation_helper.rb#73 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:73 def translate(key, **options); end private - # source://actionview//lib/action_view/helpers/translation_helper.rb#142 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:142 def missing_translation(key, options); end - # source://actionview//lib/action_view/helpers/translation_helper.rb#128 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:128 def scope_key_by_partial(key); end class << self - # source://actionview//lib/action_view/helpers/translation_helper.rb#15 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:15 def raise_on_missing_translations; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#15 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:15 def raise_on_missing_translations=(_arg0); end end end -# source://actionview//lib/action_view/helpers/translation_helper.rb#122 +# pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:122 ActionView::Helpers::TranslationHelper::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/helpers/translation_helper.rb#125 +# pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:125 ActionView::Helpers::TranslationHelper::NO_DEFAULT = T.let(T.unsafe(nil), Array) # = Action View URL \Helpers @@ -11508,7 +10543,7 @@ ActionView::Helpers::TranslationHelper::NO_DEFAULT = T.let(T.unsafe(nil), Array) # This allows you to use the same format for links in views # and controllers. # -# source://actionview//lib/action_view/helpers/url_helper.rb#17 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:17 module ActionView::Helpers::UrlHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -11604,13 +10639,13 @@ module ActionView::Helpers::UrlHelper # # # # " # - # source://actionview//lib/action_view/helpers/url_helper.rb#296 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:296 def button_to(name = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag; end - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag=(val); end # True if the current request URI was generated by the given +options+. @@ -11668,9 +10703,7 @@ module ActionView::Helpers::UrlHelper # # We can also pass in the symbol arguments instead of strings. # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/url_helper.rb#559 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:559 def current_page?(options = T.unsafe(nil), check_parameters: T.unsafe(nil), method: T.unsafe(nil), **options_as_kwargs); end # Creates an anchor element of the given +name+ using a URL created by the set of +options+. @@ -11805,7 +10838,7 @@ module ActionView::Helpers::UrlHelper # link_to "Visit Other Site", "https://rubyonrails.org/", data: { turbo_confirm: "Are you sure?" } # # => Visit Other Site # - # source://actionview//lib/action_view/helpers/url_helper.rb#198 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:198 def link_to(name = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a link tag of the given +name+ using a URL created by the set of @@ -11828,7 +10861,7 @@ module ActionView::Helpers::UrlHelper # # If they are logged in... # # => my_username # - # source://actionview//lib/action_view/helpers/url_helper.rb#438 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:438 def link_to_if(condition, name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a link tag of the given +name+ using a URL created by the set of @@ -11852,7 +10885,7 @@ module ActionView::Helpers::UrlHelper # # If not... # # => Reply # - # source://actionview//lib/action_view/helpers/url_helper.rb#415 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:415 def link_to_unless(condition, name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a link tag of the given +name+ using a URL created by the set of @@ -11894,7 +10927,7 @@ module ActionView::Helpers::UrlHelper # end # %> # - # source://actionview//lib/action_view/helpers/url_helper.rb#391 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:391 def link_to_unless_current(name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a mailto link tag to the specified +email_address+, which is @@ -11936,7 +10969,7 @@ module ActionView::Helpers::UrlHelper # Email me: me@domain.com # # - # source://actionview//lib/action_view/helpers/url_helper.rb#488 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:488 def mail_to(email_address, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a TEL anchor link tag to the specified +phone_number+. When the @@ -11975,7 +11008,7 @@ module ActionView::Helpers::UrlHelper # Phone me: # # - # source://actionview//lib/action_view/helpers/url_helper.rb#693 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:693 def phone_to(phone_number, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates an SMS anchor link tag to the specified +phone_number+. When the @@ -12019,45 +11052,41 @@ module ActionView::Helpers::UrlHelper # Text me: # # - # source://actionview//lib/action_view/helpers/url_helper.rb#642 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:642 def sms_to(phone_number, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Basic implementation of url_for to allow use helpers without routes existence # - # source://actionview//lib/action_view/helpers/url_helper.rb#38 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:38 def url_for(options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/url_helper.rb#50 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:50 def _back_url; end - # source://actionview//lib/action_view/helpers/url_helper.rb#55 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:55 def _filtered_referrer; end - # source://actionview//lib/action_view/helpers/url_helper.rb#736 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:736 def add_method_to_attributes!(html_options, method); end - # source://actionview//lib/action_view/helpers/url_helper.rb#707 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:707 def convert_options_to_data_attributes(options, html_options); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/url_helper.rb#730 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:730 def link_to_remote_options?(options); end - # source://actionview//lib/action_view/helpers/url_helper.rb#747 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:747 def method_for_options(options); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/url_helper.rb#765 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:765 def method_not_get_method?(method); end - # source://actionview//lib/action_view/helpers/url_helper.rb#786 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:786 def method_tag(method); end - # source://actionview//lib/action_view/helpers/url_helper.rb#834 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:834 def remove_trailing_slash!(url_string); end # Returns an array of hashes each containing :name and :value keys @@ -12077,20 +11106,20 @@ module ActionView::Helpers::UrlHelper # to_form_params({ name: 'Denmark' }, 'country') # # => [{name: 'country[name]', value: 'Denmark'}] # - # source://actionview//lib/action_view/helpers/url_helper.rb#808 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:808 def to_form_params(attribute, namespace = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/url_helper.rb#770 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:770 def token_tag(token = T.unsafe(nil), form_options: T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/url_helper.rb#722 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:722 def url_target(name, options); end class << self - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag; end - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag=(val); end end end @@ -12101,38 +11130,36 @@ end # (link_to_unless_current, for instance), which must be provided # as a method called #request on the context. # -# source://actionview//lib/action_view/helpers/url_helper.rb#23 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:23 ActionView::Helpers::UrlHelper::BUTTON_TAG_METHOD_VERBS = T.let(T.unsafe(nil), Array) -# source://actionview//lib/action_view/helpers/url_helper.rb#29 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:29 module ActionView::Helpers::UrlHelper::ClassMethods - # source://actionview//lib/action_view/helpers/url_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:30 def _url_for_modules; end end -# source://actionview//lib/action_view/helpers/url_helper.rb#757 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:757 ActionView::Helpers::UrlHelper::STRINGIFIED_COMMON_METHODS = T.let(T.unsafe(nil), Hash) # This is a class to fix I18n global state. Whenever you provide I18n.locale during a request, # it will trigger the lookup_context and consequently expire the cache. # -# source://actionview//lib/action_view/rendering.rb#8 +# pkg:gem/actionview#lib/action_view/rendering.rb:8 class ActionView::I18nProxy < ::I18n::Config - # @return [I18nProxy] a new instance of I18nProxy - # - # source://actionview//lib/action_view/rendering.rb#11 + # pkg:gem/actionview#lib/action_view/rendering.rb:11 def initialize(original_config, lookup_context); end - # source://actionview//lib/action_view/rendering.rb#17 + # pkg:gem/actionview#lib/action_view/rendering.rb:17 def locale; end - # source://actionview//lib/action_view/rendering.rb#21 + # pkg:gem/actionview#lib/action_view/rendering.rb:21 def locale=(value); end - # source://actionview//lib/action_view/rendering.rb#9 + # pkg:gem/actionview#lib/action_view/rendering.rb:9 def lookup_context; end - # source://actionview//lib/action_view/rendering.rb#9 + # pkg:gem/actionview#lib/action_view/rendering.rb:9 def original_config; end end @@ -12335,7 +11362,7 @@ end # # This will override the controller-wide "weblog_standard" layout, and will render the help action with the "help" layout instead. # -# source://actionview//lib/action_view/layouts.rb#205 +# pkg:gem/actionview#lib/action_view/layouts.rb:205 module ActionView::Layouts extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -12347,13 +11374,13 @@ module ActionView::Layouts mixes_in_class_methods ::ActionView::Rendering::ClassMethods mixes_in_class_methods ::ActionView::Layouts::ClassMethods - # source://actionview//lib/action_view/layouts.rb#361 + # pkg:gem/actionview#lib/action_view/layouts.rb:361 def initialize(*_arg0); end - # source://actionview//lib/action_view/layouts.rb#350 + # pkg:gem/actionview#lib/action_view/layouts.rb:350 def _process_render_template_options(options); end - # source://actionview//lib/action_view/layouts.rb#359 + # pkg:gem/actionview#lib/action_view/layouts.rb:359 def action_has_layout=(_arg0); end # Controls whether an action should be rendered using a layout. @@ -12363,16 +11390,12 @@ module ActionView::Layouts # for that action or set the action_has_layout attribute # to false before rendering. # - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#372 + # pkg:gem/actionview#lib/action_view/layouts.rb:372 def action_has_layout?; end private - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#377 + # pkg:gem/actionview#lib/action_view/layouts.rb:377 def _conditional_layout?; end # Returns the default layout for this controller. @@ -12386,17 +11409,15 @@ module ActionView::Layouts # ==== Returns # * template - The template object for the default layout (or +nil+) # - # source://actionview//lib/action_view/layouts.rb#415 + # pkg:gem/actionview#lib/action_view/layouts.rb:415 def _default_layout(lookup_context, formats, keys, require_layout = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#430 + # pkg:gem/actionview#lib/action_view/layouts.rb:430 def _include_layout?(options); end # This will be overwritten by _write_layout_method # - # source://actionview//lib/action_view/layouts.rb#382 + # pkg:gem/actionview#lib/action_view/layouts.rb:382 def _layout(*_arg0); end # Determine the layout for a given name, taking into account the name type. @@ -12404,10 +11425,10 @@ module ActionView::Layouts # ==== Parameters # * name - The name of the template # - # source://actionview//lib/action_view/layouts.rb#388 + # pkg:gem/actionview#lib/action_view/layouts.rb:388 def _layout_for_option(name); end - # source://actionview//lib/action_view/layouts.rb#401 + # pkg:gem/actionview#lib/action_view/layouts.rb:401 def _normalize_layout(value); end module GeneratedClassMethods @@ -12425,17 +11446,17 @@ module ActionView::Layouts end end -# source://actionview//lib/action_view/layouts.rb#217 +# pkg:gem/actionview#lib/action_view/layouts.rb:217 module ActionView::Layouts::ClassMethods # Creates a _layout method to be called by _default_layout . # # If a layout is not explicitly mentioned then look for a layout with the controller's name. # if nothing is found then try same procedure to find super class's layout. # - # source://actionview//lib/action_view/layouts.rb#283 + # pkg:gem/actionview#lib/action_view/layouts.rb:283 def _write_layout_method; end - # source://actionview//lib/action_view/layouts.rb#218 + # pkg:gem/actionview#lib/action_view/layouts.rb:218 def inherited(klass); end # Specify the layout to use for this class. @@ -12460,7 +11481,7 @@ module ActionView::Layouts::ClassMethods # * +:only+ - A list of actions to apply this layout to. # * +:except+ - Apply this layout to all actions but this one. # - # source://actionview//lib/action_view/layouts.rb#269 + # pkg:gem/actionview#lib/action_view/layouts.rb:269 def layout(layout, conditions = T.unsafe(nil)); end private @@ -12471,14 +11492,14 @@ module ActionView::Layouts::ClassMethods # ==== Returns # * String - A template name # - # source://actionview//lib/action_view/layouts.rb#345 + # pkg:gem/actionview#lib/action_view/layouts.rb:345 def _implied_layout_name; end end # This module is mixed in if layout conditions are provided. This means # that if no layout conditions are used, this method is not used # -# source://actionview//lib/action_view/layouts.rb#225 +# pkg:gem/actionview#lib/action_view/layouts.rb:225 module ActionView::Layouts::ClassMethods::LayoutConditions private @@ -12489,86 +11510,80 @@ module ActionView::Layouts::ClassMethods::LayoutConditions # ==== Returns # * Boolean - True if the action has a layout definition, false otherwise. # - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#233 + # pkg:gem/actionview#lib/action_view/layouts.rb:233 def _conditional_layout?; end end -# source://actionview//lib/action_view/log_subscriber.rb#6 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:6 class ActionView::LogSubscriber < ::ActiveSupport::LogSubscriber include ::ActionView::LogSubscriber::Utils - # @return [LogSubscriber] a new instance of LogSubscriber - # - # source://actionview//lib/action_view/log_subscriber.rb#9 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:9 def initialize; end - # source://actionview//lib/action_view/log_subscriber.rb#42 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:42 def render_collection(event); end - # source://actionview//lib/action_view/log_subscriber.rb#34 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:34 def render_layout(event); end - # source://actionview//lib/action_view/log_subscriber.rb#23 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:23 def render_partial(event); end - # source://actionview//lib/action_view/log_subscriber.rb#14 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:14 def render_template(event); end private - # source://actionview//lib/action_view/log_subscriber.rb#118 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:118 def cache_message(payload); end - # source://actionview//lib/action_view/log_subscriber.rb#110 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:110 def render_count(payload); end class << self - # source://actionview//lib/action_view/log_subscriber.rb#102 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:102 def attach_to(*_arg0); end private - # source://actionview//lib/action_view/log_subscriber.rb#21 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:21 def __class_attr_log_levels; end - # source://actionview//lib/action_view/log_subscriber.rb#21 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:21 def __class_attr_log_levels=(new_value); end end end -# source://actionview//lib/action_view/log_subscriber.rb#73 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:73 class ActionView::LogSubscriber::Start include ::ActionView::LogSubscriber::Utils - # source://actionview//lib/action_view/log_subscriber.rb#94 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:94 def finish(name, id, payload); end - # @return [Boolean] - # - # source://actionview//lib/action_view/log_subscriber.rb#97 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:97 def silenced?(_); end - # source://actionview//lib/action_view/log_subscriber.rb#76 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:76 def start(name, id, payload); end end -# source://actionview//lib/action_view/log_subscriber.rb#54 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:54 module ActionView::LogSubscriber::Utils - # source://actionview//lib/action_view/log_subscriber.rb#55 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:55 def logger; end private - # source://actionview//lib/action_view/log_subscriber.rb#60 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:60 def from_rails_root(string); end - # source://actionview//lib/action_view/log_subscriber.rb#66 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:66 def rails_root; end end -# source://actionview//lib/action_view/log_subscriber.rb#7 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:7 ActionView::LogSubscriber::VIEWS_PATTERN = T.let(T.unsafe(nil), Regexp) # = Action View Lookup Context @@ -12579,211 +11594,191 @@ ActionView::LogSubscriber::VIEWS_PATTERN = T.let(T.unsafe(nil), Regexp) # view paths, used in the resolver cache lookup. Since this key is generated # only once during the request, it speeds up all cache accesses. # -# source://actionview//lib/action_view/lookup_context.rb#15 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:15 class ActionView::LookupContext include ::ActionView::LookupContext::Accessors include ::ActionView::LookupContext::DetailsCache include ::ActionView::LookupContext::ViewPaths - # @return [LookupContext] a new instance of LookupContext - # - # source://actionview//lib/action_view/lookup_context.rb#232 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:232 def initialize(view_paths, details = T.unsafe(nil), prefixes = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#242 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:242 def digest_cache; end # Override formats= to expand ["*/*"] values and automatically # add :html as fallback to :js. # - # source://actionview//lib/action_view/lookup_context.rb#263 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:263 def formats=(values); end # Override locale to return a symbol instead of array. # - # source://actionview//lib/action_view/lookup_context.rb#283 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:283 def locale; end # Overload locale= to also set the I18n.locale. If the current I18n.config object responds # to original_config, it means that it has a copy of the original I18n configuration and it's # acting as proxy, which we need to skip. # - # source://actionview//lib/action_view/lookup_context.rb#290 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:290 def locale=(value); end - # source://actionview//lib/action_view/lookup_context.rb#16 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:16 def prefixes; end - # source://actionview//lib/action_view/lookup_context.rb#16 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:16 def prefixes=(_arg0); end - # source://actionview//lib/action_view/lookup_context.rb#246 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:246 def with_prepended_formats(formats); end private - # source://actionview//lib/action_view/lookup_context.rb#253 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:253 def initialize_details(target, details); end class << self - # source://actionview//lib/action_view/lookup_context.rb#21 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:21 def register_detail(name, &block); end - # source://actionview//lib/action_view/lookup_context.rb#18 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:18 def registered_details; end - # source://actionview//lib/action_view/lookup_context.rb#18 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:18 def registered_details=(_arg0); end end end # Holds accessors for the registered details. # -# source://actionview//lib/action_view/lookup_context.rb#39 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:39 module ActionView::LookupContext::Accessors - # source://actionview//lib/action_view/lookup_context.rb#25 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_formats; end - # source://actionview//lib/action_view/lookup_context.rb#25 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_handlers; end - # source://actionview//lib/action_view/lookup_context.rb#25 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_locale; end - # source://actionview//lib/action_view/lookup_context.rb#25 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_variants; end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def formats; end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def formats=(value); end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def handlers; end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def handlers=(value); end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def locale; end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def locale=(value); end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def variants; end - # source://actionview//lib/action_view/lookup_context.rb#26 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def variants=(value); end end -# source://actionview//lib/action_view/lookup_context.rb#40 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:40 ActionView::LookupContext::Accessors::DEFAULT_PROCS = T.let(T.unsafe(nil), Hash) # Add caching behavior on top of Details. # -# source://actionview//lib/action_view/lookup_context.rb#98 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:98 module ActionView::LookupContext::DetailsCache - # Returns the value of attribute cache. - # - # source://actionview//lib/action_view/lookup_context.rb#99 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:99 def cache; end - # Sets the attribute cache - # - # @param value the value to set the attribute cache to. - # - # source://actionview//lib/action_view/lookup_context.rb#99 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:99 def cache=(_arg0); end # Calculate the details key. Remove the handlers from calculation to improve performance # since the user cannot modify it explicitly. # - # source://actionview//lib/action_view/lookup_context.rb#103 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:103 def details_key; end # Temporary skip passing the details_key forward. # - # source://actionview//lib/action_view/lookup_context.rb#108 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:108 def disable_cache; end private - # source://actionview//lib/action_view/lookup_context.rb#116 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:116 def _set_detail(key, value); end end -# source://actionview//lib/action_view/lookup_context.rb#54 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:54 class ActionView::LookupContext::DetailsKey - # source://actionview//lib/action_view/lookup_context.rb#55 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:55 def eql?(_arg0); end class << self - # source://actionview//lib/action_view/lookup_context.rb#77 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:77 def clear; end - # source://actionview//lib/action_view/lookup_context.rb#65 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:65 def details_cache_key(details); end - # source://actionview//lib/action_view/lookup_context.rb#61 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:61 def digest_cache(details); end - # source://actionview//lib/action_view/lookup_context.rb#86 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:86 def digest_caches; end - # source://actionview//lib/action_view/lookup_context.rb#90 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:90 def view_context_class; end end end # Helpers related to template lookup using the lookup context information. # -# source://actionview//lib/action_view/lookup_context.rb#125 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:125 module ActionView::LookupContext::ViewPaths - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#148 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:148 def any?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#153 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:153 def any_templates?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#155 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:155 def append_view_paths(paths); end - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#141 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:141 def exists?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), **options); end - # source://actionview//lib/action_view/lookup_context.rb#128 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:128 def find(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#135 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:135 def find_all(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#133 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:133 def find_template(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end - # Returns the value of attribute html_fallback_for_js. - # - # source://actionview//lib/action_view/lookup_context.rb#126 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:126 def html_fallback_for_js; end - # source://actionview//lib/action_view/lookup_context.rb#159 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:159 def prepend_view_paths(paths); end - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#146 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:146 def template_exists?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), **options); end - # Returns the value of attribute view_paths. - # - # source://actionview//lib/action_view/lookup_context.rb#126 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:126 def view_paths; end private @@ -12791,30 +11786,28 @@ module ActionView::LookupContext::ViewPaths # Whenever setting view paths, makes a copy so that we can manipulate them in # instance objects as we wish. # - # source://actionview//lib/action_view/lookup_context.rb#166 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:166 def build_view_paths(paths); end # Compute details hash and key according to user options (e.g. passed from #render). # - # source://actionview//lib/action_view/lookup_context.rb#175 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:175 def detail_args_for(options); end - # source://actionview//lib/action_view/lookup_context.rb#188 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:188 def detail_args_for_any; end # Fix when prefix is specified as part of the template name # - # source://actionview//lib/action_view/lookup_context.rb#209 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:209 def normalize_name(name, prefixes); end end -# source://actionview//lib/action_view/template/error.rb#41 +# pkg:gem/actionview#lib/action_view/template/error.rb:41 class ActionView::MissingTemplate < ::ActionView::ActionViewError include ::DidYouMean::Correctable - # @return [MissingTemplate] a new instance of MissingTemplate - # - # source://actionview//lib/action_view/template/error.rb#44 + # pkg:gem/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 @@ -12822,131 +11815,99 @@ 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#104 + # pkg:gem/actionview#lib/action_view/template/error.rb:104 def corrections; end - # Returns the value of attribute partial. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def partial; end - # Returns the value of attribute path. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def path; end - # Returns the value of attribute paths. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def paths; end - # Returns the value of attribute prefixes. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def prefixes; end end -# source://actionview//lib/action_view/template/error.rb#71 +# pkg:gem/actionview#lib/action_view/template/error.rb:71 class ActionView::MissingTemplate::Results - # @return [Results] a new instance of Results - # - # source://actionview//lib/action_view/template/error.rb#74 + # pkg:gem/actionview#lib/action_view/template/error.rb:74 def initialize(size); end - # source://actionview//lib/action_view/template/error.rb#91 + # pkg:gem/actionview#lib/action_view/template/error.rb:91 def add(path, score); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/error.rb#83 + # pkg:gem/actionview#lib/action_view/template/error.rb:83 def should_record?(score); end - # source://actionview//lib/action_view/template/error.rb#79 + # pkg:gem/actionview#lib/action_view/template/error.rb:79 def to_a; end end -# source://actionview//lib/action_view/template/error.rb#72 +# pkg:gem/actionview#lib/action_view/template/error.rb:72 class ActionView::MissingTemplate::Results::Result < ::Struct - # Returns the value of attribute path - # - # @return [Object] the current value of path - # - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def path; end - # Sets the attribute path - # - # @param value [Object] the value to set the attribute path to. - # @return [Object] the newly set value - # - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def path=(_); end - # Returns the value of attribute score - # - # @return [Object] the current value of score - # - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def score; end - # Sets the attribute score - # - # @param value [Object] the value to set the attribute score to. - # @return [Object] the newly set value - # - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def score=(_); end class << self - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def [](*_arg0); end - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def inspect; end - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def keyword_init?; end - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def members; end - # source://actionview//lib/action_view/template/error.rb#72 + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def new(*_arg0); end end end -# source://actionview//lib/action_view/model_naming.rb#4 +# pkg:gem/actionview#lib/action_view/model_naming.rb:4 module ActionView::ModelNaming # Converts the given object to an Active Model compliant one. # - # source://actionview//lib/action_view/model_naming.rb#6 + # pkg:gem/actionview#lib/action_view/model_naming.rb:6 def convert_to_model(object); end - # source://actionview//lib/action_view/model_naming.rb#10 + # pkg:gem/actionview#lib/action_view/model_naming.rb:10 def model_name_from_record_or_class(record_or_class); end end -# source://actionview//lib/action_view/renderer/object_renderer.rb#4 +# pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:4 class ActionView::ObjectRenderer < ::ActionView::PartialRenderer include ::ActionView::AbstractRenderer::ObjectRendering - # @return [ObjectRenderer] a new instance of ObjectRenderer - # - # source://actionview//lib/action_view/renderer/object_renderer.rb#7 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:7 def initialize(lookup_context, options); end - # source://actionview//lib/action_view/renderer/object_renderer.rb#19 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:19 def render_object_derive_partial(object, context, block); end - # source://actionview//lib/action_view/renderer/object_renderer.rb#13 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:13 def render_object_with_partial(object, partial, context, block); end private - # source://actionview//lib/action_view/renderer/object_renderer.rb#29 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:29 def render_partial_template(view, locals, template, layout, block); end - # source://actionview//lib/action_view/renderer/object_renderer.rb#25 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:25 def template_keys(path); end end @@ -12965,148 +11926,130 @@ end # sbuf << 5 # puts sbuf # => "hello\u0005" # -# source://actionview//lib/action_view/buffers.rb#21 +# pkg:gem/actionview#lib/action_view/buffers.rb:21 class ActionView::OutputBuffer - # @return [OutputBuffer] a new instance of OutputBuffer - # - # source://actionview//lib/action_view/buffers.rb#22 + # pkg:gem/actionview#lib/action_view/buffers.rb:22 def initialize(buffer = T.unsafe(nil)); end - # source://actionview//lib/action_view/buffers.rb#42 + # pkg:gem/actionview#lib/action_view/buffers.rb:42 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#81 + # pkg:gem/actionview#lib/action_view/buffers.rb:81 def ==(other); end - # source://actionview//lib/action_view/buffers.rb#54 + # pkg:gem/actionview#lib/action_view/buffers.rb:54 def append=(value); end - # source://actionview//lib/action_view/buffers.rb#27 + # pkg:gem/actionview#lib/action_view/buffers.rb:27 def blank?(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#72 + # pkg:gem/actionview#lib/action_view/buffers.rb:72 def capture(*args); end - # source://actionview//lib/action_view/buffers.rb#53 + # pkg:gem/actionview#lib/action_view/buffers.rb:53 def concat(value); end - # source://actionview//lib/action_view/buffers.rb#27 + # pkg:gem/actionview#lib/action_view/buffers.rb:27 def empty?(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#27 + # pkg:gem/actionview#lib/action_view/buffers.rb:27 def encode!(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#27 + # pkg:gem/actionview#lib/action_view/buffers.rb:27 def encoding(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#27 + # pkg:gem/actionview#lib/action_view/buffers.rb:27 def force_encoding(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#32 + # pkg:gem/actionview#lib/action_view/buffers.rb:32 def html_safe; end - # @return [Boolean] - # - # source://actionview//lib/action_view/buffers.rb#38 + # pkg:gem/actionview#lib/action_view/buffers.rb:38 def html_safe?; end - # source://actionview//lib/action_view/buffers.rb#27 + # pkg:gem/actionview#lib/action_view/buffers.rb:27 def length(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/buffers.rb#85 + # pkg:gem/actionview#lib/action_view/buffers.rb:85 def raw; end - # Returns the value of attribute raw_buffer. - # - # source://actionview//lib/action_view/buffers.rb#89 + # pkg:gem/actionview#lib/action_view/buffers.rb:89 def raw_buffer; end - # source://actionview//lib/action_view/buffers.rb#60 + # pkg:gem/actionview#lib/action_view/buffers.rb:60 def safe_append=(value); end - # source://actionview//lib/action_view/buffers.rb#56 + # pkg:gem/actionview#lib/action_view/buffers.rb:56 def safe_concat(value); end - # source://actionview//lib/action_view/buffers.rb#62 + # pkg:gem/actionview#lib/action_view/buffers.rb:62 def safe_expr_append=(val); end - # source://actionview//lib/action_view/buffers.rb#29 + # pkg:gem/actionview#lib/action_view/buffers.rb:29 def to_s; end - # source://actionview//lib/action_view/buffers.rb#34 + # pkg:gem/actionview#lib/action_view/buffers.rb:34 def to_str; end private - # source://actionview//lib/action_view/buffers.rb#68 + # pkg:gem/actionview#lib/action_view/buffers.rb:68 def initialize_copy(other); end end -# source://actionview//lib/action_view/flows.rb#6 +# pkg:gem/actionview#lib/action_view/flows.rb:6 class ActionView::OutputFlow - # @return [OutputFlow] a new instance of OutputFlow - # - # source://actionview//lib/action_view/flows.rb#9 + # pkg:gem/actionview#lib/action_view/flows.rb:9 def initialize; end # Called by content_for # - # source://actionview//lib/action_view/flows.rb#24 + # pkg:gem/actionview#lib/action_view/flows.rb:24 def append(key, value); end - # Called by content_for - # - # source://actionview//lib/action_view/flows.rb#27 + # pkg:gem/actionview#lib/action_view/flows.rb:27 def append!(key, value); end - # Returns the value of attribute content. - # - # source://actionview//lib/action_view/flows.rb#7 + # pkg:gem/actionview#lib/action_view/flows.rb:7 def content; end # Called by _layout_for to read stored values. # - # source://actionview//lib/action_view/flows.rb#14 + # pkg:gem/actionview#lib/action_view/flows.rb:14 def get(key); end # Called by each renderer object to set the layout contents. # - # source://actionview//lib/action_view/flows.rb#19 + # pkg:gem/actionview#lib/action_view/flows.rb:19 def set(key, value); end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#6 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:6 class ActionView::PartialIteration - # @return [PartialIteration] a new instance of PartialIteration - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#13 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:13 def initialize(size); end # Check if this is the first iteration of the partial. # - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#19 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:19 def first?; end # The current iteration of the partial. # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#11 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:11 def index; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#28 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:28 def iterate!; end # Check if this is the last iteration of the partial. # - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#24 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:24 def last?; end # The number of iterations that will be done by the partial. # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#8 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:8 def size; end end @@ -13341,65 +12284,61 @@ end # # As you can see, the :locals hash is shared between both the partial and its layout. # -# source://actionview//lib/action_view/renderer/partial_renderer.rb#236 +# pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:236 class ActionView::PartialRenderer < ::ActionView::AbstractRenderer include ::ActionView::CollectionCaching - # @return [PartialRenderer] a new instance of PartialRenderer - # - # source://actionview//lib/action_view/renderer/partial_renderer.rb#239 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:239 def initialize(lookup_context, options); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#237 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:237 def collection_cache; end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#237 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:237 def collection_cache=(val); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#246 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:246 def render(partial, context, block); end private - # source://actionview//lib/action_view/renderer/partial_renderer.rb#278 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:278 def find_template(path, locals); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#261 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:261 def render_partial_template(view, locals, template, layout, block); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#257 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:257 def template_keys(_); end class << self - # source://actionview//lib/action_view/renderer/partial_renderer.rb#237 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:237 def collection_cache; end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#237 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:237 def collection_cache=(val); end end end -# source://actionview//lib/action_view/path_registry.rb#4 +# pkg:gem/actionview#lib/action_view/path_registry.rb:4 module ActionView::PathRegistry class << self - # source://actionview//lib/action_view/path_registry.rb#53 + # pkg:gem/actionview#lib/action_view/path_registry.rb:53 def all_file_system_resolvers; end - # source://actionview//lib/action_view/path_registry.rb#47 + # pkg:gem/actionview#lib/action_view/path_registry.rb:47 def all_resolvers; end - # source://actionview//lib/action_view/path_registry.rb#22 + # pkg:gem/actionview#lib/action_view/path_registry.rb:22 def cast_file_system_resolvers(paths); end - # Returns the value of attribute file_system_resolver_hooks. - # - # source://actionview//lib/action_view/path_registry.rb#11 + # pkg:gem/actionview#lib/action_view/path_registry.rb:11 def file_system_resolver_hooks; end - # source://actionview//lib/action_view/path_registry.rb#14 + # pkg:gem/actionview#lib/action_view/path_registry.rb:14 def get_view_paths(klass); end - # source://actionview//lib/action_view/path_registry.rb#18 + # pkg:gem/actionview#lib/action_view/path_registry.rb:18 def set_view_paths(klass, paths); end end end @@ -13412,94 +12351,84 @@ end # # A +LookupContext+ will use a +PathSet+ to store the paths in its context. # -# source://actionview//lib/action_view/path_set.rb#11 +# pkg:gem/actionview#lib/action_view/path_set.rb:11 class ActionView::PathSet include ::Enumerable - # @return [PathSet] a new instance of PathSet - # - # source://actionview//lib/action_view/path_set.rb#18 + # pkg:gem/actionview#lib/action_view/path_set.rb:18 def initialize(paths = T.unsafe(nil)); end - # source://actionview//lib/action_view/path_set.rb#35 + # pkg:gem/actionview#lib/action_view/path_set.rb:35 def +(other); end - # source://actionview//lib/action_view/path_set.rb#16 + # pkg:gem/actionview#lib/action_view/path_set.rb:16 def [](*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/path_set.rb#31 + # pkg:gem/actionview#lib/action_view/path_set.rb:31 def compact; end - # source://actionview//lib/action_view/path_set.rb#16 + # pkg:gem/actionview#lib/action_view/path_set.rb:16 def each(*_arg0, **_arg1, &_arg2); end - # @return [Boolean] - # - # source://actionview//lib/action_view/path_set.rb#53 + # pkg:gem/actionview#lib/action_view/path_set.rb:53 def exists?(path, prefixes, partial, details, details_key, locals); end - # source://actionview//lib/action_view/path_set.rb#40 + # pkg:gem/actionview#lib/action_view/path_set.rb:40 def find(path, prefixes, partial, details, details_key, locals); end - # source://actionview//lib/action_view/path_set.rb#45 + # pkg:gem/actionview#lib/action_view/path_set.rb:45 def find_all(path, prefixes, partial, details, details_key, locals); end - # source://actionview//lib/action_view/path_set.rb#16 + # pkg:gem/actionview#lib/action_view/path_set.rb:16 def include?(*_arg0, **_arg1, &_arg2); end - # Returns the value of attribute paths. - # - # source://actionview//lib/action_view/path_set.rb#14 + # pkg:gem/actionview#lib/action_view/path_set.rb:14 def paths; end - # source://actionview//lib/action_view/path_set.rb#16 + # pkg:gem/actionview#lib/action_view/path_set.rb:16 def size(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/path_set.rb#27 + # pkg:gem/actionview#lib/action_view/path_set.rb:27 def to_ary; end private - # source://actionview//lib/action_view/path_set.rb#22 + # pkg:gem/actionview#lib/action_view/path_set.rb:22 def initialize_copy(other); end - # source://actionview//lib/action_view/path_set.rb#58 + # pkg:gem/actionview#lib/action_view/path_set.rb:58 def search_combinations(prefixes); end - # source://actionview//lib/action_view/path_set.rb#67 + # pkg:gem/actionview#lib/action_view/path_set.rb:67 def typecast(paths); end end # = Action View Railtie # -# source://actionview//lib/action_view/railtie.rb#8 +# pkg:gem/actionview#lib/action_view/railtie.rb:8 class ActionView::Railtie < ::Rails::Engine; end -# source://actionview//lib/action_view/buffers.rb#92 +# pkg:gem/actionview#lib/action_view/buffers.rb:92 class ActionView::RawOutputBuffer - # @return [RawOutputBuffer] a new instance of RawOutputBuffer - # - # source://actionview//lib/action_view/buffers.rb#93 + # pkg:gem/actionview#lib/action_view/buffers.rb:93 def initialize(buffer); end - # source://actionview//lib/action_view/buffers.rb#97 + # pkg:gem/actionview#lib/action_view/buffers.rb:97 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#103 + # pkg:gem/actionview#lib/action_view/buffers.rb:103 def raw; end end -# source://actionview//lib/action_view/buffers.rb#150 +# pkg:gem/actionview#lib/action_view/buffers.rb:150 class ActionView::RawStreamingBuffer - # @return [RawStreamingBuffer] a new instance of RawStreamingBuffer - # - # source://actionview//lib/action_view/buffers.rb#151 + # pkg:gem/actionview#lib/action_view/buffers.rb:151 def initialize(buffer); end - # source://actionview//lib/action_view/buffers.rb#155 + # pkg:gem/actionview#lib/action_view/buffers.rb:155 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#161 + # pkg:gem/actionview#lib/action_view/buffers.rb:161 def raw; end end @@ -13557,7 +12486,7 @@ end # end # end # -# source://actionview//lib/action_view/record_identifier.rb#60 +# pkg:gem/actionview#lib/action_view/record_identifier.rb:60 module ActionView::RecordIdentifier include ::ActionView::ModelNaming extend ::ActionView::RecordIdentifier @@ -13573,7 +12502,7 @@ module ActionView::RecordIdentifier # dom_class(post, :edit) # => "edit_post" # dom_class(Person, :edit) # => "edit_person" # - # source://actionview//lib/action_view/record_identifier.rb#78 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:78 def dom_class(record_or_class, prefix = T.unsafe(nil)); end # The DOM id convention is to use the singular form of an object or class with the id following an underscore. @@ -13587,9 +12516,7 @@ module ActionView::RecordIdentifier # dom_id(Post.find(45), :edit) # => "edit_post_45" # dom_id(Post, :custom) # => "custom_post" # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/record_identifier.rb#93 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:93 def dom_id(record_or_class, prefix = T.unsafe(nil)); end # The DOM target convention is to concatenate any number of parameters into a string. @@ -13600,7 +12527,7 @@ module ActionView::RecordIdentifier # dom_target(Post.find(45), :edit, :special) # => "post_45_edit_special" # dom_target(Post.find(45), Comment.find(1)) # => "post_45_comment_1" # - # source://actionview//lib/action_view/record_identifier.rb#111 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:111 def dom_target(*objects); end private @@ -13614,44 +12541,42 @@ module ActionView::RecordIdentifier # method that replaces all characters that are invalid inside DOM ids, with valid ones. You need to # make sure yourself that your dom ids are valid, in case you override this method. # - # source://actionview//lib/action_view/record_identifier.rb#134 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:134 def record_key_for_dom_id(record); end end -# source://actionview//lib/action_view/record_identifier.rb#66 +# pkg:gem/actionview#lib/action_view/record_identifier.rb:66 ActionView::RecordIdentifier::JOIN = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/record_identifier.rb#67 +# pkg:gem/actionview#lib/action_view/record_identifier.rb:67 ActionView::RecordIdentifier::NEW = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/render_parser.rb#4 +# pkg:gem/actionview#lib/action_view/render_parser.rb:4 module ActionView::RenderParser; end -# source://actionview//lib/action_view/render_parser.rb#5 +# pkg:gem/actionview#lib/action_view/render_parser.rb:5 ActionView::RenderParser::ALL_KNOWN_KEYS = T.let(T.unsafe(nil), Array) -# source://actionview//lib/action_view/render_parser.rb#8 +# pkg:gem/actionview#lib/action_view/render_parser.rb:8 class ActionView::RenderParser::Base - # @return [Base] a new instance of Base - # - # source://actionview//lib/action_view/render_parser.rb#9 + # pkg:gem/actionview#lib/action_view/render_parser.rb:9 def initialize(name, code); end private - # source://actionview//lib/action_view/render_parser.rb#15 + # pkg:gem/actionview#lib/action_view/render_parser.rb:15 def directory; end - # source://actionview//lib/action_view/render_parser.rb#19 + # pkg:gem/actionview#lib/action_view/render_parser.rb:19 def partial_to_virtual_path(render_type, partial_path); end end -# source://actionview//lib/action_view/render_parser.rb#37 +# pkg:gem/actionview#lib/action_view/render_parser.rb:37 ActionView::RenderParser::Default = ActionView::RenderParser::PrismRenderParser -# source://actionview//lib/action_view/render_parser/prism_render_parser.rb#5 +# pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:5 class ActionView::RenderParser::PrismRenderParser < ::ActionView::RenderParser::Base - # source://actionview//lib/action_view/render_parser/prism_render_parser.rb#6 + # pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:6 def render_calls; end private @@ -13659,18 +12584,18 @@ class ActionView::RenderParser::PrismRenderParser < ::ActionView::RenderParser:: # Accept a call node and return a hash of options for the render call. # If it doesn't match the expected format, return nil. # - # source://actionview//lib/action_view/render_parser/prism_render_parser.rb#43 + # pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:43 def render_call_options(node); end # Accept the node that is being passed in the position of the template # and return the template name and whether or not it is an object # template. # - # source://actionview//lib/action_view/render_parser/prism_render_parser.rb#97 + # pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:97 def render_call_template(node); end end -# source://actionview//lib/action_view/render_parser.rb#6 +# pkg:gem/actionview#lib/action_view/render_parser.rb:6 ActionView::RenderParser::RENDER_TYPE_KEYS = T.let(T.unsafe(nil), Array) # = Action View \Renderer @@ -13685,31 +12610,23 @@ ActionView::RenderParser::RENDER_TYPE_KEYS = T.let(T.unsafe(nil), Array) # the setup and logic necessary to render a view and a new object is created # each time +render+ is called. # -# source://actionview//lib/action_view/renderer/renderer.rb#15 +# pkg:gem/actionview#lib/action_view/renderer/renderer.rb:15 class ActionView::Renderer - # @return [Renderer] a new instance of Renderer - # - # source://actionview//lib/action_view/renderer/renderer.rb#18 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:18 def initialize(lookup_context); end - # source://actionview//lib/action_view/renderer/renderer.rb#52 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:52 def cache_hits; end - # Returns the value of attribute lookup_context. - # - # source://actionview//lib/action_view/renderer/renderer.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:16 def lookup_context; end - # Sets the attribute lookup_context - # - # @param value the value to set the attribute lookup_context to. - # - # source://actionview//lib/action_view/renderer/renderer.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:16 def lookup_context=(_arg0); end # Main render entry point shared by Action View and Action Controller. # - # source://actionview//lib/action_view/renderer/renderer.rb#23 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:23 def render(context, options); end # Render but returns a valid Rack body. If fibers are defined, we return @@ -13718,31 +12635,31 @@ class ActionView::Renderer # Note that partials are not supported to be rendered with streaming, # so in such cases, we just wrap them in an array. # - # source://actionview//lib/action_view/renderer/renderer.rb#40 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:40 def render_body(context, options); end - # source://actionview//lib/action_view/renderer/renderer.rb#48 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:48 def render_partial(context, options, &block); end - # source://actionview//lib/action_view/renderer/renderer.rb#27 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:27 def render_to_object(context, options); end private - # source://actionview//lib/action_view/renderer/renderer.rb#103 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:103 def collection_from_object(object); end - # source://actionview//lib/action_view/renderer/renderer.rb#96 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:96 def collection_from_options(options); end - # source://actionview//lib/action_view/renderer/renderer.rb#61 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:61 def render_partial_to_object(context, options, &block); end - # source://actionview//lib/action_view/renderer/renderer.rb#57 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:57 def render_template_to_object(context, options); end end -# source://actionview//lib/action_view/rendering.rb#26 +# pkg:gem/actionview#lib/action_view/rendering.rb:26 module ActionView::Rendering extend ::ActiveSupport::Concern include ::ActionView::ViewPaths @@ -13750,18 +12667,18 @@ module ActionView::Rendering mixes_in_class_methods ::ActionView::ViewPaths::ClassMethods mixes_in_class_methods ::ActionView::Rendering::ClassMethods - # source://actionview//lib/action_view/rendering.rb#32 + # pkg:gem/actionview#lib/action_view/rendering.rb:32 def initialize; end # Override process to set up I18n proxy. # - # source://actionview//lib/action_view/rendering.rb#38 + # pkg:gem/actionview#lib/action_view/rendering.rb:38 def process(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/rendering.rb#119 + # pkg:gem/actionview#lib/action_view/rendering.rb:119 def render_to_body(options = T.unsafe(nil)); end - # source://actionview//lib/action_view/rendering.rb#30 + # pkg:gem/actionview#lib/action_view/rendering.rb:30 def rendered_format; end # An instance of a view class. The default view class is ActionView::Base. @@ -13775,15 +12692,15 @@ module ActionView::Rendering # # Override this method in a module to change the default behavior. # - # source://actionview//lib/action_view/rendering.rb#109 + # pkg:gem/actionview#lib/action_view/rendering.rb:109 def view_context; end - # source://actionview//lib/action_view/rendering.rb#95 + # pkg:gem/actionview#lib/action_view/rendering.rb:95 def view_context_class; end # Returns an object that is able to render templates. # - # source://actionview//lib/action_view/rendering.rb#114 + # pkg:gem/actionview#lib/action_view/rendering.rb:114 def view_renderer; end private @@ -13791,161 +12708,139 @@ module ActionView::Rendering # Normalize args by converting render "foo" to render action: "foo" and # render "foo/bar" to render template: "foo/bar". # - # source://actionview//lib/action_view/rendering.rb#153 + # pkg:gem/actionview#lib/action_view/rendering.rb:153 def _normalize_args(action = T.unsafe(nil), options = T.unsafe(nil)); end # Assign the rendered format to look up context. # - # source://actionview//lib/action_view/rendering.rb#146 + # pkg:gem/actionview#lib/action_view/rendering.rb:146 def _process_format(format); end # Normalize options. # - # source://actionview//lib/action_view/rendering.rb#177 + # pkg:gem/actionview#lib/action_view/rendering.rb:177 def _process_render_template_options(options); end # Find and render a template based on the options given. # - # source://actionview//lib/action_view/rendering.rb#127 + # pkg:gem/actionview#lib/action_view/rendering.rb:127 def _render_template(options); end end -# source://actionview//lib/action_view/rendering.rb#45 +# pkg:gem/actionview#lib/action_view/rendering.rb:45 module ActionView::Rendering::ClassMethods - # source://actionview//lib/action_view/rendering.rb#49 + # pkg:gem/actionview#lib/action_view/rendering.rb:49 def _helpers; end - # source://actionview//lib/action_view/rendering.rb#46 + # pkg:gem/actionview#lib/action_view/rendering.rb:46 def _routes; end - # source://actionview//lib/action_view/rendering.rb#59 + # pkg:gem/actionview#lib/action_view/rendering.rb:59 def build_view_context_class(klass, supports_path, routes, helpers); end - # source://actionview//lib/action_view/rendering.rb#76 + # pkg:gem/actionview#lib/action_view/rendering.rb:76 def eager_load!; end - # @return [Boolean] - # - # source://actionview//lib/action_view/rendering.rb#52 + # pkg:gem/actionview#lib/action_view/rendering.rb:52 def inherit_view_context_class?; end - # source://actionview//lib/action_view/rendering.rb#82 + # pkg:gem/actionview#lib/action_view/rendering.rb:82 def view_context_class; end end # = Action View Resolver # -# source://actionview//lib/action_view/template/resolver.rb#11 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:11 class ActionView::Resolver - # source://actionview//lib/action_view/template/resolver.rb#69 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:69 def all_template_paths; end - # source://actionview//lib/action_view/template/resolver.rb#64 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:64 def built_templates; end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching; end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching=(val); end - # source://actionview//lib/action_view/template/resolver.rb#79 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:79 def caching?(&_arg0); end - # source://actionview//lib/action_view/template/resolver.rb#56 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:56 def clear_cache; end # Normalizes the arguments and passes it on to find_templates. # - # source://actionview//lib/action_view/template/resolver.rb#60 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:60 def find_all(name, prefix = T.unsafe(nil), partial = T.unsafe(nil), details = T.unsafe(nil), key = T.unsafe(nil), locals = T.unsafe(nil)); end private - # source://actionview//lib/action_view/template/resolver.rb#75 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:75 def _find_all(name, prefix, partial, details, key, locals); end # This is what child classes implement. No defaults are needed # because Resolver guarantees that the arguments are present and # normalized. # - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/template/resolver.rb#84 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:84 def find_templates(name, prefix, partial, details, locals = T.unsafe(nil)); end class << self - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching; end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching=(val); end - # source://actionview//lib/action_view/template/resolver.rb#53 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:53 def caching?; end end end -# source://actionview//lib/action_view/template/resolver.rb#12 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:12 class ActionView::Resolver::PathParser - # source://actionview//lib/action_view/template/resolver.rb#15 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:15 def build_path_regex; end - # source://actionview//lib/action_view/template/resolver.rb#36 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:36 def parse(path); end end -# source://actionview//lib/action_view/template/resolver.rb#13 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:13 class ActionView::Resolver::PathParser::ParsedPath < ::Struct - # Returns the value of attribute details - # - # @return [Object] the current value of details - # - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def details; end - # Sets the attribute details - # - # @param value [Object] the value to set the attribute details to. - # @return [Object] the newly set value - # - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def details=(_); end - # Returns the value of attribute path - # - # @return [Object] the current value of path - # - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def path; end - # Sets the attribute path - # - # @param value [Object] the value to set the attribute path to. - # @return [Object] the newly set value - # - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def path=(_); end class << self - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def [](*_arg0); end - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def inspect; end - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def keyword_init?; end - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def members; end - # source://actionview//lib/action_view/template/resolver.rb#13 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def new(*_arg0); end end end -# source://actionview//lib/action_view/routing_url_for.rb#6 +# pkg:gem/actionview#lib/action_view/routing_url_for.rb:6 module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::PolymorphicRoutes @@ -14025,97 +12920,85 @@ module ActionView::RoutingUrlFor # # Specify absolute path with beginning slash # # => /users # - # source://actionview//lib/action_view/routing_url_for.rb#82 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:82 def url_for(options = T.unsafe(nil)); end - # source://actionview//lib/action_view/routing_url_for.rb#124 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:124 def url_options; end private - # source://actionview//lib/action_view/routing_url_for.rb#139 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:139 def _generate_paths_by_default; end - # source://actionview//lib/action_view/routing_url_for.rb#130 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:130 def _routes_context; end - # source://actionview//lib/action_view/routing_url_for.rb#143 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:143 def ensure_only_path_option(options); end - # @return [Boolean] - # - # source://actionview//lib/action_view/routing_url_for.rb#134 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:134 def optimize_routes_generation?; end end -# source://actionview//lib/action_view/buffers.rb#108 +# pkg:gem/actionview#lib/action_view/buffers.rb:108 class ActionView::StreamingBuffer - # @return [StreamingBuffer] a new instance of StreamingBuffer - # - # source://actionview//lib/action_view/buffers.rb#109 + # pkg:gem/actionview#lib/action_view/buffers.rb:109 def initialize(block); end - # source://actionview//lib/action_view/buffers.rb#113 + # pkg:gem/actionview#lib/action_view/buffers.rb:113 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#119 + # pkg:gem/actionview#lib/action_view/buffers.rb:119 def append=(value); end - # Returns the value of attribute block. - # - # source://actionview//lib/action_view/buffers.rb#147 + # pkg:gem/actionview#lib/action_view/buffers.rb:147 def block; end - # source://actionview//lib/action_view/buffers.rb#126 + # pkg:gem/actionview#lib/action_view/buffers.rb:126 def capture; end - # source://actionview//lib/action_view/buffers.rb#118 + # pkg:gem/actionview#lib/action_view/buffers.rb:118 def concat(value); end - # source://actionview//lib/action_view/buffers.rb#139 + # pkg:gem/actionview#lib/action_view/buffers.rb:139 def html_safe; end - # @return [Boolean] - # - # source://actionview//lib/action_view/buffers.rb#135 + # pkg:gem/actionview#lib/action_view/buffers.rb:135 def html_safe?; end - # source://actionview//lib/action_view/buffers.rb#143 + # pkg:gem/actionview#lib/action_view/buffers.rb:143 def raw; end - # source://actionview//lib/action_view/buffers.rb#124 + # pkg:gem/actionview#lib/action_view/buffers.rb:124 def safe_append=(value); end - # source://actionview//lib/action_view/buffers.rb#121 + # pkg:gem/actionview#lib/action_view/buffers.rb:121 def safe_concat(value); end end -# source://actionview//lib/action_view/flows.rb#30 +# pkg:gem/actionview#lib/action_view/flows.rb:30 class ActionView::StreamingFlow < ::ActionView::OutputFlow - # @return [StreamingFlow] a new instance of StreamingFlow - # - # source://actionview//lib/action_view/flows.rb#31 + # pkg:gem/actionview#lib/action_view/flows.rb:31 def initialize(view, fiber); end # Appends the contents for the given key. This is called # by providing and resuming back to the fiber, # if that's the key it's waiting for. # - # source://actionview//lib/action_view/flows.rb#65 + # pkg:gem/actionview#lib/action_view/flows.rb:65 def append!(key, value); end # Try to get stored content. If the content # is not available and we're inside the layout fiber, # then it will begin waiting for the given key and yield. # - # source://actionview//lib/action_view/flows.rb#43 + # pkg:gem/actionview#lib/action_view/flows.rb:43 def get(key); end private - # @return [Boolean] - # - # source://actionview//lib/action_view/flows.rb#71 + # pkg:gem/actionview#lib/action_view/flows.rb:71 def inside_fiber?; end end @@ -14124,18 +13007,18 @@ end # * Support streaming from child templates, partials and so on. # * Rack::Cache needs to support streaming bodies # -# source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#12 +# pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:9 class ActionView::StreamingTemplateRenderer < ::ActionView::TemplateRenderer # For streaming, instead of rendering a given a template, we return a Body # object that responds to each. This object is initialized with a block # that knows how to render the template. # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#51 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:51 def render_template(view, template, layout_name = T.unsafe(nil), locals = T.unsafe(nil)); end private - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#63 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:63 def delayed_render(buffer, template, layout, view, locals); end end @@ -14143,113 +13026,103 @@ end # It is initialized with a block that, when called, starts # rendering the template. # -# source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#13 +# pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:13 class ActionView::StreamingTemplateRenderer::Body - # @return [Body] a new instance of Body - # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#14 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:14 def initialize(&start); end # Returns the complete body as a string. # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#29 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:29 def body; end - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#18 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:18 def each(&block); end private # This is the same logging logic as in ShowExceptions middleware. # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#37 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:37 def log_error(exception); end end -# source://actionview//lib/action_view/template/error.rb#30 +# pkg:gem/actionview#lib/action_view/template/error.rb:30 class ActionView::StrictLocalsError < ::ArgumentError - # @return [StrictLocalsError] a new instance of StrictLocalsError - # - # source://actionview//lib/action_view/template/error.rb#31 + # pkg:gem/actionview#lib/action_view/template/error.rb:31 def initialize(argument_error, template); end end -# source://actionview//lib/action_view/structured_event_subscriber.rb#6 +# pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:6 class ActionView::StructuredEventSubscriber < ::ActiveSupport::StructuredEventSubscriber include ::ActionView::StructuredEventSubscriber::Utils - # @return [StructuredEventSubscriber] a new instance of StructuredEventSubscriber - # - # source://actionview//lib/action_view/structured_event_subscriber.rb#9 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:9 def initialize; end - # source://actionview//lib/action_view/structured_event_subscriber.rb#44 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:44 def render_collection(event); end - # source://actionview//lib/action_view/structured_event_subscriber.rb#35 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:35 def render_layout(event); end - # source://actionview//lib/action_view/structured_event_subscriber.rb#24 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:24 def render_partial(event); end - # source://actionview//lib/action_view/structured_event_subscriber.rb#14 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:14 def render_template(event); end class << self - # source://actionview//lib/action_view/structured_event_subscriber.rb#88 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:88 def attach_to(*_arg0); end end end -# source://actionview//lib/action_view/structured_event_subscriber.rb#73 +# pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:73 class ActionView::StructuredEventSubscriber::Start include ::ActionView::StructuredEventSubscriber::Utils - # source://actionview//lib/action_view/structured_event_subscriber.rb#84 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:84 def finish(name, id, payload); end - # source://actionview//lib/action_view/structured_event_subscriber.rb#76 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:76 def start(name, id, payload); end end -# source://actionview//lib/action_view/structured_event_subscriber.rb#56 +# pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:56 module ActionView::StructuredEventSubscriber::Utils private - # source://actionview//lib/action_view/structured_event_subscriber.rb#58 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:58 def from_rails_root(string); end - # source://actionview//lib/action_view/structured_event_subscriber.rb#66 + # pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:66 def rails_root; end end -# source://actionview//lib/action_view/structured_event_subscriber.rb#7 +# pkg:gem/actionview#lib/action_view/structured_event_subscriber.rb:7 ActionView::StructuredEventSubscriber::VIEWS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template/error.rb#256 +# pkg:gem/actionview#lib/action_view/template/error.rb:256 class ActionView::SyntaxErrorInTemplate < ::ActionView::Template::Error - # @return [SyntaxErrorInTemplate] a new instance of SyntaxErrorInTemplate - # - # source://actionview//lib/action_view/template/error.rb#257 + # pkg:gem/actionview#lib/action_view/template/error.rb:257 def initialize(template, offending_code_string); end - # source://actionview//lib/action_view/template/error.rb#272 + # pkg:gem/actionview#lib/action_view/template/error.rb:272 def annotated_source_code; end - # source://actionview//lib/action_view/template/error.rb#262 + # pkg:gem/actionview#lib/action_view/template/error.rb:262 def message; end end # = Action View \Template # -# source://actionview//lib/action_view/template.rb#7 +# pkg:gem/actionview#lib/action_view/template.rb:7 class ActionView::Template extend ::ActiveSupport::Autoload extend ::ActionView::Template::Handlers - # @return [Template] a new instance of Template - # - # source://actionview//lib/action_view/template.rb#199 + # pkg:gem/actionview#lib/action_view/template.rb:199 def initialize(source, identifier, handler, locals:, format: T.unsafe(nil), variant: T.unsafe(nil), virtual_path: T.unsafe(nil)); end # This method is responsible for properly setting the encoding of the @@ -14262,44 +13135,38 @@ class ActionView::Template # before passing the source on to the template engine, leaving a # blank line in its stead. # - # source://actionview//lib/action_view/template.rb#321 + # pkg:gem/actionview#lib/action_view/template.rb:321 def encode!; end - # Returns the value of attribute format. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def format; end - # Returns the value of attribute handler. - # - # source://actionview//lib/action_view/template.rb#194 + # pkg:gem/actionview#lib/action_view/template.rb:194 def handler; end - # Returns the value of attribute identifier. - # - # source://actionview//lib/action_view/template.rb#194 + # pkg:gem/actionview#lib/action_view/template.rb:194 def identifier; end - # source://actionview//lib/action_view/template.rb#300 + # pkg:gem/actionview#lib/action_view/template.rb:300 def inspect; end # The locals this template has been or will be compiled for, or nil if this # is a strict locals template. # - # source://actionview//lib/action_view/template.rb#223 + # pkg:gem/actionview#lib/action_view/template.rb:223 def locals; end # Exceptions are marshalled when using the parallel test runner with DRb, so we need # to ensure that references to the template object can be marshalled as well. This means forgoing # the marshalling of the compiler mutex and instantiating that again on unmarshalling. # - # source://actionview//lib/action_view/template.rb#387 + # pkg:gem/actionview#lib/action_view/template.rb:387 def marshal_dump; end - # source://actionview//lib/action_view/template.rb#391 + # pkg:gem/actionview#lib/action_view/template.rb:391 def marshal_load(array); end - # source://actionview//lib/action_view/template.rb#396 + # pkg:gem/actionview#lib/action_view/template.rb:396 def method_name; end # Render a template. If the template was not compiled yet, it is done @@ -14309,16 +13176,16 @@ class ActionView::Template # we use a bang in this instrumentation because you don't want to # consume this in production. This is only slow if it's being listened to. # - # source://actionview//lib/action_view/template.rb#271 + # pkg:gem/actionview#lib/action_view/template.rb:271 def render(view, locals, buffer = T.unsafe(nil), implicit_locals: T.unsafe(nil), add_to_stack: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/template.rb#296 + # pkg:gem/actionview#lib/action_view/template.rb:296 def short_identifier; end - # source://actionview//lib/action_view/template.rb#304 + # pkg:gem/actionview#lib/action_view/template.rb:304 def source; end - # source://actionview//lib/action_view/template.rb#231 + # pkg:gem/actionview#lib/action_view/template.rb:231 def spot(location); end # This method is responsible for marking a template as having strict locals @@ -14331,46 +13198,36 @@ class ActionView::Template # Strict locals are useful for validating template arguments and for # specifying defaults. # - # source://actionview//lib/action_view/template.rb#366 + # pkg:gem/actionview#lib/action_view/template.rb:366 def strict_locals!; end # Returns whether a template is using strict locals. # - # @return [Boolean] - # - # source://actionview//lib/action_view/template.rb#380 + # pkg:gem/actionview#lib/action_view/template.rb:380 def strict_locals?; end # Returns whether the underlying handler supports streaming. If so, # a streaming buffer *may* be passed when it starts rendering. # - # @return [Boolean] - # - # source://actionview//lib/action_view/template.rb#261 + # pkg:gem/actionview#lib/action_view/template.rb:261 def supports_streaming?; end # Translate an error location returned by ErrorHighlight to the correct # source location inside the template. # - # source://actionview//lib/action_view/template.rb#251 + # pkg:gem/actionview#lib/action_view/template.rb:251 def translate_location(backtrace_location, spot); end - # source://actionview//lib/action_view/template.rb#292 + # pkg:gem/actionview#lib/action_view/template.rb:292 def type; end - # Returns the value of attribute variable. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def variable; end - # Returns the value of attribute variant. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def variant; end - # Returns the value of attribute virtual_path. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def virtual_path; end private @@ -14387,54 +13244,54 @@ class ActionView::Template # In general, this means that templates will be UTF-8 inside of Rails, # regardless of the original source encoding. # - # source://actionview//lib/action_view/template.rb#500 + # pkg:gem/actionview#lib/action_view/template.rb:500 def compile(mod); end # Compile a template. This method ensures a template is compiled # just once and removes the source after it is compiled. # - # source://actionview//lib/action_view/template.rb#418 + # pkg:gem/actionview#lib/action_view/template.rb:418 def compile!(view); end # This method compiles the source of the template. The compilation of templates # involves setting strict_locals! if applicable, encoding the template, and setting # frozen string literal. # - # source://actionview//lib/action_view/template.rb#443 + # pkg:gem/actionview#lib/action_view/template.rb:443 def compiled_source; end - # source://actionview//lib/action_view/template.rb#405 + # pkg:gem/actionview#lib/action_view/template.rb:405 def find_node_by_id(node, node_id); end - # source://actionview//lib/action_view/template.rb#549 + # pkg:gem/actionview#lib/action_view/template.rb:549 def handle_render_error(view, e); end - # source://actionview//lib/action_view/template.rb#574 + # pkg:gem/actionview#lib/action_view/template.rb:574 def identifier_method_name; end - # source://actionview//lib/action_view/template.rb#578 + # pkg:gem/actionview#lib/action_view/template.rb:578 def instrument(action, &block); end - # source://actionview//lib/action_view/template.rb#586 + # pkg:gem/actionview#lib/action_view/template.rb:586 def instrument_payload; end - # source://actionview//lib/action_view/template.rb#582 + # pkg:gem/actionview#lib/action_view/template.rb:582 def instrument_render_template(&block); end - # source://actionview//lib/action_view/template.rb#561 + # pkg:gem/actionview#lib/action_view/template.rb:561 def locals_code; end - # source://actionview//lib/action_view/template.rb#541 + # pkg:gem/actionview#lib/action_view/template.rb:541 def offset; end class << self - # source://actionview//lib/action_view/template.rb#180 + # pkg:gem/actionview#lib/action_view/template.rb:180 def frozen_string_literal; end - # source://actionview//lib/action_view/template.rb#180 + # pkg:gem/actionview#lib/action_view/template.rb:180 def frozen_string_literal=(_arg0); end - # source://actionview//lib/action_view/template.rb#184 + # pkg:gem/actionview#lib/action_view/template.rb:184 def mime_types_implementation=(implementation); end end end @@ -14443,95 +13300,89 @@ end # fails. This exception then gathers a bunch of intimate details and uses it to report a # precise exception message. # -# source://actionview//lib/action_view/template/error.rb#165 +# pkg:gem/actionview#lib/action_view/template/error.rb:165 class ActionView::Template::Error < ::ActionView::ActionViewError - # @return [Error] a new instance of Error - # - # source://actionview//lib/action_view/template/error.rb#173 + # pkg:gem/actionview#lib/action_view/template/error.rb:173 def initialize(template); end - # source://actionview//lib/action_view/template/error.rb#231 + # pkg:gem/actionview#lib/action_view/template/error.rb:231 def annotated_source_code; end - # source://actionview//lib/action_view/template/error.rb#182 + # pkg:gem/actionview#lib/action_view/template/error.rb:182 def backtrace; end - # source://actionview//lib/action_view/template/error.rb#186 + # pkg:gem/actionview#lib/action_view/template/error.rb:186 def backtrace_locations; end # Override to prevent #cause resetting during re-raise. # - # source://actionview//lib/action_view/template/error.rb#169 + # pkg:gem/actionview#lib/action_view/template/error.rb:169 def cause; end - # source://actionview//lib/action_view/template/error.rb#190 + # pkg:gem/actionview#lib/action_view/template/error.rb:190 def file_name; end - # source://actionview//lib/action_view/template/error.rb#223 + # pkg:gem/actionview#lib/action_view/template/error.rb:223 def line_number; end - # source://actionview//lib/action_view/template/error.rb#203 + # pkg:gem/actionview#lib/action_view/template/error.rb:203 def source_extract(indentation = T.unsafe(nil)); end - # source://actionview//lib/action_view/template/error.rb#194 + # pkg:gem/actionview#lib/action_view/template/error.rb:194 def sub_template_message; end - # source://actionview//lib/action_view/template/error.rb#218 + # pkg:gem/actionview#lib/action_view/template/error.rb:218 def sub_template_of(template_path); end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/template/error.rb#171 + # pkg:gem/actionview#lib/action_view/template/error.rb:171 def template; end private - # source://actionview//lib/action_view/template/error.rb#244 + # pkg:gem/actionview#lib/action_view/template/error.rb:244 def formatted_code_for(source_code, line_counter, indent); end - # source://actionview//lib/action_view/template/error.rb#236 + # pkg:gem/actionview#lib/action_view/template/error.rb:236 def source_location; end end -# source://actionview//lib/action_view/template/error.rb#166 +# pkg:gem/actionview#lib/action_view/template/error.rb:166 ActionView::Template::Error::SOURCE_CODE_RADIUS = T.let(T.unsafe(nil), Integer) # = Action View HTML Template # -# source://actionview//lib/action_view/template/html.rb#6 +# pkg:gem/actionview#lib/action_view/template/html.rb:6 class ActionView::Template::HTML - # @return [HTML] a new instance of HTML - # - # source://actionview//lib/action_view/template/html.rb#9 + # pkg:gem/actionview#lib/action_view/template/html.rb:9 def initialize(string, type); end - # source://actionview//lib/action_view/template/html.rb#28 + # pkg:gem/actionview#lib/action_view/template/html.rb:28 def format; end - # source://actionview//lib/action_view/template/html.rb#14 + # pkg:gem/actionview#lib/action_view/template/html.rb:14 def identifier; end - # source://actionview//lib/action_view/template/html.rb#18 + # pkg:gem/actionview#lib/action_view/template/html.rb:18 def inspect; end - # source://actionview//lib/action_view/template/html.rb#24 + # pkg:gem/actionview#lib/action_view/template/html.rb:24 def render(*args); end - # source://actionview//lib/action_view/template/html.rb#20 + # pkg:gem/actionview#lib/action_view/template/html.rb:20 def to_str; end - # source://actionview//lib/action_view/template/html.rb#7 + # pkg:gem/actionview#lib/action_view/template/html.rb:7 def type; end end # = Action View Template Handlers # -# source://actionview//lib/action_view/template/handlers.rb#6 +# pkg:gem/actionview#lib/action_view/template/handlers.rb:6 module ActionView::Template::Handlers - # source://actionview//lib/action_view/template/handlers.rb#61 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:61 def handler_for_extension(extension); end - # source://actionview//lib/action_view/template/handlers.rb#56 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:56 def register_default_template_handler(extension, klass); end # Register an object that knows how to handle template files with the given @@ -14539,127 +13390,119 @@ module ActionView::Template::Handlers # The handler must respond to +:call+, which will be passed the template # and should return the rendered template as a String. # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/template/handlers.rb#31 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:31 def register_template_handler(*extensions, handler); end - # source://actionview//lib/action_view/template/handlers.rb#52 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:52 def registered_template_handler(extension); end - # source://actionview//lib/action_view/template/handlers.rb#48 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:48 def template_handler_extensions; end # Opposite to register_template_handler. # - # source://actionview//lib/action_view/template/handlers.rb#40 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:40 def unregister_template_handler(*extensions); end class << self - # @private - # - # source://actionview//lib/action_view/template/handlers.rb#12 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:12 def extended(base); end - # source://actionview//lib/action_view/template/handlers.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:23 def extensions; end end end -# source://actionview//lib/action_view/template/handlers/builder.rb#5 +# pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:5 class ActionView::Template::Handlers::Builder - # source://actionview//lib/action_view/template/handlers/builder.rb#8 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:8 def call(template, source); end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format; end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format=(_arg0); end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format?; end private - # source://actionview//lib/action_view/template/handlers/builder.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:17 def require_engine; end class << self - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format; end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format=(value); end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format?; end private - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def __class_attr_default_format; end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def __class_attr_default_format=(new_value); end end end -# source://actionview//lib/action_view/template/handlers/erb.rb#9 +# pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:9 class ActionView::Template::Handlers::ERB - # source://actionview//lib/action_view/template/handlers/erb.rb#65 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:65 def call(template, source); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation; end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list?; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#37 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:37 def handles_encoding?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines?; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#33 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:33 def supports_streaming?; end # Translate an error location returned by ErrorHighlight to the correct # source location inside the template. # - # source://actionview//lib/action_view/template/handlers/erb.rb#43 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:43 def translate_location(spot, _backtrace_location, source); end private @@ -14672,9 +13515,7 @@ class ActionView::Template::Handlers::ERB # Use the difference between the compiled and source sizes to # determine the earliest line that could contain the highlight. # - # @raise [LocationParsingError] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#119 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:119 def find_lineno_offset(compiled, source_lines, highlight, error_lineno); end # Find which token in the source template spans the byte range that @@ -14696,406 +13537,350 @@ class ActionView::Template::Handlers::ERB # the current token from looping past the next token if they both # match (i.e. if the current token is a single space character). # - # @raise [LocationParsingError] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#152 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:152 def find_offset(compiled, source_tokens, error_column); end - # source://actionview//lib/action_view/template/handlers/erb.rb#177 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:177 def offset_source_tokens(source_tokens); end - # @raise [WrongEncodingError] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#97 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:97 def valid_encoding(string, encoding); end class << self - # source://actionview//lib/action_view/template/handlers/erb.rb#29 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:29 def call(template, source); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation; end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines?; end private - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def __class_attr_erb_implementation; end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def __class_attr_erb_implementation=(new_value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def __class_attr_erb_trim_mode; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def __class_attr_erb_trim_mode=(new_value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def __class_attr_escape_ignore_list; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def __class_attr_escape_ignore_list=(new_value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def __class_attr_strip_trailing_newlines; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def __class_attr_strip_trailing_newlines=(new_value); end end end -# source://actionview//lib/action_view/template/handlers/erb.rb#25 +# pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:25 ActionView::Template::Handlers::ERB::ENCODING_TAG = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template/handlers/erb/erubi.rb#9 +# pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:9 class ActionView::Template::Handlers::ERB::Erubi < ::Erubi::Engine - # @return [Erubi] a new instance of Erubi - # - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#11 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:11 def initialize(input, properties = T.unsafe(nil)); end private - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#65 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:65 def add_code(code); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#47 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:47 def add_expression(indicator, code); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#70 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:70 def add_postamble(_); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#30 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:30 def add_text(text); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#75 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:75 def flush_newline_if_pending(src); end end -# source://actionview//lib/action_view/template/handlers/erb/erubi.rb#45 +# pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:45 ActionView::Template::Handlers::ERB::Erubi::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template/handlers/erb.rb#27 +# pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:27 class ActionView::Template::Handlers::ERB::LocationParsingError < ::StandardError; end -# source://actionview//lib/action_view/template/handlers/html.rb#5 +# pkg:gem/actionview#lib/action_view/template/handlers/html.rb:5 class ActionView::Template::Handlers::Html < ::ActionView::Template::Handlers::Raw - # source://actionview//lib/action_view/template/handlers/html.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/html.rb:6 def call(template, source); end end -# source://actionview//lib/action_view/template/handlers/raw.rb#5 +# pkg:gem/actionview#lib/action_view/template/handlers/raw.rb:5 class ActionView::Template::Handlers::Raw - # source://actionview//lib/action_view/template/handlers/raw.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/raw.rb:6 def call(template, source); end end -# source://actionview//lib/action_view/template/inline.rb#7 +# pkg:gem/actionview#lib/action_view/template/inline.rb:5 class ActionView::Template::Inline < ::ActionView::Template - # source://actionview//lib/action_view/template/inline.rb#16 + # pkg:gem/actionview#lib/action_view/template/inline.rb:16 def compile(mod); end end # This finalizer is needed (and exactly with a proc inside another proc) # otherwise templates leak in development. # -# source://actionview//lib/action_view/template/inline.rb#8 +# pkg:gem/actionview#lib/action_view/template/inline.rb:8 ActionView::Template::Inline::Finalizer = T.let(T.unsafe(nil), Proc) -# source://actionview//lib/action_view/template.rb#308 +# pkg:gem/actionview#lib/action_view/template.rb:308 ActionView::Template::LEADING_ENCODING_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template.rb#197 +# pkg:gem/actionview#lib/action_view/template.rb:197 ActionView::Template::NONE = T.let(T.unsafe(nil), Object) -# source://actionview//lib/action_view/template.rb#558 +# pkg:gem/actionview#lib/action_view/template.rb:558 ActionView::Template::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) # = Action View RawFile Template # -# source://actionview//lib/action_view/template/raw_file.rb#6 +# pkg:gem/actionview#lib/action_view/template/raw_file.rb:6 class ActionView::Template::RawFile - # @return [RawFile] a new instance of RawFile - # - # source://actionview//lib/action_view/template/raw_file.rb#9 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:9 def initialize(filename); end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def format; end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def format=(_arg0); end - # source://actionview//lib/action_view/template/raw_file.rb#16 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:16 def identifier; end - # source://actionview//lib/action_view/template/raw_file.rb#20 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:20 def render(*args); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/raw_file.rb#24 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:24 def supports_streaming?; end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def type; end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def type=(_arg0); end end # = Action View Renderable Template for objects that respond to #render_in # -# source://actionview//lib/action_view/template/renderable.rb#6 +# pkg:gem/actionview#lib/action_view/template/renderable.rb:6 class ActionView::Template::Renderable - # @return [Renderable] a new instance of Renderable - # - # source://actionview//lib/action_view/template/renderable.rb#7 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:7 def initialize(renderable); end - # source://actionview//lib/action_view/template/renderable.rb#25 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:25 def format; end - # source://actionview//lib/action_view/template/renderable.rb#11 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:11 def identifier; end - # source://actionview//lib/action_view/template/renderable.rb#15 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:15 def render(context, *args); end end -# source://actionview//lib/action_view/template.rb#10 +# pkg:gem/actionview#lib/action_view/template.rb:10 ActionView::Template::STRICT_LOCALS_REGEX = T.let(T.unsafe(nil), Regexp) # SimpleType is mostly just a stub implementation for when Action View # is used without Action Dispatch. # -# source://actionview//lib/action_view/template/types.rb#9 +# pkg:gem/actionview#lib/action_view/template/types.rb:9 class ActionView::Template::SimpleType - # @return [SimpleType] a new instance of SimpleType - # - # source://actionview//lib/action_view/template/types.rb#29 + # pkg:gem/actionview#lib/action_view/template/types.rb:29 def initialize(symbol); end - # source://actionview//lib/action_view/template/types.rb#43 + # pkg:gem/actionview#lib/action_view/template/types.rb:43 def ==(type); end - # source://actionview//lib/action_view/template/types.rb#38 + # pkg:gem/actionview#lib/action_view/template/types.rb:38 def ref; end - # Returns the value of attribute symbol. - # - # source://actionview//lib/action_view/template/types.rb#27 + # pkg:gem/actionview#lib/action_view/template/types.rb:27 def symbol; end - # source://actionview//lib/action_view/template/types.rb#33 + # pkg:gem/actionview#lib/action_view/template/types.rb:33 def to_s; end - # source://actionview//lib/action_view/template/types.rb#36 + # pkg:gem/actionview#lib/action_view/template/types.rb:36 def to_str; end - # source://actionview//lib/action_view/template/types.rb#41 + # pkg:gem/actionview#lib/action_view/template/types.rb:41 def to_sym; end class << self - # source://actionview//lib/action_view/template/types.rb#14 + # pkg:gem/actionview#lib/action_view/template/types.rb:14 def [](type); end - # Returns the value of attribute symbols. - # - # source://actionview//lib/action_view/template/types.rb#12 + # pkg:gem/actionview#lib/action_view/template/types.rb:12 def symbols; end - # :nodoc - # - # @return [Boolean] - # - # source://actionview//lib/action_view/template/types.rb#22 + # pkg:gem/actionview#lib/action_view/template/types.rb:22 def valid_symbols?(symbols); end end end -# source://actionview//lib/action_view/template/sources.rb#5 +# pkg:gem/actionview#lib/action_view/template/sources.rb:5 module ActionView::Template::Sources extend ::ActiveSupport::Autoload end -# source://actionview//lib/action_view/template/sources/file.rb#6 +# pkg:gem/actionview#lib/action_view/template/sources/file.rb:6 class ActionView::Template::Sources::File - # @return [File] a new instance of File - # - # source://actionview//lib/action_view/template/sources/file.rb#7 + # pkg:gem/actionview#lib/action_view/template/sources/file.rb:7 def initialize(filename); end - # source://actionview//lib/action_view/template/sources/file.rb#11 + # pkg:gem/actionview#lib/action_view/template/sources/file.rb:11 def to_s; end end # = Action View Text Template # -# source://actionview//lib/action_view/template/text.rb#6 +# pkg:gem/actionview#lib/action_view/template/text.rb:6 class ActionView::Template::Text - # @return [Text] a new instance of Text - # - # source://actionview//lib/action_view/template/text.rb#9 + # pkg:gem/actionview#lib/action_view/template/text.rb:9 def initialize(string); end - # source://actionview//lib/action_view/template/text.rb#27 + # pkg:gem/actionview#lib/action_view/template/text.rb:27 def format; end - # source://actionview//lib/action_view/template/text.rb#13 + # pkg:gem/actionview#lib/action_view/template/text.rb:13 def identifier; end - # source://actionview//lib/action_view/template/text.rb#17 + # pkg:gem/actionview#lib/action_view/template/text.rb:17 def inspect; end - # source://actionview//lib/action_view/template/text.rb#23 + # pkg:gem/actionview#lib/action_view/template/text.rb:23 def render(*args); end - # source://actionview//lib/action_view/template/text.rb#19 + # pkg:gem/actionview#lib/action_view/template/text.rb:19 def to_str; end - # source://actionview//lib/action_view/template/text.rb#7 + # pkg:gem/actionview#lib/action_view/template/text.rb:7 def type; end - # source://actionview//lib/action_view/template/text.rb#7 + # pkg:gem/actionview#lib/action_view/template/text.rb:7 def type=(_arg0); end end -# source://actionview//lib/action_view/template.rb#189 +# pkg:gem/actionview#lib/action_view/template.rb:189 ActionView::Template::Types = Mime -# source://actionview//lib/action_view/template_details.rb#4 +# pkg:gem/actionview#lib/action_view/template_details.rb:4 class ActionView::TemplateDetails - # @return [TemplateDetails] a new instance of TemplateDetails - # - # source://actionview//lib/action_view/template_details.rb#35 + # pkg:gem/actionview#lib/action_view/template_details.rb:35 def initialize(locale, handler, format, variant); end - # Returns the value of attribute format. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def format; end - # source://actionview//lib/action_view/template_details.rb#62 + # pkg:gem/actionview#lib/action_view/template_details.rb:62 def format_or_default; end - # Returns the value of attribute handler. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def handler; end - # source://actionview//lib/action_view/template_details.rb#58 + # pkg:gem/actionview#lib/action_view/template_details.rb:58 def handler_class; end - # Returns the value of attribute locale. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def locale; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template_details.rb#42 + # pkg:gem/actionview#lib/action_view/template_details.rb:42 def matches?(requested); end - # source://actionview//lib/action_view/template_details.rb#49 + # pkg:gem/actionview#lib/action_view/template_details.rb:49 def sort_key_for(requested); end - # Returns the value of attribute variant. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def variant; end end -# source://actionview//lib/action_view/template_details.rb#5 +# pkg:gem/actionview#lib/action_view/template_details.rb:5 class ActionView::TemplateDetails::Requested - # @return [Requested] a new instance of Requested - # - # source://actionview//lib/action_view/template_details.rb#11 + # pkg:gem/actionview#lib/action_view/template_details.rb:11 def initialize(locale:, handlers:, formats:, variants:); end - # Returns the value of attribute formats. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def formats; end - # Returns the value of attribute formats_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def formats_idx; end - # Returns the value of attribute handlers. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def handlers; end - # Returns the value of attribute handlers_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def handlers_idx; end - # Returns the value of attribute locale. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def locale; end - # Returns the value of attribute locale_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def locale_idx; end - # Returns the value of attribute variants. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def variants; end - # Returns the value of attribute variants_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def variants_idx; end private - # source://actionview//lib/action_view/template_details.rb#28 + # pkg:gem/actionview#lib/action_view/template_details.rb:28 def build_idx_hash(arr); end end -# source://actionview//lib/action_view/template_details.rb#9 +# pkg:gem/actionview#lib/action_view/template_details.rb:9 ActionView::TemplateDetails::Requested::ANY_HASH = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/template/error.rb#254 +# pkg:gem/actionview#lib/action_view/template/error.rb:254 ActionView::TemplateError = ActionView::Template::Error # = Action View \TemplatePath @@ -15106,113 +13891,91 @@ ActionView::TemplateError = ActionView::Template::Error # TemplatePath makes it convenient to convert between separate name, prefix, # partial arguments and the virtual path. # -# source://actionview//lib/action_view/template_path.rb#11 +# pkg:gem/actionview#lib/action_view/template_path.rb:11 class ActionView::TemplatePath - # @return [TemplatePath] a new instance of TemplatePath - # - # source://actionview//lib/action_view/template_path.rb#47 + # pkg:gem/actionview#lib/action_view/template_path.rb:47 def initialize(name, prefix, partial, virtual); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template_path.rb#64 + # pkg:gem/actionview#lib/action_view/template_path.rb:64 def ==(other); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template_path.rb#61 + # pkg:gem/actionview#lib/action_view/template_path.rb:61 def eql?(other); end - # source://actionview//lib/action_view/template_path.rb#57 + # pkg:gem/actionview#lib/action_view/template_path.rb:57 def hash; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def name; end - # Returns the value of attribute partial. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def partial; end - # Returns the value of attribute partial. - # - # source://actionview//lib/action_view/template_path.rb#13 + # pkg:gem/actionview#lib/action_view/template_path.rb:13 def partial?; end - # Returns the value of attribute prefix. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def prefix; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#55 + # pkg:gem/actionview#lib/action_view/template_path.rb:55 def to_s; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#54 + # pkg:gem/actionview#lib/action_view/template_path.rb:54 def to_str; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def virtual; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#14 + # pkg:gem/actionview#lib/action_view/template_path.rb:14 def virtual_path; end class << self # Convert name, prefix, and partial into a TemplatePath # - # source://actionview//lib/action_view/template_path.rb#43 + # pkg:gem/actionview#lib/action_view/template_path.rb:43 def build(name, prefix, partial); end # Build a TemplatePath form a virtual path # - # source://actionview//lib/action_view/template_path.rb#28 + # pkg:gem/actionview#lib/action_view/template_path.rb:28 def parse(virtual); end # Convert name, prefix, and partial into a virtual path string # - # source://actionview//lib/action_view/template_path.rb#17 + # pkg:gem/actionview#lib/action_view/template_path.rb:17 def virtual(name, prefix, partial); end end end -# source://actionview//lib/action_view/renderer/template_renderer.rb#4 +# pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:4 class ActionView::TemplateRenderer < ::ActionView::AbstractRenderer - # source://actionview//lib/action_view/renderer/template_renderer.rb#5 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:5 def render(context, options); end private # Determine the template to be rendered using the given options. # - # source://actionview//lib/action_view/renderer/template_renderer.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:16 def determine_template(options); end # This is the method which actually finds the layout using details in the lookup # context object. If no layout is found, it checks if at least a layout with # the given name exists across all details before raising the error. # - # source://actionview//lib/action_view/renderer/template_renderer.rb#88 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:88 def find_layout(layout, keys, formats); end # Renders the given template. A string representing the layout can be # supplied as well. # - # source://actionview//lib/action_view/renderer/template_renderer.rb#58 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:58 def render_template(view, template, layout_name, locals); end - # source://actionview//lib/action_view/renderer/template_renderer.rb#71 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:71 def render_with_layout(view, template, path, locals); end - # source://actionview//lib/action_view/renderer/template_renderer.rb#92 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:92 def resolve_layout(layout, keys, formats); end end @@ -15221,7 +13984,7 @@ end # Read more about ActionView::TestCase in {Testing Rails Applications}[https://guides.rubyonrails.org/testing.html#testing-view-partials] # in the guides. # -# source://actionview//lib/action_view/test_case.rb#15 +# pkg:gem/actionview#lib/action_view/test_case.rb:15 class ActionView::TestCase < ::ActiveSupport::TestCase include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -15275,75 +14038,75 @@ class ActionView::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionView::TestCase::Behavior::ClassMethods - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helper_methods; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helper_methods=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helper_methods?; end - # source://actionview//lib/action_view/test_case.rb#251 + # pkg:gem/actionview#lib/action_view/test_case.rb:251 def _run_setup_callbacks(&block); end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def debug_missing_translation; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def debug_missing_translation=(val); end class << self - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helper_methods; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helper_methods=(value); end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helper_methods?; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def _helpers; end - # source://actionview//lib/action_view/test_case.rb#249 + # pkg:gem/actionview#lib/action_view/test_case.rb:249 def content_class; end - # source://actionview//lib/action_view/test_case.rb#249 + # pkg:gem/actionview#lib/action_view/test_case.rb:249 def content_class=(value); end - # source://actionview//lib/action_view/test_case.rb#249 + # pkg:gem/actionview#lib/action_view/test_case.rb:249 def content_class?; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def debug_missing_translation; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def debug_missing_translation=(val); end private - # source://actionview//lib/action_view/test_case.rb#251 + # pkg:gem/actionview#lib/action_view/test_case.rb:251 def __class_attr___callbacks; end - # source://actionview//lib/action_view/test_case.rb#251 + # pkg:gem/actionview#lib/action_view/test_case.rb:251 def __class_attr___callbacks=(new_value); end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def __class_attr__helper_methods; end - # source://actionview//lib/action_view/test_case.rb#444 + # pkg:gem/actionview#lib/action_view/test_case.rb:444 def __class_attr__helper_methods=(new_value); end - # source://actionview//lib/action_view/test_case.rb#249 + # pkg:gem/actionview#lib/action_view/test_case.rb:249 def __class_attr_content_class; end - # source://actionview//lib/action_view/test_case.rb#249 + # pkg:gem/actionview#lib/action_view/test_case.rb:249 def __class_attr_content_class=(new_value); end end end -# source://actionview//lib/action_view/test_case.rb#45 +# pkg:gem/actionview#lib/action_view/test_case.rb:45 module ActionView::TestCase::Behavior include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess @@ -15379,40 +14142,28 @@ module ActionView::TestCase::Behavior mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods mixes_in_class_methods ::ActionView::TestCase::Behavior::ClassMethods - # source://actionview//lib/action_view/test_case.rb#295 + # pkg:gem/actionview#lib/action_view/test_case.rb:295 def _routes; end - # source://actionview//lib/action_view/test_case.rb#281 + # pkg:gem/actionview#lib/action_view/test_case.rb:281 def config; end - # Returns the value of attribute controller. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def controller; end - # Sets the attribute controller - # - # @param value the value to set the attribute controller to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def controller=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#62 + # pkg:gem/actionview#lib/action_view/test_case.rb:62 def lookup_context(*_arg0, **_arg1, &_arg2); end - # Returns the value of attribute output_buffer. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def output_buffer; end - # Sets the attribute output_buffer - # - # @param value the value to set the attribute output_buffer to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def output_buffer=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#285 + # pkg:gem/actionview#lib/action_view/test_case.rb:285 def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil), &block); end # Returns the content rendered by the last +render+ call. @@ -15463,7 +14214,7 @@ module ActionView::TestCase::Behavior # assert_pattern { rendered.json => { title: "Hello, world" } } # end # - # source://actionview//lib/action_view/test_case.rb#112 + # pkg:gem/actionview#lib/action_view/test_case.rb:112 def rendered; end # Returns the content rendered by the last +render+ call. @@ -15514,53 +14265,43 @@ module ActionView::TestCase::Behavior # assert_pattern { rendered.json => { title: "Hello, world" } } # end # - # source://actionview//lib/action_view/test_case.rb#112 + # pkg:gem/actionview#lib/action_view/test_case.rb:112 def rendered=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#291 + # pkg:gem/actionview#lib/action_view/test_case.rb:291 def rendered_views; end - # Returns the value of attribute request. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def request; end - # Sets the attribute request - # - # @param value the value to set the attribute request to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def request=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#269 + # pkg:gem/actionview#lib/action_view/test_case.rb:269 def setup_with_controller; end private - # source://actionview//lib/action_view/test_case.rb#401 + # pkg:gem/actionview#lib/action_view/test_case.rb:401 def _user_defined_ivars; end - # The instance of ActionView::Base that is used by +render+. - # - # source://actionview//lib/action_view/test_case.rb#364 + # pkg:gem/actionview#lib/action_view/test_case.rb:364 def _view; end # Need to experiment if this priority is the best one: rendered => output_buffer # - # source://actionview//lib/action_view/test_case.rb#329 + # pkg:gem/actionview#lib/action_view/test_case.rb:329 def document_root_element; end - # source://actionview//lib/action_view/test_case.rb#415 + # pkg:gem/actionview#lib/action_view/test_case.rb:415 def method_missing(selector, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://actionview//lib/action_view/test_case.rb#431 + # pkg:gem/actionview#lib/action_view/test_case.rb:431 def respond_to_missing?(name, include_private = T.unsafe(nil)); end # The instance of ActionView::Base that is used by +render+. # - # source://actionview//lib/action_view/test_case.rb#353 + # pkg:gem/actionview#lib/action_view/test_case.rb:353 def view; end # Returns a Hash of instance variables and their values, as defined by @@ -15568,7 +14309,7 @@ module ActionView::TestCase::Behavior # rendered. This is generally intended for internal use and extension # frameworks. # - # source://actionview//lib/action_view/test_case.rb#409 + # pkg:gem/actionview#lib/action_view/test_case.rb:409 def view_assigns; end module GeneratedClassMethods @@ -15587,28 +14328,24 @@ module ActionView::TestCase::Behavior end end -# source://actionview//lib/action_view/test_case.rb#114 +# pkg:gem/actionview#lib/action_view/test_case.rb:114 module ActionView::TestCase::Behavior::ClassMethods - # source://actionview//lib/action_view/test_case.rb#213 + # pkg:gem/actionview#lib/action_view/test_case.rb:213 def determine_default_helper_class(name); end - # source://actionview//lib/action_view/test_case.rb#232 + # pkg:gem/actionview#lib/action_view/test_case.rb:232 def helper_class; end - # Sets the attribute helper_class - # - # @param value the value to set the attribute helper_class to. - # - # source://actionview//lib/action_view/test_case.rb#230 + # pkg:gem/actionview#lib/action_view/test_case.rb:230 def helper_class=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#219 + # pkg:gem/actionview#lib/action_view/test_case.rb:219 def helper_method(*methods); end - # source://actionview//lib/action_view/test_case.rb#115 + # pkg:gem/actionview#lib/action_view/test_case.rb:115 def inherited(descendant); end - # source://actionview//lib/action_view/test_case.rb#236 + # pkg:gem/actionview#lib/action_view/test_case.rb:236 def new(*_arg0); end # Register a callable to parse rendered content for a given template @@ -15681,226 +14418,190 @@ module ActionView::TestCase::Behavior::ClassMethods # rendered.html.assert_css "h1", text: "Hello, world" # end # - # source://actionview//lib/action_view/test_case.rb#197 + # pkg:gem/actionview#lib/action_view/test_case.rb:197 def register_parser(format, callable = T.unsafe(nil), &block); end - # source://actionview//lib/action_view/test_case.rb#204 + # pkg:gem/actionview#lib/action_view/test_case.rb:204 def tests(helper_class); end private - # source://actionview//lib/action_view/test_case.rb#242 + # pkg:gem/actionview#lib/action_view/test_case.rb:242 def include_helper_modules!; end end -# source://actionview//lib/action_view/test_case.rb#366 +# pkg:gem/actionview#lib/action_view/test_case.rb:366 ActionView::TestCase::Behavior::INTERNAL_IVARS = T.let(T.unsafe(nil), Array) -# source://actionview//lib/action_view/test_case.rb#333 +# pkg:gem/actionview#lib/action_view/test_case.rb:333 module ActionView::TestCase::Behavior::Locals - # source://actionview//lib/action_view/test_case.rb#336 + # pkg:gem/actionview#lib/action_view/test_case.rb:336 def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil)); end - # Returns the value of attribute rendered_views. - # - # source://actionview//lib/action_view/test_case.rb#334 + # pkg:gem/actionview#lib/action_view/test_case.rb:334 def rendered_views; end - # Sets the attribute rendered_views - # - # @param value the value to set the attribute rendered_views to. - # - # source://actionview//lib/action_view/test_case.rb#334 + # pkg:gem/actionview#lib/action_view/test_case.rb:334 def rendered_views=(_arg0); end end -# source://actionview//lib/action_view/test_case.rb#299 +# pkg:gem/actionview#lib/action_view/test_case.rb:299 class ActionView::TestCase::Behavior::RenderedViewContent < ::String - # source://actionview//lib/action_view/test_case.rb#199 + # pkg:gem/actionview#lib/action_view/test_case.rb:199 def html; end - # source://actionview//lib/action_view/test_case.rb#199 + # pkg:gem/actionview#lib/action_view/test_case.rb:199 def json; end end -# source://actionview//lib/action_view/test_case.rb#302 +# pkg:gem/actionview#lib/action_view/test_case.rb:302 class ActionView::TestCase::Behavior::RenderedViewsCollection - # @return [RenderedViewsCollection] a new instance of RenderedViewsCollection - # - # source://actionview//lib/action_view/test_case.rb#303 + # pkg:gem/actionview#lib/action_view/test_case.rb:303 def initialize; end - # source://actionview//lib/action_view/test_case.rb#307 + # pkg:gem/actionview#lib/action_view/test_case.rb:307 def add(view, locals); end - # source://actionview//lib/action_view/test_case.rb#312 + # pkg:gem/actionview#lib/action_view/test_case.rb:312 def locals_for(view); end - # source://actionview//lib/action_view/test_case.rb#316 + # pkg:gem/actionview#lib/action_view/test_case.rb:316 def rendered_views; end - # @return [Boolean] - # - # source://actionview//lib/action_view/test_case.rb#320 + # pkg:gem/actionview#lib/action_view/test_case.rb:320 def view_rendered?(view, expected_locals); end end -# source://actionview//lib/action_view/test_case.rb#444 +# pkg:gem/actionview#lib/action_view/test_case.rb:444 module ActionView::TestCase::HelperMethods - # source://actionview//lib/action_view/test_case.rb#263 + # pkg:gem/actionview#lib/action_view/test_case.rb:263 def _test_case; end - # source://actionview//lib/action_view/test_case.rb#259 + # pkg:gem/actionview#lib/action_view/test_case.rb:259 def protect_against_forgery?; end end -# source://actionview//lib/action_view/test_case.rb#16 +# pkg:gem/actionview#lib/action_view/test_case.rb:16 class ActionView::TestCase::TestController < ::ActionController::Base include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess - # @return [TestController] a new instance of TestController - # - # source://actionview//lib/action_view/test_case.rb#34 + # pkg:gem/actionview#lib/action_view/test_case.rb:34 def initialize; end - # source://actionview//lib/action_view/test_case.rb#26 + # pkg:gem/actionview#lib/action_view/test_case.rb:26 def controller_path=(path); end - # Returns the value of attribute params. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def params; end - # Sets the attribute params - # - # @param value the value to set the attribute params to. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def params=(_arg0); end - # Returns the value of attribute request. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def request; end - # Sets the attribute request - # - # @param value the value to set the attribute request to. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def request=(_arg0); end - # Returns the value of attribute response. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def response; end - # Sets the attribute response - # - # @param value the value to set the attribute response to. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def response=(_arg0); end private - # source://actionview//lib/action_view/test_case.rb#16 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def _layout(lookup_context, formats, keys); end class << self - # source://actionview//lib/action_view/test_case.rb#30 + # pkg:gem/actionview#lib/action_view/test_case.rb:30 def controller_name; end # Overrides AbstractController::Base#controller_path # - # source://actionview//lib/action_view/test_case.rb#23 + # pkg:gem/actionview#lib/action_view/test_case.rb:23 def controller_path; end # Overrides AbstractController::Base#controller_path # - # source://actionview//lib/action_view/test_case.rb#23 + # pkg:gem/actionview#lib/action_view/test_case.rb:23 def controller_path=(_arg0); end private - # source://actionview//lib/action_view/test_case.rb#16 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def __class_attr_config; end - # source://actionview//lib/action_view/test_case.rb#16 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def __class_attr_config=(new_value); end - # source://actionview//lib/action_view/test_case.rb#16 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def __class_attr_middleware_stack; end - # source://actionview//lib/action_view/test_case.rb#16 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def __class_attr_middleware_stack=(new_value); end end end -# source://actionview//lib/action_view/unbound_template.rb#6 +# pkg:gem/actionview#lib/action_view/unbound_template.rb:6 class ActionView::UnboundTemplate - # @return [UnboundTemplate] a new instance of UnboundTemplate - # - # source://actionview//lib/action_view/unbound_template.rb#10 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:10 def initialize(source, identifier, details:, virtual_path:); end - # source://actionview//lib/action_view/unbound_template.rb#20 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:20 def bind_locals(locals); end - # source://actionview//lib/action_view/unbound_template.rb#44 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:44 def built_templates; end - # Returns the value of attribute details. - # - # source://actionview//lib/action_view/unbound_template.rb#7 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:7 def details; end - # source://actionview//lib/action_view/unbound_template.rb#8 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 def format(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/unbound_template.rb#8 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 def handler(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/unbound_template.rb#8 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 def locale(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/unbound_template.rb#8 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 def variant(*_arg0, **_arg1, &_arg2); end - # Returns the value of attribute virtual_path. - # - # source://actionview//lib/action_view/unbound_template.rb#7 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:7 def virtual_path; end private - # source://actionview//lib/action_view/unbound_template.rb#49 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:49 def build_template(locals); end - # source://actionview//lib/action_view/unbound_template.rb#63 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:63 def normalize_locals(locals); end end -# source://actionview//lib/action_view/gem_version.rb#9 +# pkg:gem/actionview#lib/action_view/gem_version.rb:9 module ActionView::VERSION; end -# source://actionview//lib/action_view/gem_version.rb#10 +# pkg:gem/actionview#lib/action_view/gem_version.rb:10 ActionView::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/gem_version.rb#11 +# pkg:gem/actionview#lib/action_view/gem_version.rb:11 ActionView::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/gem_version.rb#13 +# pkg:gem/actionview#lib/action_view/gem_version.rb:13 ActionView::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) -# source://actionview//lib/action_view/gem_version.rb#15 +# pkg:gem/actionview#lib/action_view/gem_version.rb:15 ActionView::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/gem_version.rb#12 +# pkg:gem/actionview#lib/action_view/gem_version.rb:12 ActionView::VERSION::TINY = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/view_paths.rb#4 +# pkg:gem/actionview#lib/action_view/view_paths.rb:4 module ActionView::ViewPaths extend ::ActiveSupport::Concern @@ -15908,10 +14609,10 @@ module ActionView::ViewPaths # The prefixes used in render "foo" shortcuts. # - # source://actionview//lib/action_view/view_paths.rb#81 + # pkg:gem/actionview#lib/action_view/view_paths.rb:81 def _prefixes; end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def any_templates?(*_arg0, **_arg1, &_arg2); end # Append a path to the list of view paths for the current LookupContext. @@ -15921,29 +14622,29 @@ module ActionView::ViewPaths # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#103 + # pkg:gem/actionview#lib/action_view/view_paths.rb:103 def append_view_path(path); end - # source://actionview//lib/action_view/view_paths.rb#93 + # pkg:gem/actionview#lib/action_view/view_paths.rb:93 def details_for_lookup; end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def formats(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def formats=(arg); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def locale(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def locale=(arg); end # LookupContext is the object responsible for holding all # information required for looking up templates, i.e. view paths and # details. Check ActionView::LookupContext for more information. # - # source://actionview//lib/action_view/view_paths.rb#88 + # pkg:gem/actionview#lib/action_view/view_paths.rb:88 def lookup_context; end # Prepend a path to the list of view paths for the current LookupContext. @@ -15953,28 +14654,28 @@ module ActionView::ViewPaths # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#113 + # pkg:gem/actionview#lib/action_view/view_paths.rb:113 def prepend_view_path(path); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def template_exists?(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def view_paths(*_arg0, **_arg1, &_arg2); end end -# source://actionview//lib/action_view/view_paths.rb#14 +# pkg:gem/actionview#lib/action_view/view_paths.rb:14 module ActionView::ViewPaths::ClassMethods - # source://actionview//lib/action_view/view_paths.rb#31 + # pkg:gem/actionview#lib/action_view/view_paths.rb:31 def _build_view_paths(paths); end - # source://actionview//lib/action_view/view_paths.rb#23 + # pkg:gem/actionview#lib/action_view/view_paths.rb:23 def _prefixes; end - # source://actionview//lib/action_view/view_paths.rb#15 + # pkg:gem/actionview#lib/action_view/view_paths.rb:15 def _view_paths; end - # source://actionview//lib/action_view/view_paths.rb#19 + # pkg:gem/actionview#lib/action_view/view_paths.rb:19 def _view_paths=(paths); end # Append a path to the list of view paths for this controller. @@ -15984,7 +14685,7 @@ module ActionView::ViewPaths::ClassMethods # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#44 + # pkg:gem/actionview#lib/action_view/view_paths.rb:44 def append_view_path(path); end # Prepend a path to the list of view paths for this controller. @@ -15994,12 +14695,12 @@ module ActionView::ViewPaths::ClassMethods # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#54 + # pkg:gem/actionview#lib/action_view/view_paths.rb:54 def prepend_view_path(path); end # A list of all of the default view paths for this controller. # - # source://actionview//lib/action_view/view_paths.rb#59 + # pkg:gem/actionview#lib/action_view/view_paths.rb:59 def view_paths; end # Set the view paths. @@ -16008,7 +14709,7 @@ module ActionView::ViewPaths::ClassMethods # * paths - If a PathSet is provided, use that; # otherwise, process the parameter into a PathSet. # - # source://actionview//lib/action_view/view_paths.rb#68 + # pkg:gem/actionview#lib/action_view/view_paths.rb:68 def view_paths=(paths); end private @@ -16016,19 +14717,15 @@ module ActionView::ViewPaths::ClassMethods # Override this method in your controller if you want to change paths prefixes for finding views. # Prefixes defined here will still be added to parents' ._prefixes. # - # source://actionview//lib/action_view/view_paths.rb#75 + # pkg:gem/actionview#lib/action_view/view_paths.rb:75 def local_prefixes; end end -# source://actionview//lib/action_view/template/error.rb#14 +# pkg:gem/actionview#lib/action_view/template/error.rb:14 class ActionView::WrongEncodingError < ::ActionView::EncodingError - # @return [WrongEncodingError] a new instance of WrongEncodingError - # - # source://actionview//lib/action_view/template/error.rb#15 + # pkg:gem/actionview#lib/action_view/template/error.rb:15 def initialize(string, encoding); end - # source://actionview//lib/action_view/template/error.rb#19 + # pkg:gem/actionview#lib/action_view/template/error.rb:19 def message; end end - -module ERB::Escape; end diff --git a/sorbet/rbi/gems/activesupport@8.1.2.rbi b/sorbet/rbi/gems/activesupport@8.1.2.rbi index ae7ec95..0b0508f 100644 --- a/sorbet/rbi/gems/activesupport@8.1.2.rbi +++ b/sorbet/rbi/gems/activesupport@8.1.2.rbi @@ -6,147 +6,169 @@ # :include: ../README.rdoc +# -- +# The JSON gem adds a few modules to Ruby core classes containing :to_json definition, overwriting +# their default behavior. That said, we need to define the basic to_json method in all of them, +# otherwise they will always use to_json gem implementation, which is backwards incompatible in +# several cases (for instance, the JSON implementation for Hash does not work) with inheritance. +# +# On the other hand, we should avoid conflict with ::JSON.{generate,dump}(obj). Unfortunately, the +# JSON gem's encoder relies on its own to_json implementation to encode objects. Since it always +# passes a ::JSON::State object as the only argument to to_json, we can detect that and forward the +# calls to the original to_json method. +# +# It should be noted that when using ::JSON.{generate,dump} directly, ActiveSupport's encoder is +# bypassed completely. This means that as_json won't be invoked and the JSON gem will simply +# ignore any options it does not natively understand. This also means that ::JSON.{generate,dump} +# should give exactly the same results with or without Active Support. +# :markup: markdown +# -- +# Defines the standard inflection rules. These are the starting point for +# new projects and are not considered complete. The current set of inflection +# rules is frozen. This means, we do not change them to become more complete. +# This is a safety measure to keep existing applications from breaking. +# ++ # -# source://activesupport//lib/active_support/delegation.rb#3 +# pkg:gem/activesupport#lib/active_support/delegation.rb:3 module ActiveSupport extend ::ActiveSupport::LazyLoadHooks extend ::ActiveSupport::Autoload - # source://activesupport//lib/active_support.rb#114 + # pkg:gem/activesupport#lib/active_support.rb:114 def filter_parameters; end - # source://activesupport//lib/active_support.rb#114 + # pkg:gem/activesupport#lib/active_support.rb:114 def filter_parameters=(val); end - # source://activesupport//lib/active_support.rb#106 + # pkg:gem/activesupport#lib/active_support.rb:106 def parallelize_test_databases; end - # source://activesupport//lib/active_support.rb#106 + # pkg:gem/activesupport#lib/active_support.rb:106 def parallelize_test_databases=(val); end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times; end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times=(val); end - # source://activesupport//lib/active_support.rb#104 + # pkg:gem/activesupport#lib/active_support.rb:104 def test_order; end - # source://activesupport//lib/active_support.rb#104 + # pkg:gem/activesupport#lib/active_support.rb:104 def test_order=(val); end - # source://activesupport//lib/active_support.rb#105 + # pkg:gem/activesupport#lib/active_support.rb:105 def test_parallelization_threshold; end - # source://activesupport//lib/active_support.rb#105 + # pkg:gem/activesupport#lib/active_support.rb:105 def test_parallelization_threshold=(val); end class << self - # source://activesupport//lib/active_support.rb#116 + # pkg:gem/activesupport#lib/active_support.rb:116 def cache_format_version; end - # source://activesupport//lib/active_support.rb#120 + # pkg:gem/activesupport#lib/active_support.rb:120 def cache_format_version=(value); end - # source://activesupport//lib/active_support/deprecator.rb#4 + # pkg:gem/activesupport#lib/active_support/deprecator.rb:4 def deprecator; end - # source://activesupport//lib/active_support.rb#98 + # pkg:gem/activesupport#lib/active_support.rb:98 def eager_load!; end - # source://activesupport//lib/active_support.rb#109 + # pkg:gem/activesupport#lib/active_support.rb:109 def error_reporter; end - # source://activesupport//lib/active_support.rb#109 + # pkg:gem/activesupport#lib/active_support.rb:109 def error_reporter=(_arg0); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def escape_html_entities_in_json(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def escape_html_entities_in_json=(arg); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def escape_js_separators_in_json(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def escape_js_separators_in_json=(arg); end - # source://activesupport//lib/active_support.rb#112 + # pkg:gem/activesupport#lib/active_support.rb:112 def event_reporter; end - # source://activesupport//lib/active_support.rb#112 + # pkg:gem/activesupport#lib/active_support.rb:112 def event_reporter=(_arg0); end - # source://activesupport//lib/active_support.rb#114 + # pkg:gem/activesupport#lib/active_support.rb:114 def filter_parameters; end - # source://activesupport//lib/active_support.rb#114 + # pkg:gem/activesupport#lib/active_support.rb:114 def filter_parameters=(val); end # Returns the currently loaded version of Active Support as a +Gem::Version+. # - # source://activesupport//lib/active_support/gem_version.rb#5 + # pkg:gem/activesupport#lib/active_support/gem_version.rb:5 def gem_version; end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def json_encoder(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def json_encoder=(arg); end - # source://activesupport//lib/active_support.rb#106 + # pkg:gem/activesupport#lib/active_support.rb:106 def parallelize_test_databases; end - # source://activesupport//lib/active_support.rb#106 + # pkg:gem/activesupport#lib/active_support.rb:106 def parallelize_test_databases=(val); end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times; end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times=(val); end - # source://activesupport//lib/active_support.rb#104 + # pkg:gem/activesupport#lib/active_support.rb:104 def test_order; end - # source://activesupport//lib/active_support.rb#104 + # pkg:gem/activesupport#lib/active_support.rb:104 def test_order=(val); end - # source://activesupport//lib/active_support.rb#105 + # pkg:gem/activesupport#lib/active_support.rb:105 def test_parallelization_threshold; end - # source://activesupport//lib/active_support.rb#105 + # pkg:gem/activesupport#lib/active_support.rb:105 def test_parallelization_threshold=(val); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def time_precision(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def time_precision=(arg); end - # source://activesupport//lib/active_support.rb#124 + # pkg:gem/activesupport#lib/active_support.rb:124 def to_time_preserves_timezone; end - # source://activesupport//lib/active_support.rb#131 + # pkg:gem/activesupport#lib/active_support.rb:131 def to_time_preserves_timezone=(value); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def use_standard_json_time_format(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def use_standard_json_time_format=(arg); end - # source://activesupport//lib/active_support.rb#139 + # pkg:gem/activesupport#lib/active_support.rb:139 def utc_to_local_returns_utc_offset_times; end - # source://activesupport//lib/active_support.rb#143 + # pkg:gem/activesupport#lib/active_support.rb:143 def utc_to_local_returns_utc_offset_times=(value); end # Returns the currently loaded version of Active Support as a +Gem::Version+. # - # source://activesupport//lib/active_support/version.rb#7 + # pkg:gem/activesupport#lib/active_support/version.rb:7 def version; end end end @@ -159,7 +181,7 @@ end # module and invoke the +action+ class macro to define the action. An action # needs a name and a block to execute. # -# source://activesupport//lib/active_support/actionable_error.rb#11 +# pkg:gem/activesupport#lib/active_support/actionable_error.rb:11 module ActiveSupport::ActionableError extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -168,10 +190,10 @@ module ActiveSupport::ActionableError mixes_in_class_methods ::ActiveSupport::ActionableError::ClassMethods class << self - # source://activesupport//lib/active_support/actionable_error.rb#20 + # pkg:gem/activesupport#lib/active_support/actionable_error.rb:20 def actions(error); end - # source://activesupport//lib/active_support/actionable_error.rb#29 + # pkg:gem/activesupport#lib/active_support/actionable_error.rb:29 def dispatch(error, name); end end @@ -188,7 +210,7 @@ module ActiveSupport::ActionableError end end -# source://activesupport//lib/active_support/actionable_error.rb#35 +# pkg:gem/activesupport#lib/active_support/actionable_error.rb:35 module ActiveSupport::ActionableError::ClassMethods # Defines an action that can resolve the error. # @@ -200,11 +222,11 @@ module ActiveSupport::ActionableError::ClassMethods # end # end # - # source://activesupport//lib/active_support/actionable_error.rb#45 + # pkg:gem/activesupport#lib/active_support/actionable_error.rb:45 def action(name, &block); end end -# source://activesupport//lib/active_support/actionable_error.rb#14 +# pkg:gem/activesupport#lib/active_support/actionable_error.rb:14 class ActiveSupport::ActionableError::NonActionable < ::StandardError; end # = \Array Inquirer @@ -218,7 +240,7 @@ class ActiveSupport::ActionableError::NonActionable < ::StandardError; end # variants.tablet? # => true # variants.desktop? # => false # -# source://activesupport//lib/active_support/array_inquirer.rb#14 +# pkg:gem/activesupport#lib/active_support/array_inquirer.rb:14 class ActiveSupport::ArrayInquirer < ::Array # Passes each element of +candidates+ collection to ArrayInquirer collection. # The method returns true if any element from the ArrayInquirer collection @@ -233,19 +255,15 @@ class ActiveSupport::ArrayInquirer < ::Array # variants.any?('phone', 'desktop') # => true # variants.any?(:desktop, :watch) # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/array_inquirer.rb#27 + # pkg:gem/activesupport#lib/active_support/array_inquirer.rb:27 def any?(*candidates); end private - # source://activesupport//lib/active_support/array_inquirer.rb#42 + # pkg:gem/activesupport#lib/active_support/array_inquirer.rb:42 def method_missing(name, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/array_inquirer.rb#38 + # pkg:gem/activesupport#lib/active_support/array_inquirer.rb:38 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -273,21 +291,21 @@ end # # MyLib.eager_load! # -# source://activesupport//lib/active_support/dependencies/autoload.rb#29 +# pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:29 module ActiveSupport::Autoload - # source://activesupport//lib/active_support/dependencies/autoload.rb#30 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:30 def autoload(const_name, path = T.unsafe(nil)); end - # source://activesupport//lib/active_support/dependencies/autoload.rb#51 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:51 def autoload_at(path); end - # source://activesupport//lib/active_support/dependencies/autoload.rb#44 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:44 def autoload_under(path); end - # source://activesupport//lib/active_support/dependencies/autoload.rb#58 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:58 def eager_autoload; end - # source://activesupport//lib/active_support/dependencies/autoload.rb#65 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:65 def eager_load!; end end @@ -322,11 +340,9 @@ end # # Inspired by the Quiet Backtrace gem by thoughtbot. # -# source://activesupport//lib/active_support/backtrace_cleaner.rb#34 +# pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:34 class ActiveSupport::BacktraceCleaner - # @return [BacktraceCleaner] a new instance of BacktraceCleaner - # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#35 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:35 def initialize; end # Adds a filter from the block provided. Each line in the backtrace will be @@ -336,7 +352,7 @@ class ActiveSupport::BacktraceCleaner # root = "#{Rails.root}/" # backtrace_cleaner.add_filter { |line| line.delete_prefix(root) } # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#154 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:154 def add_filter(&block); end # Adds a silencer from the block provided. If the silencer returns +true+ @@ -345,19 +361,19 @@ class ActiveSupport::BacktraceCleaner # # Will reject all lines that include the word "puma", like "/gems/puma/server.rb" or "/app/my_puma_server/rb" # backtrace_cleaner.add_silencer { |line| /puma/.match?(line) } # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#163 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:163 def add_silencer(&block); end # Returns the backtrace after all filters and silencers have been run # against it. Filters run first, then silencers. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#45 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:45 def clean(backtrace, kind = T.unsafe(nil)); end # Returns the frame with all filters applied. # returns +nil+ if the frame was silenced. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#73 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:73 def clean_frame(frame, kind = T.unsafe(nil)); end # Given an array of Thread::Backtrace::Location objects, returns an array @@ -369,76 +385,81 @@ class ActiveSupport::BacktraceCleaner # attributes of the locations in the returned array are the original, # unfiltered ones, since locations are immutable. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#67 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:67 def clean_locations(locations, kind = T.unsafe(nil)); end - # Returns the backtrace after all filters and silencers have been run - # against it. Filters run first, then silencers. - # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#57 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:57 def filter(backtrace, kind = T.unsafe(nil)); end + # Returns the first clean frame of the caller's backtrace, or +nil+. + # + # Frames are strings. # Returns the first clean frame of the caller's backtrace, or +nil+. # # Frames are strings. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#129 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:129 def first_clean_frame(kind = T.unsafe(nil)); end + # Returns the first clean location of the caller's call stack, or +nil+. + # + # Locations are Thread::Backtrace::Location objects. Since they are + # immutable, their +path+ attributes are the original ones, but filters + # are applied internally so silencers can still rely on them. # Returns the first clean location of the caller's call stack, or +nil+. # # Locations are Thread::Backtrace::Location objects. Since they are # immutable, their +path+ attributes are the original ones, but filters # are applied internally so silencers can still rely on them. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#141 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:141 def first_clean_location(kind = T.unsafe(nil)); end # Removes all filters, but leaves in the silencers. Useful if you suddenly # need to see entire filepaths in the backtrace that you had already # filtered out. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#177 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:177 def remove_filters!; end # Removes all silencers, but leaves in the filters. Useful if your # context of debugging suddenly expands as you suspect a bug in one of # the libraries you use. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#170 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:170 def remove_silencers!; end private - # source://activesupport//lib/active_support/backtrace_cleaner.rb#198 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:198 def add_core_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#189 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:189 def add_gem_filter; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#202 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:202 def add_gem_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#206 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:206 def add_stdlib_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#210 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:210 def filter_backtrace(backtrace); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#184 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:184 def initialize_copy(_other); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#226 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:226 def noise(backtrace); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#218 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:218 def silence(backtrace); end end -# source://activesupport//lib/active_support/backtrace_cleaner.rb#182 +# pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:182 ActiveSupport::BacktraceCleaner::FORMATTED_GEMS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/benchmark.rb#4 +# pkg:gem/activesupport#lib/active_support/benchmark.rb:4 module ActiveSupport::Benchmark class << self # Benchmark realtime in the specified time unit. By default, @@ -452,14 +473,14 @@ module ActiveSupport::Benchmark # # `unit` can be any of the values accepted by Ruby's `Process.clock_gettime`. # - # source://activesupport//lib/active_support/benchmark.rb#15 + # pkg:gem/activesupport#lib/active_support/benchmark.rb:15 def realtime(unit = T.unsafe(nil), &block); end end end # = \Benchmarkable # -# source://activesupport//lib/active_support/benchmarkable.rb#7 +# pkg:gem/activesupport#lib/active_support/benchmarkable.rb:7 module ActiveSupport::Benchmarkable # Allows you to measure the execution time of a block in a template and # records the result to the log. Wrap this block around expensive operations @@ -491,13 +512,13 @@ module ActiveSupport::Benchmarkable # <%= expensive_and_chatty_files_operation %> # <% end %> # - # source://activesupport//lib/active_support/benchmarkable.rb#37 + # pkg:gem/activesupport#lib/active_support/benchmarkable.rb:37 def benchmark(message = T.unsafe(nil), options = T.unsafe(nil), &block); end end -# source://activesupport//lib/active_support/core_ext/big_decimal/conversions.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/big_decimal/conversions.rb:7 module ActiveSupport::BigDecimalWithDefaultFormat - # source://activesupport//lib/active_support/core_ext/big_decimal/conversions.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/big_decimal/conversions.rb:8 def to_s(format = T.unsafe(nil)); end end @@ -572,20 +593,18 @@ end # puts logger.broadcasts # => [MyLogger, MyLogger] # logger.loggable? # [true, true] # -# source://activesupport//lib/active_support/broadcast_logger.rb#74 +# pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:74 class ActiveSupport::BroadcastLogger include ::ActiveSupport::LoggerSilence include ::ActiveSupport::LoggerThreadSafeLevel - # @return [BroadcastLogger] a new instance of BroadcastLogger - # - # source://activesupport//lib/active_support/broadcast_logger.rb#81 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:81 def initialize(*loggers); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def <<(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def add(*_arg0, **_arg1, &_arg2); end # Add logger(s) to the broadcast. @@ -593,123 +612,111 @@ class ActiveSupport::BroadcastLogger # broadcast_logger = ActiveSupport::BroadcastLogger.new # broadcast_logger.broadcast_to(Logger.new(STDOUT), Logger.new(STDERR)) # - # source://activesupport//lib/active_support/broadcast_logger.rb#92 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:92 def broadcast_to(*loggers); end # Returns all the logger that are part of this broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#78 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:78 def broadcasts; end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def close(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def debug(*_arg0, **_arg1, &_arg2); end # Sets the log level to +Logger::DEBUG+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#146 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:146 def debug!; end # True if the log level allows entries with severity +Logger::DEBUG+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#141 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:141 def debug?; end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def error(*_arg0, **_arg1, &_arg2); end # Sets the log level to +Logger::ERROR+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#179 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:179 def error!; end # True if the log level allows entries with severity +Logger::ERROR+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#174 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:174 def error?; end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def fatal(*_arg0, **_arg1, &_arg2); end # Sets the log level to +Logger::FATAL+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#190 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:190 def fatal!; end # True if the log level allows entries with severity +Logger::FATAL+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#185 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:185 def fatal?; end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def formatter(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def formatter=(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def info(*_arg0, **_arg1, &_arg2); end # Sets the log level to +Logger::INFO+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#157 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:157 def info!; end # True if the log level allows entries with severity +Logger::INFO+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#152 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:152 def info?; end # Returns the lowest level of all the loggers in the broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#135 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:135 def level; end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # Returns the lowest level of all the loggers in the broadcast. + # + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def level=(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#113 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:113 def local_level; end - # source://activesupport//lib/active_support/broadcast_logger.rb#107 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:107 def local_level=(level); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def log(*_arg0, **_arg1, &_arg2); end - # Returns the value of attribute progname. - # - # source://activesupport//lib/active_support/broadcast_logger.rb#79 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:79 def progname; end - # Sets the attribute progname - # - # @param value the value to set the attribute progname to. - # - # source://activesupport//lib/active_support/broadcast_logger.rb#79 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:79 def progname=(_arg0); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def sev_threshold=(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#75 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer; end - # source://activesupport//lib/active_support/broadcast_logger.rb#75 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer=(val); end # Remove a logger from the broadcast. When a logger is removed, messages sent to @@ -720,59 +727,55 @@ class ActiveSupport::BroadcastLogger # # broadcast_logger.stop_broadcasting_to(sink) # - # source://activesupport//lib/active_support/broadcast_logger.rb#103 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:103 def stop_broadcasting_to(logger); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def unknown(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/broadcast_logger.rb#127 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 def warn(*_arg0, **_arg1, &_arg2); end # Sets the log level to +Logger::WARN+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#168 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:168 def warn!; end # True if the log level allows entries with severity +Logger::WARN+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#163 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:163 def warn?; end private - # source://activesupport//lib/active_support/broadcast_logger.rb#202 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:202 def dispatch(method, *args, **kwargs, &block); end - # source://activesupport//lib/active_support/broadcast_logger.rb#194 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:194 def initialize_copy(other); end - # source://activesupport//lib/active_support/broadcast_logger.rb#222 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:222 def method_missing(name, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#234 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:234 def respond_to_missing?(method, include_all); end class << self - # source://activesupport//lib/active_support/broadcast_logger.rb#75 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer; end - # source://activesupport//lib/active_support/broadcast_logger.rb#75 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer=(val); end end end -# source://activesupport//lib/active_support/broadcast_logger.rb#121 +# pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:121 ActiveSupport::BroadcastLogger::LOGGER_METHODS = T.let(T.unsafe(nil), Array) # See ActiveSupport::Cache::Store for documentation. # -# source://activesupport//lib/active_support/cache/entry.rb#6 +# pkg:gem/activesupport#lib/active_support/cache/entry.rb:6 module ActiveSupport::Cache class << self # Expands out the +key+ argument into a key that can be used for the @@ -788,19 +791,13 @@ module ActiveSupport::Cache # # The +key+ argument can also respond to +cache_key+ or +to_param+. # - # source://activesupport//lib/active_support/cache.rb#113 + # pkg:gem/activesupport#lib/active_support/cache.rb:113 def expand_cache_key(key, namespace = T.unsafe(nil)); end - # Returns the value of attribute format_version. - # - # source://activesupport//lib/active_support/cache.rb#60 + # pkg:gem/activesupport#lib/active_support/cache.rb:60 def format_version; end - # Sets the attribute format_version - # - # @param value the value to set the attribute format_version to. - # - # source://activesupport//lib/active_support/cache.rb#60 + # pkg:gem/activesupport#lib/active_support/cache.rb:60 def format_version=(_arg0); end # Creates a new Store object according to the given options. @@ -829,125 +826,115 @@ module ActiveSupport::Cache # ActiveSupport::Cache.lookup_store(MyOwnCacheStore.new) # # => returns MyOwnCacheStore.new # - # source://activesupport//lib/active_support/cache.rb#87 + # pkg:gem/activesupport#lib/active_support/cache.rb:87 def lookup_store(store = T.unsafe(nil), *parameters); end private - # source://activesupport//lib/active_support/cache.rb#125 + # pkg:gem/activesupport#lib/active_support/cache.rb:125 def retrieve_cache_key(key); end # Obtains the specified cache store class, given the name of the +store+. # Raises an error when the store class cannot be found. # - # source://activesupport//lib/active_support/cache.rb#137 + # pkg:gem/activesupport#lib/active_support/cache.rb:137 def retrieve_store_class(store); end end end -# source://activesupport//lib/active_support/cache/coder.rb#7 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:7 class ActiveSupport::Cache::Coder - # @return [Coder] a new instance of Coder - # - # source://activesupport//lib/active_support/cache/coder.rb#8 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:8 def initialize(serializer, compressor, legacy_serializer: T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/coder.rb#14 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:14 def dump(entry); end - # source://activesupport//lib/active_support/cache/coder.rb#20 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:20 def dump_compressed(entry, threshold); end - # source://activesupport//lib/active_support/cache/coder.rb#48 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:48 def load(dumped); end private - # source://activesupport//lib/active_support/cache/coder.rb#136 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:136 def dump_version(version); end - # source://activesupport//lib/active_support/cache/coder.rb#144 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:144 def load_version(dumped_version); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/coder.rb#121 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:121 def signature?(dumped); end - # source://activesupport//lib/active_support/cache/coder.rb#129 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:129 def try_compress(string, threshold); end - # source://activesupport//lib/active_support/cache/coder.rb#125 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:125 def type_for_string(value); end end -# source://activesupport//lib/active_support/cache/coder.rb#76 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:76 ActiveSupport::Cache::Coder::COMPRESSED_FLAG = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/coder.rb#98 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:98 class ActiveSupport::Cache::Coder::LazyEntry < ::ActiveSupport::Cache::Entry - # @return [LazyEntry] a new instance of LazyEntry - # - # source://activesupport//lib/active_support/cache/coder.rb#99 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:99 def initialize(serializer, compressor, payload, **options); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/coder.rb#114 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:114 def mismatched?(version); end - # source://activesupport//lib/active_support/cache/coder.rb#106 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:106 def value; end end -# source://activesupport//lib/active_support/cache/coder.rb#84 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:84 ActiveSupport::Cache::Coder::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#68 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:68 ActiveSupport::Cache::Coder::OBJECT_DUMP_TYPE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/coder.rb#80 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:80 ActiveSupport::Cache::Coder::PACKED_EXPIRES_AT_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#78 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:78 ActiveSupport::Cache::Coder::PACKED_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#79 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:79 ActiveSupport::Cache::Coder::PACKED_TYPE_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#82 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:82 ActiveSupport::Cache::Coder::PACKED_VERSION_INDEX = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/coder.rb#81 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:81 ActiveSupport::Cache::Coder::PACKED_VERSION_LENGTH_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#66 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:66 ActiveSupport::Cache::Coder::SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#96 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:96 ActiveSupport::Cache::Coder::STRING_DESERIALIZERS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/cache/coder.rb#70 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:70 ActiveSupport::Cache::Coder::STRING_ENCODINGS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/cache/coder.rb#86 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:86 class ActiveSupport::Cache::Coder::StringDeserializer - # @return [StringDeserializer] a new instance of StringDeserializer - # - # source://activesupport//lib/active_support/cache/coder.rb#87 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:87 def initialize(encoding); end - # source://activesupport//lib/active_support/cache/coder.rb#91 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:91 def load(payload); end end -# source://activesupport//lib/active_support/cache.rb#47 +# pkg:gem/activesupport#lib/active_support/cache.rb:47 ActiveSupport::Cache::DEFAULT_COMPRESS_LIMIT = T.let(T.unsafe(nil), Integer) # Raised by coders when the cache entry can't be deserialized. # This error is treated as a cache miss. # -# source://activesupport//lib/active_support/cache.rb#51 +# pkg:gem/activesupport#lib/active_support/cache.rb:51 class ActiveSupport::Cache::DeserializationError < ::StandardError; end # This class is used to represent cache entries. Cache entries have a value, an optional @@ -958,81 +945,69 @@ class ActiveSupport::Cache::DeserializationError < ::StandardError; end # Since cache entries in most instances will be serialized, the internals of this class are highly optimized # using short instance variable names that are lazily defined. # -# source://activesupport//lib/active_support/cache/entry.rb#14 +# pkg:gem/activesupport#lib/active_support/cache/entry.rb:14 class ActiveSupport::Cache::Entry # Creates a new cache entry for the specified value. Options supported are # +:compressed+, +:version+, +:expires_at+ and +:expires_in+. # - # @return [Entry] a new instance of Entry - # - # source://activesupport//lib/active_support/cache/entry.rb#25 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:25 def initialize(value, compressed: T.unsafe(nil), version: T.unsafe(nil), expires_in: T.unsafe(nil), expires_at: T.unsafe(nil), **_arg5); end # Returns the size of the cached value. This could be less than # value.bytesize if the data is compressed. # - # source://activesupport//lib/active_support/cache/entry.rb#61 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:61 def bytesize; end - # source://activesupport//lib/active_support/cache/entry.rb#76 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:76 def compressed(compress_threshold); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#72 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:72 def compressed?; end # Duplicates the value in a class. This is used by cache implementations that don't natively # serialize entries to protect against accidental cache modifications. # - # source://activesupport//lib/active_support/cache/entry.rb#106 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:106 def dup_value!; end # Checks if the entry is expired. The +expires_in+ parameter can override # the value set when the entry was created. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#43 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:43 def expired?; end - # source://activesupport//lib/active_support/cache/entry.rb#47 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:47 def expires_at; end - # source://activesupport//lib/active_support/cache/entry.rb#51 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:51 def expires_at=(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#100 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:100 def local?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#37 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:37 def mismatched?(version); end - # source://activesupport//lib/active_support/cache/entry.rb#116 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:116 def pack; end - # source://activesupport//lib/active_support/cache/entry.rb#33 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:33 def value; end - # Returns the value of attribute version. - # - # source://activesupport//lib/active_support/cache/entry.rb#21 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:21 def version; end private - # source://activesupport//lib/active_support/cache/entry.rb#127 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:127 def marshal_load(payload); end - # source://activesupport//lib/active_support/cache/entry.rb#123 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:123 def uncompress(value); end class << self - # source://activesupport//lib/active_support/cache/entry.rb#16 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:16 def unpack(members); end end end @@ -1041,28 +1016,24 @@ end # # A cache store implementation which stores everything on the filesystem. # -# source://activesupport//lib/active_support/cache/file_store.rb#12 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:12 class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store - # @return [FileStore] a new instance of FileStore - # - # source://activesupport//lib/active_support/cache/file_store.rb#20 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:20 def initialize(cache_path, **options); end - # Returns the value of attribute cache_path. - # - # source://activesupport//lib/active_support/cache/file_store.rb#13 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:13 def cache_path; end # Preemptively iterates through all stored keys and removes the ones which have expired. # - # source://activesupport//lib/active_support/cache/file_store.rb#40 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:40 def cleanup(options = T.unsafe(nil)); end # Deletes all items from the cache. In this case it deletes all the entries in the specified # file store directory except for .keep or .gitkeep. Be careful which directory is specified in your # config file when using +FileStore+ because everything in that directory will be deleted. # - # source://activesupport//lib/active_support/cache/file_store.rb#33 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:33 def clear(options = T.unsafe(nil)); end # Decrement a cached integer value. Returns the updated value. @@ -1076,10 +1047,10 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.decrement("baz") # => 4 # - # source://activesupport//lib/active_support/cache/file_store.rb#80 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:80 def decrement(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#89 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:89 def delete_matched(matcher, options = T.unsafe(nil)); end # Increment a cached integer value. Returns the updated value. @@ -1094,87 +1065,85 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.increment("baz") # => 6 # - # source://activesupport//lib/active_support/cache/file_store.rb#60 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:60 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#101 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:101 def inspect; end private # Delete empty directories in the cache. # - # source://activesupport//lib/active_support/cache/file_store.rb#195 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:195 def delete_empty_directories(dir); end - # source://activesupport//lib/active_support/cache/file_store.rb#131 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:131 def delete_entry(key, **options); end # Make sure a file path's directories exist. # - # source://activesupport//lib/active_support/cache/file_store.rb#204 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:204 def ensure_cache_path(path); end # Translate a file path into a key. # - # source://activesupport//lib/active_support/cache/file_store.rb#189 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:189 def file_path_key(path); end # Lock a file for a block so only one process can modify it at a time. # - # source://activesupport//lib/active_support/cache/file_store.rb#148 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:148 def lock_file(file_name, &block); end # Modifies the amount of an integer value that is stored in the cache. # If the key is not found it is created and set to +amount+. # - # source://activesupport//lib/active_support/cache/file_store.rb#222 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:222 def modify_value(name, amount, options); end # Translate a key into a file path. # - # source://activesupport//lib/active_support/cache/file_store.rb#162 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:162 def normalize_key(key, options); end - # source://activesupport//lib/active_support/cache/file_store.rb#106 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:106 def read_entry(key, **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#113 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:113 def read_serialized_entry(key, **_arg1); end - # source://activesupport//lib/active_support/cache/file_store.rb#208 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:208 def search_dir(dir, &callback); end - # source://activesupport//lib/active_support/cache/file_store.rb#120 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:120 def write_entry(key, entry, **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#124 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:124 def write_serialized_entry(key, payload, **options); end class << self # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/file_store.rb#26 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:26 def supports_cache_versioning?; end end end -# source://activesupport//lib/active_support/cache/file_store.rb#15 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:15 ActiveSupport::Cache::FileStore::DIR_FORMATTER = T.let(T.unsafe(nil), String) -# max filename size on file system is 255, minus room for timestamp, pid, and random characters appended by Tempfile (used by atomic write) -# -# source://activesupport//lib/active_support/cache/file_store.rb#16 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:16 ActiveSupport::Cache::FileStore::FILENAME_MAX_SIZE = T.let(T.unsafe(nil), Integer) -# max is 1024, plus some room +# max filename size on file system is 255, minus room for timestamp, pid, and random characters appended by Tempfile (used by atomic write) # -# source://activesupport//lib/active_support/cache/file_store.rb#17 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:17 ActiveSupport::Cache::FileStore::FILEPATH_MAX_SIZE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/file_store.rb#18 +# max is 1024, plus some room +# +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:18 ActiveSupport::Cache::FileStore::GITKEEP_FILES = T.let(T.unsafe(nil), Array) # = Memory \Cache \Store @@ -1199,23 +1168,21 @@ ActiveSupport::Cache::FileStore::GITKEEP_FILES = T.let(T.unsafe(nil), Array) # # +MemoryStore+ is thread-safe. # -# source://activesupport//lib/active_support/cache/memory_store.rb#28 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:28 class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store include ::ActiveSupport::Cache::Strategy::LocalCache - # @return [MemoryStore] a new instance of MemoryStore - # - # source://activesupport//lib/active_support/cache/memory_store.rb#75 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:75 def initialize(options = T.unsafe(nil)); end # Preemptively iterates through all stored keys and removes the ones which have expired. # - # source://activesupport//lib/active_support/cache/memory_store.rb#103 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:103 def cleanup(options = T.unsafe(nil)); end # Delete all data stored in a given cache store. # - # source://activesupport//lib/active_support/cache/memory_store.rb#95 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:95 def clear(options = T.unsafe(nil)); end # Decrement a cached integer value. Returns the updated value. @@ -1229,12 +1196,12 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.decrement("baz") # => 4 # - # source://activesupport//lib/active_support/cache/memory_store.rb#168 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:168 def decrement(name, amount = T.unsafe(nil), **options); end # Deletes cache entries if the cache key matches a given pattern. # - # source://activesupport//lib/active_support/cache/memory_store.rb#175 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:175 def delete_matched(matcher, options = T.unsafe(nil)); end # Increment a cached integer value. Returns the updated value. @@ -1249,87 +1216,83 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.increment("baz") # => 6 # - # source://activesupport//lib/active_support/cache/memory_store.rb#151 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:151 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/memory_store.rb#187 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:187 def inspect; end # To ensure entries fit within the specified memory prune the cache by removing the least # recently accessed entries. # - # source://activesupport//lib/active_support/cache/memory_store.rb#116 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:116 def prune(target_size, max_time = T.unsafe(nil)); end # Returns true if the cache is currently being pruned. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/memory_store.rb#135 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:135 def pruning?; end # Synchronize calls to the cache. This should be called wherever the underlying cache implementation # is not thread safe. # - # source://activesupport//lib/active_support/cache/memory_store.rb#193 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:193 def synchronize(&block); end private - # source://activesupport//lib/active_support/cache/memory_store.rb#200 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:200 def cached_size(key, payload); end - # source://activesupport//lib/active_support/cache/memory_store.rb#233 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:233 def delete_entry(key, **_arg1); end # Modifies the amount of an integer value that is stored in the cache. # If the key is not found it is created and set to +amount+. # - # source://activesupport//lib/active_support/cache/memory_store.rb#243 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:243 def modify_value(name, amount, **options); end - # source://activesupport//lib/active_support/cache/memory_store.rb#204 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:204 def read_entry(key, **options); end - # source://activesupport//lib/active_support/cache/memory_store.rb#216 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:216 def write_entry(key, entry, **options); end class << self # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/memory_store.rb#90 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:90 def supports_cache_versioning?; end end end -# source://activesupport//lib/active_support/cache/memory_store.rb#31 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:31 module ActiveSupport::Cache::MemoryStore::DupCoder extend ::ActiveSupport::Cache::MemoryStore::DupCoder - # source://activesupport//lib/active_support/cache/memory_store.rb#34 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:34 def dump(entry); end - # source://activesupport//lib/active_support/cache/memory_store.rb#42 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:42 def dump_compressed(entry, threshold); end - # source://activesupport//lib/active_support/cache/memory_store.rb#47 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:47 def load(entry); end private - # source://activesupport//lib/active_support/cache/memory_store.rb#58 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:58 def dump_value(value); end - # source://activesupport//lib/active_support/cache/memory_store.rb#66 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:66 def load_value(string); end end -# source://activesupport//lib/active_support/cache/memory_store.rb#56 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:56 ActiveSupport::Cache::MemoryStore::DupCoder::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/memory_store.rb#198 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:198 ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Integer) # = Null \Cache \Store @@ -1342,171 +1305,159 @@ ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Int # be cached inside blocks that utilize this strategy. See # ActiveSupport::Cache::Strategy::LocalCache for more details. # -# source://activesupport//lib/active_support/cache/null_store.rb#14 +# pkg:gem/activesupport#lib/active_support/cache/null_store.rb:14 class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store include ::ActiveSupport::Cache::Strategy::LocalCache - # source://activesupport//lib/active_support/cache/null_store.rb#25 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:25 def cleanup(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/null_store.rb#22 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:22 def clear(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/null_store.rb#31 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:31 def decrement(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/null_store.rb#34 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:34 def delete_matched(matcher, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/null_store.rb#28 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:28 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/null_store.rb#37 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:37 def inspect; end private - # source://activesupport//lib/active_support/cache/null_store.rb#57 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:42 def read_entry(key, **s); end - # source://activesupport//lib/active_support/cache/null_store.rb#46 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:46 def read_serialized_entry(key, raw: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/null_store.rb#49 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:49 def write_entry(key, entry, **_arg2); end - # source://activesupport//lib/active_support/cache/null_store.rb#53 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:53 def write_serialized_entry(key, payload, **_arg2); end class << self # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/null_store.rb#18 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:18 def supports_cache_versioning?; end end end # Mapping of canonical option names to aliases that a store will recognize. # -# source://activesupport//lib/active_support/cache.rb#43 +# pkg:gem/activesupport#lib/active_support/cache.rb:43 ActiveSupport::Cache::OPTION_ALIASES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#8 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:8 module ActiveSupport::Cache::SerializerWithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#17 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:17 def load(dumped); end private - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#39 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:39 def marshal_load(payload); end class << self - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#9 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:9 def [](format); end end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#66 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:66 module ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#88 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:88 def _load(marked); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#73 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:73 def dump(entry); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#77 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:77 def dump_compressed(entry, threshold); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#94 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:94 def dumped?(dumped); end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#71 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:71 ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback::MARK_COMPRESSED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#70 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:70 ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback::MARK_UNCOMPRESSED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#99 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:99 module ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#109 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:109 def _load(dumped); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#105 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:105 def dump(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#113 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:113 def dumped?(dumped); end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#103 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:103 ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#118 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:118 module ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#126 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:126 def _load(dumped); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#122 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:122 def dump(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#130 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:130 def dumped?(dumped); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#135 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:135 def available?; end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#45 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:45 module ActiveSupport::Cache::SerializerWithFallback::PassthroughWithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::PassthroughWithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#57 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:57 def _load(entry); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#49 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:49 def dump(entry); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#53 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:53 def dump_compressed(entry, threshold); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#61 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:61 def dumped?(dumped); end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#144 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:144 ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), Hash) # = Active Support \Cache \Store @@ -1551,7 +1502,7 @@ ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), # cache.namespace = -> { @last_mod_time } # Set the namespace to a variable # @last_mod_time = Time.now # Invalidate the entire cache by changing namespace # -# source://activesupport//lib/active_support/cache.rb#190 +# pkg:gem/activesupport#lib/active_support/cache.rb:190 class ActiveSupport::Cache::Store # Creates a new cache. # @@ -1625,9 +1576,7 @@ class ActiveSupport::Cache::Store # Any other specified options are treated as default options for the # relevant cache operations, such as #read, #write, and #fetch. # - # @return [Store] a new instance of Store - # - # source://activesupport//lib/active_support/cache.rb#300 + # pkg:gem/activesupport#lib/active_support/cache.rb:300 def initialize(options = T.unsafe(nil)); end # Cleans up the cache by removing expired entries. @@ -1636,9 +1585,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#785 + # pkg:gem/activesupport#lib/active_support/cache.rb:785 def cleanup(options = T.unsafe(nil)); end # Clears the entire cache. Be careful with this method since it could @@ -1648,9 +1595,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#795 + # pkg:gem/activesupport#lib/active_support/cache.rb:795 def clear(options = T.unsafe(nil)); end # Decrements an integer value in the cache. @@ -1659,9 +1604,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#750 + # pkg:gem/activesupport#lib/active_support/cache.rb:750 def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end # Deletes an entry in the cache. Returns +true+ if an entry is deleted @@ -1669,7 +1612,7 @@ class ActiveSupport::Cache::Store # # Options are passed to the underlying cache implementation. # - # source://activesupport//lib/active_support/cache.rb#686 + # pkg:gem/activesupport#lib/active_support/cache.rb:686 def delete(name, options = T.unsafe(nil)); end # Deletes all entries with keys matching the pattern. @@ -1678,9 +1621,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#732 + # pkg:gem/activesupport#lib/active_support/cache.rb:732 def delete_matched(matcher, options = T.unsafe(nil)); end # Deletes multiple entries in the cache. Returns the number of deleted @@ -1688,16 +1629,14 @@ class ActiveSupport::Cache::Store # # Options are passed to the underlying cache implementation. # - # source://activesupport//lib/active_support/cache.rb#699 + # pkg:gem/activesupport#lib/active_support/cache.rb:699 def delete_multi(names, options = T.unsafe(nil)); end # Returns +true+ if the cache contains an entry for the given key. # # Options are passed to the underlying cache implementation. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache.rb#713 + # pkg:gem/activesupport#lib/active_support/cache.rb:713 def exist?(name, options = T.unsafe(nil)); end # Fetches data from the cache, using the given key. If there is data in @@ -1815,7 +1754,7 @@ class ActiveSupport::Cache::Store # token # end # - # source://activesupport//lib/active_support/cache.rb#452 + # pkg:gem/activesupport#lib/active_support/cache.rb:452 def fetch(name, options = T.unsafe(nil), &block); end # Fetches data from the cache, using the given keys. If there is data in @@ -1848,9 +1787,7 @@ class ActiveSupport::Cache::Store # cache.read("fizz") # # => nil # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/cache.rb#603 + # pkg:gem/activesupport#lib/active_support/cache.rb:603 def fetch_multi(*names); end # Increments an integer value in the cache. @@ -1859,45 +1796,41 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#741 + # pkg:gem/activesupport#lib/active_support/cache.rb:741 def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache.rb#197 + # pkg:gem/activesupport#lib/active_support/cache.rb:197 def logger; end - # source://activesupport//lib/active_support/cache.rb#197 + # pkg:gem/activesupport#lib/active_support/cache.rb:197 def logger=(val); end # Silences the logger within a block. # - # source://activesupport//lib/active_support/cache.rb#330 + # pkg:gem/activesupport#lib/active_support/cache.rb:330 def mute; end # Get the current namespace # - # source://activesupport//lib/active_support/cache.rb#800 + # pkg:gem/activesupport#lib/active_support/cache.rb:800 def namespace; end # Set the current namespace. Note, this will be ignored if custom # options are passed to cache wills with a namespace key. # - # source://activesupport//lib/active_support/cache.rb#806 + # pkg:gem/activesupport#lib/active_support/cache.rb:806 def namespace=(namespace); end - # source://activesupport//lib/active_support/cache.rb#723 + # pkg:gem/activesupport#lib/active_support/cache.rb:723 def new_entry(value, options = T.unsafe(nil)); end - # Returns the value of attribute options. - # - # source://activesupport//lib/active_support/cache.rb#200 + # pkg:gem/activesupport#lib/active_support/cache.rb:200 def options; end - # source://activesupport//lib/active_support/cache.rb#198 + # pkg:gem/activesupport#lib/active_support/cache.rb:198 def raise_on_invalid_cache_expiration_time; end - # source://activesupport//lib/active_support/cache.rb#198 + # pkg:gem/activesupport#lib/active_support/cache.rb:198 def raise_on_invalid_cache_expiration_time=(val); end # Reads data from the cache, using the given key. If there is data in @@ -1917,7 +1850,7 @@ class ActiveSupport::Cache::Store # # Other options will be handled by the specific cache store implementation. # - # source://activesupport//lib/active_support/cache.rb#506 + # pkg:gem/activesupport#lib/active_support/cache.rb:506 def read(name, options = T.unsafe(nil)); end # Reads a counter that was set by #increment / #decrement. @@ -1929,7 +1862,7 @@ class ActiveSupport::Cache::Store # # Options are passed to the underlying cache implementation. # - # source://activesupport//lib/active_support/cache.rb#762 + # pkg:gem/activesupport#lib/active_support/cache.rb:762 def read_counter(name, **options); end # Reads multiple values at once from the cache. Options can be passed @@ -1939,22 +1872,18 @@ class ActiveSupport::Cache::Store # # Returns a hash mapping the names provided to the values found. # - # source://activesupport//lib/active_support/cache.rb#544 + # pkg:gem/activesupport#lib/active_support/cache.rb:544 def read_multi(*names); end - # Returns the value of attribute silence. - # - # source://activesupport//lib/active_support/cache.rb#200 + # pkg:gem/activesupport#lib/active_support/cache.rb:200 def silence; end # Silences the logger. # - # source://activesupport//lib/active_support/cache.rb#324 + # pkg:gem/activesupport#lib/active_support/cache.rb:324 def silence!; end - # Returns the value of attribute silence. - # - # source://activesupport//lib/active_support/cache.rb#201 + # pkg:gem/activesupport#lib/active_support/cache.rb:201 def silence?; end # Writes the value to the cache with the key. The value must be supported @@ -1996,7 +1925,7 @@ class ActiveSupport::Cache::Store # # Other options will be handled by the specific cache store implementation. # - # source://activesupport//lib/active_support/cache.rb#672 + # pkg:gem/activesupport#lib/active_support/cache.rb:672 def write(name, value, options = T.unsafe(nil)); end # Writes a counter that can then be modified by #increment / #decrement. @@ -2008,67 +1937,63 @@ class ActiveSupport::Cache::Store # # Options are passed to the underlying cache implementation. # - # source://activesupport//lib/active_support/cache.rb#775 + # pkg:gem/activesupport#lib/active_support/cache.rb:775 def write_counter(name, value, **options); end # Cache Storage API to write multiple values at once. # - # source://activesupport//lib/active_support/cache.rb#559 + # pkg:gem/activesupport#lib/active_support/cache.rb:559 def write_multi(hash, options = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/cache.rb#1074 + # pkg:gem/activesupport#lib/active_support/cache.rb:1074 def _instrument(operation, multi: T.unsafe(nil), options: T.unsafe(nil), **payload, &block); end - # source://activesupport//lib/active_support/cache.rb#811 + # pkg:gem/activesupport#lib/active_support/cache.rb:811 def default_serializer; end # Deletes an entry from the cache implementation. Subclasses must # implement this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#897 + # pkg:gem/activesupport#lib/active_support/cache.rb:897 def delete_entry(key, **options); end # Deletes multiples entries in the cache implementation. Subclasses MAY # implement this method. # - # source://activesupport//lib/active_support/cache.rb#903 + # pkg:gem/activesupport#lib/active_support/cache.rb:903 def delete_multi_entries(entries, **options); end - # source://activesupport//lib/active_support/cache.rb#862 + # pkg:gem/activesupport#lib/active_support/cache.rb:862 def deserialize_entry(payload, **_arg1); end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/cache.rb#984 + # pkg:gem/activesupport#lib/active_support/cache.rb:984 def expand_and_namespace_key(key, options = T.unsafe(nil)); end # Expands key to be a consistent string value. Invokes +cache_key+ if # object responds to +cache_key+. Otherwise, +to_param+ method will be # called. If the key is a Hash, then keys will be sorted alphabetically. # - # source://activesupport//lib/active_support/cache.rb#1037 + # pkg:gem/activesupport#lib/active_support/cache.rb:1037 def expanded_key(key); end - # source://activesupport//lib/active_support/cache.rb#1058 + # pkg:gem/activesupport#lib/active_support/cache.rb:1058 def expanded_version(key); end - # source://activesupport//lib/active_support/cache.rb#1111 + # pkg:gem/activesupport#lib/active_support/cache.rb:1111 def get_entry_value(entry, name, options); end - # source://activesupport//lib/active_support/cache.rb#1095 + # pkg:gem/activesupport#lib/active_support/cache.rb:1095 def handle_expired_entry(entry, key, options); end - # source://activesupport//lib/active_support/cache.rb#937 + # pkg:gem/activesupport#lib/active_support/cache.rb:937 def handle_invalid_expires_in(message); end - # source://activesupport//lib/active_support/cache.rb#1066 + # pkg:gem/activesupport#lib/active_support/cache.rb:1066 def instrument(operation, key, options = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/cache.rb#1070 + # pkg:gem/activesupport#lib/active_support/cache.rb:1070 def instrument_multi(operation, keys, options = T.unsafe(nil), &block); end # Adds the namespace defined in the options to a pattern designed to @@ -2076,12 +2001,12 @@ class ActiveSupport::Cache::Store # this method to translate a pattern that matches names into one that # matches namespaced keys. # - # source://activesupport//lib/active_support/cache.rb#826 + # pkg:gem/activesupport#lib/active_support/cache.rb:826 def key_matcher(pattern, options); end # Merges the default options with ones specific to a method call. # - # source://activesupport//lib/active_support/cache.rb#908 + # pkg:gem/activesupport#lib/active_support/cache.rb:908 def merged_options(call_options); end # Prefix the key with a namespace string: @@ -2094,95 +2019,91 @@ class ActiveSupport::Cache::Store # namespace_key 'foo', namespace: -> { 'cache' } # # => 'cache:foo' # - # source://activesupport//lib/active_support/cache.rb#1012 + # pkg:gem/activesupport#lib/active_support/cache.rb:1012 def namespace_key(key, call_options = T.unsafe(nil)); end # Expands, namespaces and truncates the cache key. # Raises an exception when the key is +nil+ or an empty string. # May be overridden by cache stores to do additional normalization. # - # source://activesupport//lib/active_support/cache.rb#979 + # pkg:gem/activesupport#lib/active_support/cache.rb:979 def normalize_key(key, options = T.unsafe(nil)); end # Normalize aliased options to their canonical form # - # source://activesupport//lib/active_support/cache.rb#948 + # pkg:gem/activesupport#lib/active_support/cache.rb:948 def normalize_options(options); end - # source://activesupport//lib/active_support/cache.rb#1054 + # pkg:gem/activesupport#lib/active_support/cache.rb:1054 def normalize_version(key, options = T.unsafe(nil)); end # Reads an entry from the cache implementation. Subclasses must implement # this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#843 + # pkg:gem/activesupport#lib/active_support/cache.rb:843 def read_entry(key, **options); end # Reads multiple entries from the cache implementation. Subclasses MAY # implement this method. # - # source://activesupport//lib/active_support/cache.rb#870 + # pkg:gem/activesupport#lib/active_support/cache.rb:870 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache.rb#1116 + # pkg:gem/activesupport#lib/active_support/cache.rb:1116 def save_block_result_to_cache(name, key, options); end - # source://activesupport//lib/active_support/cache.rb#853 + # pkg:gem/activesupport#lib/active_support/cache.rb:853 def serialize_entry(entry, **options); end - # source://activesupport//lib/active_support/cache.rb#991 + # pkg:gem/activesupport#lib/active_support/cache.rb:991 def truncate_key(key); end - # source://activesupport//lib/active_support/cache.rb#959 + # pkg:gem/activesupport#lib/active_support/cache.rb:959 def validate_options(options); end # Writes an entry to the cache implementation. Subclasses must implement # this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#849 + # pkg:gem/activesupport#lib/active_support/cache.rb:849 def write_entry(key, entry, **options); end # Writes multiple entries to the cache implementation. Subclasses MAY # implement this method. # - # source://activesupport//lib/active_support/cache.rb#889 + # pkg:gem/activesupport#lib/active_support/cache.rb:889 def write_multi_entries(hash, **options); end class << self - # source://activesupport//lib/active_support/cache.rb#197 + # pkg:gem/activesupport#lib/active_support/cache.rb:197 def logger; end - # source://activesupport//lib/active_support/cache.rb#197 + # pkg:gem/activesupport#lib/active_support/cache.rb:197 def logger=(val); end - # source://activesupport//lib/active_support/cache.rb#198 + # pkg:gem/activesupport#lib/active_support/cache.rb:198 def raise_on_invalid_cache_expiration_time; end - # source://activesupport//lib/active_support/cache.rb#198 + # pkg:gem/activesupport#lib/active_support/cache.rb:198 def raise_on_invalid_cache_expiration_time=(val); end private - # source://activesupport//lib/active_support/cache.rb#205 + # pkg:gem/activesupport#lib/active_support/cache.rb:205 def retrieve_pool_options(options); end end end # Default +ConnectionPool+ options # -# source://activesupport//lib/active_support/cache.rb#192 +# pkg:gem/activesupport#lib/active_support/cache.rb:192 ActiveSupport::Cache::Store::DEFAULT_POOL_OPTIONS = T.let(T.unsafe(nil), Hash) # Keys are truncated with the Active Support digest if they exceed the limit. # -# source://activesupport//lib/active_support/cache.rb#195 +# pkg:gem/activesupport#lib/active_support/cache.rb:195 ActiveSupport::Cache::Store::MAX_KEY_SIZE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache.rb#53 +# pkg:gem/activesupport#lib/active_support/cache.rb:53 module ActiveSupport::Cache::Strategy; end # = Local \Cache \Strategy @@ -2191,89 +2112,89 @@ module ActiveSupport::Cache::Strategy; end # duration of a block. Repeated calls to the cache for the same key will hit the # in-memory cache for faster access. # -# source://activesupport//lib/active_support/cache/strategy/local_cache.rb#13 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:13 module ActiveSupport::Cache::Strategy::LocalCache - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#98 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:98 def cleanup(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#92 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:92 def clear(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#117 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:117 def decrement(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#104 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:104 def delete_matched(matcher, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#124 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:124 def fetch_multi(*names, &block); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#110 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:110 def increment(name, amount = T.unsafe(nil), **options); end # The current local cache. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#82 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:82 def local_cache; end # Middleware class can be inserted as a Rack handler to be local cache for the # duration of request. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#88 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:88 def middleware; end # Set a new local cache. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#72 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:72 def new_local_cache; end # Unset the current local cache. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#77 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:77 def unset_local_cache; end # Use a local cache for the duration of block. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#67 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:67 def with_local_cache(&block); end private - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#230 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:230 def bypass_local_cache(&block); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#211 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:211 def delete_entry(key, **_arg1); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#226 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:226 def local_cache_key; end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#173 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:173 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#159 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:159 def read_serialized_entry(key, raw: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#234 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:234 def use_temporary_local_cache(temporary_cache); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#216 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:216 def write_cache_value(name, value, **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#202 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:202 def write_serialized_entry(key, payload, **_arg2); end end # Class for storing and registering the local caches. # -# source://activesupport//lib/active_support/cache/strategy/local_cache.rb#17 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:17 module ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry extend ::ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#20 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:20 def cache_for(local_cache_key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#25 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:25 def set_cache_for(local_cache_key, value); end end @@ -2282,29 +2203,27 @@ end # Simple memory backed cache. This cache is not thread safe and is intended only # for serving as a temporary memory cache for a single thread. # -# source://activesupport//lib/active_support/cache/strategy/local_cache.rb#35 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:35 class ActiveSupport::Cache::Strategy::LocalCache::LocalStore - # @return [LocalStore] a new instance of LocalStore - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#36 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:36 def initialize; end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#40 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:40 def clear(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#57 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:57 def delete_entry(key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#61 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:61 def fetch_entry(key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#44 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:44 def read_entry(key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#48 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:48 def read_multi_entries(keys); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#52 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:52 def write_entry(key, entry); end end @@ -2312,39 +2231,31 @@ end # This class wraps up local storage for middlewares. Only the middleware method should # construct them. # -# source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#13 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:13 class ActiveSupport::Cache::Strategy::LocalCache::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#17 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:17 def initialize(name, cache); end - # Returns the value of attribute cache. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#15 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:15 def cache; end - # Sets the attribute cache - # - # @param value the value to set the attribute cache to. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#15 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:15 def cache=(_arg0); end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#28 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:28 def call(env); end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#14 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:14 def name; end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#23 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:23 def new(app); end end # These options mean something to all cache implementations. Individual cache # implementations may support additional options. # -# source://activesupport//lib/active_support/cache.rb#26 +# pkg:gem/activesupport#lib/active_support/cache.rb:26 ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array) # Enables the dynamic configuration of Cache entry options while ensuring @@ -2352,37 +2263,35 @@ ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array) # ActiveSupport::Cache::Store#fetch, the second argument will be an # instance of +WriteOptions+. # -# source://activesupport//lib/active_support/cache.rb#1132 +# pkg:gem/activesupport#lib/active_support/cache.rb:1132 class ActiveSupport::Cache::WriteOptions - # @return [WriteOptions] a new instance of WriteOptions - # - # source://activesupport//lib/active_support/cache.rb#1133 + # pkg:gem/activesupport#lib/active_support/cache.rb:1133 def initialize(options); end - # source://activesupport//lib/active_support/cache.rb#1157 + # pkg:gem/activesupport#lib/active_support/cache.rb:1157 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#1164 + # pkg:gem/activesupport#lib/active_support/cache.rb:1164 def expires_at=(expires_at); end - # source://activesupport//lib/active_support/cache.rb#1145 + # pkg:gem/activesupport#lib/active_support/cache.rb:1145 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#1152 + # pkg:gem/activesupport#lib/active_support/cache.rb:1152 def expires_in=(expires_in); end - # source://activesupport//lib/active_support/cache.rb#1137 + # pkg:gem/activesupport#lib/active_support/cache.rb:1137 def version; end - # source://activesupport//lib/active_support/cache.rb#1141 + # pkg:gem/activesupport#lib/active_support/cache.rb:1141 def version=(version); end end @@ -2392,16 +2301,14 @@ end # re-executing the key generation process when it's called using the same +salt+ and # +key_size+. # -# source://activesupport//lib/active_support/key_generator.rb#55 +# pkg:gem/activesupport#lib/active_support/key_generator.rb:55 class ActiveSupport::CachingKeyGenerator - # @return [CachingKeyGenerator] a new instance of CachingKeyGenerator - # - # source://activesupport//lib/active_support/key_generator.rb#56 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:56 def initialize(key_generator); end # Returns a derived key suitable for use. # - # source://activesupport//lib/active_support/key_generator.rb#62 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:62 def generate_key(*args); end end @@ -2459,7 +2366,7 @@ end # - save # saved # -# source://activesupport//lib/active_support/callbacks.rb#65 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:65 module ActiveSupport::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2491,7 +2398,7 @@ module ActiveSupport::Callbacks # smoothly through and into the supplied block, we want as little evidence # as possible that we were here. # - # source://activesupport//lib/active_support/callbacks.rb#97 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:97 def run_callbacks(kind, type = T.unsafe(nil)); end private @@ -2500,7 +2407,7 @@ module ActiveSupport::Callbacks # This can be overridden in ActiveSupport::Callbacks implementors in order # to provide better debugging/logging. # - # source://activesupport//lib/active_support/callbacks.rb#150 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:150 def halted_callback_hook(filter, name); end module GeneratedClassMethods @@ -2513,13 +2420,13 @@ module ActiveSupport::Callbacks end end -# source://activesupport//lib/active_support/callbacks.rb#73 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:73 ActiveSupport::Callbacks::CALLBACK_FILTER_TYPES = T.let(T.unsafe(nil), Array) # A future invocation of user-supplied code (either as a callback, # or a condition filter). # -# source://activesupport//lib/active_support/callbacks.rb#337 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:337 module ActiveSupport::Callbacks::CallTemplate class << self # Filters support: @@ -2531,69 +2438,59 @@ module ActiveSupport::Callbacks::CallTemplate # All of these objects are converted into a CallTemplate and handled # the same after this point. # - # source://activesupport//lib/active_support/callbacks.rb#495 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:495 def build(filter, callback); end end end -# source://activesupport//lib/active_support/callbacks.rb#396 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:396 class ActiveSupport::Callbacks::CallTemplate::InstanceExec0 - # @return [InstanceExec0] a new instance of InstanceExec0 - # - # source://activesupport//lib/active_support/callbacks.rb#397 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:397 def initialize(block); end - # source://activesupport//lib/active_support/callbacks.rb#401 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:401 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#411 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:411 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#405 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:405 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#418 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:418 class ActiveSupport::Callbacks::CallTemplate::InstanceExec1 - # @return [InstanceExec1] a new instance of InstanceExec1 - # - # source://activesupport//lib/active_support/callbacks.rb#419 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:419 def initialize(block); end - # source://activesupport//lib/active_support/callbacks.rb#423 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:423 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#433 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:433 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#427 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:427 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#440 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:440 class ActiveSupport::Callbacks::CallTemplate::InstanceExec2 - # @return [InstanceExec2] a new instance of InstanceExec2 - # - # source://activesupport//lib/active_support/callbacks.rb#441 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:441 def initialize(block); end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/callbacks.rb#445 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:445 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#457 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:457 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#450 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:450 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#338 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:338 class ActiveSupport::Callbacks::CallTemplate::MethodCall - # @return [MethodCall] a new instance of MethodCall - # - # source://activesupport//lib/active_support/callbacks.rb#339 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:339 def initialize(method); end # Return the parts needed to make this call, with the given @@ -2610,208 +2507,172 @@ class ActiveSupport::Callbacks::CallTemplate::MethodCall # The actual invocation is left up to the caller to minimize # call stack pollution. # - # source://activesupport//lib/active_support/callbacks.rb#356 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:356 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#366 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:366 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#360 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:360 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#373 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:373 class ActiveSupport::Callbacks::CallTemplate::ObjectCall - # @return [ObjectCall] a new instance of ObjectCall - # - # source://activesupport//lib/active_support/callbacks.rb#374 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:374 def initialize(target, method); end - # source://activesupport//lib/active_support/callbacks.rb#379 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:379 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#389 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:389 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#383 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:383 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#465 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:465 class ActiveSupport::Callbacks::CallTemplate::ProcCall - # @return [ProcCall] a new instance of ProcCall - # - # source://activesupport//lib/active_support/callbacks.rb#466 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:466 def initialize(target); end - # source://activesupport//lib/active_support/callbacks.rb#470 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:470 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#480 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:480 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#474 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:474 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#231 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:231 class ActiveSupport::Callbacks::Callback - # @return [Callback] a new instance of Callback - # - # source://activesupport//lib/active_support/callbacks.rb#246 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:246 def initialize(name, filter, kind, options, chain_config); end # Wraps code with filter # - # source://activesupport//lib/active_support/callbacks.rb#300 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:300 def apply(callback_sequence); end - # Returns the value of attribute chain_config. - # - # source://activesupport//lib/active_support/callbacks.rb#244 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:244 def chain_config; end - # source://activesupport//lib/active_support/callbacks.rb#282 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:282 def compiled; end - # source://activesupport//lib/active_support/callbacks.rb#304 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:304 def current_scopes; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#273 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:273 def duplicates?(other); end - # Returns the value of attribute filter. - # - # source://activesupport//lib/active_support/callbacks.rb#244 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:244 def filter; end - # Returns the value of attribute kind. - # - # source://activesupport//lib/active_support/callbacks.rb#243 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:243 def kind; end - # Sets the attribute kind - # - # @param value the value to set the attribute kind to. - # - # source://activesupport//lib/active_support/callbacks.rb#243 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:243 def kind=(_arg0); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#269 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:269 def matches?(_kind, _filter); end - # source://activesupport//lib/active_support/callbacks.rb#257 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:257 def merge_conditional_options(chain, if_option:, unless_option:); end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/callbacks.rb#243 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:243 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activesupport//lib/active_support/callbacks.rb#243 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:243 def name=(_arg0); end private - # source://activesupport//lib/active_support/callbacks.rb#312 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:312 def check_conditionals(conditionals); end - # source://activesupport//lib/active_support/callbacks.rb#327 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:327 def conditions_lambdas; end class << self - # source://activesupport//lib/active_support/callbacks.rb#232 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:232 def build(chain, filter, kind, options); end end end -# source://activesupport//lib/active_support/callbacks.rb#309 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:309 ActiveSupport::Callbacks::Callback::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/callbacks.rb#568 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:568 class ActiveSupport::Callbacks::CallbackChain include ::Enumerable - # @return [CallbackChain] a new instance of CallbackChain - # - # source://activesupport//lib/active_support/callbacks.rb#573 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:573 def initialize(name, config); end - # source://activesupport//lib/active_support/callbacks.rb#633 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:633 def append(*callbacks); end - # source://activesupport//lib/active_support/callbacks.rb#601 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:601 def clear; end - # source://activesupport//lib/active_support/callbacks.rb#615 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:615 def compile(type); end - # Returns the value of attribute config. - # - # source://activesupport//lib/active_support/callbacks.rb#571 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:571 def config; end - # source://activesupport//lib/active_support/callbacks.rb#595 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:595 def delete(o); end - # source://activesupport//lib/active_support/callbacks.rb#585 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:585 def each(&block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#587 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:587 def empty?; end - # source://activesupport//lib/active_support/callbacks.rb#586 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:586 def index(o); end - # source://activesupport//lib/active_support/callbacks.rb#589 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:589 def insert(index, o); end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/callbacks.rb#571 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:571 def name; end - # source://activesupport//lib/active_support/callbacks.rb#637 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:637 def prepend(*callbacks); end protected - # Returns the value of attribute chain. - # - # source://activesupport//lib/active_support/callbacks.rb#642 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:642 def chain; end private - # source://activesupport//lib/active_support/callbacks.rb#645 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:645 def append_one(callback); end - # source://activesupport//lib/active_support/callbacks.rb#608 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:608 def initialize_copy(other); end - # source://activesupport//lib/active_support/callbacks.rb#652 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:652 def prepend_one(callback); end - # source://activesupport//lib/active_support/callbacks.rb#659 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:659 def remove_duplicates(callback); end end -# source://activesupport//lib/active_support/callbacks.rb#675 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:675 ActiveSupport::Callbacks::CallbackChain::DEFAULT_TERMINATOR = T.let(T.unsafe(nil), ActiveSupport::Callbacks::CallbackChain::DefaultTerminator) -# source://activesupport//lib/active_support/callbacks.rb#665 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:665 class ActiveSupport::Callbacks::CallbackChain::DefaultTerminator - # source://activesupport//lib/active_support/callbacks.rb#666 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:666 def call(target, result_lambda); end end @@ -2819,53 +2680,45 @@ end # chaining them with nested lambda calls, see: # https://github.com/rails/rails/issues/18011 # -# source://activesupport//lib/active_support/callbacks.rb#519 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:519 class ActiveSupport::Callbacks::CallbackSequence - # @return [CallbackSequence] a new instance of CallbackSequence - # - # source://activesupport//lib/active_support/callbacks.rb#520 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:520 def initialize(nested = T.unsafe(nil), call_template = T.unsafe(nil), user_conditions = T.unsafe(nil)); end - # source://activesupport//lib/active_support/callbacks.rb#535 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:535 def after(after); end - # source://activesupport//lib/active_support/callbacks.rb#541 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:541 def around(call_template, user_conditions); end - # source://activesupport//lib/active_support/callbacks.rb#529 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:529 def before(before); end - # source://activesupport//lib/active_support/callbacks.rb#555 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:555 def expand_call_template(arg, block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#551 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:551 def final?; end - # source://activesupport//lib/active_support/callbacks.rb#563 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:563 def invoke_after(arg); end - # source://activesupport//lib/active_support/callbacks.rb#559 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:559 def invoke_before(arg); end - # Returns the value of attribute nested. - # - # source://activesupport//lib/active_support/callbacks.rb#549 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:549 def nested; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#545 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:545 def skip?(arg); end end -# source://activesupport//lib/active_support/callbacks.rb#678 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:678 module ActiveSupport::Callbacks::ClassMethods # This is used internally to append, prepend and skip callbacks to the # CallbackChain. # - # source://activesupport//lib/active_support/callbacks.rb#688 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:688 def __update_callbacks(name); end # Define sets of events in the object life cycle that support callbacks. @@ -2947,15 +2800,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#903 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:903 def define_callbacks(*names); end - # source://activesupport//lib/active_support/callbacks.rb#679 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:679 def normalize_callback_params(filters, block); end # Remove all set callbacks for the given event. # - # source://activesupport//lib/active_support/callbacks.rb#813 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:813 def reset_callbacks(name); end # Install a callback for the given event. @@ -3003,7 +2856,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#739 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:739 def set_callback(name, *filter_list, &block); end # Skip a previously set callback. Like #set_callback, :if or @@ -3042,232 +2895,175 @@ module ActiveSupport::Callbacks::ClassMethods # An ArgumentError will be raised if the callback has not # already been set (unless the :raise option is set to false). # - # source://activesupport//lib/active_support/callbacks.rb#788 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:788 def skip_callback(name, *filter_list, &block); end protected - # source://activesupport//lib/active_support/callbacks.rb#939 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:939 def get_callbacks(name); end - # source://activesupport//lib/active_support/callbacks.rb#943 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:943 def set_callbacks(name, callbacks); end end -# source://activesupport//lib/active_support/callbacks.rb#153 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:153 module ActiveSupport::Callbacks::Conditionals; end -# source://activesupport//lib/active_support/callbacks.rb#154 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:154 class ActiveSupport::Callbacks::Conditionals::Value - # @return [Value] a new instance of Value - # - # source://activesupport//lib/active_support/callbacks.rb#155 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:155 def initialize(&block); end - # source://activesupport//lib/active_support/callbacks.rb#158 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:158 def call(target, value); end end -# source://activesupport//lib/active_support/callbacks.rb#162 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:162 module ActiveSupport::Callbacks::Filters; end -# source://activesupport//lib/active_support/callbacks.rb#194 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:194 class ActiveSupport::Callbacks::Filters::After - # @return [After] a new instance of After - # - # source://activesupport//lib/active_support/callbacks.rb#196 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:196 def initialize(user_callback, user_conditions, chain_config); end - # source://activesupport//lib/active_support/callbacks.rb#214 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:214 def apply(callback_sequence); end - # source://activesupport//lib/active_support/callbacks.rb#202 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:202 def call(env); end - # Returns the value of attribute halting. - # - # source://activesupport//lib/active_support/callbacks.rb#195 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:195 def halting; end - # Returns the value of attribute user_callback. - # - # source://activesupport//lib/active_support/callbacks.rb#195 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:195 def user_callback; end - # Returns the value of attribute user_conditions. - # - # source://activesupport//lib/active_support/callbacks.rb#195 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:195 def user_conditions; end end -# source://activesupport//lib/active_support/callbacks.rb#219 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:219 class ActiveSupport::Callbacks::Filters::Around - # @return [Around] a new instance of Around - # - # source://activesupport//lib/active_support/callbacks.rb#220 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:220 def initialize(user_callback, user_conditions); end - # source://activesupport//lib/active_support/callbacks.rb#225 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:225 def apply(callback_sequence); end end -# source://activesupport//lib/active_support/callbacks.rb#165 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:165 class ActiveSupport::Callbacks::Filters::Before - # @return [Before] a new instance of Before - # - # source://activesupport//lib/active_support/callbacks.rb#166 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:166 def initialize(user_callback, user_conditions, chain_config, filter, name); end - # source://activesupport//lib/active_support/callbacks.rb#189 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:189 def apply(callback_sequence); end - # source://activesupport//lib/active_support/callbacks.rb#173 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:173 def call(env); end - # Returns the value of attribute filter. - # - # source://activesupport//lib/active_support/callbacks.rb#171 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:171 def filter; end - # Returns the value of attribute halted_lambda. - # - # source://activesupport//lib/active_support/callbacks.rb#171 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:171 def halted_lambda; end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/callbacks.rb#171 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:171 def name; end - # Returns the value of attribute user_callback. - # - # source://activesupport//lib/active_support/callbacks.rb#171 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:171 def user_callback; end - # Returns the value of attribute user_conditions. - # - # source://activesupport//lib/active_support/callbacks.rb#171 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:171 def user_conditions; end end -# source://activesupport//lib/active_support/callbacks.rb#163 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:163 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#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 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#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def halted=(_); end - # Returns the value of attribute target - # - # @return [Object] the current value of target - # - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 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#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def target=(_); end - # Returns the value of attribute value - # - # @return [Object] the current value of value - # - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 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#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def value=(_); end class << self - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def [](*_arg0); end - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def inspect; end - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def keyword_init?; end - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def members; end - # source://activesupport//lib/active_support/callbacks.rb#163 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:163 def new(*_arg0); end end end -# source://activesupport//lib/active_support/class_attribute.rb#4 +# pkg:gem/activesupport#lib/active_support/class_attribute.rb:4 module ActiveSupport::ClassAttribute class << self - # source://activesupport//lib/active_support/class_attribute.rb#6 + # pkg:gem/activesupport#lib/active_support/class_attribute.rb:6 def redefine(owner, name, namespaced_name, value); end - # source://activesupport//lib/active_support/class_attribute.rb#26 + # pkg:gem/activesupport#lib/active_support/class_attribute.rb:26 def redefine_method(owner, name, private: T.unsafe(nil), &block); end end end -# source://activesupport//lib/active_support/code_generator.rb#4 +# pkg:gem/activesupport#lib/active_support/code_generator.rb:4 class ActiveSupport::CodeGenerator - # @return [CodeGenerator] a new instance of CodeGenerator - # - # source://activesupport//lib/active_support/code_generator.rb#53 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:53 def initialize(owner, path, line); end - # @yield [@sources] - # - # source://activesupport//lib/active_support/code_generator.rb#61 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:61 def class_eval; end - # source://activesupport//lib/active_support/code_generator.rb#65 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:65 def define_cached_method(canonical_name, namespace:, as: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/code_generator.rb#69 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:69 def execute; end class << self - # source://activesupport//lib/active_support/code_generator.rb#41 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:41 def batch(owner, path, line); end end end -# source://activesupport//lib/active_support/code_generator.rb#5 +# pkg:gem/activesupport#lib/active_support/code_generator.rb:5 class ActiveSupport::CodeGenerator::MethodSet - # @return [MethodSet] a new instance of MethodSet - # - # source://activesupport//lib/active_support/code_generator.rb#8 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:8 def initialize(namespace); end - # source://activesupport//lib/active_support/code_generator.rb#28 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:28 def apply(owner, path, line); end - # source://activesupport//lib/active_support/code_generator.rb#15 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:15 def define_cached_method(canonical_name, as: T.unsafe(nil)); end end -# source://activesupport//lib/active_support/code_generator.rb#6 +# pkg:gem/activesupport#lib/active_support/code_generator.rb:6 ActiveSupport::CodeGenerator::MethodSet::METHOD_CACHES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/range/compare_range.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:4 module ActiveSupport::CompareWithRange # Extends the default Range#=== to support range comparisons. # (1..5) === (1..5) # => true @@ -3281,7 +3077,7 @@ module ActiveSupport::CompareWithRange # # The given range must be fully bounded, with both start and end. # - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:16 def ===(value); end # Extends the default Range#include? to support range comparisons. @@ -3296,9 +3092,7 @@ module ActiveSupport::CompareWithRange # # The given range must be fully bounded, with both start and end. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:41 def include?(value); end end @@ -3411,9 +3205,9 @@ end # # prepend is also used for any dependencies. # -# source://activesupport//lib/active_support/concern.rb#112 +# pkg:gem/activesupport#lib/active_support/concern.rb:112 module ActiveSupport::Concern - # source://activesupport//lib/active_support/concern.rb#129 + # pkg:gem/activesupport#lib/active_support/concern.rb:129 def append_features(base); end # Define class methods from given block. @@ -3437,62 +3231,56 @@ module ActiveSupport::Concern # Buzz.foo # => "foo" # Buzz.bar # => private method 'bar' called for Buzz:Class(NoMethodError) # - # source://activesupport//lib/active_support/concern.rb#209 + # pkg:gem/activesupport#lib/active_support/concern.rb:209 def class_methods(&class_methods_module_definition); end # Evaluate given block in context of base class, # so that you can write class macros here. # When you define more than one +included+ block, it raises an exception. # - # source://activesupport//lib/active_support/concern.rb#158 + # pkg:gem/activesupport#lib/active_support/concern.rb:158 def included(base = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/concern.rb#142 + # pkg:gem/activesupport#lib/active_support/concern.rb:142 def prepend_features(base); end # Evaluate given block in context of base class, # so that you can write class macros here. # When you define more than one +prepended+ block, it raises an exception. # - # source://activesupport//lib/active_support/concern.rb#175 + # pkg:gem/activesupport#lib/active_support/concern.rb:175 def prepended(base = T.unsafe(nil), &block); end class << self - # source://activesupport//lib/active_support/concern.rb#125 + # pkg:gem/activesupport#lib/active_support/concern.rb:125 def extended(base); end end end -# source://activesupport//lib/active_support/concern.rb#113 +# pkg:gem/activesupport#lib/active_support/concern.rb:113 class ActiveSupport::Concern::MultipleIncludedBlocks < ::StandardError - # @return [MultipleIncludedBlocks] a new instance of MultipleIncludedBlocks - # - # source://activesupport//lib/active_support/concern.rb#114 + # pkg:gem/activesupport#lib/active_support/concern.rb:114 def initialize; end end -# source://activesupport//lib/active_support/concern.rb#119 +# pkg:gem/activesupport#lib/active_support/concern.rb:119 class ActiveSupport::Concern::MultiplePrependBlocks < ::StandardError - # @return [MultiplePrependBlocks] a new instance of MultiplePrependBlocks - # - # source://activesupport//lib/active_support/concern.rb#120 + # pkg:gem/activesupport#lib/active_support/concern.rb:120 def initialize; end end -# source://activesupport//lib/active_support/concurrency/share_lock.rb#6 +# pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:6 module ActiveSupport::Concurrency; end # A share/exclusive lock, otherwise known as a read/write lock. # # https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock # -# source://activesupport//lib/active_support/concurrency/share_lock.rb#10 +# pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:10 class ActiveSupport::Concurrency::ShareLock include ::MonitorMixin - # @return [ShareLock] a new instance of ShareLock - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#49 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:49 def initialize; end # Execute the supplied block while holding the Exclusive lock. If @@ -3502,19 +3290,19 @@ class ActiveSupport::Concurrency::ShareLock # # See +start_exclusive+ for other options. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#147 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:147 def exclusive(purpose: T.unsafe(nil), compatible: T.unsafe(nil), after_compatible: T.unsafe(nil), no_wait: T.unsafe(nil)); end # We track Thread objects, instead of just using counters, because # we need exclusive locks to be reentrant, and we need to be able # to upgrade share locks to exclusive. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#17 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:17 def raw_state; end # Execute the supplied block while holding the Share lock. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#158 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:158 def sharing; end # Returns false if +no_wait+ is set and the lock is not @@ -3532,48 +3320,42 @@ class ActiveSupport::Concurrency::ShareLock # +purpose+ matching, it is possible to yield only to other # threads whose activity will not interfere. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#75 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:75 def start_exclusive(purpose: T.unsafe(nil), compatible: T.unsafe(nil), no_wait: T.unsafe(nil)); end - # source://activesupport//lib/active_support/concurrency/share_lock.rb#113 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:113 def start_sharing; end # Relinquish the exclusive lock. Must only be called by the thread # that called start_exclusive (and currently holds the lock). # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#95 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:95 def stop_exclusive(compatible: T.unsafe(nil)); end - # source://activesupport//lib/active_support/concurrency/share_lock.rb#130 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:130 def stop_sharing; end # Temporarily give up all held Share locks while executing the # supplied block, allowing any +compatible+ exclusive lock request # to proceed. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#170 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:170 def yield_shares(purpose: T.unsafe(nil), compatible: T.unsafe(nil), block_share: T.unsafe(nil)); end private # Must be called within synchronize # - # @return [Boolean] - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#203 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:203 def busy_for_exclusive?(purpose); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#208 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:208 def busy_for_sharing?(purpose); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#213 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:213 def eligible_waiters?(compatible); end - # source://activesupport//lib/active_support/concurrency/share_lock.rb#217 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:217 def wait_for(method, &block); end end @@ -3582,7 +3364,7 @@ end # Configurable provides a config method to store and retrieve # configuration options as an OrderedOptions. # -# source://activesupport//lib/active_support/configurable.rb#17 +# pkg:gem/activesupport#lib/active_support/configurable.rb:17 module ActiveSupport::Configurable extend ::ActiveSupport::Concern @@ -3604,11 +3386,11 @@ module ActiveSupport::Configurable # user.config.allowed_access # => true # user.config.level # => 1 # - # source://activesupport//lib/active_support/configurable.rb#189 + # pkg:gem/activesupport#lib/active_support/configurable.rb:189 def config; end end -# source://activesupport//lib/active_support/configurable.rb#35 +# pkg:gem/activesupport#lib/active_support/configurable.rb:35 module ActiveSupport::Configurable::ClassMethods # Reads and writes attributes from a configuration OrderedOptions. # @@ -3624,7 +3406,7 @@ module ActiveSupport::Configurable::ClassMethods # User.config.allowed_access # => true # User.config.level # => 1 # - # source://activesupport//lib/active_support/configurable.rb#49 + # pkg:gem/activesupport#lib/active_support/configurable.rb:49 def config; end # Configure values from within the passed block. @@ -3643,9 +3425,7 @@ module ActiveSupport::Configurable::ClassMethods # # User.allowed_access # => true # - # @yield [config] - # - # source://activesupport//lib/active_support/configurable.rb#73 + # pkg:gem/activesupport#lib/active_support/configurable.rb:73 def configure; end private @@ -3719,22 +3499,22 @@ module ActiveSupport::Configurable::ClassMethods # User.allowed_access # => false # User.hair_colors # => [:brown, :black, :blonde, :red] # - # source://activesupport//lib/active_support/configurable.rb#145 + # pkg:gem/activesupport#lib/active_support/configurable.rb:145 def config_accessor(*names, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end - # source://activesupport//lib/active_support/configurable.rb#166 + # pkg:gem/activesupport#lib/active_support/configurable.rb:166 def inherited(subclass); end end -# source://activesupport//lib/active_support/configurable.rb#20 +# pkg:gem/activesupport#lib/active_support/configurable.rb:20 class ActiveSupport::Configurable::Configuration < ::ActiveSupport::InheritableOptions - # source://activesupport//lib/active_support/configurable.rb#21 + # pkg:gem/activesupport#lib/active_support/configurable.rb:21 def compile_methods!; end class << self # Compiles reader methods so we don't have to go through method_missing. # - # source://activesupport//lib/active_support/configurable.rb#26 + # pkg:gem/activesupport#lib/active_support/configurable.rb:26 def compile_methods!(keys); end end end @@ -3745,31 +3525,29 @@ end # Warns in case of YAML confusing characters, like invisible # non-breaking spaces. # -# source://activesupport//lib/active_support/configuration_file.rb#9 +# pkg:gem/activesupport#lib/active_support/configuration_file.rb:9 class ActiveSupport::ConfigurationFile - # @return [ConfigurationFile] a new instance of ConfigurationFile - # - # source://activesupport//lib/active_support/configuration_file.rb#12 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:12 def initialize(content_path); end - # source://activesupport//lib/active_support/configuration_file.rb#21 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:21 def parse(context: T.unsafe(nil), **options); end private - # source://activesupport//lib/active_support/configuration_file.rb#44 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:44 def read(content_path); end - # source://activesupport//lib/active_support/configuration_file.rb#54 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:54 def render(context); end class << self - # source://activesupport//lib/active_support/configuration_file.rb#17 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:17 def parse(content_path, **options); end end end -# source://activesupport//lib/active_support/configuration_file.rb#10 +# pkg:gem/activesupport#lib/active_support/configuration_file.rb:10 class ActiveSupport::ConfigurationFile::FormatError < ::StandardError; end # Provides a DSL for declaring a continuous integration workflow that can be run either locally or in the cloud. @@ -3793,11 +3571,9 @@ class ActiveSupport::ConfigurationFile::FormatError < ::StandardError; end # # Starting with Rails 8.1, a default `bin/ci` and `config/ci.rb` file are created to provide out-of-the-box CI. # -# source://activesupport//lib/active_support/continuous_integration.rb#24 +# pkg:gem/activesupport#lib/active_support/continuous_integration.rb:24 class ActiveSupport::ContinuousIntegration - # @return [ContinuousIntegration] a new instance of ContinuousIntegration - # - # source://activesupport//lib/active_support/continuous_integration.rb#64 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:64 def initialize; end # Echo text to the terminal in the color corresponding to the type of the text. @@ -3809,12 +3585,12 @@ class ActiveSupport::ContinuousIntegration # # See ActiveSupport::ContinuousIntegration::COLORS for a complete list of options. # - # source://activesupport//lib/active_support/continuous_integration.rb#111 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:111 def echo(text, type:); end # Display an error heading with the title and optional subtitle to reflect that the run failed. # - # source://activesupport//lib/active_support/continuous_integration.rb#86 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:86 def failure(title, subtitle = T.unsafe(nil)); end # Display a colorized heading followed by an optional subtitle. @@ -3826,15 +3602,13 @@ class ActiveSupport::ContinuousIntegration # # See ActiveSupport::ContinuousIntegration::COLORS for a complete list of options. # - # source://activesupport//lib/active_support/continuous_integration.rb#98 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:98 def heading(heading, subtitle = T.unsafe(nil), type: T.unsafe(nil), padding: T.unsafe(nil)); end - # source://activesupport//lib/active_support/continuous_integration.rb#116 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:116 def report(title, &block); end - # Returns the value of attribute results. - # - # source://activesupport//lib/active_support/continuous_integration.rb#33 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:33 def results; end # Declare a step with a title and a command. The command can either be given as a single string or as multiple @@ -3845,22 +3619,20 @@ class ActiveSupport::ContinuousIntegration # step "Setup", "bin/setup" # step "Single test", "bin/rails", "test", "--name", "test_that_is_one" # - # source://activesupport//lib/active_support/continuous_integration.rb#75 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:75 def step(title, *command); end # Returns true if all steps were successful. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/continuous_integration.rb#81 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:81 def success?; end private - # source://activesupport//lib/active_support/continuous_integration.rb#141 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:141 def colorize(text, type); end - # source://activesupport//lib/active_support/continuous_integration.rb#134 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:134 def timing; end class << self @@ -3885,57 +3657,50 @@ class ActiveSupport::ContinuousIntegration # end # end # - # source://activesupport//lib/active_support/continuous_integration.rb#55 + # pkg:gem/activesupport#lib/active_support/continuous_integration.rb:55 def run(title = T.unsafe(nil), subtitle = T.unsafe(nil), &block); end end end -# source://activesupport//lib/active_support/continuous_integration.rb#25 +# pkg:gem/activesupport#lib/active_support/continuous_integration.rb:25 ActiveSupport::ContinuousIntegration::COLORS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:6 module ActiveSupport::CoreExt; end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:7 module ActiveSupport::CoreExt::ERBUtil - # A utility method for escaping HTML tag characters. - # This method is also aliased as h. - # - # puts html_escape('is a > 0 & a < 10?') - # # => is a > 0 & a < 10? - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#28 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:28 def h(s); end + # HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer. + # This method is not for public consumption! Seriously! # A utility method for escaping HTML tag characters. # This method is also aliased as h. # # puts html_escape('is a > 0 & a < 10?') # # => is a > 0 & a < 10? # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:10 def html_escape(s); end - # HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer. - # This method is not for public consumption! Seriously! - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:18 def unwrapped_html_escape(s); end end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#31 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:31 module ActiveSupport::CoreExt::ERBUtilPrivate include ::ActiveSupport::CoreExt::ERBUtil private - # source://activesupport//lib/active_support/core_ext/erb/util.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:33 def h(s); end - # source://activesupport//lib/active_support/core_ext/erb/util.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:33 def html_escape(s); end - # source://activesupport//lib/active_support/core_ext/erb/util.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:33 def unwrapped_html_escape(s); end end @@ -4023,48 +3788,42 @@ end # The attributes stuck in Current should be used by more or less all actions on all requests. If you start # sticking controller-specific attributes in there, you're going to create a mess. # -# source://activesupport//lib/active_support/current_attributes.rb#93 +# pkg:gem/activesupport#lib/active_support/current_attributes.rb:93 class ActiveSupport::CurrentAttributes include ::ActiveSupport::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # @return [CurrentAttributes] a new instance of CurrentAttributes - # - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def initialize; end - # source://activesupport//lib/active_support/current_attributes.rb#94 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def __callbacks; end - # source://activesupport//lib/active_support/current_attributes.rb#95 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:95 def _reset_callbacks; end - # source://activesupport//lib/active_support/current_attributes.rb#95 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:95 def _run_reset_callbacks; end - # source://activesupport//lib/active_support/current_attributes.rb#95 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:95 def _run_reset_callbacks!(&block); end - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 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#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def attributes=(_arg0); end - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def defaults; end - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 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#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def reset; end # Expose one or more attributes within a block. Old values are returned after the block concludes. @@ -4078,30 +3837,28 @@ class ActiveSupport::CurrentAttributes # end # end # - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def set(attributes, &block); end private - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def resolve_defaults; end class << self - # source://activesupport//lib/active_support/current_attributes.rb#94 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def __callbacks; end - # source://activesupport//lib/active_support/current_attributes.rb#94 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def __callbacks=(value); end - # source://activesupport//lib/active_support/current_attributes.rb#95 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:95 def _reset_callbacks; end - # source://activesupport//lib/active_support/current_attributes.rb#95 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:95 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#153 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:153 def after_reset(*methods, &block); end # Declares one or more attributes that will be given both class and instance accessor methods. @@ -4113,96 +3870,105 @@ class ActiveSupport::CurrentAttributes # constructed. Otherwise, the value will be duplicated with +#dup+. # Default values are re-assigned when the attributes are reset. # - # source://activesupport//lib/active_support/current_attributes.rb#115 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:115 def attribute(*names, default: T.unsafe(nil)); end - # source://activesupport//lib/active_support/current_attributes.rb#197 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:197 def attributes(&_arg0); end - # source://activesupport//lib/active_support/current_attributes.rb#197 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:197 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#145 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:145 def before_reset(*methods, &block); end - # source://activesupport//lib/active_support/current_attributes.rb#157 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:157 def clear_all; end - # source://activesupport//lib/active_support/current_attributes.rb#201 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:201 def defaults; end - # source://activesupport//lib/active_support/current_attributes.rb#201 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:201 def defaults=(value); end - # source://activesupport//lib/active_support/current_attributes.rb#201 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:201 def defaults?; end # Returns singleton instance for this class in this thread. If none exists, one is created. # - # source://activesupport//lib/active_support/current_attributes.rb#103 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:103 def instance; end - # source://activesupport//lib/active_support/current_attributes.rb#155 + # Reset all attributes. Should be called before and after actions, when used as a per-request singleton. + # + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:155 def reset(*_arg0, **_arg1, &_arg2); 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#150 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:150 def resets(*methods, &block); end - # source://activesupport//lib/active_support/current_attributes.rb#155 + # Expose one or more attributes within a block. Old values are returned after the block concludes. + # Example demonstrating the common use of needing to set Current attributes outside the request-cycle: + # + # class Chat::PublicationJob < ApplicationJob + # def perform(attributes, room_number, creator) + # Current.set(person: creator) do + # Chat::Publisher.publish(attributes: attributes, room_number: room_number) + # end + # end + # end + # + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:155 def set(*_arg0, **_arg1, &_arg2); end private - # source://activesupport//lib/active_support/current_attributes.rb#94 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/current_attributes.rb#94 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/current_attributes.rb#201 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:201 def __class_attr_defaults; end - # source://activesupport//lib/active_support/current_attributes.rb#201 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:201 def __class_attr_defaults=(new_value); end - # source://activesupport//lib/active_support/current_attributes.rb#169 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:169 def current_instances; end - # source://activesupport//lib/active_support/current_attributes.rb#173 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:173 def current_instances_key; end - # source://activesupport//lib/active_support/current_attributes.rb#165 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:165 def generated_attribute_methods; end - # @private - # - # source://activesupport//lib/active_support/current_attributes.rb#185 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:185 def method_added(name); end - # source://activesupport//lib/active_support/current_attributes.rb#177 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:177 def method_missing(name, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/current_attributes.rb#181 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:181 def respond_to_missing?(name, _); end end end -# source://activesupport//lib/active_support/current_attributes.rb#97 +# pkg:gem/activesupport#lib/active_support/current_attributes.rb:97 ActiveSupport::CurrentAttributes::INVALID_ATTRIBUTE_NAMES = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/current_attributes.rb#99 +# pkg:gem/activesupport#lib/active_support/current_attributes.rb:99 ActiveSupport::CurrentAttributes::NOT_SET = T.let(T.unsafe(nil), Object) # Provides +deep_merge+ and +deep_merge!+ methods. Expects the including class # to provide a merge!(other, &block) method. # -# source://activesupport//lib/active_support/deep_mergeable.rb#6 +# pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:6 module ActiveSupport::DeepMergeable # Returns a new instance with the values from +other+ merged recursively. # @@ -4226,83 +3992,81 @@ module ActiveSupport::DeepMergeable # end # # => { a: 100, b: 450, c: { c1: 300 } } # - # source://activesupport//lib/active_support/deep_mergeable.rb#29 + # pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:29 def deep_merge(other, &block); end # Same as #deep_merge, but modifies +self+. # - # source://activesupport//lib/active_support/deep_mergeable.rb#34 + # pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:34 def deep_merge!(other, &block); end # Returns true if +other+ can be deep merged into +self+. Classes may # override this method to restrict or expand the domain of deep mergeable # values. Defaults to checking that +other+ is of type +self.class+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/deep_mergeable.rb#49 + # pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:49 def deep_merge?(other); end end -# source://activesupport//lib/active_support/delegation.rb#14 +# pkg:gem/activesupport#lib/active_support/delegation.rb:14 module ActiveSupport::Delegation class << self - # source://activesupport//lib/active_support/delegation.rb#21 + # pkg:gem/activesupport#lib/active_support/delegation.rb:21 def generate(owner, methods, location: T.unsafe(nil), to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), nilable: T.unsafe(nil), private: T.unsafe(nil), as: T.unsafe(nil), signature: T.unsafe(nil)); end - # source://activesupport//lib/active_support/delegation.rb#150 + # pkg:gem/activesupport#lib/active_support/delegation.rb:150 def generate_method_missing(owner, target, allow_nil: T.unsafe(nil)); end end end -# source://activesupport//lib/active_support/delegation.rb#18 +# pkg:gem/activesupport#lib/active_support/delegation.rb:18 ActiveSupport::Delegation::RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set) -# source://activesupport//lib/active_support/delegation.rb#15 +# pkg:gem/activesupport#lib/active_support/delegation.rb:15 ActiveSupport::Delegation::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) # Error generated by +delegate+ when a method is called on +nil+ and +allow_nil+ # option is not used. # -# source://activesupport//lib/active_support/delegation.rb#6 +# pkg:gem/activesupport#lib/active_support/delegation.rb:6 class ActiveSupport::DelegationError < ::NoMethodError class << self - # source://activesupport//lib/active_support/delegation.rb#8 + # pkg:gem/activesupport#lib/active_support/delegation.rb:8 def nil_target(method_name, target); end end end -# source://activesupport//lib/active_support/dependencies/interlock.rb#6 +# pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:6 module ActiveSupport::Dependencies class << self - # source://activesupport//lib/active_support/dependencies.rb#66 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:66 def _autoloaded_tracked_classes; end - # source://activesupport//lib/active_support/dependencies.rb#66 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:66 def _autoloaded_tracked_classes=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#60 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:60 def _eager_load_paths; end - # source://activesupport//lib/active_support/dependencies.rb#60 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:60 def _eager_load_paths=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#53 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:53 def autoload_once_paths; end - # source://activesupport//lib/active_support/dependencies.rb#53 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:53 def autoload_once_paths=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#47 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:47 def autoload_paths; end - # source://activesupport//lib/active_support/dependencies.rb#47 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:47 def autoload_paths=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#73 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:73 def autoloader; end - # source://activesupport//lib/active_support/dependencies.rb#73 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:73 def autoloader=(_arg0); end # Private method that reloads constants autoloaded by the main autoloader. @@ -4311,85 +4075,81 @@ module ActiveSupport::Dependencies # reload. That involves more things, like deleting unloaded classes from the # internal state of the descendants tracker, or reloading routes. # - # source://activesupport//lib/active_support/dependencies.rb#80 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:80 def clear; end # Private method that helps configuring the autoloaders. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/dependencies.rb#98 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:98 def eager_load?(path); end - # source://activesupport//lib/active_support/dependencies.rb#9 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:9 def interlock; end - # source://activesupport//lib/active_support/dependencies.rb#9 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:9 def interlock=(_arg0); end # Execute the supplied block while holding an exclusive lock, # preventing any other thread from being inside a #run_interlock # block at the same time. # - # source://activesupport//lib/active_support/dependencies.rb#23 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:23 def load_interlock(&block); end # Execute the supplied block without interference from any # concurrent loads. # - # source://activesupport//lib/active_support/dependencies.rb#16 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:16 def run_interlock(&block); end # Private method used by require_dependency. # - # source://activesupport//lib/active_support/dependencies.rb#88 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:88 def search_for_file(relpath); end # Execute the supplied block while holding an exclusive lock, # preventing any other thread from being inside a #run_interlock # block at the same time. # - # source://activesupport//lib/active_support/dependencies.rb#35 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:35 def unload_interlock(&block); end end end -# source://activesupport//lib/active_support/dependencies/interlock.rb#7 +# pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:7 class ActiveSupport::Dependencies::Interlock - # @return [Interlock] a new instance of Interlock - # - # source://activesupport//lib/active_support/dependencies/interlock.rb#8 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:8 def initialize; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#37 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:37 def done_running; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#29 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:29 def done_unloading; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#12 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:12 def loading(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#45 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:45 def permit_concurrent_loads(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#50 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:50 def raw_state(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#41 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:41 def running(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#33 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:33 def start_running; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#25 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:25 def start_unloading; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#21 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:21 def unloading(&block); end end -# source://activesupport//lib/active_support/dependencies/require_dependency.rb#3 +# pkg:gem/activesupport#lib/active_support/dependencies/require_dependency.rb:3 module ActiveSupport::Dependencies::RequireDependency # Warning: This method is obsolete. The semantics of the autoloader # match Ruby's and you do not need to be defensive with load order anymore. @@ -4399,7 +4159,7 @@ module ActiveSupport::Dependencies::RequireDependency # should call +require_dependency+ where needed in case the runtime mode is # +:classic+. # - # source://activesupport//lib/active_support/dependencies/require_dependency.rb#11 + # pkg:gem/activesupport#lib/active_support/dependencies/require_dependency.rb:11 def require_dependency(filename); end end @@ -4433,7 +4193,7 @@ end # # in config/environments/test.rb # config.active_support.deprecation = :raise # -# source://activesupport//lib/active_support/deprecation.rb#33 +# pkg:gem/activesupport#lib/active_support/deprecation.rb:33 class ActiveSupport::Deprecation include ::ActiveSupport::Deprecation::Behavior include ::ActiveSupport::Deprecation::Reporting @@ -4445,23 +4205,21 @@ class ActiveSupport::Deprecation # # ActiveSupport::Deprecation.new('2.0', 'MyLibrary') # - # @return [Deprecation] a new instance of Deprecation - # - # source://activesupport//lib/active_support/deprecation.rb#71 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:71 def initialize(deprecation_horizon = T.unsafe(nil), gem_name = T.unsafe(nil)); end # The version number in which the deprecated behavior will be removed, by default. # - # source://activesupport//lib/active_support/deprecation.rb#65 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:65 def deprecation_horizon; end # The version number in which the deprecated behavior will be removed, by default. # - # source://activesupport//lib/active_support/deprecation.rb#65 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:65 def deprecation_horizon=(_arg0); end class << self - # source://activesupport//lib/active_support/deprecation.rb#60 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:60 def _instance; end end end @@ -4480,11 +4238,11 @@ end # Setting behaviors only affects deprecations that happen after boot time. # For more information you can read the documentation of the #behavior= method. # -# source://activesupport//lib/active_support/deprecation/behaviors.rb#69 +# pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:69 module ActiveSupport::Deprecation::Behavior # Returns the current behavior or if one isn't set, defaults to +:stderr+. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#74 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:74 def behavior; end # Sets the behavior to the specified value. Can be a single value, array, @@ -4516,22 +4274,22 @@ module ActiveSupport::Deprecation::Behavior # all deprecation behaviors. This is similar to the +:silence+ option but # more performant. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#111 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:111 def behavior=(behavior); end # Whether to print a backtrace along with the warning. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#71 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:71 def debug; end # Whether to print a backtrace along with the warning. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#71 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:71 def debug=(_arg0); end # Returns the current behavior for disallowed deprecations or if one isn't set, defaults to +:raise+. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#79 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:79 def disallowed_behavior; end # Sets the behavior for disallowed deprecations (those configured by @@ -4539,29 +4297,27 @@ module ActiveSupport::Deprecation::Behavior # value. As with #behavior=, this can be a single value, array, or an # object that responds to +call+. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#119 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:119 def disallowed_behavior=(behavior); end private - # source://activesupport//lib/active_support/deprecation/behaviors.rb#124 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:124 def arity_coerce(behavior); end - # source://activesupport//lib/active_support/deprecation/behaviors.rb#143 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:143 def arity_of_callable(callable); end end # Default warning behaviors per Rails.env. # -# source://activesupport//lib/active_support/deprecation/behaviors.rb#13 +# pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:13 ActiveSupport::Deprecation::DEFAULT_BEHAVIORS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/deprecation/constant_accessor.rb#5 +# pkg:gem/activesupport#lib/active_support/deprecation/constant_accessor.rb:5 module ActiveSupport::Deprecation::DeprecatedConstantAccessor class << self - # @private - # - # source://activesupport//lib/active_support/deprecation/constant_accessor.rb#6 + # pkg:gem/activesupport#lib/active_support/deprecation/constant_accessor.rb:6 def included(base); end end end @@ -4582,14 +4338,12 @@ end # (Backtrace information…) # ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"] # -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#120 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:120 class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module - # @return [DeprecatedConstantProxy] a new instance of DeprecatedConstantProxy - # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#128 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:128 def initialize(old_const, new_const, deprecator, message: T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#158 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:158 def append_features(base); end # Returns the class of the new constant. @@ -4598,46 +4352,46 @@ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module # PLANETS = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('PLANETS', 'PLANETS_POST_2006') # PLANETS.class # => Array # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#154 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:154 def class; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#168 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:168 def extended(base); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 def hash(*_arg0, **_arg1, &_arg2); end # Don't give a deprecation warning on inspect since test/unit and error # logs rely on it for diagnostics. # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#141 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:141 def inspect; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 def instance_methods(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 def name(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#163 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:163 def prepend_features(base); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 def respond_to?(*_arg0, **_arg1, &_arg2); end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#178 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:178 def const_missing(name); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#183 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:183 def method_missing(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#174 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:174 def target; end class << self - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#121 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:121 def new(*args, **options, &block); end end end @@ -4675,19 +4429,17 @@ end # example.request.to_s # # => "special_request" # -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#87 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:87 class ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy < ::ActiveSupport::Deprecation::DeprecationProxy - # @return [DeprecatedInstanceVariableProxy] a new instance of DeprecatedInstanceVariableProxy - # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#88 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:88 def initialize(instance, method, var = T.unsafe(nil), deprecator:); end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#96 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:96 def target; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#100 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:100 def warn(callstack, called, args); end end @@ -4702,37 +4454,35 @@ end # (Backtrace) # # => "#" # -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#38 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:38 class ActiveSupport::Deprecation::DeprecatedObjectProxy < ::ActiveSupport::Deprecation::DeprecationProxy - # @return [DeprecatedObjectProxy] a new instance of DeprecatedObjectProxy - # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#39 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:39 def initialize(object, message, deprecator); end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#46 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:46 def target; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#50 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:50 def warn(callstack, called, args); end end -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#5 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:5 class ActiveSupport::Deprecation::DeprecationProxy # Don't give a deprecation warning on inspect since test/unit and error # logs rely on it for diagnostics. # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#17 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:17 def inspect; end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#22 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:22 def method_missing(called, *args, &block); end class << self - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#6 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:6 def new(*args, **kwargs, &block); end end end @@ -4742,16 +4492,14 @@ end # #silence method silences all deprecators in the collection for the # duration of a given block. # -# source://activesupport//lib/active_support/deprecation/deprecators.rb#9 +# pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:9 class ActiveSupport::Deprecation::Deprecators - # @return [Deprecators] a new instance of Deprecators - # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#10 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:10 def initialize; end # Returns a deprecator added to this collection via #[]=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#16 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:16 def [](name); end # Adds a given +deprecator+ to this collection. The deprecator will be @@ -4768,7 +4516,7 @@ class ActiveSupport::Deprecation::Deprecators # deprecators[:foo].debug # => true # foo_deprecator.debug # => true # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#34 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:34 def []=(name, deprecator); end # Sets the deprecation warning behavior for all deprecators in this @@ -4776,12 +4524,12 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#behavior=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#60 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:60 def behavior=(behavior); end # Sets the debug flag for all deprecators in this collection. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#52 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:52 def debug=(debug); end # Sets the disallowed deprecation warning behavior for all deprecators in @@ -4789,7 +4537,7 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#disallowed_behavior=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#68 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:68 def disallowed_behavior=(disallowed_behavior); end # Sets the disallowed deprecation warnings for all deprecators in this @@ -4797,13 +4545,13 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#disallowed_warnings=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#76 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:76 def disallowed_warnings=(disallowed_warnings); end # Iterates over all deprecators in this collection. If no block is given, # returns an +Enumerator+. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#41 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:41 def each(&block); end # Silences all deprecators in this collection for the duration of the @@ -4811,29 +4559,40 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#silence. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#84 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:84 def silence(&block); end # Sets the silenced flag for all deprecators in this collection. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#47 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:47 def silenced=(silenced); end private - # source://activesupport//lib/active_support/deprecation/deprecators.rb#97 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:97 def apply_options(deprecator); end - # source://activesupport//lib/active_support/deprecation/deprecators.rb#92 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:92 def set_option(name, value); end end -# source://activesupport//lib/active_support/deprecation/disallowed.rb#5 +# pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:5 module ActiveSupport::Deprecation::Disallowed + # Sets the criteria used to identify deprecation messages which should be + # disallowed. Can be an array containing strings, symbols, or regular + # expressions. (Symbols are treated as strings.) These are compared against + # the text of the generated deprecation warning. + # + # Additionally the scalar symbol +:all+ may be used to treat all + # deprecations as disallowed. + # + # Deprecations matching a substring or regular expression will be handled + # using the configured Behavior#disallowed_behavior rather than + # Behavior#behavior. # Returns the configured criteria used to identify deprecation messages # which should be treated as disallowed. # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#21 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:21 def disallowed_warnings; end # Sets the criteria used to identify deprecation messages which should be @@ -4847,27 +4606,25 @@ module ActiveSupport::Deprecation::Disallowed # Deprecations matching a substring or regular expression will be handled # using the configured Behavior#disallowed_behavior rather than # Behavior#behavior. + # Returns the configured criteria used to identify deprecation messages + # which should be treated as disallowed. # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#17 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:17 def disallowed_warnings=(_arg0); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#26 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:26 def deprecation_disallowed?(message); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#39 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:39 def explicitly_allowed?(message); end end -# source://activesupport//lib/active_support/deprecation.rb#57 +# pkg:gem/activesupport#lib/active_support/deprecation.rb:57 ActiveSupport::Deprecation::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) -# source://activesupport//lib/active_support/deprecation/method_wrappers.rb#8 +# pkg:gem/activesupport#lib/active_support/deprecation/method_wrappers.rb:8 module ActiveSupport::Deprecation::MethodWrapper # Declare that a method has been deprecated. # @@ -4896,11 +4653,11 @@ module ActiveSupport::Deprecation::MethodWrapper # # DEPRECATION WARNING: ccc is deprecated and will be removed from MyGem next-release (use Bar#ccc instead). (called from irb_binding at (irb):12) # # => nil # - # source://activesupport//lib/active_support/deprecation/method_wrappers.rb#35 + # pkg:gem/activesupport#lib/active_support/deprecation/method_wrappers.rb:35 def deprecate_methods(target_module, *method_names); end end -# source://activesupport//lib/active_support/deprecation/reporting.rb#7 +# pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:7 module ActiveSupport::Deprecation::Reporting # Allow previously disallowed deprecation warnings within the block. # allowed_warnings can be an array containing strings, symbols, or regular @@ -4932,26 +4689,26 @@ module ActiveSupport::Deprecation::Reporting # end # # => ActiveSupport::DeprecationException for dev/test, nil for production # - # source://activesupport//lib/active_support/deprecation/reporting.rb#89 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:89 def allow(allowed_warnings = T.unsafe(nil), if: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#48 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:48 def begin_silence; end - # source://activesupport//lib/active_support/deprecation/reporting.rb#99 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:99 def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#52 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:52 def end_silence; end # Name of gem where method is deprecated # - # source://activesupport//lib/active_support/deprecation/reporting.rb#11 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:11 def gem_name; end # Name of gem where method is deprecated # - # source://activesupport//lib/active_support/deprecation/reporting.rb#11 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:11 def gem_name=(_arg0); end # Silence deprecation warnings within the block. @@ -4965,15 +4722,17 @@ module ActiveSupport::Deprecation::Reporting # end # # => nil # - # source://activesupport//lib/active_support/deprecation/reporting.rb#41 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:41 def silence(&block); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#56 + # Whether to print a message (silent mode) + # + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:56 def silenced; end # Whether to print a message (silent mode) # - # source://activesupport//lib/active_support/deprecation/reporting.rb#9 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:9 def silenced=(_arg0); end # Outputs a deprecation warning to the output configured by @@ -4982,7 +4741,7 @@ module ActiveSupport::Deprecation::Reporting # ActiveSupport::Deprecation.new.warn('something broke!') # # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)" # - # source://activesupport//lib/active_support/deprecation/reporting.rb#18 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:18 def warn(message = T.unsafe(nil), callstack = T.unsafe(nil)); end private @@ -4996,34 +4755,32 @@ module ActiveSupport::Deprecation::Reporting # deprecated_method_warning(:method_name, "Optional message") # # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (Optional message)" # - # source://activesupport//lib/active_support/deprecation/reporting.rb#115 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:115 def deprecated_method_warning(method_name, message = T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#129 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:129 def deprecation_caller_message(callstack); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#124 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:124 def deprecation_message(callstack, message = T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#140 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:140 def extract_callstack(callstack); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/deprecation/reporting.rb#157 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:157 def ignored_callstack?(path); end end -# source://activesupport//lib/active_support/deprecation/reporting.rb#154 +# pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:154 ActiveSupport::Deprecation::Reporting::LIB_DIR = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/deprecation/reporting.rb#152 +# pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:152 ActiveSupport::Deprecation::Reporting::RAILS_GEM_ROOT = T.let(T.unsafe(nil), String) # Raised when ActiveSupport::Deprecation::Behavior#behavior is set with :raise. # You would set :raise, as a behavior to raise errors and proactively report exceptions from deprecations. # -# source://activesupport//lib/active_support/deprecation/behaviors.rb#8 +# pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:8 class ActiveSupport::DeprecationException < ::StandardError; end # = Active Support Descendants Tracker @@ -5035,65 +4792,65 @@ class ActiveSupport::DeprecationException < ::StandardError; end # so if you know your code won't be executed on older rubies, including # +ActiveSupport::DescendantsTracker+ does not provide any benefit. # -# source://activesupport//lib/active_support/descendants_tracker.rb#14 +# pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:14 module ActiveSupport::DescendantsTracker - # source://activesupport//lib/active_support/descendants_tracker.rb#107 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:107 def descendants; end class << self - # source://activesupport//lib/active_support/descendants_tracker.rb#78 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:78 def clear(classes); end - # source://activesupport//lib/active_support/descendants_tracker.rb#102 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:102 def descendants(klass); end - # source://activesupport//lib/active_support/descendants_tracker.rb#69 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:69 def disable_clear!; end - # source://activesupport//lib/active_support/descendants_tracker.rb#89 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:89 def reject!(classes); end - # source://activesupport//lib/active_support/descendants_tracker.rb#98 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:98 def subclasses(klass); end end end -# source://activesupport//lib/active_support/descendants_tracker.rb#58 +# pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:58 module ActiveSupport::DescendantsTracker::ReloadedClassesFiltering - # source://activesupport//lib/active_support/descendants_tracker.rb#63 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:63 def descendants; end - # source://activesupport//lib/active_support/descendants_tracker.rb#59 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:59 def subclasses; end end +# On MRI `ObjectSpace::WeakMap` keys are weak references. +# So we can simply use WeakMap as a `Set`. # On TruffleRuby `ObjectSpace::WeakMap` keys are strong references. # So we use `object_id` as a key and the actual object as a value. # # JRuby for now doesn't have Class#descendant, but when it will, it will likely # have the same WeakMap semantic than Truffle so we future proof this as much as possible. # -# source://activesupport//lib/active_support/descendants_tracker.rb#20 +# pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:20 class ActiveSupport::DescendantsTracker::WeakSet < ::ObjectSpace::WeakMap - # source://activesupport//lib/active_support/descendants_tracker.rb#23 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:23 def <<(object); end - # source://activesupport//lib/active_support/descendants_tracker.rb#21 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:21 def to_a; end end -# source://activesupport//lib/active_support/digest.rb#6 +# pkg:gem/activesupport#lib/active_support/digest.rb:6 class ActiveSupport::Digest class << self - # source://activesupport//lib/active_support/digest.rb#8 + # pkg:gem/activesupport#lib/active_support/digest.rb:8 def hash_digest_class; end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/digest.rb#12 + # pkg:gem/activesupport#lib/active_support/digest.rb:12 def hash_digest_class=(klass); end - # source://activesupport//lib/active_support/digest.rb#17 + # pkg:gem/activesupport#lib/active_support/digest.rb:17 def hexdigest(arg); end end end @@ -5105,203 +4862,163 @@ end # # 1.month.ago # equivalent to Time.now.advance(months: -1) # -# source://activesupport//lib/active_support/duration.rb#14 +# pkg:gem/activesupport#lib/active_support/duration.rb:14 class ActiveSupport::Duration - # @return [Duration] a new instance of Duration - # - # source://activesupport//lib/active_support/duration.rb#226 + # pkg:gem/activesupport#lib/active_support/duration.rb:226 def initialize(value, parts, variable = T.unsafe(nil)); end # Returns the modulo of this Duration by another Duration or Numeric. # Numeric values are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#312 + # pkg:gem/activesupport#lib/active_support/duration.rb:312 def %(other); end # Multiplies this Duration by a Numeric and returns a new Duration. # - # source://activesupport//lib/active_support/duration.rb#287 + # pkg:gem/activesupport#lib/active_support/duration.rb:287 def *(other); end # Adds another Duration or a Numeric to this Duration. Numeric values # are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#268 + # pkg:gem/activesupport#lib/active_support/duration.rb:268 def +(other); end - # source://activesupport//lib/active_support/duration.rb#326 + # pkg:gem/activesupport#lib/active_support/duration.rb:326 def +@; end # Subtracts another Duration or a Numeric from this Duration. Numeric # values are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#282 + # pkg:gem/activesupport#lib/active_support/duration.rb:282 def -(other); end - # source://activesupport//lib/active_support/duration.rb#322 + # pkg:gem/activesupport#lib/active_support/duration.rb:322 def -@; end # Divides this Duration by a Numeric and returns a new Duration. # - # source://activesupport//lib/active_support/duration.rb#298 + # pkg:gem/activesupport#lib/active_support/duration.rb:298 def /(other); end # Compares one Duration with another or a Numeric to this Duration. # Numeric values are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#258 + # pkg:gem/activesupport#lib/active_support/duration.rb:258 def <=>(other); end # Returns +true+ if +other+ is also a Duration instance with the # same +value+, or if other == value. # - # source://activesupport//lib/active_support/duration.rb#341 + # pkg:gem/activesupport#lib/active_support/duration.rb:341 def ==(other); end - # source://activesupport//lib/active_support/duration.rb#481 + # pkg:gem/activesupport#lib/active_support/duration.rb:481 def _parts; end - # source://activesupport//lib/active_support/duration.rb#224 + # pkg:gem/activesupport#lib/active_support/duration.rb:224 def abs(&_arg0); end - # Calculates a new Time or Date that is as far in the future - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#440 + # pkg:gem/activesupport#lib/active_support/duration.rb:440 def after(time = T.unsafe(nil)); end # Calculates a new Time or Date that is as far in the past # as this Duration represents. # - # source://activesupport//lib/active_support/duration.rb#444 + # pkg:gem/activesupport#lib/active_support/duration.rb:444 def ago(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#459 + # pkg:gem/activesupport#lib/active_support/duration.rb:459 def as_json(options = T.unsafe(nil)); end - # Calculates a new Time or Date that is as far in the past - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#448 + # pkg:gem/activesupport#lib/active_support/duration.rb:448 def before(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#245 + # pkg:gem/activesupport#lib/active_support/duration.rb:245 def coerce(other); end - # source://activesupport//lib/active_support/duration.rb#467 + # pkg:gem/activesupport#lib/active_support/duration.rb:467 def encode_with(coder); end # Returns +true+ if +other+ is also a Duration instance, which has the # same parts as this one. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#426 + # pkg:gem/activesupport#lib/active_support/duration.rb:426 def eql?(other); end - # Calculates a new Time or Date that is as far in the future - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#439 + # pkg:gem/activesupport#lib/active_support/duration.rb:439 def from_now(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#430 + # pkg:gem/activesupport#lib/active_support/duration.rb:430 def hash; end # Returns the amount of days a duration covers as a float # # 12.hours.in_days # => 0.5 # - # source://activesupport//lib/active_support/duration.rb#399 + # pkg:gem/activesupport#lib/active_support/duration.rb:399 def in_days; end # Returns the amount of hours a duration covers as a float # # 1.day.in_hours # => 24.0 # - # source://activesupport//lib/active_support/duration.rb#392 + # pkg:gem/activesupport#lib/active_support/duration.rb:392 def in_hours; end # Returns the amount of minutes a duration covers as a float # # 1.day.in_minutes # => 1440.0 # - # source://activesupport//lib/active_support/duration.rb#385 + # pkg:gem/activesupport#lib/active_support/duration.rb:385 def in_minutes; end # Returns the amount of months a duration covers as a float # # 9.weeks.in_months # => 2.07 # - # source://activesupport//lib/active_support/duration.rb#413 + # pkg:gem/activesupport#lib/active_support/duration.rb:413 def in_months; end - # Returns the number of seconds that this Duration represents. - # - # 1.minute.to_i # => 60 - # 1.hour.to_i # => 3600 - # 1.day.to_i # => 86400 - # - # Note that this conversion makes some assumptions about the - # duration of some periods, e.g. months are always 1/12 of year - # and years are 365.2425 days: - # - # # equivalent to (1.year / 12).to_i - # 1.month.to_i # => 2629746 - # - # # equivalent to 365.2425.days.to_i - # 1.year.to_i # => 31556952 - # - # In such cases, Ruby's core - # Date[https://docs.ruby-lang.org/en/master/Date.html] and - # Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision - # date and time arithmetic. - # - # source://activesupport//lib/active_support/duration.rb#380 + # pkg:gem/activesupport#lib/active_support/duration.rb:380 def in_seconds; end # Returns the amount of weeks a duration covers as a float # # 2.months.in_weeks # => 8.696 # - # source://activesupport//lib/active_support/duration.rb#406 + # pkg:gem/activesupport#lib/active_support/duration.rb:406 def in_weeks; end # Returns the amount of years a duration covers as a float # # 30.days.in_years # => 0.082 # - # source://activesupport//lib/active_support/duration.rb#420 + # pkg:gem/activesupport#lib/active_support/duration.rb:420 def in_years; end - # source://activesupport//lib/active_support/duration.rb#463 + # pkg:gem/activesupport#lib/active_support/duration.rb:463 def init_with(coder); end - # source://activesupport//lib/active_support/duration.rb#450 + # pkg:gem/activesupport#lib/active_support/duration.rb:450 def inspect; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#335 + # pkg:gem/activesupport#lib/active_support/duration.rb:335 def instance_of?(klass); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#330 + # pkg:gem/activesupport#lib/active_support/duration.rb:330 def is_a?(klass); end # Build ISO 8601 Duration string for this duration. # The +precision+ parameter can be used to limit seconds' precision of duration. # - # source://activesupport//lib/active_support/duration.rb#473 + # pkg:gem/activesupport#lib/active_support/duration.rb:473 def iso8601(precision: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#333 + # pkg:gem/activesupport#lib/active_support/duration.rb:333 def kind_of?(klass); end - # source://activesupport//lib/active_support/duration.rb#224 + # pkg:gem/activesupport#lib/active_support/duration.rb:224 def negative?(&_arg0); end # Returns a copy of the parts hash that defines the duration. @@ -5309,19 +5026,19 @@ class ActiveSupport::Duration # 5.minutes.parts # => {:minutes=>5} # 3.years.parts # => {:years=>3} # - # source://activesupport//lib/active_support/duration.rb#241 + # pkg:gem/activesupport#lib/active_support/duration.rb:241 def parts; end - # source://activesupport//lib/active_support/duration.rb#224 + # pkg:gem/activesupport#lib/active_support/duration.rb:224 def positive?(&_arg0); end # Calculates a new Time or Date that is as far in the future # as this Duration represents. # - # source://activesupport//lib/active_support/duration.rb#436 + # pkg:gem/activesupport#lib/active_support/duration.rb:436 def since(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#224 + # pkg:gem/activesupport#lib/active_support/duration.rb:224 def to_f(&_arg0); end # Returns the number of seconds that this Duration represents. @@ -5345,7 +5062,7 @@ class ActiveSupport::Duration # Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision # date and time arithmetic. # - # source://activesupport//lib/active_support/duration.rb#377 + # pkg:gem/activesupport#lib/active_support/duration.rb:377 def to_i; end # Returns the amount of seconds a duration covers as a string. @@ -5353,48 +5070,37 @@ class ActiveSupport::Duration # # 1.day.to_s # => "86400" # - # source://activesupport//lib/active_support/duration.rb#353 + # pkg:gem/activesupport#lib/active_support/duration.rb:353 def to_s; end - # Calculates a new Time or Date that is as far in the past - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#447 + # pkg:gem/activesupport#lib/active_support/duration.rb:447 def until(time = T.unsafe(nil)); end - # Returns the value of attribute value. - # - # source://activesupport//lib/active_support/duration.rb#133 + # pkg:gem/activesupport#lib/active_support/duration.rb:133 def value; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#477 + # pkg:gem/activesupport#lib/active_support/duration.rb:477 def variable?; end - # source://activesupport//lib/active_support/duration.rb#224 + # pkg:gem/activesupport#lib/active_support/duration.rb:224 def zero?(&_arg0); end private - # source://activesupport//lib/active_support/duration.rb#516 + # pkg:gem/activesupport#lib/active_support/duration.rb:516 def method_missing(*_arg0, **_arg1, &_arg2); end - # @raise [TypeError] - # - # source://activesupport//lib/active_support/duration.rb#520 + # pkg:gem/activesupport#lib/active_support/duration.rb:520 def raise_type_error(other); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#512 + # pkg:gem/activesupport#lib/active_support/duration.rb:512 def respond_to_missing?(method, _); end - # source://activesupport//lib/active_support/duration.rb#486 + # pkg:gem/activesupport#lib/active_support/duration.rb:486 def sum(sign, time = T.unsafe(nil)); end class << self - # source://activesupport//lib/active_support/duration.rb#149 + # pkg:gem/activesupport#lib/active_support/duration.rb:149 def ===(other); end # Creates a new Duration from a seconds value that is converted @@ -5403,19 +5109,19 @@ class ActiveSupport::Duration # ActiveSupport::Duration.build(31556952).parts # => {:years=>1} # ActiveSupport::Duration.build(2716146).parts # => {:months=>1, :days=>1} # - # source://activesupport//lib/active_support/duration.rb#189 + # pkg:gem/activesupport#lib/active_support/duration.rb:189 def build(value); end - # source://activesupport//lib/active_support/duration.rb#167 + # pkg:gem/activesupport#lib/active_support/duration.rb:167 def days(value); end - # source://activesupport//lib/active_support/duration.rb#163 + # pkg:gem/activesupport#lib/active_support/duration.rb:163 def hours(value); end - # source://activesupport//lib/active_support/duration.rb#159 + # pkg:gem/activesupport#lib/active_support/duration.rb:159 def minutes(value); end - # source://activesupport//lib/active_support/duration.rb#175 + # pkg:gem/activesupport#lib/active_support/duration.rb:175 def months(value); end # Creates a new Duration from string formatted according to ISO 8601 Duration. @@ -5424,21 +5130,21 @@ class ActiveSupport::Duration # This method allows negative parts to be present in pattern. # If invalid string is provided, it will raise +ActiveSupport::Duration::ISO8601Parser::ParsingError+. # - # source://activesupport//lib/active_support/duration.rb#144 + # pkg:gem/activesupport#lib/active_support/duration.rb:144 def parse(iso8601duration); end - # source://activesupport//lib/active_support/duration.rb#155 + # pkg:gem/activesupport#lib/active_support/duration.rb:155 def seconds(value); end - # source://activesupport//lib/active_support/duration.rb#171 + # pkg:gem/activesupport#lib/active_support/duration.rb:171 def weeks(value); end - # source://activesupport//lib/active_support/duration.rb#179 + # pkg:gem/activesupport#lib/active_support/duration.rb:179 def years(value); end private - # source://activesupport//lib/active_support/duration.rb#217 + # pkg:gem/activesupport#lib/active_support/duration.rb:217 def calculate_total_seconds(parts); end end end @@ -5449,250 +5155,214 @@ end # # This parser allows negative parts to be present in pattern. # -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#12 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:12 class ActiveSupport::Duration::ISO8601Parser - # @return [ISO8601Parser] a new instance of ISO8601Parser - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#34 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:34 def initialize(string); end - # Returns the value of attribute mode. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def mode; end - # Sets the attribute mode - # - # @param value the value to set the attribute mode to. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def mode=(_arg0); end - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#41 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:41 def parse!; end - # Returns the value of attribute parts. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#31 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:31 def parts; end - # Returns the value of attribute scanner. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#31 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:31 def scanner; end - # Returns the value of attribute sign. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def sign; end - # Sets the attribute sign - # - # @param value the value to set the attribute sign to. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def sign=(_arg0); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#83 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:83 def finished?; end # Parses number which can be a float with either comma or period. # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#88 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:88 def number; end - # @raise [ParsingError] - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#96 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:96 def raise_parsing_error(reason = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#92 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:92 def scan(pattern); end # Checks for various semantic errors as stated in ISO 8601 standard. # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#101 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:101 def validate!; end end -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#17 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:17 ActiveSupport::Duration::ISO8601Parser::COMMA = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#22 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:22 ActiveSupport::Duration::ISO8601Parser::DATE_COMPONENT = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#28 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:28 ActiveSupport::Duration::ISO8601Parser::DATE_COMPONENTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#20 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:20 ActiveSupport::Duration::ISO8601Parser::DATE_MARKER = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#25 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:25 ActiveSupport::Duration::ISO8601Parser::DATE_TO_PART = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#16 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:16 ActiveSupport::Duration::ISO8601Parser::PERIOD = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#15 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:15 ActiveSupport::Duration::ISO8601Parser::PERIOD_OR_COMMA = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#13 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:13 class ActiveSupport::Duration::ISO8601Parser::ParsingError < ::ArgumentError; end -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#19 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:19 ActiveSupport::Duration::ISO8601Parser::SIGN_MARKER = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#23 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:23 ActiveSupport::Duration::ISO8601Parser::TIME_COMPONENT = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#29 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:29 ActiveSupport::Duration::ISO8601Parser::TIME_COMPONENTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#21 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:21 ActiveSupport::Duration::ISO8601Parser::TIME_MARKER = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#26 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:26 ActiveSupport::Duration::ISO8601Parser::TIME_TO_PART = T.let(T.unsafe(nil), Hash) # Serializes duration to string according to ISO 8601 Duration format. # -# source://activesupport//lib/active_support/duration/iso8601_serializer.rb#6 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:6 class ActiveSupport::Duration::ISO8601Serializer - # @return [ISO8601Serializer] a new instance of ISO8601Serializer - # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#9 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:9 def initialize(duration, precision: T.unsafe(nil)); end # Builds and returns output string. # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#15 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:15 def serialize; end private - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#55 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:55 def format_seconds(seconds); end # Return pair of duration's parts and whole duration sign. # Parts are summarized (as they can become repetitive due to addition, etc). # Zero parts are removed as not significant. # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#38 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:38 def normalize; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#51 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:51 def week_mixed_with_date?(parts); end end -# source://activesupport//lib/active_support/duration/iso8601_serializer.rb#7 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:7 ActiveSupport::Duration::ISO8601Serializer::DATE_COMPONENTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration.rb#130 +# pkg:gem/activesupport#lib/active_support/duration.rb:130 ActiveSupport::Duration::PARTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration.rb#120 +# length of a gregorian year (365.2425 days) +# +# pkg:gem/activesupport#lib/active_support/duration.rb:120 ActiveSupport::Duration::PARTS_IN_SECONDS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/duration.rb#115 +# pkg:gem/activesupport#lib/active_support/duration.rb:115 ActiveSupport::Duration::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#114 +# pkg:gem/activesupport#lib/active_support/duration.rb:114 ActiveSupport::Duration::SECONDS_PER_HOUR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#113 +# pkg:gem/activesupport#lib/active_support/duration.rb:113 ActiveSupport::Duration::SECONDS_PER_MINUTE = T.let(T.unsafe(nil), Integer) -# 1/12 of a gregorian year -# -# source://activesupport//lib/active_support/duration.rb#117 +# pkg:gem/activesupport#lib/active_support/duration.rb:117 ActiveSupport::Duration::SECONDS_PER_MONTH = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#116 +# pkg:gem/activesupport#lib/active_support/duration.rb:116 ActiveSupport::Duration::SECONDS_PER_WEEK = T.let(T.unsafe(nil), Integer) -# length of a gregorian year (365.2425 days) +# 1/12 of a gregorian year # -# source://activesupport//lib/active_support/duration.rb#118 +# pkg:gem/activesupport#lib/active_support/duration.rb:118 ActiveSupport::Duration::SECONDS_PER_YEAR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#15 +# pkg:gem/activesupport#lib/active_support/duration.rb:15 class ActiveSupport::Duration::Scalar < ::Numeric - # @return [Scalar] a new instance of Scalar - # - # source://activesupport//lib/active_support/duration.rb#19 + # pkg:gem/activesupport#lib/active_support/duration.rb:19 def initialize(value); end - # source://activesupport//lib/active_support/duration.rb#85 + # pkg:gem/activesupport#lib/active_support/duration.rb:85 def %(other); end - # source://activesupport//lib/active_support/duration.rb#66 + # pkg:gem/activesupport#lib/active_support/duration.rb:66 def *(other); end - # source://activesupport//lib/active_support/duration.rb#41 + # pkg:gem/activesupport#lib/active_support/duration.rb:41 def +(other); end - # source://activesupport//lib/active_support/duration.rb#53 + # pkg:gem/activesupport#lib/active_support/duration.rb:53 def -(other); end - # source://activesupport//lib/active_support/duration.rb#27 + # pkg:gem/activesupport#lib/active_support/duration.rb:27 def -@; end - # source://activesupport//lib/active_support/duration.rb#77 + # pkg:gem/activesupport#lib/active_support/duration.rb:77 def /(other); end - # source://activesupport//lib/active_support/duration.rb#31 + # pkg:gem/activesupport#lib/active_support/duration.rb:31 def <=>(other); end - # source://activesupport//lib/active_support/duration.rb#23 + # pkg:gem/activesupport#lib/active_support/duration.rb:23 def coerce(other); end - # source://activesupport//lib/active_support/duration.rb#17 + # pkg:gem/activesupport#lib/active_support/duration.rb:17 def to_f(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/duration.rb#17 + # pkg:gem/activesupport#lib/active_support/duration.rb:17 def to_i(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/duration.rb#17 + # pkg:gem/activesupport#lib/active_support/duration.rb:17 def to_s(*_arg0, **_arg1, &_arg2); end - # Returns the value of attribute value. - # - # source://activesupport//lib/active_support/duration.rb#16 + # pkg:gem/activesupport#lib/active_support/duration.rb:16 def value; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#93 + # pkg:gem/activesupport#lib/active_support/duration.rb:93 def variable?; end private - # source://activesupport//lib/active_support/duration.rb#98 + # pkg:gem/activesupport#lib/active_support/duration.rb:98 def calculate(op, other); end - # @raise [TypeError] - # - # source://activesupport//lib/active_support/duration.rb#108 + # pkg:gem/activesupport#lib/active_support/duration.rb:108 def raise_type_error(other); end end -# source://activesupport//lib/active_support/duration.rb#131 +# pkg:gem/activesupport#lib/active_support/duration.rb:131 ActiveSupport::Duration::VARIABLE_PARTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/editor.rb#6 +# pkg:gem/activesupport#lib/active_support/editor.rb:6 class ActiveSupport::Editor - # @return [Editor] a new instance of Editor - # - # source://activesupport//lib/active_support/editor.rb#48 + # pkg:gem/activesupport#lib/active_support/editor.rb:48 def initialize(url_pattern); end - # source://activesupport//lib/active_support/editor.rb#52 + # pkg:gem/activesupport#lib/active_support/editor.rb:52 def url_for(path, line); end class << self @@ -5700,10 +5370,10 @@ class ActiveSupport::Editor # First check for the `RAILS_EDITOR` environment variable, and if it's # missing, check for the `EDITOR` environment variable. # - # source://activesupport//lib/active_support/editor.rb#28 + # pkg:gem/activesupport#lib/active_support/editor.rb:28 def current; end - # source://activesupport//lib/active_support/editor.rb#39 + # pkg:gem/activesupport#lib/active_support/editor.rb:39 def find(name); end # Registers a URL pattern for opening file in a given editor. @@ -5713,10 +5383,10 @@ class ActiveSupport::Editor # # ActiveSupport::Editor.register("myeditor", "myeditor://%s:%d") # - # source://activesupport//lib/active_support/editor.rb#17 + # pkg:gem/activesupport#lib/active_support/editor.rb:17 def register(name, url_pattern, aliases: T.unsafe(nil)); end - # source://activesupport//lib/active_support/editor.rb#43 + # pkg:gem/activesupport#lib/active_support/editor.rb:43 def reset; end end end @@ -5745,11 +5415,9 @@ end # my_config.foo! # # => KeyError # -# source://activesupport//lib/active_support/encrypted_configuration.rb#35 +# pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:35 class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile - # @return [EncryptedConfiguration] a new instance of EncryptedConfiguration - # - # source://activesupport//lib/active_support/encrypted_configuration.rb#54 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:54 def initialize(config_path:, key_path:, env_key:, raise_if_missing_key:); end # Returns the decrypted content as a Hash with symbolized keys. @@ -5760,78 +5428,68 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile # my_config.config # # => { some_secret: 123, some_namespace: { another_secret: 789 } } # - # source://activesupport//lib/active_support/encrypted_configuration.rb#85 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:85 def config; end - # source://activesupport//lib/active_support/encrypted_configuration.rb#89 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:89 def inspect; end - # source://activesupport//lib/active_support/encrypted_configuration.rb#52 + # pkg:gem/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. # - # source://activesupport//lib/active_support/encrypted_configuration.rb#62 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:62 def read; end - # source://activesupport//lib/active_support/encrypted_configuration.rb#69 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:69 def validate!; end private - # source://activesupport//lib/active_support/encrypted_configuration.rb#94 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:94 def deep_symbolize_keys(hash); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#102 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:102 def deep_transform(hash); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#116 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:116 def deserialize(content); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#112 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:112 def options; end - # source://activesupport//lib/active_support/encrypted_configuration.rb#52 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:52 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/encrypted_configuration.rb#36 +# pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:36 class ActiveSupport::EncryptedConfiguration::InvalidContentError < ::RuntimeError - # @return [InvalidContentError] a new instance of InvalidContentError - # - # source://activesupport//lib/active_support/encrypted_configuration.rb#37 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:37 def initialize(content_path); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#41 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:41 def message; end end -# source://activesupport//lib/active_support/encrypted_configuration.rb#46 +# pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:46 class ActiveSupport::EncryptedConfiguration::InvalidKeyError < ::RuntimeError - # @return [InvalidKeyError] a new instance of InvalidKeyError - # - # source://activesupport//lib/active_support/encrypted_configuration.rb#47 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:47 def initialize(content_path, key); end end -# source://activesupport//lib/active_support/encrypted_file.rb#8 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:8 class ActiveSupport::EncryptedFile - # @return [EncryptedFile] a new instance of EncryptedFile - # - # source://activesupport//lib/active_support/encrypted_file.rb#42 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:42 def initialize(content_path:, key_path:, env_key:, raise_if_missing_key:); end - # source://activesupport//lib/active_support/encrypted_file.rb#83 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:83 def change(&block); end - # Returns the value of attribute content_path. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def content_path; end - # Returns the value of attribute env_key. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def env_key; end # Returns the encryption key, first trying the environment variable @@ -5839,25 +5497,19 @@ class ActiveSupport::EncryptedFile # If +raise_if_missing_key+ is true, raises MissingKeyError if the # environment variable is not set and the key file does not exist. # - # source://activesupport//lib/active_support/encrypted_file.rb#52 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:52 def key; end # Returns truthy if #key is truthy. Returns falsy otherwise. Unlike #key, # does not raise MissingKeyError when +raise_if_missing_key+ is true. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/encrypted_file.rb#58 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:58 def key?; end - # Returns the value of attribute key_path. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def key_path; end - # Returns the value of attribute raise_if_missing_key. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def raise_if_missing_key; end # Reads the file and returns the decrypted content. @@ -5869,129 +5521,111 @@ class ActiveSupport::EncryptedFile # - ActiveSupport::MessageEncryptor::InvalidMessage if the content cannot be # decrypted or verified. # - # source://activesupport//lib/active_support/encrypted_file.rb#70 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:70 def read; end - # source://activesupport//lib/active_support/encrypted_file.rb#78 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:78 def write(contents); end private - # @raise [InvalidKeyLengthError] - # - # source://activesupport//lib/active_support/encrypted_file.rb#129 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:129 def check_key_length; end - # source://activesupport//lib/active_support/encrypted_file.rb#108 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:108 def decrypt(contents); end - # source://activesupport//lib/active_support/encrypted_file.rb#103 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:103 def encrypt(contents); end - # source://activesupport//lib/active_support/encrypted_file.rb#112 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:112 def encryptor; end - # @raise [MissingKeyError] - # - # source://activesupport//lib/active_support/encrypted_file.rb#125 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:125 def handle_missing_key; end - # source://activesupport//lib/active_support/encrypted_file.rb#117 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:117 def read_env_key; end - # source://activesupport//lib/active_support/encrypted_file.rb#121 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:121 def read_key_file; end - # source://activesupport//lib/active_support/encrypted_file.rb#89 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:89 def writing(contents); end class << self - # source://activesupport//lib/active_support/encrypted_file.rb#35 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:35 def expected_key_length; end - # source://activesupport//lib/active_support/encrypted_file.rb#31 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:31 def generate_key; end end end -# source://activesupport//lib/active_support/encrypted_file.rb#29 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:29 ActiveSupport::EncryptedFile::CIPHER = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/encrypted_file.rb#23 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:23 class ActiveSupport::EncryptedFile::InvalidKeyLengthError < ::RuntimeError - # @return [InvalidKeyLengthError] a new instance of InvalidKeyLengthError - # - # source://activesupport//lib/active_support/encrypted_file.rb#24 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:24 def initialize; end end -# source://activesupport//lib/active_support/encrypted_file.rb#9 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:9 class ActiveSupport::EncryptedFile::MissingContentError < ::RuntimeError - # @return [MissingContentError] a new instance of MissingContentError - # - # source://activesupport//lib/active_support/encrypted_file.rb#10 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:10 def initialize(content_path); end end -# source://activesupport//lib/active_support/encrypted_file.rb#15 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:15 class ActiveSupport::EncryptedFile::MissingKeyError < ::RuntimeError - # @return [MissingKeyError] a new instance of MissingKeyError - # - # source://activesupport//lib/active_support/encrypted_file.rb#16 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:16 def initialize(key_path:, env_key:); end end -# source://activesupport//lib/active_support/core_ext/enumerable.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:4 module ActiveSupport::EnumerableCoreExt; end -# source://activesupport//lib/active_support/core_ext/enumerable.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:5 module ActiveSupport::EnumerableCoreExt::Constants private - # source://activesupport//lib/active_support/core_ext/enumerable.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:7 def const_missing(name); end end -# HACK: For performance reasons, Enumerable shouldn't have any constants of its own. -# So we move SoleItemExpectedError into ActiveSupport::EnumerableCoreExt. -# -# source://activesupport//lib/active_support/core_ext/enumerable.rb#25 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:25 ActiveSupport::EnumerableCoreExt::SoleItemExpectedError = Enumerable::SoleItemExpectedError -# source://activesupport//lib/active_support/environment_inquirer.rb#9 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:7 class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer - # @raise [ArgumentError] - # @return [EnvironmentInquirer] a new instance of EnvironmentInquirer - # - # source://activesupport//lib/active_support/environment_inquirer.rb#15 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:15 def initialize(env); end - # source://activesupport//lib/active_support/environment_inquirer.rb#28 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:28 def development?; end # Returns true if we're in the development or test environment. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/environment_inquirer.rb#36 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:36 def local?; end - # source://activesupport//lib/active_support/environment_inquirer.rb#28 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:28 def production?; end - # source://activesupport//lib/active_support/environment_inquirer.rb#28 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:28 def test?; end end # Optimization for the three default environments, so this inquirer doesn't need to rely on # the slower delegation through method_missing that StringInquirer would normally entail. # -# source://activesupport//lib/active_support/environment_inquirer.rb#10 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:10 ActiveSupport::EnvironmentInquirer::DEFAULT_ENVIRONMENTS = T.let(T.unsafe(nil), Array) # Environments that'll respond true for #local? # -# source://activesupport//lib/active_support/environment_inquirer.rb#13 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:13 ActiveSupport::EnvironmentInquirer::LOCAL_ENVIRONMENTS = T.let(T.unsafe(nil), Array) # = Active Support \Error Reporter @@ -6016,11 +5650,9 @@ ActiveSupport::EnvironmentInquirer::LOCAL_ENVIRONMENTS = T.let(T.unsafe(nil), Ar # # maybe_tags = Rails.error.handle(Redis::BaseError) { redis.get("tags") } # -# source://activesupport//lib/active_support/error_reporter.rb#26 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:26 class ActiveSupport::ErrorReporter - # @return [ErrorReporter] a new instance of ErrorReporter - # - # source://activesupport//lib/active_support/error_reporter.rb#35 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:35 def initialize(*subscribers, logger: T.unsafe(nil)); end # Add a middleware to modify the error context before it is sent to subscribers. @@ -6035,19 +5667,13 @@ class ActiveSupport::ErrorReporter # # Rails.error.add_middleware(-> (error, context) { context.merge({ foo: :bar }) }) # - # source://activesupport//lib/active_support/error_reporter.rb#218 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:218 def add_middleware(middleware); end - # Returns the value of attribute debug_mode. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def debug_mode; end - # Sets the attribute debug_mode - # - # @param value the value to set the attribute debug_mode to. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def debug_mode=(_arg0); end # Prevent a subscriber from being notified of errors for the @@ -6056,7 +5682,7 @@ class ActiveSupport::ErrorReporter # This can be helpful for error reporting service integrations, when they wish # to handle any errors higher in the stack. # - # source://activesupport//lib/active_support/error_reporter.rb#186 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:186 def disable(subscriber); end # Evaluates the given block, reporting and swallowing any unhandled error. @@ -6097,19 +5723,13 @@ class ActiveSupport::ErrorReporter # source of the error. Subscribers can use this value to ignore certain # errors. Defaults to "application". # - # source://activesupport//lib/active_support/error_reporter.rb#79 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:79 def handle(*error_classes, severity: T.unsafe(nil), context: T.unsafe(nil), fallback: T.unsafe(nil), source: T.unsafe(nil)); end - # Returns the value of attribute logger. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def logger; end - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def logger=(_arg0); end # Evaluates the given block, reporting and re-raising any unhandled error. @@ -6141,7 +5761,7 @@ class ActiveSupport::ErrorReporter # source of the error. Subscribers can use this value to ignore certain # errors. Defaults to "application". # - # source://activesupport//lib/active_support/error_reporter.rb#115 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:115 def record(*error_classes, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end # Report an error directly to subscribers. You can use this method when the @@ -6156,9 +5776,7 @@ class ActiveSupport::ErrorReporter # Otherwise you can use #unexpected to report an error which does accept a # string argument. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/error_reporter.rb#233 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:233 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 @@ -6167,7 +5785,7 @@ class ActiveSupport::ErrorReporter # # Rails.error.set_context(section: "checkout", user_id: @user.id) # - # source://activesupport//lib/active_support/error_reporter.rb#202 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:202 def set_context(*_arg0, **_arg1, &_arg2); end # Register a new error subscriber. The subscriber must respond to @@ -6176,7 +5794,7 @@ class ActiveSupport::ErrorReporter # # The +report+ method should never raise an error. # - # source://activesupport//lib/active_support/error_reporter.rb#162 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:162 def subscribe(subscriber); end # Either report the given error when in production, or raise it when in development or test. @@ -6202,7 +5820,7 @@ class ActiveSupport::ErrorReporter # # ... # end # - # source://activesupport//lib/active_support/error_reporter.rb#146 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:146 def unexpected(error, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end # Unregister an error subscriber. Accepts either a subscriber or a class. @@ -6214,63 +5832,61 @@ class ActiveSupport::ErrorReporter # # or # Rails.error.unsubscribe(MyErrorSubscriber) # - # source://activesupport//lib/active_support/error_reporter.rb#177 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:177 def unsubscribe(subscriber); end private - # source://activesupport//lib/active_support/error_reporter.rb#278 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:278 def ensure_backtrace(error); end end -# source://activesupport//lib/active_support/error_reporter.rb#29 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:29 ActiveSupport::ErrorReporter::DEFAULT_RESCUE = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/error_reporter.rb#28 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:28 ActiveSupport::ErrorReporter::DEFAULT_SOURCE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/error_reporter.rb#298 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:298 class ActiveSupport::ErrorReporter::ErrorContextMiddlewareStack - # @return [ErrorContextMiddlewareStack] a new instance of ErrorContextMiddlewareStack - # - # source://activesupport//lib/active_support/error_reporter.rb#299 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:299 def initialize; end # Run all middlewares in the stack # - # source://activesupport//lib/active_support/error_reporter.rb#313 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:313 def execute(error, handled:, severity:, context:, source:); end # Add a middleware to the error context stack. # - # source://activesupport//lib/active_support/error_reporter.rb#304 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:304 def use(middleware); end end -# source://activesupport//lib/active_support/error_reporter.rb#27 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:27 ActiveSupport::ErrorReporter::SEVERITIES = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/error_reporter.rb#33 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:33 class ActiveSupport::ErrorReporter::UnexpectedError < ::Exception; end -# source://activesupport//lib/active_support/event_reporter.rb#49 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:49 class ActiveSupport::EventContext class << self - # source://activesupport//lib/active_support/event_reporter.rb#65 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:65 def clear; end - # source://activesupport//lib/active_support/event_reporter.rb#54 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:54 def context; end - # source://activesupport//lib/active_support/event_reporter.rb#58 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:58 def set_context(context_hash); end end end -# source://activesupport//lib/active_support/event_reporter.rb#50 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:50 ActiveSupport::EventContext::EMPTY_CONTEXT = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/event_reporter.rb#51 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:51 ActiveSupport::EventContext::FIBER_KEY = T.let(T.unsafe(nil), Symbol) # = Active Support \Event Reporter @@ -6474,21 +6090,19 @@ ActiveSupport::EventContext::FIBER_KEY = T.let(T.unsafe(nil), Symbol) # # If an {event object}[rdoc-ref:EventReporter@Event+Objects] is given instead, subscribers will need to filter sensitive data themselves, e.g. with ActiveSupport::ParameterFilter. # -# source://activesupport//lib/active_support/event_reporter.rb#271 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:271 class ActiveSupport::EventReporter - # @return [EventReporter] a new instance of EventReporter - # - # source://activesupport//lib/active_support/event_reporter.rb#286 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:286 def initialize(*subscribers, raise_on_error: T.unsafe(nil)); end # Clears all context data. # - # source://activesupport//lib/active_support/event_reporter.rb#525 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:525 def clear_context; end # Returns the current context data. # - # source://activesupport//lib/active_support/event_reporter.rb#530 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:530 def context; end # Report an event only when in debug mode. For example: @@ -6503,18 +6117,16 @@ class ActiveSupport::EventReporter # # * +:kwargs+ - Additional payload data when using string/symbol event names. # - # source://activesupport//lib/active_support/event_reporter.rb#435 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:435 def debug(name_or_object, payload = T.unsafe(nil), caller_depth: T.unsafe(nil), **kwargs); end - # source://activesupport//lib/active_support/event_reporter.rb#276 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:276 def debug_mode=(_arg0); end # Check if debug mode is currently enabled. Debug mode is enabled on the reporter # via +with_debug+, and in local environments. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/event_reporter.rb#420 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:420 def debug_mode?; end # Reports an event to all registered subscribers. An event name and payload can be provided: @@ -6551,16 +6163,16 @@ class ActiveSupport::EventReporter # # * +:kwargs+ - Additional payload data when using string/symbol event names. # - # source://activesupport//lib/active_support/event_reporter.rb#363 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:363 def notify(name_or_object, payload = T.unsafe(nil), caller_depth: T.unsafe(nil), **kwargs); end # Sets whether to raise an error if a subscriber raises an error during # event emission, or when unexpected arguments are passed to +notify+. # - # source://activesupport//lib/active_support/event_reporter.rb#274 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:274 def raise_on_error=(_arg0); end - # source://activesupport//lib/active_support/event_reporter.rb#534 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:534 def reload_payload_filter; end # Sets context data that will be included with all events emitted by the reporter. @@ -6583,7 +6195,7 @@ class ActiveSupport::EventReporter # # source_location: { filepath: "path/to/file.rb", lineno: 123, label: "UserService#create" } # # } # - # source://activesupport//lib/active_support/event_reporter.rb#520 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:520 def set_context(context); end # Registers a new event subscriber. The subscriber must respond to @@ -6604,12 +6216,10 @@ class ActiveSupport::EventReporter # Rails.event.subscribe(subscriber) { |event| event[:name].start_with?("user.") } # Rails.event.subscribe(subscriber) { |event| event[:payload].is_a?(UserEvent) } # - # source://activesupport//lib/active_support/event_reporter.rb#311 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:311 def subscribe(subscriber, &filter); end - # :nodoc - # - # source://activesupport//lib/active_support/event_reporter.rb#278 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:278 def subscribers; end # Add tags to events to supply additional context. Tags operate in a stack-oriented manner, @@ -6665,7 +6275,7 @@ class ActiveSupport::EventReporter # # source_location: { filepath: "path/to/file.rb", lineno: 123, label: "UserService#create" } # # } # - # source://activesupport//lib/active_support/event_reporter.rb#497 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:497 def tagged(*args, **kwargs, &block); end # Unregister an event subscriber. Accepts either a subscriber or a class. @@ -6677,7 +6287,7 @@ class ActiveSupport::EventReporter # # or # Rails.event.unsubscribe(MyEventSubscriber) # - # source://activesupport//lib/active_support/event_reporter.rb#326 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:326 def unsubscribe(subscriber); end # Temporarily enables debug mode for the duration of the block. @@ -6687,141 +6297,127 @@ class ActiveSupport::EventReporter # Rails.event.debug("sql.query", { sql: "SELECT * FROM users" }) # end # - # source://activesupport//lib/active_support/event_reporter.rb#410 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:410 def with_debug; end private - # source://activesupport//lib/active_support/event_reporter.rb#544 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:544 def context_store; end - # source://activesupport//lib/active_support/event_reporter.rb#579 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:579 def handle_unexpected_args(name_or_object, payload, kwargs); end - # source://activesupport//lib/active_support/event_reporter.rb#548 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:548 def payload_filter; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/event_reporter.rb#540 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:540 def raise_on_error?; end - # source://activesupport//lib/active_support/event_reporter.rb#555 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:555 def resolve_name(name_or_object); end - # source://activesupport//lib/active_support/event_reporter.rb#564 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:564 def resolve_payload(name_or_object, payload, **kwargs); end class << self - # source://activesupport//lib/active_support/event_reporter.rb#281 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:281 def context_store; end - # source://activesupport//lib/active_support/event_reporter.rb#281 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:281 def context_store=(_arg0); end end end -# source://activesupport//lib/active_support/execution_context.rb#4 +# pkg:gem/activesupport#lib/active_support/execution_context.rb:4 module ActiveSupport::ExecutionContext class << self - # source://activesupport//lib/active_support/execution_context.rb#69 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:69 def []=(key, value); end - # source://activesupport//lib/active_support/execution_context.rb#40 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:40 def after_change(&block); end - # source://activesupport//lib/active_support/execution_context.rb#96 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:96 def clear; end - # source://activesupport//lib/active_support/execution_context.rb#100 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:100 def current_attributes_instances; end - # Returns the value of attribute nestable. - # - # source://activesupport//lib/active_support/execution_context.rb#38 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:38 def nestable; end - # Sets the attribute nestable - # - # @param value the value to set the attribute nestable to. - # - # source://activesupport//lib/active_support/execution_context.rb#38 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:38 def nestable=(_arg0); end - # source://activesupport//lib/active_support/execution_context.rb#87 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:87 def pop; end - # source://activesupport//lib/active_support/execution_context.rb#78 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:78 def push; end # Updates the execution context. If a block is given, it resets the provided keys to their # previous value once the block exits. # - # source://activesupport//lib/active_support/execution_context.rb#46 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:46 def set(**options); end - # source://activesupport//lib/active_support/execution_context.rb#74 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:74 def to_h; end private - # source://activesupport//lib/active_support/execution_context.rb#105 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:105 def record; end end end -# source://activesupport//lib/active_support/execution_context.rb#5 +# pkg:gem/activesupport#lib/active_support/execution_context.rb:5 class ActiveSupport::ExecutionContext::Record - # @return [Record] a new instance of Record - # - # source://activesupport//lib/active_support/execution_context.rb#8 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:8 def initialize; end - # Returns the value of attribute current_attributes_instances. - # - # source://activesupport//lib/active_support/execution_context.rb#6 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:6 def current_attributes_instances; end - # source://activesupport//lib/active_support/execution_context.rb#21 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:21 def pop; end - # source://activesupport//lib/active_support/execution_context.rb#14 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:14 def push; end - # Returns the value of attribute store. - # - # source://activesupport//lib/active_support/execution_context.rb#6 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:6 def store; end end -# source://activesupport//lib/active_support/execution_wrapper.rb#7 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:7 class ActiveSupport::ExecutionWrapper include ::ActiveSupport::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # source://activesupport//lib/active_support/execution_wrapper.rb#8 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#15 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _complete_callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#14 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#15 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _run_complete_callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#15 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _run_complete_callbacks!(&block); end - # source://activesupport//lib/active_support/execution_wrapper.rb#14 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_run_callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#14 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_run_callbacks!(&block); end - # source://activesupport//lib/active_support/execution_wrapper.rb#141 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:141 def complete; end # Complete this in-flight execution. This method *must* be called @@ -6829,51 +6425,49 @@ class ActiveSupport::ExecutionWrapper # # Where possible, prefer +wrap+. # - # source://activesupport//lib/active_support/execution_wrapper.rb#135 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:135 def complete!; end - # source://activesupport//lib/active_support/execution_wrapper.rb#127 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:127 def run; end - # source://activesupport//lib/active_support/execution_wrapper.rb#122 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:122 def run!; end private - # source://activesupport//lib/active_support/execution_wrapper.rb#146 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:146 def hook_state; end class << self - # source://activesupport//lib/active_support/execution_wrapper.rb#8 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#8 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __callbacks=(value); end - # source://activesupport//lib/active_support/execution_wrapper.rb#15 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _complete_callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#15 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _complete_callbacks=(value); end - # source://activesupport//lib/active_support/execution_wrapper.rb#14 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#14 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_callbacks=(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/execution_wrapper.rb#118 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:118 def active?; end - # source://activesupport//lib/active_support/execution_wrapper.rb#114 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:114 def active_key; end - # source://activesupport//lib/active_support/execution_wrapper.rb#110 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:110 def error_reporter; end - # source://activesupport//lib/active_support/execution_wrapper.rb#100 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:100 def perform; end # Register an object to be invoked during both the +run+ and @@ -6885,7 +6479,7 @@ class ActiveSupport::ExecutionWrapper # a preceding +to_run+ block; all ordinary +to_complete+ blocks are # invoked in that situation.) # - # source://activesupport//lib/active_support/execution_wrapper.rb#50 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:50 def register_hook(hook, outer: T.unsafe(nil)); end # Run this execution. @@ -6895,113 +6489,95 @@ class ActiveSupport::ExecutionWrapper # # Where possible, prefer +wrap+. # - # source://activesupport//lib/active_support/execution_wrapper.rb#66 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:66 def run!(reset: T.unsafe(nil)); end - # source://activesupport//lib/active_support/execution_wrapper.rb#21 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:21 def to_complete(*args, &block); end - # source://activesupport//lib/active_support/execution_wrapper.rb#17 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:17 def to_run(*args, &block); end # Perform the work in the supplied block as an execution. # - # source://activesupport//lib/active_support/execution_wrapper.rb#86 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:86 def wrap(source: T.unsafe(nil)); end private - # source://activesupport//lib/active_support/execution_wrapper.rb#8 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/execution_wrapper.rb#8 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __class_attr___callbacks=(new_value); end end end -# source://activesupport//lib/active_support/execution_wrapper.rb#32 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct - # source://activesupport//lib/active_support/execution_wrapper.rb#39 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:39 def after(target); end - # source://activesupport//lib/active_support/execution_wrapper.rb#33 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:33 def before(target); end - # Returns the value of attribute hook - # - # @return [Object] the current value of hook - # - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def hook; end - # Sets the attribute hook - # - # @param value [Object] the value to set the attribute hook to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def hook=(_); end class << self - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def [](*_arg0); end - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def inspect; end - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def keyword_init?; end - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def members; end - # source://activesupport//lib/active_support/execution_wrapper.rb#32 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def new(*_arg0); end end end -# source://activesupport//lib/active_support/execution_wrapper.rb#10 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:10 ActiveSupport::ExecutionWrapper::Null = T.let(T.unsafe(nil), Object) -# source://activesupport//lib/active_support/execution_wrapper.rb#25 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 class ActiveSupport::ExecutionWrapper::RunHook < ::Struct - # source://activesupport//lib/active_support/execution_wrapper.rb#26 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:26 def before(target); end - # Returns the value of attribute hook - # - # @return [Object] the current value of hook - # - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def hook; end - # Sets the attribute hook - # - # @param value [Object] the value to set the attribute hook to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def hook=(_); end class << self - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def [](*_arg0); end - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def inspect; end - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def keyword_init?; end - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def members; end - # source://activesupport//lib/active_support/execution_wrapper.rb#25 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def new(*_arg0); end end end -# source://activesupport//lib/active_support/executor.rb#6 +# pkg:gem/activesupport#lib/active_support/executor.rb:6 class ActiveSupport::Executor < ::ActiveSupport::ExecutionWrapper; end # = \File Update Checker @@ -7034,7 +6610,7 @@ class ActiveSupport::Executor < ::ActiveSupport::ExecutionWrapper; end # i18n_reloader.execute_if_updated # end # -# source://activesupport//lib/active_support/file_update_checker.rb#35 +# pkg:gem/activesupport#lib/active_support/file_update_checker.rb:35 class ActiveSupport::FileUpdateChecker # It accepts two parameters on initialization. The first is an array # of files and the second is an optional hash of directories. The hash must @@ -7045,40 +6621,36 @@ class ActiveSupport::FileUpdateChecker # changes. The array of files and list of directories cannot be changed # after FileUpdateChecker has been initialized. # - # @return [FileUpdateChecker] a new instance of FileUpdateChecker - # - # source://activesupport//lib/active_support/file_update_checker.rb#44 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:44 def initialize(files, dirs = T.unsafe(nil), &block); end # Executes the given block and updates the latest watched files and # timestamp. # - # source://activesupport//lib/active_support/file_update_checker.rb#85 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:85 def execute; end # Execute the block given if updated. # - # source://activesupport//lib/active_support/file_update_checker.rb#95 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:95 def execute_if_updated; end # Check if any of the entries were updated. If so, the watched and/or # updated_at values are cached until the block is executed via +execute+ # or +execute_if_updated+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/file_update_checker.rb#66 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:66 def updated?; end private - # source://activesupport//lib/active_support/file_update_checker.rb#160 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:160 def compile_ext(array); end - # source://activesupport//lib/active_support/file_update_checker.rb#147 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:147 def compile_glob(hash); end - # source://activesupport//lib/active_support/file_update_checker.rb#156 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:156 def escape(key); end # This method returns the maximum mtime of the files in +paths+, or +nil+ @@ -7089,36 +6661,36 @@ class ActiveSupport::FileUpdateChecker # healthy to consider this edge case because with mtimes in the future # reloading is not triggered. # - # source://activesupport//lib/active_support/file_update_checker.rb#125 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:125 def max_mtime(paths); end - # source://activesupport//lib/active_support/file_update_checker.rb#114 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:114 def updated_at(paths); end - # source://activesupport//lib/active_support/file_update_checker.rb#106 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:106 def watched; end end -# source://activesupport//lib/active_support/fork_tracker.rb#4 +# pkg:gem/activesupport#lib/active_support/fork_tracker.rb:4 module ActiveSupport::ForkTracker class << self - # source://activesupport//lib/active_support/fork_tracker.rb#31 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:31 def after_fork(&block); end - # source://activesupport//lib/active_support/fork_tracker.rb#19 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:19 def after_fork_callback; end - # source://activesupport//lib/active_support/fork_tracker.rb#27 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:27 def hook!; end - # source://activesupport//lib/active_support/fork_tracker.rb#36 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:36 def unregister(callback); end end end -# source://activesupport//lib/active_support/fork_tracker.rb#5 +# pkg:gem/activesupport#lib/active_support/fork_tracker.rb:5 module ActiveSupport::ForkTracker::CoreExt - # source://activesupport//lib/active_support/fork_tracker.rb#6 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:6 def _fork; end end @@ -7133,29 +6705,27 @@ end # ActiveSupport::Gzip.decompress(gzip) # # => "compress me!" # -# source://activesupport//lib/active_support/gzip.rb#17 +# pkg:gem/activesupport#lib/active_support/gzip.rb:17 module ActiveSupport::Gzip class << self # Compresses a string using gzip. # - # source://activesupport//lib/active_support/gzip.rb#32 + # pkg:gem/activesupport#lib/active_support/gzip.rb:32 def compress(source, level = T.unsafe(nil), strategy = T.unsafe(nil)); end # Decompresses a gzipped string. # - # source://activesupport//lib/active_support/gzip.rb#27 + # pkg:gem/activesupport#lib/active_support/gzip.rb:27 def decompress(source); end end end -# source://activesupport//lib/active_support/gzip.rb#18 +# pkg:gem/activesupport#lib/active_support/gzip.rb:18 class ActiveSupport::Gzip::Stream < ::StringIO - # @return [Stream] a new instance of Stream - # - # source://activesupport//lib/active_support/gzip.rb#19 + # pkg:gem/activesupport#lib/active_support/gzip.rb:19 def initialize(*_arg0); end - # source://activesupport//lib/active_support/gzip.rb#23 + # pkg:gem/activesupport#lib/active_support/gzip.rb:23 def close; end end @@ -7206,11 +6776,9 @@ end # # which will, in turn, require this file. # -# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#55 +# pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:55 class ActiveSupport::HashWithIndifferentAccess < ::Hash - # @return [HashWithIndifferentAccess] a new instance of HashWithIndifferentAccess - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#70 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:70 def initialize(constructor = T.unsafe(nil)); end # Same as Hash#[] where the key passed as argument can be @@ -7223,7 +6791,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters[:foo] # => 1 # counters[:zoo] # => nil # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#184 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:184 def [](key); end # Assigns a new value to the hash: @@ -7236,7 +6804,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # If the value is a Hash or contains one or multiple Hashes, they will be # converted to +HashWithIndifferentAccess+. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#101 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:101 def []=(key, value); end # Same as Hash#assoc where the key passed as argument can be @@ -7249,13 +6817,13 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters.assoc(:foo) # => ["foo", 1] # counters.assoc(:zoo) # => nil # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#197 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:197 def assoc(key); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#390 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:390 def compact; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#334 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:334 def deep_symbolize_keys; end # Same as Hash#default where the key passed as argument can be @@ -7269,12 +6837,12 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.default('foo') # => 'foo' # hash.default(:foo) # => 'foo' # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#239 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:239 def default(key = T.unsafe(nil)); end # Removes the specified key from the hash. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#317 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:317 def delete(key); end # Same as Hash#dig where the key passed as argument can be @@ -7287,7 +6855,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters.dig(:foo, :bar) # => 1 # counters.dig(:zoo) # => nil # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#224 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:224 def dig(*args); end # Returns a shallow copy of the hash. @@ -7299,7 +6867,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash[:a][:c] # => "c" # dup[:a][:c] # => "c" # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#280 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:280 def dup; end # Returns a hash with indifferent access that includes everything except given keys. @@ -7307,15 +6875,13 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.except(:a, "b") # => {c: 10}.with_indifferent_access # hash # => { a: "x", b: "y", c: 10 }.with_indifferent_access # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#325 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:325 def except(*keys); end # Returns +true+ so that Array#extract_options! finds members of # this class. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#58 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:58 def extractable_options?; end # Same as Hash#fetch where the key passed as argument can be @@ -7329,7 +6895,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters.fetch(:bar) { |key| 0 } # => 0 # counters.fetch(:zoo) # => KeyError: key not found: "zoo" # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#211 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:211 def fetch(key, *extras); end # Returns an array of the values at the specified indices, but also @@ -7342,31 +6908,13 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.fetch_values('a', 'c') { |key| 'z' } # => ["x", "z"] # hash.fetch_values('a', 'c') # => KeyError: key not found: "c" # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#267 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:267 def fetch_values(*indices, &block); end - # Checks the hash for a key matching the argument passed in: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['key'] = 'value' - # hash.key?(:key) # => true - # hash.key?('key') # => true - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#172 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:172 def has_key?(key); end - # Checks the hash for a key matching the argument passed in: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['key'] = 'value' - # hash.key?(:key) # => true - # hash.key?('key') # => true - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#171 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:171 def include?(key); end # Checks the hash for a key matching the argument passed in: @@ -7376,72 +6924,32 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.key?(:key) # => true # hash.key?('key') # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#167 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:167 def key?(key); end - # Checks the hash for a key matching the argument passed in: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['key'] = 'value' - # hash.key?(:key) # => true - # hash.key?('key') # => true - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#173 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:173 def member?(key); end # This method has the same semantics of +update+, except it does not # modify the receiver but rather returns a new hash with indifferent # access with the result of the merge. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#287 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:287 def merge(*hashes, &block); end - # Updates the receiver in-place, merging in the hashes passed as arguments: - # - # hash_1 = ActiveSupport::HashWithIndifferentAccess.new - # hash_1[:key] = 'value' - # - # hash_2 = ActiveSupport::HashWithIndifferentAccess.new - # hash_2[:key] = 'New Value!' - # - # hash_1.update(hash_2) # => {"key"=>"New Value!"} - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash.update({ "a" => 1 }, { "b" => 2 }) # => { "a" => 1, "b" => 2 } - # - # The arguments can be either an - # +ActiveSupport::HashWithIndifferentAccess+ or a regular +Hash+. - # In either case the merge respects the semantics of indifferent access. - # - # If the argument is a regular hash with keys +:key+ and "key" only one - # of the values end up in the receiver, but which one is unspecified. - # - # When given a block, the value for duplicated keys will be determined - # by the result of invoking the block with the duplicated key, the value - # in the receiver, and the value in +other_hash+. The rules for duplicated - # keys follow the semantics of indifferent access: - # - # hash_1[:key] = 10 - # hash_2['key'] = 12 - # hash_1.update(hash_2) { |key, old, new| old + new } # => {"key"=>22} - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#159 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:159 def merge!(*other_hashes, &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#66 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:66 def nested_under_indifferent_access; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#90 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:89 def regular_writer(_arg0, _arg1); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#342 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:342 def reject(*args, &block); end # Replaces the contents of this hash with other_hash. @@ -7449,7 +6957,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # h = { "a" => 100, "b" => 200 } # h.replace({ "c" => 300, "d" => 400 }) # => {"c"=>300, "d"=>400} # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#312 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:312 def replace(other_hash); end # Like +merge+ but the other way around: Merges the receiver into the @@ -7459,21 +6967,21 @@ 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#297 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:297 def reverse_merge(other_hash); end # Same semantics as +reverse_merge+ but modifies the receiver in-place. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#303 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:303 def reverse_merge!(other_hash); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#337 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:337 def select(*args, &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#380 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:380 def slice(*keys); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#385 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:385 def slice!(*keys); end # Assigns a new value to the hash: @@ -7487,33 +6995,33 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # converted to +HashWithIndifferentAccess+. unless `convert_value: false` # is set. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#115 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:115 def store(key, value, convert_value: T.unsafe(nil)); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#332 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:332 def symbolize_keys; end # Convert to a regular hash with string keys. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#395 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:395 def to_hash; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#333 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:333 def to_options; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#335 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:335 def to_options!; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#401 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:401 def to_proc; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#354 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:354 def transform_keys(hash = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#366 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:366 def transform_keys!(hash = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#347 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:347 def transform_values(&block); end # Updates the receiver in-place, merging in the hashes passed as arguments: @@ -7545,7 +7053,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash_2['key'] = 12 # hash_1.update(hash_2) { |key, old, new| old + new } # => {"key"=>22} # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#148 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:148 def update(*other_hashes, &block); end # Returns an array of the values at the specified indices: @@ -7555,87 +7063,69 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash[:b] = 'y' # hash.values_at('a', 'b') # => ["x", "y"] # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#253 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:253 def values_at(*keys); end - # Like +merge+ but the other way around: Merges the receiver into the - # argument and returns a new hash with indifferent access as result: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['a'] = nil - # hash.reverse_merge(a: 0, b: 1) # => {"a"=>nil, "b"=>1} - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#300 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:300 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#306 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:306 def with_defaults!(other_hash); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#62 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:62 def with_indifferent_access; end - # Returns a hash with indifferent access that includes everything except given keys. - # hash = { a: "x", b: "y", c: 10 }.with_indifferent_access - # hash.except(:a, "b") # => {c: 10}.with_indifferent_access - # hash # => { a: "x", b: "y", c: 10 }.with_indifferent_access - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#328 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:328 def without(*keys); end private - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#406 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:406 def cast(other); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#410 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:410 def convert_key(key); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#414 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:414 def convert_value(value, conversion: T.unsafe(nil)); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#427 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:427 def convert_value_to_hash(value); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#438 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:438 def copy_defaults(target); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#447 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:447 def update_with_single_argument(other_hash, block); end class << self - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#85 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:85 def [](*args); end end end -# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#352 +# pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:352 ActiveSupport::HashWithIndifferentAccess::NOT_GIVEN = T.let(T.unsafe(nil), Object) -# source://activesupport//lib/active_support/html_safe_translation.rb#4 +# pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:4 module ActiveSupport::HtmlSafeTranslation extend ::ActiveSupport::HtmlSafeTranslation - # @return [Boolean] - # - # source://activesupport//lib/active_support/html_safe_translation.rb#30 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:30 def html_safe_translation_key?(key); end - # source://activesupport//lib/active_support/html_safe_translation.rb#7 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:7 def translate(key, **options); end private - # source://activesupport//lib/active_support/html_safe_translation.rb#35 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:35 def html_escape_translation_options(options); end - # source://activesupport//lib/active_support/html_safe_translation.rb#48 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:48 def html_safe_translation(translation); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/html_safe_translation.rb#43 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:43 def i18n_option?(name); end end @@ -7652,7 +7142,7 @@ end # require it for your application or wish to define rules for languages other # than English, please correct or add them yourself (explained below). # -# source://activesupport//lib/active_support/inflector/inflections.rb#8 +# pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:8 module ActiveSupport::Inflector extend ::ActiveSupport::Inflector @@ -7673,7 +7163,7 @@ module ActiveSupport::Inflector # # camelize(underscore('SSLError')) # => "SslError" # - # source://activesupport//lib/active_support/inflector/methods.rb#70 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:70 def camelize(term, uppercase_first_letter = T.unsafe(nil)); end # Creates a class name from a plural table name like \Rails does for table @@ -7687,7 +7177,7 @@ module ActiveSupport::Inflector # # classify('calculus') # => "Calculu" # - # source://activesupport//lib/active_support/inflector/methods.rb#218 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:218 def classify(table_name); end # Tries to find a constant with the name specified in the argument string. @@ -7709,14 +7199,14 @@ module ActiveSupport::Inflector # NameError is raised when the name is not in CamelCase or the constant is # unknown. # - # source://activesupport//lib/active_support/inflector/methods.rb#289 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:289 def constantize(camel_cased_word); end # Replaces underscores with dashes in the string. # # dasherize('puni_puni') # => "puni-puni" # - # source://activesupport//lib/active_support/inflector/methods.rb#226 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:226 def dasherize(underscored_word); end # Removes the rightmost segment from the constant expression in the string. @@ -7729,7 +7219,7 @@ module ActiveSupport::Inflector # # See also #demodulize. # - # source://activesupport//lib/active_support/inflector/methods.rb#256 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:256 def deconstantize(path); end # Removes the module part from the expression in the string. @@ -7741,7 +7231,7 @@ module ActiveSupport::Inflector # # See also #deconstantize. # - # source://activesupport//lib/active_support/inflector/methods.rb#238 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:238 def demodulize(path); end # Converts the first character in the string to lowercase. @@ -7750,7 +7240,7 @@ module ActiveSupport::Inflector # downcase_first('I') # => "i" # downcase_first('') # => "" # - # source://activesupport//lib/active_support/inflector/methods.rb#175 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:175 def downcase_first(string); end # Creates a foreign key name from a class name. @@ -7761,7 +7251,7 @@ module ActiveSupport::Inflector # foreign_key('Message', false) # => "messageid" # foreign_key('Admin::Post') # => "post_id" # - # source://activesupport//lib/active_support/inflector/methods.rb#267 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:267 def foreign_key(class_name, separate_class_name_and_id_with_underscore = T.unsafe(nil)); end # Tweaks an attribute name for display to end users. @@ -7790,7 +7280,7 @@ module ActiveSupport::Inflector # # humanize('ssl_error') # => "SSL error" # - # source://activesupport//lib/active_support/inflector/methods.rb#135 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:135 def humanize(lower_case_and_underscored_word, capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end # Yields a singleton instance of Inflector::Inflections so you can specify @@ -7802,7 +7292,7 @@ module ActiveSupport::Inflector # inflect.uncountable 'rails' # end # - # source://activesupport//lib/active_support/inflector/inflections.rb#282 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:282 def inflections(locale = T.unsafe(nil)); end # Returns the suffix that should be added to a number to denote the position @@ -7815,7 +7305,7 @@ module ActiveSupport::Inflector # ordinal(-11) # => "th" # ordinal(-1021) # => "st" # - # source://activesupport//lib/active_support/inflector/methods.rb#334 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:334 def ordinal(number); end # Turns a number into an ordinal string used to denote the position in an @@ -7828,7 +7318,7 @@ module ActiveSupport::Inflector # ordinalize(-11) # => "-11th" # ordinalize(-1021) # => "-1021st" # - # source://activesupport//lib/active_support/inflector/methods.rb#347 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:347 def ordinalize(number); end # Replaces special characters in a string so that it may be used as part of @@ -7858,7 +7348,7 @@ module ActiveSupport::Inflector # By default, this parameter is set to nil and it will use # the configured I18n.locale. # - # source://activesupport//lib/active_support/inflector/transliterate.rb#123 + # pkg:gem/activesupport#lib/active_support/inflector/transliterate.rb:123 def parameterize(string, separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end # Returns the plural form of the word in the string. @@ -7874,7 +7364,7 @@ module ActiveSupport::Inflector # pluralize('CamelOctopus') # => "CamelOctopi" # pluralize('ley', :es) # => "leyes" # - # source://activesupport//lib/active_support/inflector/methods.rb#33 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:33 def pluralize(word, locale = T.unsafe(nil)); end # Tries to find a constant with the name specified in the argument string. @@ -7900,7 +7390,7 @@ module ActiveSupport::Inflector # safe_constantize('UnknownModule') # => nil # safe_constantize('UnknownModule::Foo::Bar') # => nil # - # source://activesupport//lib/active_support/inflector/methods.rb#315 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:315 def safe_constantize(camel_cased_word); end # The reverse of #pluralize, returns the singular form of a word in a @@ -7917,7 +7407,7 @@ module ActiveSupport::Inflector # singularize('CamelOctopi') # => "CamelOctopus" # singularize('leyes', :es) # => "ley" # - # source://activesupport//lib/active_support/inflector/methods.rb#50 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:50 def singularize(word, locale = T.unsafe(nil)); end # Creates the name of a table like \Rails does for models to table names. @@ -7927,7 +7417,7 @@ module ActiveSupport::Inflector # tableize('ham_and_egg') # => "ham_and_eggs" # tableize('fancyCategory') # => "fancy_categories" # - # source://activesupport//lib/active_support/inflector/methods.rb#204 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:204 def tableize(class_name); end # Capitalizes all the words and replaces some characters in the string to @@ -7944,7 +7434,7 @@ module ActiveSupport::Inflector # titleize('raiders_of_the_lost_ark') # => "Raiders Of The Lost Ark" # titleize('string_ending_with_id', keep_id_suffix: true) # => "String Ending With Id" # - # source://activesupport//lib/active_support/inflector/methods.rb#192 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:192 def titleize(word, keep_id_suffix: T.unsafe(nil)); end # Replaces non-ASCII characters with an ASCII approximation, or if none @@ -8002,9 +7492,7 @@ module ActiveSupport::Inflector # Transliteration is restricted to UTF-8, US-ASCII, and GB18030 strings. # Other encodings will raise an ArgumentError. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/inflector/transliterate.rb#64 + # pkg:gem/activesupport#lib/active_support/inflector/transliterate.rb:64 def transliterate(string, replacement = T.unsafe(nil), locale: T.unsafe(nil)); end # Makes an underscored, lowercase form from the expression in the string. @@ -8019,7 +7507,7 @@ module ActiveSupport::Inflector # # camelize(underscore('SSLError')) # => "SslError" # - # source://activesupport//lib/active_support/inflector/methods.rb#99 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:99 def underscore(camel_cased_word); end # Converts the first character in the string to uppercase. @@ -8028,7 +7516,7 @@ module ActiveSupport::Inflector # upcase_first('w') # => "W" # upcase_first('') # => "" # - # source://activesupport//lib/active_support/inflector/methods.rb#166 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:166 def upcase_first(string); end private @@ -8041,7 +7529,7 @@ module ActiveSupport::Inflector # apply_inflections('post', inflections.plurals, :en) # => "posts" # apply_inflections('posts', inflections.singulars, :en) # => "post" # - # source://activesupport//lib/active_support/inflector/methods.rb#376 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:376 def apply_inflections(word, rules, locale = T.unsafe(nil)); end # Mounts a regular expression, returned as a string to ease interpolation, @@ -8050,11 +7538,11 @@ module ActiveSupport::Inflector # const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?" # const_regexp("::") # => "::" # - # source://activesupport//lib/active_support/inflector/methods.rb#357 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:357 def const_regexp(camel_cased_word); end end -# source://activesupport//lib/active_support/inflector/transliterate.rb#8 +# pkg:gem/activesupport#lib/active_support/inflector/transliterate.rb:8 ActiveSupport::Inflector::ALLOWED_ENCODINGS_FOR_TRANSLITERATE = T.let(T.unsafe(nil), Array) # = Active Support \Inflections @@ -8078,11 +7566,9 @@ ActiveSupport::Inflector::ALLOWED_ENCODINGS_FOR_TRANSLITERATE = T.let(T.unsafe(n # singularization rules that is runs. This guarantees that your rules run # before any of the rules that may already have been loaded. # -# source://activesupport//lib/active_support/inflector/inflections.rb#31 +# pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:31 class ActiveSupport::Inflector::Inflections - # @return [Inflections] a new instance of Inflections - # - # source://activesupport//lib/active_support/inflector/inflections.rb#97 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:97 def initialize; end # Specifies a new acronym. An acronym must be specified as it will appear @@ -8135,18 +7621,16 @@ class ActiveSupport::Inflector::Inflections # underscore 'McDonald' # => 'mcdonald' # camelize 'mcdonald' # => 'McDonald' # - # source://activesupport//lib/active_support/inflector/inflections.rb#159 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:159 def acronym(word); end - # Returns the value of attribute acronyms. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#93 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:93 def acronyms; end - # source://activesupport//lib/active_support/inflector/inflections.rb#95 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:95 def acronyms_camelize_regex; end - # source://activesupport//lib/active_support/inflector/inflections.rb#95 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:95 def acronyms_underscore_regex; end # Clears the loaded inflections within a given scope (default is @@ -8157,7 +7641,7 @@ class ActiveSupport::Inflector::Inflections # clear :all # clear :plurals # - # source://activesupport//lib/active_support/inflector/inflections.rb#248 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:248 def clear(scope = T.unsafe(nil)); end # Specifies a humanized form of a string by a regular expression rule or @@ -8169,12 +7653,10 @@ class ActiveSupport::Inflector::Inflections # human /_cnt$/i, '\1_count' # human 'legacy_col_person_name', 'Name' # - # source://activesupport//lib/active_support/inflector/inflections.rb#237 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:237 def human(rule, replacement); end - # Returns the value of attribute humans. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#93 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:93 def humans; end # Specifies a new irregular that applies to both pluralization and @@ -8185,7 +7667,7 @@ class ActiveSupport::Inflector::Inflections # irregular 'cactus', 'cacti' # irregular 'person', 'people' # - # source://activesupport//lib/active_support/inflector/inflections.rb#191 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:191 def irregular(singular, plural); end # Specifies a new pluralization rule and its replacement. The rule can @@ -8193,12 +7675,10 @@ class ActiveSupport::Inflector::Inflections # always be a string that may include references to the matched data from # the rule. # - # source://activesupport//lib/active_support/inflector/inflections.rb#168 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:168 def plural(rule, replacement); end - # Returns the value of attribute plurals. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#93 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:93 def plurals; end # Specifies a new singularization rule and its replacement. The rule can @@ -8206,12 +7686,10 @@ class ActiveSupport::Inflector::Inflections # always be a string that may include references to the matched data from # the rule. # - # source://activesupport//lib/active_support/inflector/inflections.rb#178 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:178 def singular(rule, replacement); end - # Returns the value of attribute singulars. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#93 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:93 def singulars; end # Specifies words that are uncountable and should not be inflected. @@ -8220,78 +7698,72 @@ class ActiveSupport::Inflector::Inflections # uncountable 'money', 'information' # uncountable %w( money information rice ) # - # source://activesupport//lib/active_support/inflector/inflections.rb#225 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:225 def uncountable(*words); end - # Returns the value of attribute uncountables. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#93 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:93 def uncountables; end private - # source://activesupport//lib/active_support/inflector/inflections.rb#267 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:267 def define_acronym_regex_patterns; end # Private, for the test suite. # - # source://activesupport//lib/active_support/inflector/inflections.rb#103 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:103 def initialize_dup(orig); end class << self - # source://activesupport//lib/active_support/inflector/inflections.rb#77 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:77 def instance(locale = T.unsafe(nil)); end - # source://activesupport//lib/active_support/inflector/inflections.rb#83 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:83 def instance_or_fallback(locale); end end end -# source://activesupport//lib/active_support/inflector/inflections.rb#35 +# pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:35 class ActiveSupport::Inflector::Inflections::Uncountables include ::Enumerable - # @return [Uncountables] a new instance of Uncountables - # - # source://activesupport//lib/active_support/inflector/inflections.rb#40 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:40 def initialize; end - # source://activesupport//lib/active_support/inflector/inflections.rb#50 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:50 def <<(word); end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def ==(arg); end - # source://activesupport//lib/active_support/inflector/inflections.rb#61 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:61 def add(words); end - # source://activesupport//lib/active_support/inflector/inflections.rb#45 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:45 def delete(entry); end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def each(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def empty?(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/inflector/inflections.rb#57 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:57 def flatten; end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def pop(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def to_a(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def to_ary(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/inflector/inflections.rb#38 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:38 def to_s(*_arg0, **_arg1, &_arg2); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/inflector/inflections.rb#68 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:68 def uncountable?(str); end end @@ -8312,95 +7784,83 @@ end # h.girl # => 'Mary' # h.boy # => 'John' # -# source://activesupport//lib/active_support/ordered_options.rb#89 +# pkg:gem/activesupport#lib/active_support/ordered_options.rb:89 class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions - # @return [InheritableOptions] a new instance of InheritableOptions - # - # source://activesupport//lib/active_support/ordered_options.rb#90 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:90 def initialize(parent = T.unsafe(nil)); end - # source://activesupport//lib/active_support/ordered_options.rb#107 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:107 def ==(other); end - # source://activesupport//lib/active_support/ordered_options.rb#142 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:142 def each(&block); end - # source://activesupport//lib/active_support/ordered_options.rb#134 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:134 def inheritable_copy; end - # source://activesupport//lib/active_support/ordered_options.rb#111 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:111 def inspect; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#126 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:126 def key?(key); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#130 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:130 def overridden?(key); end - # source://activesupport//lib/active_support/ordered_options.rb#119 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:119 def pretty_print(pp); end - # source://activesupport//lib/active_support/ordered_options.rb#138 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:138 def to_a; end - # source://activesupport//lib/active_support/ordered_options.rb#103 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:103 def to_h; end - # source://activesupport//lib/active_support/ordered_options.rb#115 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:115 def to_s; end private - # source://activesupport//lib/active_support/ordered_options.rb#123 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:123 def own_key?(_arg0); end end -# source://activesupport//lib/active_support/isolated_execution_state.rb#4 +# pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:4 module ActiveSupport::IsolatedExecutionState class << self - # source://activesupport//lib/active_support/isolated_execution_state.rb#31 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:31 def [](key); end - # source://activesupport//lib/active_support/isolated_execution_state.rb#37 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:37 def []=(key, value); end - # source://activesupport//lib/active_support/isolated_execution_state.rb#50 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:50 def clear; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#54 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:54 def context; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#46 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:46 def delete(key); end - # Returns the value of attribute isolation_level. - # - # source://activesupport//lib/active_support/isolated_execution_state.rb#11 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:11 def isolation_level; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#13 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:13 def isolation_level=(level); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/isolated_execution_state.rb#42 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:42 def key?(key); end - # Returns the value of attribute scope. - # - # source://activesupport//lib/active_support/isolated_execution_state.rb#11 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:11 def scope; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#58 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:58 def share_with(other, except: T.unsafe(nil), &block); end end end -# source://activesupport//lib/active_support/json/decoding.rb#11 +# pkg:gem/activesupport#lib/active_support/json/decoding.rb:11 module ActiveSupport::JSON class << self # Parses a JSON string (JavaScript Object Notation) into a Ruby object. @@ -8411,40 +7871,10 @@ module ActiveSupport::JSON # ActiveSupport::JSON.decode("2.39") # # => 2.39 # - # source://activesupport//lib/active_support/json/decoding.rb#24 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:24 def decode(json, options = T.unsafe(nil)); end - # Dumps objects in JSON (JavaScript Object Notation). - # See http://www.json.org for more info. - # - # ActiveSupport::JSON.encode({ team: 'rails', players: '36' }) - # # => "{\"team\":\"rails\",\"players\":\"36\"}" - # - # By default, it 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 behavior 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\":\"<>&\"}" - # - # For performance reasons, you can set the +escape+ option to false, - # which will skip all escaping: - # - # ActiveSupport::JSON.encode({ key: "\u2028<>&" }, escape: false) - # # => "{\"key\":\"\u2028<>&\"}" - # - # source://activesupport//lib/active_support/json/encoding.rb#56 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:56 def dump(value, options = T.unsafe(nil)); end # Dumps objects in JSON (JavaScript Object Notation). @@ -8477,18 +7907,10 @@ module ActiveSupport::JSON # ActiveSupport::JSON.encode({ key: "\u2028<>&" }, escape: false) # # => "{\"key\":\"\u2028<>&\"}" # - # source://activesupport//lib/active_support/json/encoding.rb#47 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:47 def encode(value, options = T.unsafe(nil)); end - # Parses a JSON string (JavaScript Object Notation) into a Ruby object. - # See http://www.json.org for more info. - # - # ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}") - # # => {"team" => "rails", "players" => "36"} - # ActiveSupport::JSON.decode("2.39") - # # => 2.39 - # - # source://activesupport//lib/active_support/json/decoding.rb#33 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:33 def load(json, options = T.unsafe(nil)); end # Returns the class of the error that will be raised when there is an @@ -8502,43 +7924,43 @@ module ActiveSupport::JSON # Rails.logger.warn("Attempted to decode invalid JSON: #{some_string}") # end # - # source://activesupport//lib/active_support/json/decoding.rb#45 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:45 def parse_error; end private - # source://activesupport//lib/active_support/json/decoding.rb#50 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:50 def convert_dates_from(data); end end end -# source://activesupport//lib/active_support/json/decoding.rb#14 +# pkg:gem/activesupport#lib/active_support/json/decoding.rb:14 ActiveSupport::JSON::DATETIME_REGEX = T.let(T.unsafe(nil), Regexp) # matches YAML-formatted dates # -# source://activesupport//lib/active_support/json/decoding.rb#13 +# pkg:gem/activesupport#lib/active_support/json/decoding.rb:13 ActiveSupport::JSON::DATE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/json/encoding.rb#59 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:59 module ActiveSupport::JSON::Encoding class << self - # source://activesupport//lib/active_support/json/encoding.rb#239 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:239 def encode_without_escape(value); end - # source://activesupport//lib/active_support/json/encoding.rb#235 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:235 def encode_without_options(value); end # If true, encode >, <, & as escaped unicode sequences (e.g. > as \u003e) # as a safety measure. # - # source://activesupport//lib/active_support/json/encoding.rb#212 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:212 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#212 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:212 def escape_html_entities_in_json=(_arg0); end # If true, encode LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) @@ -8547,7 +7969,7 @@ module ActiveSupport::JSON::Encoding # but that changed in ECMAScript 2019. As such it's no longer a concern in # modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset. # - # source://activesupport//lib/active_support/json/encoding.rb#219 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:219 def escape_js_separators_in_json; end # If true, encode LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) @@ -8556,87 +7978,81 @@ module ActiveSupport::JSON::Encoding # but that changed in ECMAScript 2019. As such it's no longer a concern in # modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset. # - # source://activesupport//lib/active_support/json/encoding.rb#219 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:219 def escape_js_separators_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#227 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:227 def json_encoder; end - # source://activesupport//lib/active_support/json/encoding.rb#229 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:229 def json_encoder=(encoder); end # Sets the precision of encoded time values. # Defaults to 3 (equivalent to millisecond precision) # - # source://activesupport//lib/active_support/json/encoding.rb#223 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:223 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#223 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:223 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#208 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:208 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#208 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:208 def use_standard_json_time_format=(_arg0); end end end -# source://activesupport//lib/active_support/json/encoding.rb#63 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:63 ActiveSupport::JSON::Encoding::ESCAPED_CHARS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/json/encoding.rb#72 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:72 ActiveSupport::JSON::Encoding::FULL_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/json/encoding.rb#71 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:71 ActiveSupport::JSON::Encoding::HTML_ENTITIES_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/json/encoding.rb#150 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:150 class ActiveSupport::JSON::Encoding::JSONGemCoderEncoder - # @return [JSONGemCoderEncoder] a new instance of JSONGemCoderEncoder - # - # source://activesupport//lib/active_support/json/encoding.rb#171 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:171 def initialize(options = T.unsafe(nil)); end # Encode the given object into a JSON string # - # source://activesupport//lib/active_support/json/encoding.rb#183 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:183 def encode(value); end end -# source://activesupport//lib/active_support/json/encoding.rb#152 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:152 ActiveSupport::JSON::Encoding::JSONGemCoderEncoder::CODER = T.let(T.unsafe(nil), JSON::Coder) -# source://activesupport//lib/active_support/json/encoding.rb#151 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:151 ActiveSupport::JSON::Encoding::JSONGemCoderEncoder::JSON_NATIVE_TYPES = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/json/encoding.rb#75 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:75 class ActiveSupport::JSON::Encoding::JSONGemEncoder - # @return [JSONGemEncoder] a new instance of JSONGemEncoder - # - # source://activesupport//lib/active_support/json/encoding.rb#78 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:78 def initialize(options = T.unsafe(nil)); end # Encode the given object into a JSON string # - # source://activesupport//lib/active_support/json/encoding.rb#83 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:83 def encode(value); end - # Returns the value of attribute options. - # - # source://activesupport//lib/active_support/json/encoding.rb#76 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:76 def options; end private @@ -8655,22 +8071,22 @@ 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#118 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:118 def jsonify(value); end # Encode a "jsonified" Ruby data structure using the JSON gem # - # source://activesupport//lib/active_support/json/encoding.rb#143 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:143 def stringify(jsonified); end end -# source://activesupport//lib/active_support/json/encoding.rb#73 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:73 ActiveSupport::JSON::Encoding::JS_SEPARATORS_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/json/encoding.rb#60 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:60 ActiveSupport::JSON::Encoding::U2028 = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/json/encoding.rb#61 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:61 ActiveSupport::JSON::Encoding::U2029 = T.let(T.unsafe(nil), String) # = Key Generator @@ -8680,28 +8096,26 @@ ActiveSupport::JSON::Encoding::U2029 = T.let(T.unsafe(nil), String) # This lets \Rails applications have a single secure secret, but avoid reusing that # key in multiple incompatible contexts. # -# source://activesupport//lib/active_support/key_generator.rb#13 +# pkg:gem/activesupport#lib/active_support/key_generator.rb:13 class ActiveSupport::KeyGenerator - # @return [KeyGenerator] a new instance of KeyGenerator - # - # source://activesupport//lib/active_support/key_generator.rb#28 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:28 def initialize(secret, options = T.unsafe(nil)); end # Returns a derived key suitable for use. The default +key_size+ is chosen # to be compatible with the default settings of ActiveSupport::MessageVerifier. # i.e. OpenSSL::Digest::SHA1#block_length # - # source://activesupport//lib/active_support/key_generator.rb#41 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:41 def generate_key(salt, key_size = T.unsafe(nil)); end - # source://activesupport//lib/active_support/key_generator.rb#45 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:45 def inspect; end class << self - # source://activesupport//lib/active_support/key_generator.rb#23 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:23 def hash_digest_class; end - # source://activesupport//lib/active_support/key_generator.rb#15 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:15 def hash_digest_class=(klass); end end end @@ -8746,7 +8160,7 @@ end # end # end # -# source://activesupport//lib/active_support/lazy_load_hooks.rb#43 +# pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:43 module ActiveSupport::LazyLoadHooks # Declares a block that will be executed when a \Rails component is fully # loaded. If the component has already loaded, the block is executed @@ -8757,7 +8171,7 @@ module ActiveSupport::LazyLoadHooks # * :yield - Yields the object that run_load_hooks to +block+. # * :run_once - Given +block+ will run only once. # - # source://activesupport//lib/active_support/lazy_load_hooks.rb#60 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:60 def on_load(name, options = T.unsafe(nil), &block); end # Executes all blocks registered to +name+ via on_load, using +base+ as the @@ -8768,19 +8182,19 @@ module ActiveSupport::LazyLoadHooks # In the case of the above example, it will execute all hooks registered # for +:active_record+ within the class +ActiveRecord::Base+. # - # source://activesupport//lib/active_support/lazy_load_hooks.rb#75 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:75 def run_load_hooks(name, base = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/lazy_load_hooks.rb#91 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:91 def execute_hook(name, base, options, block); end - # source://activesupport//lib/active_support/lazy_load_hooks.rb#83 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:83 def with_execution_control(name, block, once); end class << self - # source://activesupport//lib/active_support/lazy_load_hooks.rb#44 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:44 def extended(base); end end end @@ -8840,49 +8254,45 @@ end # that all logs are flushed, and it is called in Rails::Rack::Logger after a # request finishes. # -# source://activesupport//lib/active_support/log_subscriber.rb#64 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:64 class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber - # @return [LogSubscriber] a new instance of LogSubscriber - # - # source://activesupport//lib/active_support/log_subscriber.rb#133 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:133 def initialize; end - # source://activesupport//lib/active_support/log_subscriber.rb#146 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:146 def call(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging; end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging=(val); end - # source://activesupport//lib/active_support/log_subscriber.rb#156 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:156 def debug(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#156 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:156 def error(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#152 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:152 def event_levels=(_arg0); end - # source://activesupport//lib/active_support/log_subscriber.rb#156 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:156 def fatal(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#156 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:156 def info(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#138 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:138 def logger; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/log_subscriber.rb#142 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:142 def silenced?(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#156 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:156 def unknown(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#156 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:156 def warn(progname = T.unsafe(nil), &block); end private @@ -8891,119 +8301,113 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber # by specifying bold, italic, or underline options. Inspired by Highline, # this method will automatically clear formatting at the end of the returned String. # - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:166 def color(text, color, mode_options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/log_subscriber.rb#180 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:180 def log_exception(name, e); end - # source://activesupport//lib/active_support/log_subscriber.rb#174 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:174 def mode_from(options); end class << self - # source://activesupport//lib/active_support/log_subscriber.rb#99 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:99 def attach_to(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging; end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging=(val); end # Flush all log_subscribers' logger. # - # source://activesupport//lib/active_support/log_subscriber.rb#112 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:112 def flush_all!; end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def log_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def log_levels=(value); end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def log_levels?; end - # source://activesupport//lib/active_support/log_subscriber.rb#107 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:107 def log_subscribers; end - # source://activesupport//lib/active_support/log_subscriber.rb#93 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:93 def logger; end - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://activesupport//lib/active_support/log_subscriber.rb#105 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:105 def logger=(_arg0); end private - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def __class_attr_log_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def __class_attr_log_levels=(new_value); end - # source://activesupport//lib/active_support/log_subscriber.rb#117 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:117 def fetch_public_methods(subscriber, inherit_all); end - # source://activesupport//lib/active_support/log_subscriber.rb#121 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:121 def set_event_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#127 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:127 def subscribe_log_level(method, level); end end end # ANSI sequence colors # -# source://activesupport//lib/active_support/log_subscriber.rb#74 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:74 ActiveSupport::LogSubscriber::BLACK = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#78 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:78 ActiveSupport::LogSubscriber::BLUE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#80 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:80 ActiveSupport::LogSubscriber::CYAN = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#76 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:76 ActiveSupport::LogSubscriber::GREEN = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#86 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:86 ActiveSupport::LogSubscriber::LEVEL_CHECKS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/log_subscriber.rb#79 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:79 ActiveSupport::LogSubscriber::MAGENTA = T.let(T.unsafe(nil), String) # ANSI sequence modes # -# source://activesupport//lib/active_support/log_subscriber.rb#66 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:66 ActiveSupport::LogSubscriber::MODES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/log_subscriber.rb#75 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:75 ActiveSupport::LogSubscriber::RED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#81 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:81 ActiveSupport::LogSubscriber::WHITE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#77 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:77 ActiveSupport::LogSubscriber::YELLOW = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/logger.rb#8 +# pkg:gem/activesupport#lib/active_support/logger.rb:8 class ActiveSupport::Logger < ::Logger include ::ActiveSupport::LoggerSilence include ::ActiveSupport::LoggerThreadSafeLevel - # @return [Logger] a new instance of Logger - # - # source://activesupport//lib/active_support/logger.rb#33 + # pkg:gem/activesupport#lib/active_support/logger.rb:33 def initialize(*args, **kwargs); end - # source://activesupport//lib/active_support/logger.rb#9 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer; end - # source://activesupport//lib/active_support/logger.rb#9 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer=(val); end class << self @@ -9017,69 +8421,65 @@ class ActiveSupport::Logger < ::Logger # ActiveSupport::Logger.logger_outputs_to?(logger, '/var/log/rails.log') # # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/logger.rb#20 + # pkg:gem/activesupport#lib/active_support/logger.rb:20 def logger_outputs_to?(logger, *sources); end - # source://activesupport//lib/active_support/logger.rb#47 + # pkg:gem/activesupport#lib/active_support/logger.rb:47 def normalize_sources(sources); end - # source://activesupport//lib/active_support/logger.rb#9 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer; end - # source://activesupport//lib/active_support/logger.rb#9 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer=(val); end end end # Simple formatter which only displays the message. # -# source://activesupport//lib/active_support/logger.rb#39 +# pkg:gem/activesupport#lib/active_support/logger.rb:39 class ActiveSupport::Logger::SimpleFormatter < ::Logger::Formatter # This method is invoked when a log event occurs # - # source://activesupport//lib/active_support/logger.rb#41 + # pkg:gem/activesupport#lib/active_support/logger.rb:41 def call(severity, timestamp, progname, msg); end end -# source://activesupport//lib/active_support/logger_silence.rb#8 +# pkg:gem/activesupport#lib/active_support/logger_silence.rb:8 module ActiveSupport::LoggerSilence extend ::ActiveSupport::Concern include ::ActiveSupport::LoggerThreadSafeLevel # Silences the logger for the duration of the block. # - # source://activesupport//lib/active_support/logger_silence.rb#17 + # pkg:gem/activesupport#lib/active_support/logger_silence.rb:17 def silence(severity = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/logger_thread_safe_level.rb#7 +# pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:7 module ActiveSupport::LoggerThreadSafeLevel extend ::ActiveSupport::Concern - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#10 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:10 def initialize(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#35 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:35 def level; end - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#15 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:15 def local_level; end - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#19 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:19 def local_level=(level); end # Change the thread-local level for the duration of the given block. # - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#40 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:40 def log_at(level); end private - # Returns the value of attribute local_level_key. - # - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#48 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:48 def local_level_key; end end @@ -9163,7 +8563,7 @@ end # # crypt.rotate old_secret, cipher: "aes-256-cbc" # -# source://activesupport//lib/active_support/message_encryptor.rb#90 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:90 class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec include ::ActiveSupport::Messages::Rotator @@ -9230,12 +8630,10 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # If you don't pass a truthy value, the default is set using # +config.active_support.use_message_serializer_for_metadata+. # - # @return [MessageEncryptor] a new instance of MessageEncryptor - # - # source://activesupport//lib/active_support/message_encryptor.rb#183 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:183 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/message_encryptor.rb#256 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:256 def create_message(value, **options); end # Decrypt and verify a message. We need to verify the message in order to @@ -9255,7 +8653,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # encryptor.decrypt_and_verify(message) # => "bye" # encryptor.decrypt_and_verify(message, purpose: "greeting") # => nil # - # source://activesupport//lib/active_support/message_encryptor.rb#241 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:241 def decrypt_and_verify(message, **options); end # Encrypt and sign a message. We need to sign the message in order to avoid @@ -9286,105 +8684,101 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # specified when verifying the message; otherwise, verification will fail. # (See #decrypt_and_verify.) # - # source://activesupport//lib/active_support/message_encryptor.rb#220 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:220 def encrypt_and_sign(value, **options); end - # source://activesupport//lib/active_support/message_encryptor.rb#264 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:264 def inspect; end - # source://activesupport//lib/active_support/message_encryptor.rb#260 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:260 def read_message(message, on_rotation: T.unsafe(nil), **options); end private - # Returns the value of attribute aead_mode. - # - # source://activesupport//lib/active_support/message_encryptor.rb#371 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:371 def aead_mode; end - # Returns the value of attribute aead_mode. - # - # source://activesupport//lib/active_support/message_encryptor.rb#372 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:372 def aead_mode?; end - # source://activesupport//lib/active_support/message_encryptor.rb#295 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:295 def decrypt(encrypted_message); end - # source://activesupport//lib/active_support/message_encryptor.rb#277 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:277 def encrypt(data); end - # source://activesupport//lib/active_support/message_encryptor.rb#340 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:340 def extract_part(encrypted_message, rindex, length); end - # source://activesupport//lib/active_support/message_encryptor.rb#350 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:350 def extract_parts(encrypted_message); end - # source://activesupport//lib/active_support/message_encryptor.rb#336 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:336 def join_parts(parts); end - # source://activesupport//lib/active_support/message_encryptor.rb#320 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:320 def length_after_encode(length_before_encode); end - # source://activesupport//lib/active_support/message_encryptor.rb#332 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:332 def length_of_encoded_auth_tag; end - # source://activesupport//lib/active_support/message_encryptor.rb#328 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:328 def length_of_encoded_iv; end - # source://activesupport//lib/active_support/message_encryptor.rb#367 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:367 def new_cipher; end - # source://activesupport//lib/active_support/message_encryptor.rb#269 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:269 def sign(data); end - # source://activesupport//lib/active_support/message_encryptor.rb#273 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:273 def verify(data); end class << self - # source://activesupport//lib/active_support/message_encryptor.rb#96 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:96 def default_cipher; end # Given a cipher, returns the key length of the cipher to help generate the key of desired size # - # source://activesupport//lib/active_support/message_encryptor.rb#252 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:252 def key_len(cipher = T.unsafe(nil)); end - # source://activesupport//lib/active_support/message_encryptor.rb#93 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:93 def use_authenticated_message_encryption; end - # source://activesupport//lib/active_support/message_encryptor.rb#93 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:93 def use_authenticated_message_encryption=(val); end end end -# source://activesupport//lib/active_support/message_encryptor.rb#118 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:118 ActiveSupport::MessageEncryptor::AUTH_TAG_LENGTH = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/message_encryptor.rb#115 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:115 class ActiveSupport::MessageEncryptor::InvalidMessage < ::StandardError; end -# source://activesupport//lib/active_support/message_encryptor.rb#105 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:105 module ActiveSupport::MessageEncryptor::NullSerializer class << self - # source://activesupport//lib/active_support/message_encryptor.rb#110 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:110 def dump(value); end - # source://activesupport//lib/active_support/message_encryptor.rb#106 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:106 def load(value); end end end -# source://activesupport//lib/active_support/message_encryptor.rb#116 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:116 ActiveSupport::MessageEncryptor::OpenSSLCipherError = OpenSSL::Cipher::CipherError -# source://activesupport//lib/active_support/message_encryptor.rb#119 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:119 ActiveSupport::MessageEncryptor::SEPARATOR = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/message_encryptors.rb#6 +# pkg:gem/activesupport#lib/active_support/message_encryptors.rb:6 class ActiveSupport::MessageEncryptors < ::ActiveSupport::Messages::RotationCoordinator private - # source://activesupport//lib/active_support/message_encryptors.rb#187 + # pkg:gem/activesupport#lib/active_support/message_encryptors.rb:187 def build(salt, secret_generator:, secret_generator_options:, **options); end end @@ -9488,7 +8882,7 @@ end # # verifier.rotate(old_secret, digest: "SHA256", serializer: Marshal) # -# source://activesupport//lib/active_support/message_verifier.rb#110 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:110 class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec include ::ActiveSupport::Messages::Rotator @@ -9542,13 +8936,10 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # If you don't pass a truthy value, the default is set using # +config.active_support.use_message_serializer_for_metadata+. # - # @raise [ArgumentError] - # @return [MessageVerifier] a new instance of MessageVerifier - # - # source://activesupport//lib/active_support/message_verifier.rb#167 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:167 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/message_verifier.rb#310 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:310 def create_message(value, **options); end # Generates a signed message for the provided value. @@ -9586,13 +8977,13 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # specified when verifying the message; otherwise, verification will fail. # (See #verified and #verify.) # - # source://activesupport//lib/active_support/message_verifier.rb#306 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:306 def generate(value, **options); end - # source://activesupport//lib/active_support/message_verifier.rb#318 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:318 def inspect; end - # source://activesupport//lib/active_support/message_verifier.rb#314 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:314 def read_message(message, on_rotation: T.unsafe(nil), **options); end # Checks if a signed message could have been generated by signing an object @@ -9605,9 +8996,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # tampered_message = signed_message.chop # editing the message invalidates the signature # verifier.valid_message?(tampered_message) # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/message_verifier.rb#183 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:183 def valid_message?(message); end # Decodes the signed message using the +MessageVerifier+'s secret. @@ -9647,7 +9036,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # verifier.verified(message) # => "bye" # verifier.verified(message, purpose: "greeting") # => nil # - # source://activesupport//lib/active_support/message_verifier.rb#224 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:224 def verified(message, **options); end # Decodes the signed message using the +MessageVerifier+'s secret. @@ -9678,356 +9067,313 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # verifier.verify(message) # => "bye" # verifier.verify(message, purpose: "greeting") # => raises InvalidSignature # - # source://activesupport//lib/active_support/message_verifier.rb#262 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:262 def verify(message, **options); end private - # source://activesupport//lib/active_support/message_verifier.rb#323 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:323 def decode(encoded, url_safe: T.unsafe(nil)); end - # source://activesupport//lib/active_support/message_verifier.rb#356 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:356 def digest_length_in_hex; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/message_verifier.rb#373 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:373 def digest_matches_data?(digest, data); end - # source://activesupport//lib/active_support/message_verifier.rb#335 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:335 def extract_encoded(signed); end - # source://activesupport//lib/active_support/message_verifier.rb#352 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:352 def generate_digest(data); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/message_verifier.rb#364 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:364 def separator_at?(signed_message, index); end - # source://activesupport//lib/active_support/message_verifier.rb#368 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:368 def separator_index_for(signed_message); end - # source://activesupport//lib/active_support/message_verifier.rb#330 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:330 def sign_encoded(encoded); end end -# source://activesupport//lib/active_support/message_verifier.rb#113 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:113 class ActiveSupport::MessageVerifier::InvalidSignature < ::StandardError; end -# source://activesupport//lib/active_support/message_verifier.rb#115 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:115 ActiveSupport::MessageVerifier::SEPARATOR = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/message_verifier.rb#116 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:116 ActiveSupport::MessageVerifier::SEPARATOR_LENGTH = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/message_verifiers.rb#6 +# pkg:gem/activesupport#lib/active_support/message_verifiers.rb:6 class ActiveSupport::MessageVerifiers < ::ActiveSupport::Messages::RotationCoordinator private - # source://activesupport//lib/active_support/message_verifiers.rb#185 + # pkg:gem/activesupport#lib/active_support/message_verifiers.rb:185 def build(salt, secret_generator:, secret_generator_options:, **options); end end -# source://activesupport//lib/active_support/messages/rotation_coordinator.rb#6 +# pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:6 module ActiveSupport::Messages; end -# source://activesupport//lib/active_support/messages/codec.rb#9 +# pkg:gem/activesupport#lib/active_support/messages/codec.rb:9 class ActiveSupport::Messages::Codec include ::ActiveSupport::Messages::Metadata - # @return [Codec] a new instance of Codec - # - # source://activesupport//lib/active_support/messages/codec.rb#15 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:15 def initialize(**options); end private - # source://activesupport//lib/active_support/messages/codec.rb#45 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:45 def catch_and_ignore(throwable, &block); end - # source://activesupport//lib/active_support/messages/codec.rb#52 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:52 def catch_and_raise(throwable, as: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/messages/codec.rb#29 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:29 def decode(encoded, url_safe: T.unsafe(nil)); end - # source://activesupport//lib/active_support/messages/codec.rb#39 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:39 def deserialize(serialized); end - # source://activesupport//lib/active_support/messages/codec.rb#25 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:25 def encode(data, url_safe: T.unsafe(nil)); end - # source://activesupport//lib/active_support/messages/codec.rb#35 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:35 def serialize(data); end - # Returns the value of attribute serializer. - # - # source://activesupport//lib/active_support/messages/codec.rb#23 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:23 def serializer; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/codec.rb#60 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:60 def use_message_serializer_for_metadata?; end class << self - # source://activesupport//lib/active_support/messages/codec.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def default_serializer; end - # source://activesupport//lib/active_support/messages/codec.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def default_serializer=(value); end private - # source://activesupport//lib/active_support/messages/codec.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def __class_attr_default_serializer; end - # source://activesupport//lib/active_support/messages/codec.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def __class_attr_default_serializer=(new_value); end end end -# source://activesupport//lib/active_support/messages/metadata.rb#9 +# pkg:gem/activesupport#lib/active_support/messages/metadata.rb:9 module ActiveSupport::Messages::Metadata private - # source://activesupport//lib/active_support/messages/metadata.rb#128 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:128 def deserialize_from_json(serialized); end - # source://activesupport//lib/active_support/messages/metadata.rb#141 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:141 def deserialize_from_json_safe_string(string); end - # source://activesupport//lib/active_support/messages/metadata.rb#43 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:43 def deserialize_with_metadata(message, **expected_metadata); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/metadata.rb#96 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:96 def dual_serialized_metadata_envelope_json?(string); end - # source://activesupport//lib/active_support/messages/metadata.rb#78 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:78 def extract_from_metadata_envelope(envelope, purpose: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/metadata.rb#92 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:92 def metadata_envelope?(object); end - # source://activesupport//lib/active_support/messages/metadata.rb#114 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:114 def parse_expiry(expires_at); end - # source://activesupport//lib/active_support/messages/metadata.rb#100 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:100 def pick_expiry(expires_at, expires_in); end - # source://activesupport//lib/active_support/messages/metadata.rb#124 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:124 def serialize_to_json(data); end - # source://activesupport//lib/active_support/messages/metadata.rb#137 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:137 def serialize_to_json_safe_string(data); end - # source://activesupport//lib/active_support/messages/metadata.rb#30 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:30 def serialize_with_metadata(data, **metadata); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/metadata.rb#60 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:60 def use_message_serializer_for_metadata?; end - # source://activesupport//lib/active_support/messages/metadata.rb#64 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:64 def wrap_in_metadata_envelope(hash, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end - # source://activesupport//lib/active_support/messages/metadata.rb#71 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:71 def wrap_in_metadata_legacy_envelope(hash, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end class << self - # source://activesupport//lib/active_support/messages/metadata.rb#10 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:10 def use_message_serializer_for_metadata; end - # source://activesupport//lib/active_support/messages/metadata.rb#10 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:10 def use_message_serializer_for_metadata=(_arg0); end end end -# source://activesupport//lib/active_support/messages/metadata.rb#12 +# pkg:gem/activesupport#lib/active_support/messages/metadata.rb:12 ActiveSupport::Messages::Metadata::ENVELOPE_SERIALIZERS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/messages/metadata.rb#19 +# pkg:gem/activesupport#lib/active_support/messages/metadata.rb:19 ActiveSupport::Messages::Metadata::TIMESTAMP_SERIALIZERS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/messages/rotation_configuration.rb#5 +# pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:5 class ActiveSupport::Messages::RotationConfiguration - # @return [RotationConfiguration] a new instance of RotationConfiguration - # - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#8 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:8 def initialize; end - # Returns the value of attribute encrypted. - # - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#6 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:6 def encrypted; end - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:12 def rotate(kind, *args, **options); end - # Returns the value of attribute signed. - # - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#6 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:6 def signed; end end -# source://activesupport//lib/active_support/messages/rotation_coordinator.rb#7 +# pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:7 class ActiveSupport::Messages::RotationCoordinator - # @raise [ArgumentError] - # @return [RotationCoordinator] a new instance of RotationCoordinator - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#10 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:10 def initialize(&secret_generator); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#18 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:18 def [](salt); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#22 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:22 def []=(salt, codec); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#48 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:48 def clear_rotations; end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#54 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:54 def on_rotation(&callback); end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#35 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:35 def prepend(**options, &block); end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#26 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:26 def rotate(**options, &block); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#44 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:44 def rotate_defaults; end - # Returns the value of attribute transitional. - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#8 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:8 def transitional; end - # Sets the attribute transitional - # - # @param value the value to set the attribute transitional to. - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#8 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:8 def transitional=(_arg0); end private - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#97 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:97 def build(salt, secret_generator:, secret_generator_options:, **options); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#85 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:85 def build_with_rotations(salt); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#60 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:60 def changing_configuration!; end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#71 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:71 def normalize_options(options); end end -# source://activesupport//lib/active_support/messages/rotator.rb#5 +# pkg:gem/activesupport#lib/active_support/messages/rotator.rb:5 module ActiveSupport::Messages::Rotator - # source://activesupport//lib/active_support/messages/rotator.rb#6 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:6 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#23 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:23 def fall_back_to(fallback); end - # source://activesupport//lib/active_support/messages/rotator.rb#18 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:18 def on_rotation(&on_rotation); end - # source://activesupport//lib/active_support/messages/rotator.rb#28 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:28 def read_message(message, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#14 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:14 def rotate(*args, **options); end private - # source://activesupport//lib/active_support/messages/rotator.rb#54 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:54 def build_rotation(*args, **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#58 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:58 def catch_rotation_error(&block); end - # source://activesupport//lib/active_support/messages/rotator.rb#48 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:48 def initialize_dup(*_arg0); end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#8 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:8 module ActiveSupport::Messages::SerializerWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#17 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:17 def load(dumped); end private - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#33 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:33 def detect_format(dumped); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#44 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:44 def fallback?(format); end class << self - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#9 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:9 def [](format); end end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#48 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:48 module ActiveSupport::Messages::SerializerWithFallback::AllowMarshal private - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#50 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:50 def fallback?(format); end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#78 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:78 module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback include ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#90 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:90 def _load(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#86 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:86 def dump(object); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#96 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:96 def dumped?(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#82 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:82 def format; end private - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#101 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:101 def detect_format(dumped); end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#94 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:94 ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback::JSON_START_WITH = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#107 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:107 module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallbackAllowMarshal include ::ActiveSupport::Messages::SerializerWithFallback include ::ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback @@ -10038,59 +9384,53 @@ module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallbackAllowMar extend ::ActiveSupport::Messages::SerializerWithFallback::JsonWithFallbackAllowMarshal end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#55 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:55 module ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback include ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#67 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:67 def _load(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#63 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:63 def dump(object); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#73 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:73 def dumped?(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#59 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:59 def format; end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#71 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:71 ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#113 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:113 module ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback include ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#125 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:125 def _load(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#121 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:121 def dump(object); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#129 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:129 def dumped?(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#117 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:117 def format; end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#134 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:134 def available?; end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#143 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:143 module ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallbackAllowMarshal include ::ActiveSupport::Messages::SerializerWithFallback include ::ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback @@ -10101,15 +9441,15 @@ module ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallbackA extend ::ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallbackAllowMarshal end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#149 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:149 ActiveSupport::Messages::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/multibyte.rb#4 +# pkg:gem/activesupport#lib/active_support/multibyte.rb:4 module ActiveSupport::Multibyte class << self # Returns the current proxy class. # - # source://activesupport//lib/active_support/multibyte.rb#23 + # pkg:gem/activesupport#lib/active_support/multibyte.rb:23 def proxy_class; end # The proxy class returned when calling mb_chars. You can use this accessor @@ -10119,7 +9459,7 @@ module ActiveSupport::Multibyte # # ActiveSupport::Multibyte.proxy_class = CharsForUTF32 # - # source://activesupport//lib/active_support/multibyte.rb#14 + # pkg:gem/activesupport#lib/active_support/multibyte.rb:14 def proxy_class=(klass); end end end @@ -10162,27 +9502,25 @@ end # # ActiveSupport::Multibyte.proxy_class = CharsForUTF32 # -# source://activesupport//lib/active_support/multibyte/chars.rb#47 +# pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:47 class ActiveSupport::Multibyte::Chars include ::Comparable # Creates a new Chars instance by wrapping _string_. # - # @return [Chars] a new instance of Chars - # - # source://activesupport//lib/active_support/multibyte/chars.rb#56 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:56 def initialize(string, deprecation: T.unsafe(nil)); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 def <=>(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 def =~(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 def acts_like_string?(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/multibyte/chars.rb#171 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:171 def as_json(options = T.unsafe(nil)); end # Performs composition on all the characters. @@ -10190,7 +9528,7 @@ class ActiveSupport::Multibyte::Chars # 'é'.length # => 1 # 'é'.mb_chars.compose.to_s.length # => 1 # - # source://activesupport//lib/active_support/multibyte/chars.rb#150 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:150 def compose; end # Performs canonical decomposition on all the characters. @@ -10198,7 +9536,7 @@ class ActiveSupport::Multibyte::Chars # 'é'.length # => 1 # 'é'.mb_chars.decompose.to_s.length # => 2 # - # source://activesupport//lib/active_support/multibyte/chars.rb#142 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:142 def decompose; end # Returns the number of grapheme clusters in the string. @@ -10206,7 +9544,7 @@ class ActiveSupport::Multibyte::Chars # 'क्षि'.mb_chars.length # => 4 # 'क्षि'.mb_chars.grapheme_length # => 2 # - # source://activesupport//lib/active_support/multibyte/chars.rb#158 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:158 def grapheme_length; end # Limits the byte size of the string to a number of bytes without breaking @@ -10215,25 +9553,25 @@ class ActiveSupport::Multibyte::Chars # # 'こんにちは'.mb_chars.limit(7).to_s # => "こん" # - # source://activesupport//lib/active_support/multibyte/chars.rb#125 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:125 def limit(limit); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 def match?(*_arg0, **_arg1, &_arg2); end # Forward all undefined methods to the wrapped string. # - # source://activesupport//lib/active_support/multibyte/chars.rb#72 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:72 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#116 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:116 def reverse; end - # source://activesupport//lib/active_support/multibyte/chars.rb#176 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:176 def reverse!(*args); end # Works like String#slice!, but returns an instance of @@ -10246,7 +9584,7 @@ class ActiveSupport::Multibyte::Chars # string.mb_chars.slice!(0..3) # => # # string # => 'me' # - # source://activesupport//lib/active_support/multibyte/chars.rb#106 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:106 def slice!(*args); end # Works just like String#split, with the exception that the items @@ -10255,7 +9593,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#93 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:93 def split(*args); end # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent @@ -10264,18 +9602,13 @@ class ActiveSupport::Multibyte::Chars # Passing +true+ will forcibly tidy all bytes, assuming that the string's # encoding is entirely CP1252 or ISO-8859-1. # - # source://activesupport//lib/active_support/multibyte/chars.rb#167 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:167 def tidy_bytes(force = T.unsafe(nil)); end - # source://activesupport//lib/active_support/multibyte/chars.rb#176 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:176 def tidy_bytes!(*args); end - # Capitalizes the first letter of every word, when possible. - # - # "ÉL QUE SE ENTERÓ".mb_chars.titleize.to_s # => "Él Que Se Enteró" - # "日本語".mb_chars.titleize.to_s # => "日本語" - # - # source://activesupport//lib/active_support/multibyte/chars.rb#136 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:136 def titlecase; end # Capitalizes the first letter of every word, when possible. @@ -10283,51 +9616,43 @@ class ActiveSupport::Multibyte::Chars # "ÉL QUE SE ENTERÓ".mb_chars.titleize.to_s # => "Él Que Se Enteró" # "日本語".mb_chars.titleize.to_s # => "日本語" # - # source://activesupport//lib/active_support/multibyte/chars.rb#133 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:133 def titleize; end - # Returns the value of attribute wrapped_string. - # - # source://activesupport//lib/active_support/multibyte/chars.rb#50 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:50 def to_s; end - # Returns the value of attribute wrapped_string. - # - # source://activesupport//lib/active_support/multibyte/chars.rb#51 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:51 def to_str; end - # Returns the value of attribute wrapped_string. - # - # source://activesupport//lib/active_support/multibyte/chars.rb#49 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:49 def wrapped_string; end private - # source://activesupport//lib/active_support/multibyte/chars.rb#183 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:183 def chars(string); end # Returns +true+ if _obj_ responds to the given method. Private methods # are included in the search only if the optional second parameter # evaluates to +true+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/multibyte/chars.rb#84 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:84 def respond_to_missing?(method, include_private); end end -# source://activesupport//lib/active_support/multibyte/unicode.rb#5 +# pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:5 module ActiveSupport::Multibyte::Unicode extend ::ActiveSupport::Multibyte::Unicode # Compose decomposed characters to the composed form. # - # source://activesupport//lib/active_support/multibyte/unicode.rb#21 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:21 def compose(codepoints); end # Decompose composed characters to the decomposed form. # - # source://activesupport//lib/active_support/multibyte/unicode.rb#12 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:12 def decompose(type, codepoints); end # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent @@ -10336,18 +9661,18 @@ module ActiveSupport::Multibyte::Unicode # Passing +true+ will forcibly tidy all bytes, assuming that the string's # encoding is entirely CP1252 or ISO-8859-1. # - # source://activesupport//lib/active_support/multibyte/unicode.rb#30 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:30 def tidy_bytes(string, force = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/multibyte/unicode.rb#37 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:37 def recode_windows1252_chars(string); end end # The Unicode version that is supported by the implementation # -# source://activesupport//lib/active_support/multibyte/unicode.rb#9 +# pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:9 ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String) # = \Notifications @@ -10539,13 +9864,13 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String # Notifications ships with a queue implementation that consumes and publishes events # to all log subscribers. You can use any queue implementation you want. # -# source://activesupport//lib/active_support/notifications/instrumenter.rb#7 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:7 module ActiveSupport::Notifications class << self - # source://activesupport//lib/active_support/notifications.rb#208 + # pkg:gem/activesupport#lib/active_support/notifications.rb:208 def instrument(name, payload = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications.rb#269 + # pkg:gem/activesupport#lib/active_support/notifications.rb:269 def instrumenter; end # Performs the same functionality as #subscribe, but the +start+ and @@ -10555,25 +9880,19 @@ module ActiveSupport::Notifications # duration is important. For example, computing elapsed time between # two events. # - # source://activesupport//lib/active_support/notifications.rb#254 + # pkg:gem/activesupport#lib/active_support/notifications.rb:254 def monotonic_subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end - # Returns the value of attribute notifier. - # - # source://activesupport//lib/active_support/notifications.rb#198 + # pkg:gem/activesupport#lib/active_support/notifications.rb:198 def notifier; end - # Sets the attribute notifier - # - # @param value the value to set the attribute notifier to. - # - # source://activesupport//lib/active_support/notifications.rb#198 + # pkg:gem/activesupport#lib/active_support/notifications.rb:198 def notifier=(_arg0); end - # source://activesupport//lib/active_support/notifications.rb#200 + # pkg:gem/activesupport#lib/active_support/notifications.rb:200 def publish(name, *args); end - # source://activesupport//lib/active_support/notifications.rb#204 + # pkg:gem/activesupport#lib/active_support/notifications.rb:204 def publish_event(event); end # Subscribe to a given event name with the passed +block+. @@ -10604,39 +9923,37 @@ module ActiveSupport::Notifications # ActiveSupport::Notifications.subscribe(:render) {|event| ...} # #=> ArgumentError (pattern must be specified as a String, Regexp or empty) # - # source://activesupport//lib/active_support/notifications.rb#244 + # pkg:gem/activesupport#lib/active_support/notifications.rb:244 def subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/notifications.rb#258 + # pkg:gem/activesupport#lib/active_support/notifications.rb:258 def subscribed(callback, pattern = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/notifications.rb#265 + # pkg:gem/activesupport#lib/active_support/notifications.rb:265 def unsubscribe(subscriber_or_name); end private - # source://activesupport//lib/active_support/notifications.rb#274 + # pkg:gem/activesupport#lib/active_support/notifications.rb:274 def registry; end end end -# source://activesupport//lib/active_support/notifications/instrumenter.rb#106 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:106 class ActiveSupport::Notifications::Event - # @return [Event] a new instance of Event - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#110 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:110 def initialize(name, start, ending, transaction_id, payload); end # Returns the number of allocations made between the call to #start! and # the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#176 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:176 def allocations; end # Returns the CPU time (in milliseconds) passed between the call to # #start! and the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#163 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:163 def cpu_time; end # Returns the difference in milliseconds between when the execution of the @@ -10652,76 +9969,66 @@ class ActiveSupport::Notifications::Event # # @event.duration # => 1000.138 # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#198 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:198 def duration; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#128 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:128 def end; end # Record information at the time this event finishes # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#154 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:154 def finish!; end # Returns the time spent in GC (in milliseconds) between the call to #start! # and the call to #finish! # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#182 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:182 def gc_time; end # Returns the idle time (in milliseconds) passed between the call to # #start! and the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#169 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:169 def idle_time; end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#107 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:107 def name; end - # Returns the value of attribute payload. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#108 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:108 def payload; end - # Sets the attribute payload - # - # @param value the value to set the attribute payload to. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#108 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:108 def payload=(_arg0); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#132 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:132 def record; end # Record information at the time this event starts # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#146 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:146 def start!; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#124 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:124 def time; end - # Returns the value of attribute transaction_id. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#107 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:107 def transaction_id; end private - # source://activesupport//lib/active_support/notifications/instrumenter.rb#203 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:203 def now; end # Likely on JRuby, TruffleRuby # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#230 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:230 def now_allocations; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#210 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:210 def now_cpu; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#220 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:220 def now_gc; end end @@ -10730,107 +10037,101 @@ end # # This class is thread safe. All methods are reentrant. # -# source://activesupport//lib/active_support/notifications/fanout.rb#55 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:55 class ActiveSupport::Notifications::Fanout include ::ActiveSupport::Notifications::FanoutIteration - # @return [Fanout] a new instance of Fanout - # - # source://activesupport//lib/active_support/notifications/fanout.rb#56 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:56 def initialize; end - # source://activesupport//lib/active_support/notifications/fanout.rb#319 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:319 def all_listeners_for(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#286 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:286 def build_handle(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#106 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:106 def clear_cache(key = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications/fanout.rb#305 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:305 def finish(name, id, payload, listeners = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications/fanout.rb#190 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:190 def group_listeners(listeners); end - # source://activesupport//lib/active_support/notifications/fanout.rb#196 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:196 def groups_for(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#64 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:64 def inspect; end - # source://activesupport//lib/active_support/notifications/fanout.rb#328 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:328 def listeners_for(name); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/notifications/fanout.rb#332 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:332 def listening?(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#311 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:311 def publish(name, *_arg1, **_arg2, &_arg3); end - # source://activesupport//lib/active_support/notifications/fanout.rb#315 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:315 def publish_event(event); end - # source://activesupport//lib/active_support/notifications/fanout.rb#298 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:298 def start(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#69 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:69 def subscribe(pattern = T.unsafe(nil), callable = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/notifications/fanout.rb#86 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:86 def unsubscribe(subscriber_or_name); end # This is a sync queue, so there is no waiting. # - # source://activesupport//lib/active_support/notifications/fanout.rb#337 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:337 def wait; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#116 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:116 class ActiveSupport::Notifications::Fanout::BaseGroup include ::ActiveSupport::Notifications::FanoutIteration - # @return [BaseGroup] a new instance of BaseGroup - # - # source://activesupport//lib/active_support/notifications/fanout.rb#119 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:119 def initialize(listeners, name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#123 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:123 def each(&block); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#128 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:128 class ActiveSupport::Notifications::Fanout::BaseTimeGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup - # source://activesupport//lib/active_support/notifications/fanout.rb#133 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:133 def finish(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#129 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:129 def start(name, id, payload); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#169 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:169 class ActiveSupport::Notifications::Fanout::EventObjectGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup - # source://activesupport//lib/active_support/notifications/fanout.rb#175 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:175 def finish(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#170 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:170 def start(name, id, payload); end private - # source://activesupport//lib/active_support/notifications/fanout.rb#185 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:185 def build_event(name, id, payload); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#155 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:155 class ActiveSupport::Notifications::Fanout::EventedGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup - # source://activesupport//lib/active_support/notifications/fanout.rb#162 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:162 def finish(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#156 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:156 def start(name, id, payload); end end @@ -10849,203 +10150,177 @@ end # handle.finish # end # -# source://activesupport//lib/active_support/notifications/fanout.rb#230 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:230 class ActiveSupport::Notifications::Fanout::Handle include ::ActiveSupport::Notifications::FanoutIteration - # @return [Handle] a new instance of Handle - # - # source://activesupport//lib/active_support/notifications/fanout.rb#233 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:233 def initialize(notifier, name, id, groups, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#250 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:250 def finish; end - # source://activesupport//lib/active_support/notifications/fanout.rb#254 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:254 def finish_with_values(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#241 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:241 def start; end private - # source://activesupport//lib/active_support/notifications/fanout.rb#264 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:264 def ensure_state!(expected); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#141 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:141 class ActiveSupport::Notifications::Fanout::MonotonicTimedGroup < ::ActiveSupport::Notifications::Fanout::BaseTimeGroup private - # source://activesupport//lib/active_support/notifications/fanout.rb#143 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:143 def now; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#271 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:271 module ActiveSupport::Notifications::Fanout::NullHandle extend ::ActiveSupport::Notifications::Fanout::NullHandle - # source://activesupport//lib/active_support/notifications/fanout.rb#277 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:277 def finish; end - # source://activesupport//lib/active_support/notifications/fanout.rb#280 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:280 def finish_with_values(_name, _id, _payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#274 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:274 def start; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#340 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:340 module ActiveSupport::Notifications::Fanout::Subscribers class << self - # source://activesupport//lib/active_support/notifications/fanout.rb#341 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:341 def new(pattern, listener, monotonic); end end end -# source://activesupport//lib/active_support/notifications/fanout.rb#455 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:455 class ActiveSupport::Notifications::Fanout::Subscribers::EventObject < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented - # source://activesupport//lib/active_support/notifications/fanout.rb#456 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:456 def group_class; end - # source://activesupport//lib/active_support/notifications/fanout.rb#460 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:460 def publish_event(event); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#397 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:397 class ActiveSupport::Notifications::Fanout::Subscribers::Evented - # @return [Evented] a new instance of Evented - # - # source://activesupport//lib/active_support/notifications/fanout.rb#400 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:400 def initialize(pattern, delegate); end - # Returns the value of attribute delegate. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#398 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:398 def delegate; end - # source://activesupport//lib/active_support/notifications/fanout.rb#408 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:408 def group_class; end - # Returns the value of attribute pattern. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#398 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:398 def pattern; end - # source://activesupport//lib/active_support/notifications/fanout.rb#412 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:412 def publish(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/notifications/fanout.rb#418 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:418 def publish_event(event); end - # Returns the value of attribute silenceable. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#398 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:398 def silenceable; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/notifications/fanout.rb#426 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:426 def silenced?(name); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/notifications/fanout.rb#430 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:430 def subscribed_to?(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#434 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:434 def unsubscribe!(name); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#360 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:360 class ActiveSupport::Notifications::Fanout::Subscribers::Matcher - # @return [Matcher] a new instance of Matcher - # - # source://activesupport//lib/active_support/notifications/fanout.rb#373 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:373 def initialize(pattern); end - # source://activesupport//lib/active_support/notifications/fanout.rb#382 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:382 def ===(name); end - # Returns the value of attribute exclusions. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#361 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:361 def exclusions; end - # Returns the value of attribute pattern. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#361 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:361 def pattern; end - # source://activesupport//lib/active_support/notifications/fanout.rb#378 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:378 def unsubscribe!(name); end class << self - # source://activesupport//lib/active_support/notifications/fanout.rb#363 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:363 def wrap(pattern); end end end -# source://activesupport//lib/active_support/notifications/fanout.rb#386 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:386 class ActiveSupport::Notifications::Fanout::Subscribers::Matcher::AllMessages - # source://activesupport//lib/active_support/notifications/fanout.rb#387 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:387 def ===(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#391 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:391 def unsubscribe!(*_arg0); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#449 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:449 class ActiveSupport::Notifications::Fanout::Subscribers::MonotonicTimed < ::ActiveSupport::Notifications::Fanout::Subscribers::Timed - # source://activesupport//lib/active_support/notifications/fanout.rb#450 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:450 def group_class; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#439 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:439 class ActiveSupport::Notifications::Fanout::Subscribers::Timed < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented - # source://activesupport//lib/active_support/notifications/fanout.rb#440 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:440 def group_class; end - # source://activesupport//lib/active_support/notifications/fanout.rb#444 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:444 def publish(*_arg0, **_arg1, &_arg2); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#148 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:148 class ActiveSupport::Notifications::Fanout::TimedGroup < ::ActiveSupport::Notifications::Fanout::BaseTimeGroup private - # source://activesupport//lib/active_support/notifications/fanout.rb#150 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:150 def now; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#18 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:18 module ActiveSupport::Notifications::FanoutIteration private - # source://activesupport//lib/active_support/notifications/fanout.rb#20 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:20 def iterate_guarding_exceptions(collection, &block); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#8 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:8 class ActiveSupport::Notifications::InstrumentationSubscriberError < ::RuntimeError - # @return [InstrumentationSubscriberError] a new instance of InstrumentationSubscriberError - # - # source://activesupport//lib/active_support/notifications/fanout.rb#11 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:11 def initialize(exceptions); end - # Returns the value of attribute exceptions. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#9 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:9 def exceptions; end end # Instrumenters are stored in a thread local. # -# source://activesupport//lib/active_support/notifications/instrumenter.rb#9 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:9 class ActiveSupport::Notifications::Instrumenter - # @return [Instrumenter] a new instance of Instrumenter - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#12 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:12 def initialize(notifier); end # Returns a "handle" for an event with the given +name+ and +payload+. @@ -11059,20 +10334,18 @@ class ActiveSupport::Notifications::Instrumenter # # See ActiveSupport::Notifications::Fanout::Handle. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#78 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:78 def build_handle(name, payload); end # Send a finish notification with +name+ and +payload+. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#92 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:92 def finish(name, payload); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#96 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:96 def finish_with_state(listeners_state, name, payload); end - # Returns the value of attribute id. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#10 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:10 def id; end # Given a block, instrument it by measuring the time taken to execute @@ -11080,51 +10353,47 @@ class ActiveSupport::Notifications::Instrumenter # notifier. Notice that events get sent even if an error occurs in the # passed-in block. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#54 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:54 def instrument(name, payload = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#82 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:82 def new_event(name, payload = T.unsafe(nil)); end # Send a start notification with +name+ and +payload+. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#87 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:87 def start(name, payload); end private - # source://activesupport//lib/active_support/notifications/instrumenter.rb#101 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:101 def unique_id; end end -# source://activesupport//lib/active_support/notifications/instrumenter.rb#21 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:21 class ActiveSupport::Notifications::Instrumenter::LegacyHandle - # @return [LegacyHandle] a new instance of LegacyHandle - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#34 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:34 def initialize(notifier, name, id, payload); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#45 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:45 def finish; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#41 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:41 def start; end end -# source://activesupport//lib/active_support/notifications/instrumenter.rb#22 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:22 class ActiveSupport::Notifications::Instrumenter::LegacyHandle::Wrapper - # @return [Wrapper] a new instance of Wrapper - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#23 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:23 def initialize(notifier); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#27 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:27 def build_handle(name, id, payload); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#31 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:31 def finish(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#31 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:31 def start(*_arg0, **_arg1, &_arg2); end end @@ -11151,7 +10420,7 @@ end # end # end # -# source://activesupport//lib/active_support/number_helper.rb#26 +# pkg:gem/activesupport#lib/active_support/number_helper.rb:26 module ActiveSupport::NumberHelper extend ::ActiveSupport::Autoload extend ::ActiveSupport::NumberHelper @@ -11225,7 +10494,7 @@ module ActiveSupport::NumberHelper # number_to_currency(1234567890.50, strip_insignificant_zeros: true) # # => "$1,234,567,890.5" # - # source://activesupport//lib/active_support/number_helper.rb#161 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:161 def number_to_currency(number, options = T.unsafe(nil)); end # Formats +number+ by grouping thousands with a delimiter. @@ -11265,7 +10534,7 @@ module ActiveSupport::NumberHelper # number_to_delimited("123456.78", delimiter_pattern: /(\d+?)(?=(\d\d)+(\d)(?!\d))/) # # => "1,23,456.78" # - # source://activesupport//lib/active_support/number_helper.rb#264 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:264 def number_to_delimited(number, options = T.unsafe(nil)); end # Formats +number+ into a more human-friendly representation. Useful for @@ -11366,7 +10635,7 @@ module ActiveSupport::NumberHelper # number_to_human(0.1, units: :distance) # => "10 centimeters" # number_to_human(0.01, units: :distance) # => "1 centimeter" # - # source://activesupport//lib/active_support/number_helper.rb#475 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:475 def number_to_human(number, options = T.unsafe(nil)); end # Formats +number+ as bytes into a more human-friendly representation. @@ -11418,7 +10687,7 @@ module ActiveSupport::NumberHelper # Whether to remove insignificant zeros after the decimal separator. # Defaults to true. # - # source://activesupport//lib/active_support/number_helper.rb#373 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:373 def number_to_human_size(number, options = T.unsafe(nil)); end # Formats +number+ as a percentage string. @@ -11479,7 +10748,7 @@ module ActiveSupport::NumberHelper # number_to_percentage(100, format: "%n %") # # => "100.000 %" # - # source://activesupport//lib/active_support/number_helper.rb#223 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:223 def number_to_percentage(number, options = T.unsafe(nil)); end # Formats +number+ into a phone number. @@ -11527,7 +10796,7 @@ module ActiveSupport::NumberHelper # number_to_phone(75561234567, pattern: /(\d{1,4})(\d{4})(\d{4})$/, area_code: true) # # => "(755) 6123-4567" # - # source://activesupport//lib/active_support/number_helper.rb#88 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:88 def number_to_phone(number, options = T.unsafe(nil)); end # Formats +number+ to a specific level of precision. @@ -11582,377 +10851,359 @@ module ActiveSupport::NumberHelper # number_to_rounded(12.34, strip_insignificant_zeros: true) # => "12.34" # number_to_rounded(12.3456, strip_insignificant_zeros: true) # => "12.346" # - # source://activesupport//lib/active_support/number_helper.rb#320 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:320 def number_to_rounded(number, options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/number_helper/number_converter.rb#12 +# pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:12 class ActiveSupport::NumberHelper::NumberConverter - # @return [NumberConverter] a new instance of NumberConverter - # - # source://activesupport//lib/active_support/number_helper/number_converter.rb#124 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:124 def initialize(number, options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#130 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:130 def execute; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace=(_arg0); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace?; end - # Returns the value of attribute number. - # - # source://activesupport//lib/active_support/number_helper/number_converter.rb#19 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:19 def number; end - # Returns the value of attribute opts. - # - # source://activesupport//lib/active_support/number_helper/number_converter.rb#19 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:19 def opts; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float=(_arg0); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float?; end private - # source://activesupport//lib/active_support/number_helper/number_converter.rb#149 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:149 def default_format_options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#174 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:174 def default_value(key); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#145 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:145 def format_options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#155 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:155 def i18n_format_options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#141 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:141 def options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#170 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:170 def translate_in_locale(key, **i18n_options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#166 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:166 def translate_number_value_with_default(key, **i18n_options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#178 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:178 def valid_bigdecimal; end class << self - # source://activesupport//lib/active_support/number_helper/number_converter.rb#120 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:120 def convert(number, options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace=(value); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace?; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float=(value); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float?; end private - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def __class_attr_namespace; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_converter.rb#21 +# pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:21 ActiveSupport::NumberHelper::NumberConverter::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:7 class ActiveSupport::NumberHelper::NumberToCurrencyConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#10 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:10 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#38 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:38 def i18n_opts; end - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#29 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:29 def options; end class << self private - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:8 def __class_attr_namespace; end - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:8 def __class_attr_namespace=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:7 class ActiveSupport::NumberHelper::NumberToDelimitedConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#12 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:12 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#25 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:25 def delimiter_pattern; end - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:17 def parts; end class << self private - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:8 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:8 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#10 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:10 ActiveSupport::NumberHelper::NumberToDelimitedConverter::DEFAULT_DELIMITER_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:7 class ActiveSupport::NumberHelper::NumberToHumanConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:15 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#50 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:50 def calculate_exponent(units); end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#38 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:38 def determine_unit(units, exponent); end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#34 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:34 def format; end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#55 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:55 def unit_exponents(units); end class << self private - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#12 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:12 def __class_attr_namespace; end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#12 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:12 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#13 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:13 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#13 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:13 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#8 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:8 ActiveSupport::NumberHelper::NumberToHumanConverter::DECIMAL_UNITS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#10 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:10 ActiveSupport::NumberHelper::NumberToHumanConverter::INVERTED_DECIMAL_UNITS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:7 class ActiveSupport::NumberHelper::NumberToHumanSizeConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#13 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:13 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#55 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:55 def base; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#31 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:31 def conversion_format; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#44 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:44 def exponent; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#51 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:51 def smaller_than_base?; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#39 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:39 def storage_unit_key; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#35 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:35 def unit; end class << self private - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#10 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:10 def __class_attr_namespace; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#10 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:10 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#11 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:11 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#11 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:11 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#8 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:8 ActiveSupport::NumberHelper::NumberToHumanSizeConverter::STORAGE_UNITS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:7 class ActiveSupport::NumberHelper::NumberToPercentageConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#10 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:10 def convert; end class << self private - # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:8 def __class_attr_namespace; end - # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:8 def __class_attr_namespace=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#8 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:8 class ActiveSupport::NumberHelper::NumberToPhoneConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#9 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:9 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#16 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:16 def convert_to_phone_number(number); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#24 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:24 def convert_with_area_code(number); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#31 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:31 def convert_without_area_code(number); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#47 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:47 def country_code(code); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#43 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:43 def delimiter; end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#51 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:51 def phone_ext(ext); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#55 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:55 def regexp_pattern(default_pattern); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#39 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:39 def start_with_delimiter?(number); end end -# source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:7 class ActiveSupport::NumberHelper::NumberToRoundedConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#11 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:11 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#49 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:49 def format_number(number); end - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#45 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:45 def strip_insignificant_zeros; end class << self private - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:8 def __class_attr_namespace; end - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:8 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#9 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:9 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#9 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:9 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/rounding_helper.rb#5 +# pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:5 class ActiveSupport::NumberHelper::RoundingHelper - # @return [RoundingHelper] a new instance of RoundingHelper - # - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:8 def initialize(options); end - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#20 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:20 def digit_count(number); end - # Returns the value of attribute options. - # - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#6 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:6 def options; end - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#12 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:12 def round(number); end private - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#37 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:37 def absolute_precision(number); end - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#26 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:26 def convert_to_decimal(number); end end -# source://activesupport//lib/active_support/option_merger.rb#6 +# pkg:gem/activesupport#lib/active_support/option_merger.rb:6 class ActiveSupport::OptionMerger - # @return [OptionMerger] a new instance of OptionMerger - # - # source://activesupport//lib/active_support/option_merger.rb#11 + # pkg:gem/activesupport#lib/active_support/option_merger.rb:11 def initialize(context, options); end private - # source://activesupport//lib/active_support/option_merger.rb#16 + # pkg:gem/activesupport#lib/active_support/option_merger.rb:16 def method_missing(method, *arguments, &block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/option_merger.rb#34 + # pkg:gem/activesupport#lib/active_support/option_merger.rb:34 def respond_to_missing?(*_arg0, **_arg1, &_arg2); end end @@ -11971,28 +11222,26 @@ end # +ActiveSupport::OrderedHash+ is namespaced to prevent conflicts # with other implementations. # -# source://activesupport//lib/active_support/ordered_hash.rb#24 +# pkg:gem/activesupport#lib/active_support/ordered_hash.rb:24 class ActiveSupport::OrderedHash < ::Hash - # source://activesupport//lib/active_support/ordered_hash.rb#29 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:29 def encode_with(coder); end # Returns true to make sure that this hash is extractable via Array#extract_options! # - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_hash.rb#46 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:46 def extractable_options?; end - # source://activesupport//lib/active_support/ordered_hash.rb#41 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:41 def nested_under_indifferent_access; end - # source://activesupport//lib/active_support/ordered_hash.rb#37 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:37 def reject(*args, &block); end - # source://activesupport//lib/active_support/ordered_hash.rb#33 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:33 def select(*args, &block); end - # source://activesupport//lib/active_support/ordered_hash.rb#25 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:25 def to_yaml_type; end end @@ -12023,40 +11272,36 @@ end # # h.dog! # => raises KeyError: :dog is blank # -# source://activesupport//lib/active_support/ordered_options.rb#33 +# pkg:gem/activesupport#lib/active_support/ordered_options.rb:33 class ActiveSupport::OrderedOptions < ::Hash - # source://activesupport//lib/active_support/ordered_options.rb#41 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:41 def [](key); end - # source://activesupport//lib/active_support/ordered_options.rb#37 + # make it protected + # + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:37 def []=(key, value); end - # source://activesupport//lib/active_support/ordered_options.rb#45 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:45 def dig(key, *identifiers); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#64 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:64 def extractable_options?; end - # source://activesupport//lib/active_support/ordered_options.rb#68 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:68 def inspect; end - # source://activesupport//lib/active_support/ordered_options.rb#49 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:49 def method_missing(method, *args); end protected - # preserve the original #[] method - # - # source://activesupport//lib/active_support/ordered_options.rb#34 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:34 def _get(_arg0); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#60 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:60 def respond_to_missing?(name, include_private); end end @@ -12092,7 +11337,7 @@ end # v.reverse! if /secret/i.match?(k) # end]) # -# source://activesupport//lib/active_support/parameter_filter.rb#39 +# pkg:gem/activesupport#lib/active_support/parameter_filter.rb:39 class ActiveSupport::ParameterFilter # Create instance with given filters. Supported type of filters are +String+, +Regexp+, and +Proc+. # Other types of filters are treated as +String+ using +to_s+. @@ -12102,30 +11347,28 @@ class ActiveSupport::ParameterFilter # # * :mask - A replaced object when filtered. Defaults to "[FILTERED]". # - # @return [ParameterFilter] a new instance of ParameterFilter - # - # source://activesupport//lib/active_support/parameter_filter.rb#77 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:77 def initialize(filters = T.unsafe(nil), mask: T.unsafe(nil)); end # Mask value of +params+ if key matches one of filters. # - # source://activesupport//lib/active_support/parameter_filter.rb#83 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:83 def filter(params); end # Returns filtered value for given key. For +Proc+ filters, third block argument is not populated. # - # source://activesupport//lib/active_support/parameter_filter.rb#88 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:88 def filter_param(key, value); end private - # source://activesupport//lib/active_support/parameter_filter.rb#125 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:125 def call(params, full_parent_key = T.unsafe(nil), original_params = T.unsafe(nil)); end - # source://activesupport//lib/active_support/parameter_filter.rb#93 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:93 def compile_filters!(filters); end - # source://activesupport//lib/active_support/parameter_filter.rb#135 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:135 def value_for_key(key, value, full_parent_key = T.unsafe(nil), original_params = T.unsafe(nil)); end class << self @@ -12142,44 +11385,22 @@ class ActiveSupport::ParameterFilter # # ActiveSupport::ParameterFilter.new(precompiled) # - # source://activesupport//lib/active_support/parameter_filter.rb#55 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:55 def precompile_filters(filters); end end end -# source://activesupport//lib/active_support/parameter_filter.rb#40 +# pkg:gem/activesupport#lib/active_support/parameter_filter.rb:40 ActiveSupport::ParameterFilter::FILTERED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/railtie.rb#7 +# pkg:gem/activesupport#lib/active_support/railtie.rb:7 class ActiveSupport::Railtie < ::Rails::Railtie; end # = \Range With Format # -# source://activesupport//lib/active_support/core_ext/range/conversions.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:5 module ActiveSupport::RangeWithFormat - # Convert range to a formatted string. See RANGE_FORMATS for predefined formats. - # - # This method is aliased to to_formatted_s. - # - # range = (1..100) # => 1..100 - # - # range.to_s # => "1..100" - # range.to_fs(:db) # => "BETWEEN '1' AND '100'" - # - # range = (1..) # => 1.. - # range.to_fs(:db) # => ">= '1'" - # - # range = (..100) # => ..100 - # range.to_fs(:db) # => "<= '100'" - # - # == Adding your own range formats to to_fs - # You can add your own formats to the Range::RANGE_FORMATS hash. - # Use the format name as the hash key and a Proc instance. - # - # # config/initializers/range_formats.rb - # Range::RANGE_FORMATS[:short] = ->(start, stop) { "Between #{start.to_fs(:db)} and #{stop.to_fs(:db)}" } - # - # source://activesupport//lib/active_support/core_ext/range/conversions.rb#58 + # pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:58 def to_formatted_s(format = T.unsafe(nil)); end # Convert range to a formatted string. See RANGE_FORMATS for predefined formats. @@ -12204,11 +11425,11 @@ module ActiveSupport::RangeWithFormat # # config/initializers/range_formats.rb # Range::RANGE_FORMATS[:short] = ->(start, stop) { "Between #{start.to_fs(:db)} and #{stop.to_fs(:db)}" } # - # source://activesupport//lib/active_support/core_ext/range/conversions.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:51 def to_fs(format = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/range/conversions.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:6 ActiveSupport::RangeWithFormat::RANGE_FORMATS = T.let(T.unsafe(nil), Hash) # = Active Support \Reloader @@ -12232,158 +11453,156 @@ ActiveSupport::RangeWithFormat::RANGE_FORMATS = T.let(T.unsafe(nil), Hash) # after_class_unload -- Run immediately after the classes are # unloaded. # -# source://activesupport//lib/active_support/reloader.rb#28 +# pkg:gem/activesupport#lib/active_support/reloader.rb:28 class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper - # @return [Reloader] a new instance of Reloader - # - # source://activesupport//lib/active_support/reloader.rb#99 + # pkg:gem/activesupport#lib/active_support/reloader.rb:99 def initialize; end - # source://activesupport//lib/active_support/reloader.rb#31 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _prepare_callbacks; end - # source://activesupport//lib/active_support/reloader.rb#31 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _run_class_unload_callbacks; end - # source://activesupport//lib/active_support/reloader.rb#31 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _run_class_unload_callbacks!(&block); end - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _run_prepare_callbacks; end - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _run_prepare_callbacks!(&block); end - # source://activesupport//lib/active_support/reloader.rb#48 + # pkg:gem/activesupport#lib/active_support/reloader.rb:48 def _run_run_callbacks(&block); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check; end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check=(_arg0); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check?; end - # source://activesupport//lib/active_support/reloader.rb#126 + # pkg:gem/activesupport#lib/active_support/reloader.rb:126 def class_unload!(&block); end - # source://activesupport//lib/active_support/reloader.rb#131 + # pkg:gem/activesupport#lib/active_support/reloader.rb:131 def complete!; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor=(_arg0); end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor?; end # Release the unload lock if it has been previously obtained # - # source://activesupport//lib/active_support/reloader.rb#114 + # pkg:gem/activesupport#lib/active_support/reloader.rb:114 def release_unload_lock!; end # Acquire the ActiveSupport::Dependencies::Interlock unload lock, # ensuring it will be released automatically # - # source://activesupport//lib/active_support/reloader.rb#106 + # pkg:gem/activesupport#lib/active_support/reloader.rb:106 def require_unload_lock!; end - # source://activesupport//lib/active_support/reloader.rb#121 + # pkg:gem/activesupport#lib/active_support/reloader.rb:121 def run!; end class << self - # source://activesupport//lib/active_support/reloader.rb#31 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/reloader.rb#31 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _class_unload_callbacks=(value); end - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _prepare_callbacks; end - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _prepare_callbacks=(value); end # Registers a callback that will run immediately after the classes are unloaded. # - # source://activesupport//lib/active_support/reloader.rb#44 + # pkg:gem/activesupport#lib/active_support/reloader.rb:44 def after_class_unload(*args, &block); end # Registers a callback that will run immediately before the classes are unloaded. # - # source://activesupport//lib/active_support/reloader.rb#39 + # pkg:gem/activesupport#lib/active_support/reloader.rb:39 def before_class_unload(*args, &block); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check; end - # source://activesupport//lib/active_support/reloader.rb#87 + # pkg:gem/activesupport#lib/active_support/reloader.rb:87 def check!; end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check=(value); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check?; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor=(value); end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor?; end - # source://activesupport//lib/active_support/reloader.rb#95 + # pkg:gem/activesupport#lib/active_support/reloader.rb:95 def prepare!; end # Initiate a manual reload # - # source://activesupport//lib/active_support/reloader.rb#51 + # pkg:gem/activesupport#lib/active_support/reloader.rb:51 def reload!; end - # source://activesupport//lib/active_support/reloader.rb#91 + # pkg:gem/activesupport#lib/active_support/reloader.rb:91 def reloaded!; end - # source://activesupport//lib/active_support/reloader.rb#62 + # pkg:gem/activesupport#lib/active_support/reloader.rb:62 def run!(reset: T.unsafe(nil)); end # Registers a callback that will run once at application startup and every time the code is reloaded. # - # source://activesupport//lib/active_support/reloader.rb#34 + # pkg:gem/activesupport#lib/active_support/reloader.rb:34 def to_prepare(*args, &block); end # Run the supplied block as a work unit, reloading code as needed # - # source://activesupport//lib/active_support/reloader.rb#71 + # pkg:gem/activesupport#lib/active_support/reloader.rb:71 def wrap(**kwargs); end private - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/reloader.rb#29 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def __class_attr_check; end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def __class_attr_check=(new_value); end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def __class_attr_executor; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def __class_attr_executor=(new_value); end end end @@ -12392,7 +11611,7 @@ end # # Rescuable module adds support for easier exception handling. # -# source://activesupport//lib/active_support/rescuable.rb#11 +# pkg:gem/activesupport#lib/active_support/rescuable.rb:11 module ActiveSupport::Rescuable extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -12403,13 +11622,13 @@ module ActiveSupport::Rescuable # Internal handler lookup. Delegates to class method. Some libraries call # this directly, so keeping it around for compatibility. # - # source://activesupport//lib/active_support/rescuable.rb#172 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:172 def handler_for_rescue(exception); end # Delegates to the class method, but uses the instance as the subject for # rescue_from handlers (method calls, +instance_exec+ blocks). # - # source://activesupport//lib/active_support/rescuable.rb#166 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:166 def rescue_with_handler(exception); end module GeneratedClassMethods @@ -12425,9 +11644,9 @@ module ActiveSupport::Rescuable end end -# source://activesupport//lib/active_support/rescuable.rb#18 +# pkg:gem/activesupport#lib/active_support/rescuable.rb:18 module ActiveSupport::Rescuable::ClassMethods - # source://activesupport//lib/active_support/rescuable.rb#105 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:105 def handler_for_rescue(exception, object: T.unsafe(nil)); end # Registers exception classes with a handler to be called by rescue_with_handler. @@ -12465,7 +11684,7 @@ module ActiveSupport::Rescuable::ClassMethods # # Exceptions raised inside exception handlers are not propagated up. # - # source://activesupport//lib/active_support/rescuable.rb#53 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:53 def rescue_from(*klasses, with: T.unsafe(nil), &block); end # Matches an exception to a handler based on the exception class. @@ -12483,256 +11702,248 @@ module ActiveSupport::Rescuable::ClassMethods # # Returns the exception if it was handled and +nil+ if it was not. # - # source://activesupport//lib/active_support/rescuable.rb#90 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:90 def rescue_with_handler(exception, object: T.unsafe(nil), visited_exceptions: T.unsafe(nil)); end private - # source://activesupport//lib/active_support/rescuable.rb#139 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:139 def constantize_rescue_handler_class(class_or_name); end - # source://activesupport//lib/active_support/rescuable.rb#124 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:124 def find_rescue_handler(exception); end end -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#19 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:19 class ActiveSupport::SafeBuffer < ::String - # @return [SafeBuffer] a new instance of SafeBuffer - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#70 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:70 def initialize(_str = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#124 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:124 def %(args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#115 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:115 def *(_); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#111 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:111 def +(other); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#85 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:85 def <<(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:38 def [](*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#103 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:103 def []=(arg1, arg2, arg3 = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#143 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:143 def as_json(*_arg0); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#87 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:87 def bytesplice(*args, value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def capitalize(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def capitalize!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def chomp(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def chomp!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def chop(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def chop!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#59 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:59 def chr; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#79 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:79 def concat(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def delete(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def delete!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def delete_prefix(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def delete_prefix!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def delete_suffix(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def delete_suffix!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def downcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def downcase!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#151 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:151 def encode_with(coder); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 def gsub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 def gsub!(*args, &block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#135 + # pkg:gem/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#91 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:91 def insert(index, value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def lstrip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def lstrip!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def next(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def next!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#95 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:95 def prepend(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#99 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:99 def replace(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def reverse(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def reverse!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def rstrip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def rstrip!(*args); end - # @raise [SafeConcatError] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#65 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:65 def safe_concat(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def scrub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def scrub!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#49 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:49 def slice(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:51 def slice!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def squeeze(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def squeeze!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def strip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def strip!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 def sub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 def sub!(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def succ(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def succ!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def swapcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def swapcase!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#147 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:147 def to_param; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#139 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:139 def to_s; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def tr(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def tr!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def tr_s(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def tr_s!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def unicode_normalize(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def unicode_normalize!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def upcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 def upcase!(*args); end private - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#198 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:198 def explicit_html_escape_interpolated_argument(arg); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#202 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:202 def implicit_html_escape_interpolated_argument(arg); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#74 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:74 def initialize_copy(other); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#28 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:28 def original_concat(*_arg0); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#210 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:210 def set_block_back_references(block, match_data); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#216 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:216 def string_into_safe_buffer(new_string, is_html_safe); end end # Raised when ActiveSupport::SafeBuffer#safe_concat is called on unsafe buffers. # -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#32 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:32 class ActiveSupport::SafeBuffer::SafeConcatError < ::StandardError - # @return [SafeConcatError] a new instance of SafeConcatError - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:33 def initialize; end end -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#20 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:20 ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#26 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:26 ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS_WITH_BACKREF = T.let(T.unsafe(nil), Array) # = Secure Compare Rotator @@ -12761,32 +11972,28 @@ ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS_WITH_BACKREF = T.let(T.unsafe(n # end # end # -# source://activesupport//lib/active_support/secure_compare_rotator.rb#32 +# pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:32 class ActiveSupport::SecureCompareRotator include ::ActiveSupport::SecurityUtils - # @return [SecureCompareRotator] a new instance of SecureCompareRotator - # - # source://activesupport//lib/active_support/secure_compare_rotator.rb#37 + # pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:37 def initialize(value, on_rotation: T.unsafe(nil)); end - # source://activesupport//lib/active_support/secure_compare_rotator.rb#43 + # pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:43 def rotate(previous_value); end - # source://activesupport//lib/active_support/secure_compare_rotator.rb#47 + # pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:47 def secure_compare!(other_value, on_rotation: T.unsafe(nil)); end end -# source://activesupport//lib/active_support/secure_compare_rotator.rb#35 +# pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:35 class ActiveSupport::SecureCompareRotator::InvalidMatch < ::StandardError; end -# source://activesupport//lib/active_support/security_utils.rb#4 +# pkg:gem/activesupport#lib/active_support/security_utils.rb:4 module ActiveSupport::SecurityUtils private - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/security_utils.rb#11 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:11 def fixed_length_secure_compare(a, b); end # Secure string comparison for strings of variable length. @@ -12796,13 +12003,11 @@ module ActiveSupport::SecurityUtils # the secret length. This should be considered when using secure_compare # to compare weak, short secrets to user input. # - # source://activesupport//lib/active_support/security_utils.rb#33 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:33 def secure_compare(a, b); end class << self - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/security_utils.rb#25 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:25 def fixed_length_secure_compare(a, b); end # Secure string comparison for strings of variable length. @@ -12812,7 +12017,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#36 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:36 def secure_compare(a, b); end end end @@ -12835,16 +12040,14 @@ end # vehicle.car? # => true # vehicle.bike? # => false # -# source://activesupport//lib/active_support/string_inquirer.rb#21 +# pkg:gem/activesupport#lib/active_support/string_inquirer.rb:21 class ActiveSupport::StringInquirer < ::String private - # source://activesupport//lib/active_support/string_inquirer.rb#27 + # pkg:gem/activesupport#lib/active_support/string_inquirer.rb:27 def method_missing(method_name, *_arg1, **_arg2, &_arg3); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/string_inquirer.rb#23 + # pkg:gem/activesupport#lib/active_support/string_inquirer.rb:23 def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end end @@ -12874,19 +12077,17 @@ end # it will properly dispatch the event (+ActiveSupport::Notifications::Event+) to the +start_processing+ method. # The subscriber can then emit a structured event via the +emit_event+ method. # -# source://activesupport//lib/active_support/structured_event_subscriber.rb#31 +# pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:31 class ActiveSupport::StructuredEventSubscriber < ::ActiveSupport::Subscriber - # @return [StructuredEventSubscriber] a new instance of StructuredEventSubscriber - # - # source://activesupport//lib/active_support/structured_event_subscriber.rb#56 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:56 def initialize; end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#88 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:88 def call(event); end # Like +emit_event+, but only emits when the event reporter is in debug mode # - # source://activesupport//lib/active_support/structured_event_subscriber.rb#82 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:82 def emit_debug_event(name, payload = T.unsafe(nil), caller_depth: T.unsafe(nil), **kwargs); end # Emit a structured event via Rails.event.notify. @@ -12898,52 +12099,50 @@ class ActiveSupport::StructuredEventSubscriber < ::ActiveSupport::Subscriber # * +caller_depth+ - Stack depth for source location (default: 1) # * +kwargs+ - Additional payload data merged with the payload hash # - # source://activesupport//lib/active_support/structured_event_subscriber.rb#75 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:75 def emit_event(name, payload = T.unsafe(nil), caller_depth: T.unsafe(nil), **kwargs); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/structured_event_subscriber.rb#61 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:61 def silenced?(event); end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#65 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:65 def silenced_events=(_arg0); end private - # source://activesupport//lib/active_support/structured_event_subscriber.rb#95 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:95 def handle_event_error(name, error); end class << self - # source://activesupport//lib/active_support/structured_event_subscriber.rb#37 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:37 def attach_to(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#32 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:32 def debug_methods; end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#32 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:32 def debug_methods=(value); end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#32 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:32 def debug_methods?; end private - # source://activesupport//lib/active_support/structured_event_subscriber.rb#32 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:32 def __class_attr_debug_methods; end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#32 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:32 def __class_attr_debug_methods=(new_value); end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#50 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:50 def debug_only(method); end - # source://activesupport//lib/active_support/structured_event_subscriber.rb#44 + # pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:44 def set_silenced_events; end end end -# source://activesupport//lib/active_support/structured_event_subscriber.rb#34 +# pkg:gem/activesupport#lib/active_support/structured_event_subscriber.rb:34 ActiveSupport::StructuredEventSubscriber::DEBUG_CHECK = T.let(T.unsafe(nil), Proc) # = Active Support \Subscriber @@ -12973,78 +12172,66 @@ ActiveSupport::StructuredEventSubscriber::DEBUG_CHECK = T.let(T.unsafe(nil), Pro # # ActiveRecord::StatsSubscriber.detach_from(:active_record) # -# source://activesupport//lib/active_support/subscriber.rb#32 +# pkg:gem/activesupport#lib/active_support/subscriber.rb:32 class ActiveSupport::Subscriber - # @return [Subscriber] a new instance of Subscriber - # - # source://activesupport//lib/active_support/subscriber.rb#70 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def initialize; end - # source://activesupport//lib/active_support/subscriber.rb#70 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def call(event); end - # source://activesupport//lib/active_support/subscriber.rb#70 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def patterns; end class << self # Attach the subscriber to a namespace. # - # source://activesupport//lib/active_support/subscriber.rb#35 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:35 def attach_to(namespace, subscriber = T.unsafe(nil), notifier = T.unsafe(nil), inherit_all: T.unsafe(nil)); end # Detach the subscriber from a namespace. # - # source://activesupport//lib/active_support/subscriber.rb#50 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:50 def detach_from(namespace, notifier = T.unsafe(nil)); end # Adds event subscribers for all new methods added to the class. # - # source://activesupport//lib/active_support/subscriber.rb#69 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:69 def method_added(event); end - # source://activesupport//lib/active_support/subscriber.rb#79 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:79 def subscribers; end private - # source://activesupport//lib/active_support/subscriber.rb#86 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:86 def add_event_subscriber(event); end - # source://activesupport//lib/active_support/subscriber.rb#124 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:124 def fetch_public_methods(subscriber, inherit_all); end - # source://activesupport//lib/active_support/subscriber.rb#108 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:108 def find_attached_subscriber; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/subscriber.rb#112 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:112 def invalid_event?(event); end - # Returns the value of attribute namespace. - # - # source://activesupport//lib/active_support/subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:84 def namespace; end - # Returns the value of attribute notifier. - # - # source://activesupport//lib/active_support/subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:84 def notifier; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/subscriber.rb#120 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:120 def pattern_subscribed?(pattern); end - # source://activesupport//lib/active_support/subscriber.rb#116 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:116 def prepare_pattern(event); end - # source://activesupport//lib/active_support/subscriber.rb#97 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:97 def remove_event_subscriber(event); end - # Returns the value of attribute subscriber. - # - # source://activesupport//lib/active_support/subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:84 def subscriber; end end end @@ -13054,66 +12241,64 @@ end # source location of the syntax error. That way we can display the error # source on error pages in development. # -# source://activesupport//lib/active_support/syntax_error_proxy.rb#10 +# pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:10 class ActiveSupport::SyntaxErrorProxy - # source://activesupport//lib/active_support/syntax_error_proxy.rb#11 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:11 def backtrace; end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#41 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:41 def backtrace_locations; end private - # source://activesupport//lib/active_support/syntax_error_proxy.rb#54 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:54 def parse_message_for_trace; end end -# source://activesupport//lib/active_support/syntax_error_proxy.rb#15 +# pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:15 class ActiveSupport::SyntaxErrorProxy::BacktraceLocation < ::Struct - # source://activesupport//lib/active_support/syntax_error_proxy.rb#25 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:25 def absolute_path; end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#22 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:22 def base_label; end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#19 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:19 def label; end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#16 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:16 def spot(_); end end -# source://activesupport//lib/active_support/syntax_error_proxy.rb#30 +# pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:30 class ActiveSupport::SyntaxErrorProxy::BacktraceLocationProxy - # @return [BacktraceLocationProxy] a new instance of BacktraceLocationProxy - # - # source://activesupport//lib/active_support/syntax_error_proxy.rb#31 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:31 def initialize(loc, ex); end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#36 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:36 def spot(_); end end -# source://activesupport//lib/active_support/event_reporter.rb#6 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:6 class ActiveSupport::TagStack class << self - # source://activesupport//lib/active_support/event_reporter.rb#11 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:11 def tags; end - # source://activesupport//lib/active_support/event_reporter.rb#15 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:15 def with_tags(*args, **kwargs); end private - # source://activesupport//lib/active_support/event_reporter.rb#30 + # pkg:gem/activesupport#lib/active_support/event_reporter.rb:30 def resolve_tags(args, kwargs); end end end -# source://activesupport//lib/active_support/event_reporter.rb#7 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:7 ActiveSupport::TagStack::EMPTY_TAGS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/event_reporter.rb#8 +# pkg:gem/activesupport#lib/active_support/event_reporter.rb:8 ActiveSupport::TagStack::FIBER_KEY = T.let(T.unsafe(nil), Symbol) # = Active Support Tagged Logging @@ -13138,111 +12323,99 @@ ActiveSupport::TagStack::FIBER_KEY = T.let(T.unsafe(nil), Symbol) # it easy to stamp log lines with subdomains, request ids, and anything else # to aid debugging of multi-user production applications. # -# source://activesupport//lib/active_support/tagged_logging.rb#29 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:29 module ActiveSupport::TaggedLogging - # source://activesupport//lib/active_support/tagged_logging.rb#139 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:139 def clear_tags!(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/tagged_logging.rb#152 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:152 def flush; end - # source://activesupport//lib/active_support/tagged_logging.rb#139 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:139 def pop_tags(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/tagged_logging.rb#139 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:139 def push_tags(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/tagged_logging.rb#141 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:141 def tagged(*tags); end class << self # Returns an `ActiveSupport::Logger` that has already been wrapped with tagged logging concern. # - # source://activesupport//lib/active_support/tagged_logging.rb#117 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:117 def logger(*args, **kwargs); end - # source://activesupport//lib/active_support/tagged_logging.rb#121 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:121 def new(logger); end end end -# source://activesupport//lib/active_support/tagged_logging.rb#30 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:30 module ActiveSupport::TaggedLogging::Formatter # This method is invoked when a log event occurs. # - # source://activesupport//lib/active_support/tagged_logging.rb#32 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:32 def call(severity, timestamp, progname, msg); end - # source://activesupport//lib/active_support/tagged_logging.rb#51 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:51 def clear_tags!; end - # source://activesupport//lib/active_support/tagged_logging.rb#61 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:61 def current_tags; end - # source://activesupport//lib/active_support/tagged_logging.rb#47 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:47 def pop_tags(count = T.unsafe(nil)); end - # source://activesupport//lib/active_support/tagged_logging.rb#43 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:43 def push_tags(*tags); end - # source://activesupport//lib/active_support/tagged_logging.rb#55 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:55 def tag_stack; end - # source://activesupport//lib/active_support/tagged_logging.rb#36 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:36 def tagged(*tags); end - # source://activesupport//lib/active_support/tagged_logging.rb#65 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:65 def tags_text; end end -# source://activesupport//lib/active_support/tagged_logging.rb#108 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:108 module ActiveSupport::TaggedLogging::LocalTagStorage - # Returns the value of attribute tag_stack. - # - # source://activesupport//lib/active_support/tagged_logging.rb#109 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:109 def tag_stack; end - # Sets the attribute tag_stack - # - # @param value the value to set the attribute tag_stack to. - # - # source://activesupport//lib/active_support/tagged_logging.rb#109 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:109 def tag_stack=(_arg0); end class << self - # @private - # - # source://activesupport//lib/active_support/tagged_logging.rb#111 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:111 def extended(base); end end end -# source://activesupport//lib/active_support/tagged_logging.rb#70 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:70 class ActiveSupport::TaggedLogging::TagStack - # @return [TagStack] a new instance of TagStack - # - # source://activesupport//lib/active_support/tagged_logging.rb#73 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:73 def initialize; end - # source://activesupport//lib/active_support/tagged_logging.rb#91 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:91 def clear; end - # source://activesupport//lib/active_support/tagged_logging.rb#96 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:96 def format_message(message); end - # source://activesupport//lib/active_support/tagged_logging.rb#86 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:86 def pop_tags(count); end - # source://activesupport//lib/active_support/tagged_logging.rb#78 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:78 def push_tags(tags); end - # Returns the value of attribute tags. - # - # source://activesupport//lib/active_support/tagged_logging.rb#71 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:71 def tags; end end -# source://activesupport//lib/active_support/test_case.rb#23 +# pkg:gem/activesupport#lib/active_support/test_case.rb:23 class ActiveSupport::TestCase < ::Minitest::Test include ::ActiveSupport::Testing::SetupAndTeardown include ::ActiveSupport::Testing::TestsWithoutAssertions @@ -13261,109 +12434,109 @@ class ActiveSupport::TestCase < ::Minitest::Test extend ::ActiveSupport::Testing::SetupAndTeardown::ClassMethods extend ::ActiveSupport::Testing::Declarative - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def __callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _run_setup_callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _run_setup_callbacks!(&block); end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _run_teardown_callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _run_teardown_callbacks!(&block); end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _setup_callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _teardown_callbacks; end - # source://activesupport//lib/active_support/test_case.rb#302 + # pkg:gem/activesupport#lib/active_support/test_case.rb:302 def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#225 + # pkg:gem/activesupport#lib/active_support/test_case.rb:225 def assert_not_empty(obj, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#236 + # pkg:gem/activesupport#lib/active_support/test_case.rb:236 def assert_not_equal(exp, act, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#247 + # pkg:gem/activesupport#lib/active_support/test_case.rb:247 def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#258 + # pkg:gem/activesupport#lib/active_support/test_case.rb:258 def assert_not_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#269 + # pkg:gem/activesupport#lib/active_support/test_case.rb:269 def assert_not_includes(obj, sub, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#280 + # pkg:gem/activesupport#lib/active_support/test_case.rb:280 def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#291 + # pkg:gem/activesupport#lib/active_support/test_case.rb:291 def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#313 + # pkg:gem/activesupport#lib/active_support/test_case.rb:313 def assert_not_nil(obj, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#324 + # pkg:gem/activesupport#lib/active_support/test_case.rb:324 def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#335 + # pkg:gem/activesupport#lib/active_support/test_case.rb:335 def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#346 + # pkg:gem/activesupport#lib/active_support/test_case.rb:346 def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#357 + # pkg:gem/activesupport#lib/active_support/test_case.rb:357 def assert_not_same(exp, act, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def file_fixture_path; end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def file_fixture_path?; end - # source://activesupport//lib/active_support/test_case.rb#361 + # pkg:gem/activesupport#lib/active_support/test_case.rb:361 def inspect; end - # source://activesupport//lib/active_support/test_case.rb#196 + # pkg:gem/activesupport#lib/active_support/test_case.rb:196 def method_name; end # Returns the current parallel worker ID if tests are running in parallel # - # source://activesupport//lib/active_support/test_case.rb#199 + # pkg:gem/activesupport#lib/active_support/test_case.rb:199 def parallel_worker_id; end class << self - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def __callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def __callbacks=(value); end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _setup_callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _setup_callbacks=(value); end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _teardown_callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def _teardown_callbacks=(value); end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def file_fixture_path; end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def file_fixture_path=(value); end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def file_fixture_path?; end # Returns the current parallel worker ID if tests are running in parallel, @@ -13371,10 +12544,10 @@ class ActiveSupport::TestCase < ::Minitest::Test # # ActiveSupport::TestCase.parallel_worker_id # => 2 # - # source://activesupport//lib/active_support/test_case.rb#34 + # pkg:gem/activesupport#lib/active_support/test_case.rb:34 def parallel_worker_id; end - # source://activesupport//lib/active_support/test_case.rb#38 + # pkg:gem/activesupport#lib/active_support/test_case.rb:38 def parallel_worker_id=(value); end # Parallelizes the test suite. @@ -13420,7 +12593,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # Note that your test suite may deadlock if you attempt to use only one database # with multiple processes. # - # source://activesupport//lib/active_support/test_case.rb#113 + # pkg:gem/activesupport#lib/active_support/test_case.rb:113 def parallelize(workers: T.unsafe(nil), with: T.unsafe(nil), threshold: T.unsafe(nil), parallelize_databases: T.unsafe(nil)); end # Before fork hook for parallel testing. This can be used to run anything @@ -13434,7 +12607,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # end # end # - # source://activesupport//lib/active_support/test_case.rb#138 + # pkg:gem/activesupport#lib/active_support/test_case.rb:138 def parallelize_before_fork(&block); end # Setup hook for parallel testing. This can be used if you have multiple @@ -13451,7 +12624,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # end # end # - # source://activesupport//lib/active_support/test_case.rb#155 + # pkg:gem/activesupport#lib/active_support/test_case.rb:155 def parallelize_setup(&block); end # Clean up hook for parallel testing. This can be used to drop databases @@ -13468,7 +12641,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # end # end # - # source://activesupport//lib/active_support/test_case.rb#172 + # pkg:gem/activesupport#lib/active_support/test_case.rb:172 def parallelize_teardown(&block); end # Returns the order in which test cases are run. @@ -13478,7 +12651,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # Possible values are +:random+, +:parallel+, +:alpha+, +:sorted+. # Defaults to +:random+. # - # source://activesupport//lib/active_support/test_case.rb#61 + # pkg:gem/activesupport#lib/active_support/test_case.rb:61 def test_order; end # Sets the order in which test cases are run. @@ -13491,32 +12664,32 @@ class ActiveSupport::TestCase < ::Minitest::Test # * +:sorted+ (to run tests alphabetically by method name) # * +:alpha+ (equivalent to +:sorted+) # - # source://activesupport//lib/active_support/test_case.rb#51 + # pkg:gem/activesupport#lib/active_support/test_case.rb:51 def test_order=(new_order); end private - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/test_case.rb#204 + # pkg:gem/activesupport#lib/active_support/test_case.rb:204 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def __class_attr_file_fixture_path; end - # source://activesupport//lib/active_support/test_case.rb#213 + # pkg:gem/activesupport#lib/active_support/test_case.rb:213 def __class_attr_file_fixture_path=(new_value); end end end -# source://activesupport//lib/active_support/test_case.rb#24 +# pkg:gem/activesupport#lib/active_support/test_case.rb:24 ActiveSupport::TestCase::Assertion = Minitest::Assertion -# source://activesupport//lib/active_support/testing/tagged_logging.rb#4 +# pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:4 module ActiveSupport::Testing; end -# source://activesupport//lib/active_support/testing/assertions.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/assertions.rb:7 module ActiveSupport::Testing::Assertions # Assertion that the result of evaluating an expression is changed before # and after invoking the passed in block. @@ -13565,7 +12738,7 @@ module ActiveSupport::Testing::Assertions # post :create, params: { status: { incident: true } } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#212 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:212 def assert_changes(expression, message = T.unsafe(nil), from: T.unsafe(nil), to: T.unsafe(nil), &block); end # Test numeric difference between the return value of an expression as a @@ -13620,7 +12793,7 @@ module ActiveSupport::Testing::Assertions # post :delete, params: { id: ... } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#105 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:105 def assert_difference(expression, *args, &block); end # Assertion that the result of evaluating an expression is not changed before @@ -13655,7 +12828,7 @@ module ActiveSupport::Testing::Assertions # post :create, params: { status: { ok: false } } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#281 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:281 def assert_no_changes(expression, message = T.unsafe(nil), from: T.unsafe(nil), &block); end # Assertion that the numeric result of evaluating an expression is not @@ -13683,7 +12856,7 @@ module ActiveSupport::Testing::Assertions # post :create, params: { article: invalid_attributes } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#162 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:162 def assert_no_difference(expression, message = T.unsafe(nil), &block); end # Asserts that an expression is not truthy. Passes if +object+ is +nil+ or @@ -13698,7 +12871,7 @@ module ActiveSupport::Testing::Assertions # # assert_not foo, 'foo should be false' # - # source://activesupport//lib/active_support/testing/assertions.rb#21 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:21 def assert_not(object, message = T.unsafe(nil)); end # Assertion that the block should not raise an exception. @@ -13709,18 +12882,10 @@ module ActiveSupport::Testing::Assertions # perform_service(param: 'no_exception') # end # - # source://activesupport//lib/active_support/testing/assertions.rb#48 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:48 def assert_nothing_raised; end - # Asserts that a block raises one of +exp+. This is an enhancement of the - # standard Minitest assertion method with the ability to test error - # messages. - # - # assert_raises(ArgumentError, match: /incorrect param/i) do - # perform_service(param: 'exception') - # end - # - # source://activesupport//lib/active_support/testing/assertions.rb#39 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:39 def assert_raise(*exp, match: T.unsafe(nil), &block); end # Asserts that a block raises one of +exp+. This is an enhancement of the @@ -13731,19 +12896,19 @@ module ActiveSupport::Testing::Assertions # perform_service(param: 'exception') # end # - # source://activesupport//lib/active_support/testing/assertions.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:34 def assert_raises(*exp, match: T.unsafe(nil), &block); end private - # source://activesupport//lib/active_support/testing/assertions.rb#316 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:316 def _assert_nothing_raised_or_warn(assertion, &block); end - # source://activesupport//lib/active_support/testing/assertions.rb#331 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:331 def _callable_to_source_string(callable); end end -# source://activesupport//lib/active_support/testing/assertions.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/assertions.rb:8 ActiveSupport::Testing::Assertions::UNTRACKED = T.let(T.unsafe(nil), Object) # Resolves a constant from a minitest spec name. @@ -13771,20 +12936,20 @@ ActiveSupport::Testing::Assertions::UNTRACKED = T.let(T.unsafe(nil), Object) # Class === constant && constant < ::ActionController::Metal # end # -# source://activesupport//lib/active_support/testing/constant_lookup.rb#32 +# pkg:gem/activesupport#lib/active_support/testing/constant_lookup.rb:32 module ActiveSupport::Testing::ConstantLookup extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods end -# source://activesupport//lib/active_support/testing/constant_lookup.rb#35 +# pkg:gem/activesupport#lib/active_support/testing/constant_lookup.rb:35 module ActiveSupport::Testing::ConstantLookup::ClassMethods - # source://activesupport//lib/active_support/testing/constant_lookup.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/constant_lookup.rb:36 def determine_constant_from_test_name(test_name); end end -# source://activesupport//lib/active_support/testing/constant_stubbing.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/constant_stubbing.rb:5 module ActiveSupport::Testing::ConstantStubbing # Changes the value of a constant for the duration of a block. Example: # @@ -13809,11 +12974,11 @@ module ActiveSupport::Testing::ConstantStubbing # (like separate test suites running in parallel) that all depend on the same constant, it's possible # divergent stubbing will trample on each other. # - # source://activesupport//lib/active_support/testing/constant_stubbing.rb#28 + # pkg:gem/activesupport#lib/active_support/testing/constant_stubbing.rb:28 def stub_const(mod, constant, new_value, exists: T.unsafe(nil)); end end -# source://activesupport//lib/active_support/testing/declarative.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/declarative.rb:5 module ActiveSupport::Testing::Declarative # Helper to define a test method using a String. Under the hood, it replaces # spaces with underscores and defines the test method. @@ -13822,11 +12987,11 @@ module ActiveSupport::Testing::Declarative # ... # end # - # source://activesupport//lib/active_support/testing/declarative.rb#13 + # pkg:gem/activesupport#lib/active_support/testing/declarative.rb:13 def test(name, &block); end end -# source://activesupport//lib/active_support/testing/deprecation.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:7 module ActiveSupport::Testing::Deprecation # :call-seq: # assert_deprecated(deprecator, &block) @@ -13850,7 +13015,7 @@ module ActiveSupport::Testing::Deprecation # CustomDeprecator.warn "foo should no longer be used" # end # - # source://activesupport//lib/active_support/testing/deprecation.rb#30 + # pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:30 def assert_deprecated(match = T.unsafe(nil), deprecator = T.unsafe(nil), &block); end # Asserts that no deprecation warnings are emitted by the given deprecator during the execution of the yielded block. @@ -13863,7 +13028,7 @@ module ActiveSupport::Testing::Deprecation # CustomDeprecator.warn "message" # passes assertion, different deprecator # end # - # source://activesupport//lib/active_support/testing/deprecation.rb#55 + # pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:55 def assert_not_deprecated(deprecator, &block); end # Returns the return value of the block and an array of all the deprecation warnings emitted by the given @@ -13875,11 +13040,11 @@ module ActiveSupport::Testing::Deprecation # :result # end # => [:result, ["message"]] # - # source://activesupport//lib/active_support/testing/deprecation.rb#69 + # pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:69 def collect_deprecations(deprecator); end end -# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:5 module ActiveSupport::Testing::ErrorReporterAssertions # Assertion that the block should cause at least one exception to be reported # to +Rails.error+. @@ -13901,7 +13066,7 @@ module ActiveSupport::Testing::ErrorReporterAssertions # assert_equal :warning, report.severity # assert_predicate report, :handled? # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#88 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:88 def assert_error_reported(error_class = T.unsafe(nil), &block); end # Assertion that the block should not cause an exception to be reported @@ -13913,7 +13078,7 @@ module ActiveSupport::Testing::ErrorReporterAssertions # perform_service(param: 'no_exception') # end # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#62 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:62 def assert_no_error_reported(&block); end # Captures reported errors from within the block that match the given @@ -13929,131 +13094,82 @@ module ActiveSupport::Testing::ErrorReporterAssertions # assert_equal "Oops", reports.first.error.message # assert_equal "Oh no", reports.last.error.message # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#118 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:118 def capture_error_reports(error_class = T.unsafe(nil), &block); end end -# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#6 +# pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:6 module ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector class << self - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#16 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:16 def record; end - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#29 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:29 def report(error, **kwargs); end private - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#38 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:38 def subscribe; end end end -# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 +# pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 class ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector::Report < ::Struct - # Returns the value of attribute context - # - # @return [Object] the current value of context - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def context; end - # Sets the attribute context - # - # @param value [Object] the value to set the attribute context to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def context=(_); end - # Returns the value of attribute error - # - # @return [Object] the current value of error - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def error; end - # Sets the attribute error - # - # @param value [Object] the value to set the attribute error to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def error=(_); end - # Returns the value of attribute handled - # - # @return [Object] the current value of handled - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def handled; end - # Sets the attribute handled - # - # @param value [Object] the value to set the attribute handled to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def handled=(_); end - # Returns the value of attribute handled - # - # @return [Object] the current value of handled - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#12 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:12 def handled?; end - # Returns the value of attribute severity - # - # @return [Object] the current value of severity - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def severity; end - # Sets the attribute severity - # - # @param value [Object] the value to set the attribute severity to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def severity=(_); end - # Returns the value of attribute source - # - # @return [Object] the current value of source - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def source; end - # Sets the attribute source - # - # @param value [Object] the value to set the attribute source to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def [](*_arg0); end - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def inspect; end - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def members; end - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def new(*_arg0); end end end # Provides test helpers for asserting on ActiveSupport::EventReporter events. # -# source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#6 +# pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:6 module ActiveSupport::Testing::EventReporterAssertions # Asserts that the block causes an event with the given name to be reported # to +Rails.event+. @@ -14081,7 +13197,7 @@ module ActiveSupport::Testing::EventReporterAssertions # Rails.event.notify("user.created", { id: 123, name: "John Doe" }) # end # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#142 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:142 def assert_event_reported(name, payload: T.unsafe(nil), tags: T.unsafe(nil), &block); end # Asserts that the provided events were reported, regardless of order. @@ -14108,7 +13224,7 @@ module ActiveSupport::Testing::EventReporterAssertions # end # end # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#184 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:184 def assert_events_reported(expected_events, &block); end # Asserts that the block does not cause an event to be reported to +Rails.event+. @@ -14126,7 +13242,7 @@ module ActiveSupport::Testing::EventReporterAssertions # service_that_does_not_report_events.perform # end # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#101 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:101 def assert_no_event_reported(name = T.unsafe(nil), payload: T.unsafe(nil), tags: T.unsafe(nil), &block); end # Allows debug events to be reported to +Rails.event+ for the duration of a given block. @@ -14135,54 +13251,46 @@ module ActiveSupport::Testing::EventReporterAssertions # service_that_reports_debug_events.perform # end # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#222 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:222 def with_debug_event_reporting(&block); end end -# source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:7 module ActiveSupport::Testing::EventReporterAssertions::EventCollector class << self - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#46 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:46 def emit(event); end - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#53 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:53 def record; end private - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#81 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:81 def event_recorders; end - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#66 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:66 def subscribe; end end end -# source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#11 +# pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:11 class ActiveSupport::Testing::EventReporterAssertions::EventCollector::Event - # @return [Event] a new instance of Event - # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:14 def initialize(event_data); end - # Returns the value of attribute event_data. - # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#12 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:12 def event_data; end - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#18 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:18 def inspect; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:22 def matches?(name, payload, tags); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/event_reporter_assertions.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/event_reporter_assertions.rb:34 def matches_hash?(expected_hash, event_key); end end @@ -14196,7 +13304,7 @@ end # file_fixture("example.txt").read # get the file's content # file_fixture("example.mp3").size # get the file size # -# source://activesupport//lib/active_support/testing/file_fixtures.rb#16 +# pkg:gem/activesupport#lib/active_support/testing/file_fixtures.rb:16 module ActiveSupport::Testing::FileFixtures extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -14207,7 +13315,7 @@ module ActiveSupport::Testing::FileFixtures # # Raises +ArgumentError+ if +fixture_name+ can't be found. # - # source://activesupport//lib/active_support/testing/file_fixtures.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/file_fixtures.rb:26 def file_fixture(fixture_name); end module GeneratedClassMethods @@ -14222,46 +13330,44 @@ module ActiveSupport::Testing::FileFixtures end end -# source://activesupport//lib/active_support/testing/isolation.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:7 module ActiveSupport::Testing::Isolation include ::ActiveSupport::Testing::Isolation::Forking - # source://activesupport//lib/active_support/testing/isolation.rb#20 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:20 def run; end class << self - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/isolation.rb#16 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:16 def forking_env?; end - # source://activesupport//lib/active_support/testing/isolation.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:10 def included(klass); end end end -# source://activesupport//lib/active_support/testing/isolation.rb#35 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:35 module ActiveSupport::Testing::Isolation::Forking - # source://activesupport//lib/active_support/testing/isolation.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:36 def run_in_isolation(&blk); end end -# source://activesupport//lib/active_support/testing/isolation.rb#73 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:73 module ActiveSupport::Testing::Isolation::Subprocess # Complicated H4X to get this working in Windows / JRuby with # no forking. # - # source://activesupport//lib/active_support/testing/isolation.rb#78 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:78 def run_in_isolation(&blk); end end -# source://activesupport//lib/active_support/testing/isolation.rb#74 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:74 ActiveSupport::Testing::Isolation::Subprocess::ORIG_ARGV = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/testing/isolation.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:8 class ActiveSupport::Testing::Isolation::SubprocessCrashed < ::StandardError; end -# source://activesupport//lib/active_support/testing/notification_assertions.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/notification_assertions.rb:5 module ActiveSupport::Testing::NotificationAssertions # Assert no notifications were emitted for a given +pattern+. # @@ -14273,7 +13379,7 @@ module ActiveSupport::Testing::NotificationAssertions # post.destroy # => emits non-matching notification # end # - # source://activesupport//lib/active_support/testing/notification_assertions.rb#66 + # pkg:gem/activesupport#lib/active_support/testing/notification_assertions.rb:66 def assert_no_notifications(pattern = T.unsafe(nil), &block); end # Assert a notification was emitted with a given +pattern+ and optional +payload+. @@ -14298,7 +13404,7 @@ module ActiveSupport::Testing::NotificationAssertions # # assert_instance_of(Body, notification.payload[:body]) # - # source://activesupport//lib/active_support/testing/notification_assertions.rb#28 + # pkg:gem/activesupport#lib/active_support/testing/notification_assertions.rb:28 def assert_notification(pattern, payload = T.unsafe(nil), &block); end # Assert the number of notifications emitted with a given +pattern+. @@ -14312,7 +13418,7 @@ module ActiveSupport::Testing::NotificationAssertions # post.submit(title: "Cool Post") # => emits matching notification # end # - # source://activesupport//lib/active_support/testing/notification_assertions.rb#51 + # pkg:gem/activesupport#lib/active_support/testing/notification_assertions.rb:51 def assert_notifications_count(pattern, count, &block); end # Capture emitted notifications, optionally filtered by a +pattern+. @@ -14324,236 +13430,203 @@ module ActiveSupport::Testing::NotificationAssertions # post.submit(title: "Cool Post") # => emits matching notification # end # - # source://activesupport//lib/active_support/testing/notification_assertions.rb#85 + # pkg:gem/activesupport#lib/active_support/testing/notification_assertions.rb:85 def capture_notifications(pattern = T.unsafe(nil), &block); end end -# source://activesupport//lib/active_support/testing/parallelization/server.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:8 class ActiveSupport::Testing::Parallelization - # @return [Parallelization] a new instance of Parallelization - # - # source://activesupport//lib/active_support/testing/parallelization.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:36 def initialize(worker_count); end - # source://activesupport//lib/active_support/testing/parallelization.rb#54 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:54 def <<(work); end - # source://activesupport//lib/active_support/testing/parallelization.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:26 def after_fork_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#43 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:43 def before_fork; end - # source://activesupport//lib/active_support/testing/parallelization.rb#18 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:18 def before_fork_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:34 def run_cleanup_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#62 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:62 def shutdown; end - # source://activesupport//lib/active_support/testing/parallelization.rb#58 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:58 def size; end - # source://activesupport//lib/active_support/testing/parallelization.rb#47 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:47 def start; end class << self - # source://activesupport//lib/active_support/testing/parallelization.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:22 def after_fork_hook(&blk); end - # source://activesupport//lib/active_support/testing/parallelization.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:26 def after_fork_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:14 def before_fork_hook(&blk); end - # source://activesupport//lib/active_support/testing/parallelization.rb#18 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:18 def before_fork_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#30 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:30 def run_cleanup_hook(&blk); end - # source://activesupport//lib/active_support/testing/parallelization.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:34 def run_cleanup_hooks; end end end -# source://activesupport//lib/active_support/testing/parallelization/server.rb#9 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 class ActiveSupport::Testing::Parallelization::PrerecordResultClass < ::Struct - # Returns the value of attribute name - # - # @return [Object] the current value of name - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def name=(_); end class << self - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def [](*_arg0); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def inspect; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def keyword_init?; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def members; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def new(*_arg0); end end end -# source://activesupport//lib/active_support/testing/parallelization/server.rb#11 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:11 class ActiveSupport::Testing::Parallelization::Server include ::DRb::DRbUndumped - # @return [Server] a new instance of Server - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:14 def initialize; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#32 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:32 def <<(o); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#64 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:64 def active_workers?; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#68 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:68 def interrupt; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#37 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:37 def pop; end - # @raise [DRb::DRbConnError] - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#21 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:21 def record(reporter, result); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#54 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:54 def remove_dead_workers(dead_pids); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#72 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:72 def shutdown; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#44 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:44 def start_worker(worker_id, worker_pid); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#49 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:49 def stop_worker(worker_id, worker_pid); end end -# source://activesupport//lib/active_support/testing/parallelization/worker.rb#6 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:6 class ActiveSupport::Testing::Parallelization::Worker - # @return [Worker] a new instance of Worker - # - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#7 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:7 def initialize(number, url); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#82 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:82 def after_fork; end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#42 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:42 def perform_job(job); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#90 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:90 def run_cleanup; end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#58 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:58 def safe_record(reporter, result); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:14 def start; end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:36 def work_from_queue; end private - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#97 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:97 def add_setup_exception(result); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#101 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:101 def set_process_title(status); end end -# source://activesupport//lib/active_support/testing/parallelize_executor.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:5 class ActiveSupport::Testing::ParallelizeExecutor - # @return [ParallelizeExecutor] a new instance of ParallelizeExecutor - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#8 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:8 def initialize(size:, with:, threshold: T.unsafe(nil)); end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:22 def <<(work); end - # Returns the value of attribute parallelize_with. - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#6 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:6 def parallelize_with; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:26 def shutdown; end - # Returns the value of attribute size. - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#6 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:6 def size; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#15 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:15 def start; end - # Returns the value of attribute threshold. - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#6 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:6 def threshold; end private - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#35 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:35 def build_parallel_executor; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#72 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:72 def execution_info; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#60 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:60 def many_workers?; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#31 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:31 def parallel_executor; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#47 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:47 def parallelize; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#52 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:52 def parallelized?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#56 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:56 def should_parallelize?; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#68 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:68 def show_execution_info; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#64 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:64 def tests_count; end end @@ -14571,40 +13644,38 @@ end # end # end # -# source://activesupport//lib/active_support/testing/setup_and_teardown.rb#20 +# pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:20 module ActiveSupport::Testing::SetupAndTeardown - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#44 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:44 def after_teardown; end - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#39 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:39 def before_setup; end class << self - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#21 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:21 def prepended(klass); end end end -# source://activesupport//lib/active_support/testing/setup_and_teardown.rb#27 +# pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:27 module ActiveSupport::Testing::SetupAndTeardown::ClassMethods # Add a callback, which runs before TestCase#setup. # - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#29 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:29 def setup(*args, &block); end # Add a callback, which runs after TestCase#teardown. # - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:34 def teardown(*args, &block); end end # Manages stubs for TimeHelpers # -# source://activesupport//lib/active_support/testing/time_helpers.rb#9 +# pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:9 class ActiveSupport::Testing::SimpleStubs - # @return [SimpleStubs] a new instance of SimpleStubs - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#12 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:12 def initialize; end # Stubs object.method_name with the given block @@ -14615,96 +13686,67 @@ class ActiveSupport::Testing::SimpleStubs # simple_stubs.stub_object(Time, :now) { at(target.to_i) } # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#23 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:23 def stub_object(object, method_name, &block); end # Returns true if any stubs are set, false if there are none # - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#53 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:53 def stubbed?; end # Returns the Stub for object#method_name # (nil if it is not stubbed) # - # source://activesupport//lib/active_support/testing/time_helpers.rb#48 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:48 def stubbing(object, method_name); end # Remove all object-method stubs held by this instance # - # source://activesupport//lib/active_support/testing/time_helpers.rb#37 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:37 def unstub_all!; end private # Restores the original object.method described by the Stub # - # source://activesupport//lib/active_support/testing/time_helpers.rb#59 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:59 def unstub_object(stub); end end -# source://activesupport//lib/active_support/testing/time_helpers.rb#10 +# pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct - # Returns the value of attribute method_name - # - # @return [Object] the current value of method_name - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def method_name; end - # Sets the attribute method_name - # - # @param value [Object] the value to set the attribute method_name to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def method_name=(_); end - # Returns the value of attribute object - # - # @return [Object] the current value of object - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def object; end - # Sets the attribute object - # - # @param value [Object] the value to set the attribute object to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def object=(_); end - # Returns the value of attribute original_method - # - # @return [Object] the current value of original_method - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def original_method; end - # Sets the attribute original_method - # - # @param value [Object] the value to set the attribute original_method to. - # @return [Object] the newly set value - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def [](*_arg0); end - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def inspect; end - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def keyword_init?; end - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def members; end - # source://activesupport//lib/active_support/testing/time_helpers.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def new(*_arg0); end end end @@ -14712,17 +13754,17 @@ end # Logs a "PostsControllerTest: test name" heading before each test to # make test.log easier to search and follow along with. # -# source://activesupport//lib/active_support/testing/tagged_logging.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:7 module ActiveSupport::Testing::TaggedLogging - # source://activesupport//lib/active_support/testing/tagged_logging.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:10 def before_setup; end - # source://activesupport//lib/active_support/testing/tagged_logging.rb#8 + # pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:8 def tagged_logger=(_arg0); end private - # source://activesupport//lib/active_support/testing/tagged_logging.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:22 def tagged_logger; end end @@ -14730,17 +13772,17 @@ end # # This is helpful in detecting broken tests that do not perform intended assertions. # -# source://activesupport//lib/active_support/testing/tests_without_assertions.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/tests_without_assertions.rb:8 module ActiveSupport::Testing::TestsWithoutAssertions - # source://activesupport//lib/active_support/testing/tests_without_assertions.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/tests_without_assertions.rb:9 def after_teardown; end end # Contains helpers that help you test passage of time. # -# source://activesupport//lib/active_support/testing/time_helpers.rb#68 +# pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:68 module ActiveSupport::Testing::TimeHelpers - # source://activesupport//lib/active_support/testing/time_helpers.rb#69 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:69 def after_teardown; end # Calls +travel_to+ with +date_or_time+, which defaults to +Time.now+. @@ -14764,7 +13806,7 @@ module ActiveSupport::Testing::TimeHelpers # end # Time.current # => Sun, 09 Jul 2017 15:34:50 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#261 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:261 def freeze_time(date_or_time = T.unsafe(nil), with_usec: T.unsafe(nil), &block); end # Changes current time to the time in the future or in the past by a given time difference by @@ -14791,7 +13833,7 @@ module ActiveSupport::Testing::TimeHelpers # end # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#97 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:97 def travel(duration, with_usec: T.unsafe(nil), &block); end # Returns the current time back to its original state, by removing the stubs added by @@ -14818,7 +13860,7 @@ module ActiveSupport::Testing::TimeHelpers # # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#231 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:231 def travel_back; end # Changes current time to the given time by stubbing +Time.now+, +Time.new+, @@ -14854,51 +13896,21 @@ module ActiveSupport::Testing::TimeHelpers # end # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#133 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:133 def travel_to(date_or_time, with_usec: T.unsafe(nil)); end - # Returns the current time back to its original state, by removing the stubs added by - # +travel+, +travel_to+, and +freeze_time+. - # - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # - # travel_to Time.zone.local(2004, 11, 24, 1, 4, 44) - # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 - # - # travel_back - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # - # This method also accepts a block, which brings the stubs back at the end of the block: - # - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # - # travel_to Time.zone.local(2004, 11, 24, 1, 4, 44) - # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 - # - # travel_back do - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # end - # - # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#239 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:239 def unfreeze_time; end private - # Returns the value of attribute in_block. - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#270 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:270 def in_block; end - # Sets the attribute in_block - # - # @param value the value to set the attribute in_block to. - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#270 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:270 def in_block=(_arg0); end - # source://activesupport//lib/active_support/testing/time_helpers.rb#266 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:266 def simple_stubs; end end @@ -14936,14 +13948,12 @@ end # t.is_a?(Time) # => true # t.is_a?(ActiveSupport::TimeWithZone) # => true # -# source://activesupport//lib/active_support/time_with_zone.rb#44 +# pkg:gem/activesupport#lib/active_support/time_with_zone.rb:44 class ActiveSupport::TimeWithZone include ::DateAndTime::Compatibility include ::Comparable - # @return [TimeWithZone] a new instance of TimeWithZone - # - # source://activesupport//lib/active_support/time_with_zone.rb#51 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:51 def initialize(utc_time, time_zone, local_time = T.unsafe(nil), period = T.unsafe(nil)); end # Adds an interval of time to the current object's time and returns that @@ -14963,7 +13973,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#314 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:314 def +(other); end # Subtracts an interval of time and returns a new TimeWithZone object unless @@ -14989,19 +13999,17 @@ class ActiveSupport::TimeWithZone # # Time.zone.now - 1.day.ago # => 86399.999967 # - # source://activesupport//lib/active_support/time_with_zone.rb#349 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:349 def -(other); end # Use the time in UTC for comparisons. # - # source://activesupport//lib/active_support/time_with_zone.rb#247 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:247 def <=>(other); end # So that +self+ acts_like?(:time). # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#506 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:506 def acts_like_time?; end # Uses Date to provide precise Time calculations for years, months, and days @@ -15026,10 +14034,10 @@ class ActiveSupport::TimeWithZone # now.advance(months: 1) # => Tue, 02 Dec 2014 01:26:28.558049687 EST -05:00 # now.advance(years: 1) # => Mon, 02 Nov 2015 01:26:28.558049687 EST -05:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#438 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:438 def advance(options); end - # source://activesupport//lib/active_support/time_with_zone.rb#251 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:251 def after?(_arg0); end # Subtracts an interval of time from the current object's time and returns @@ -15050,7 +14058,7 @@ class ActiveSupport::TimeWithZone # now.ago(24.hours) # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00 # now.ago(1.day) # => Sun, 02 Nov 2014 00:26:28.725182881 EDT -04:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#377 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:377 def ago(other); end # Coerces time to a string for JSON encoding. The default format is ISO 8601. @@ -15066,25 +14074,21 @@ class ActiveSupport::TimeWithZone # Time.utc(2005,2,1,15,15,10).in_time_zone("Hawaii").as_json # # => "2005/02/01 05:15:10 -1000" # - # source://activesupport//lib/active_support/time_with_zone.rb#182 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:182 def as_json(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#250 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:250 def before?(_arg0); end # Returns true if the current object's time is within the specified # +min+ and +max+ time. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#255 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:255 def between?(min, max); end # An instance of ActiveSupport::TimeWithZone is never blank # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#517 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:517 def blank?; end # Returns a new +ActiveSupport::TimeWithZone+ where one or more of the elements have @@ -15105,15 +14109,13 @@ class ActiveSupport::TimeWithZone # t.change(offset: "-10:00") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00 # t.change(zone: "Hawaii") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#398 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:398 def change(options); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#72 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:72 def comparable_time; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def day; end # Returns true if the current time is within Daylight Savings \Time for the @@ -15123,19 +14125,15 @@ class ActiveSupport::TimeWithZone # Time.zone.parse("2012-5-30").dst? # => true # Time.zone.parse("2012-11-30").dst? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#100 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:100 def dst?; end - # source://activesupport//lib/active_support/time_with_zone.rb#194 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:194 def encode_with(coder); end # Returns +true+ if +other+ is equal to current object. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#290 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:290 def eql?(other); end # Returns a formatted string of the offset from UTC, or an alternative @@ -15147,65 +14145,42 @@ class ActiveSupport::TimeWithZone # Time.zone = 'UTC' # => "UTC" # Time.zone.now.formatted_offset(true, "0") # => "0" # - # source://activesupport//lib/active_support/time_with_zone.rb#131 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:131 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#525 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:525 def freeze; end # Returns true if the current object's time is in the future. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#285 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:285 def future?; end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#73 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:73 def getgm; end - # Returns a Time instance of the simultaneous time in the system timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#92 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:92 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#74 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:74 def getutc; end - # Returns true if the current time zone is set to UTC. - # - # Time.zone = 'UTC' # => 'UTC' - # Time.zone.now.utc? # => true - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # Time.zone.now.utc? # => false - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#114 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:114 def gmt?; end - # Returns the offset from current time to UTC time in seconds. - # - # source://activesupport//lib/active_support/time_with_zone.rb#120 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:120 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#75 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:75 def gmtime; end - # Returns the offset from current time to UTC time in seconds. - # - # source://activesupport//lib/active_support/time_with_zone.rb#121 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:121 def gmtoff; end - # source://activesupport//lib/active_support/time_with_zone.rb#294 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:294 def hash; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def hour; end # Returns a string of the object's date and time in the format used by @@ -15213,149 +14188,96 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.httpdate # => "Tue, 01 Jan 2013 04:39:43 GMT" # - # source://activesupport//lib/active_support/time_with_zone.rb#202 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:202 def httpdate; end - # Adds an interval of time to the current object's time and returns that - # value as a new TimeWithZone object. - # - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # now = Time.zone.now # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00 - # now + 1000 # => Sun, 02 Nov 2014 01:43:08.725182881 EDT -04:00 - # - # If we're adding a Duration of variable length (i.e., years, months, days), - # move forward from #time, otherwise move forward from #utc, for accuracy - # when moving across DST boundaries. - # - # For instance, a time + 24.hours will advance exactly 24 hours, while a - # time + 1.day will advance 23-25 hours, depending on the day. - # - # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00 - # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00 - # - # source://activesupport//lib/active_support/time_with_zone.rb#324 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:324 def in(other); end # Returns the simultaneous time in Time.zone, or the specified zone. # - # source://activesupport//lib/active_support/time_with_zone.rb#83 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:83 def in_time_zone(new_zone = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#190 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:190 def init_with(coder); end # Returns a string of the object's date, time, zone, and offset from UTC. # # Time.zone.now.inspect # => "2024-11-13 07:00:10.528054960 UTC +00:00" # - # source://activesupport//lib/active_support/time_with_zone.rb#146 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:146 def inspect; end # Say we're a Time to thwart type checking. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#511 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:511 def is_a?(klass); end - # Returns true if the current time is within Daylight Savings \Time for the - # specified time zone. - # - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # Time.zone.parse("2012-5-30").dst? # => true - # Time.zone.parse("2012-11-30").dst? # => false - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#103 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:103 def isdst; end - # Returns a string of the object's date and time in the ISO 8601 standard - # format. - # - # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" - # - # source://activesupport//lib/active_support/time_with_zone.rb#167 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:167 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#514 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:514 def kind_of?(klass); end # Returns a Time instance of the simultaneous time in the system timezone. # - # source://activesupport//lib/active_support/time_with_zone.rb#89 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:89 def localtime(utc_offset = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#531 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:531 def marshal_dump; end - # source://activesupport//lib/active_support/time_with_zone.rb#535 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:535 def marshal_load(variables); end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def mday; end # Send the missing method to +time+ instance, and wrap result in a new # TimeWithZone with the existing +time_zone+. # - # source://activesupport//lib/active_support/time_with_zone.rb#555 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:555 def method_missing(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def min; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def mon; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def month; end - # Returns true if the current object's time falls within - # the next day (tomorrow). - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#275 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:275 def next_day?; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def nsec; end # Returns true if the current object's time is in the past. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#260 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:260 def past?; end # Returns the underlying +TZInfo::TimezonePeriod+. # - # source://activesupport//lib/active_support/time_with_zone.rb#78 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:78 def period; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#521 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:521 def present?; end - # Returns true if the current object's time falls within - # the previous day (yesterday). - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#282 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:282 def prev_day?; end # respond_to_missing? is not called in some cases, such as when type conversion is # performed with Kernel#String # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#541 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:541 def respond_to?(sym, include_priv = T.unsafe(nil)); end # Returns a string of the object's date and time in the RFC 2822 standard @@ -15363,62 +14285,33 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.rfc2822 # => "Tue, 01 Jan 2013 04:51:39 +0000" # - # source://activesupport//lib/active_support/time_with_zone.rb#210 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:210 def rfc2822; end - # Returns a string of the object's date and time in the ISO 8601 standard - # format. - # - # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" - # - # source://activesupport//lib/active_support/time_with_zone.rb#168 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:168 def rfc3339(fraction_digits = T.unsafe(nil)); end - # Returns a string of the object's date and time in the RFC 2822 standard - # format. - # - # Time.zone.now.rfc2822 # => "Tue, 01 Jan 2013 04:51:39 +0000" - # - # source://activesupport//lib/active_support/time_with_zone.rb#213 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:213 def rfc822; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def sec; end - # Adds an interval of time to the current object's time and returns that - # value as a new TimeWithZone object. + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:323 + def since(other); end + + # Replaces %Z directive with +zone before passing to Time#strftime, + # so that zone information is correct. # - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # now = Time.zone.now # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00 - # now + 1000 # => Sun, 02 Nov 2014 01:43:08.725182881 EDT -04:00 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:241 + def strftime(format); end + + # Returns a Time instance that represents the time in +time_zone+. # - # If we're adding a Duration of variable length (i.e., years, months, days), - # move forward from #time, otherwise move forward from #utc, for accuracy - # when moving across DST boundaries. - # - # For instance, a time + 24.hours will advance exactly 24 hours, while a - # time + 1.day will advance 23-25 hours, depending on the day. - # - # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00 - # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00 - # - # source://activesupport//lib/active_support/time_with_zone.rb#323 - def since(other); end - - # Replaces %Z directive with +zone before passing to Time#strftime, - # so that zone information is correct. - # - # source://activesupport//lib/active_support/time_with_zone.rb#241 - def strftime(format); end - - # Returns a Time instance that represents the time in +time_zone+. - # - # source://activesupport//lib/active_support/time_with_zone.rb#64 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:64 def time; end - # Returns the value of attribute time_zone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#49 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:49 def time_zone; end # Returns Array of parts of Time in sequence of @@ -15427,10 +14320,10 @@ class ActiveSupport::TimeWithZone # now = Time.zone.now # => Tue, 18 Aug 2015 02:29:27.485278555 UTC +00:00 # now.to_a # => [27, 29, 2, 18, 8, 2015, 2, 230, false, "UTC"] # - # source://activesupport//lib/active_support/time_with_zone.rb#461 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:461 def to_a; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def to_date; end # Returns an instance of DateTime with the timezone's UTC offset @@ -15438,7 +14331,7 @@ class ActiveSupport::TimeWithZone # Time.zone.now.to_datetime # => Tue, 18 Aug 2015 02:32:20 +0000 # Time.current.in_time_zone('Hawaii').to_datetime # => Mon, 17 Aug 2015 16:32:20 -1000 # - # source://activesupport//lib/active_support/time_with_zone.rb#494 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:494 def to_datetime; end # Returns the object's date and time as a floating-point number of seconds @@ -15446,19 +14339,10 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_f # => 1417709320.285418 # - # source://activesupport//lib/active_support/time_with_zone.rb#469 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:469 def to_f; end - # Returns a string of the object's date and time. - # - # This method is aliased to to_formatted_s. - # - # Accepts an optional format: - # * :default - default value, mimics Ruby Time#to_s format. - # * :db - format outputs time in UTC :db time. See Time#to_fs(:db). - # * Any key in +Time::DATE_FORMATS+ can be used. See active_support/core_ext/time/conversions.rb. - # - # source://activesupport//lib/active_support/time_with_zone.rb#237 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:237 def to_formatted_s(format = T.unsafe(nil)); end # Returns a string of the object's date and time. @@ -15470,7 +14354,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#228 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:228 def to_fs(format = T.unsafe(nil)); end # Returns the object's date and time as an integer number of seconds @@ -15478,7 +14362,7 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_i # => 1417709320 # - # source://activesupport//lib/active_support/time_with_zone.rb#477 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:477 def to_i; end # Returns the object's date and time as a rational number of seconds @@ -15486,51 +14370,42 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_r # => (708854548642709/500000) # - # source://activesupport//lib/active_support/time_with_zone.rb#486 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:486 def to_r; end # Returns a string of the object's date and time. # - # source://activesupport//lib/active_support/time_with_zone.rb#216 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:216 def to_s; end # Returns an instance of +Time+, either with the same timezone as +self+, # with the same UTC offset as +self+ or in the local system timezone # depending on the setting of +ActiveSupport.to_time_preserves_timezone+. # - # source://activesupport//lib/active_support/time_with_zone.rb#501 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:501 def to_time; end # Returns true if the current object's time falls within # the current day. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#266 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:266 def today?; end # Returns true if the current object's time falls within # the next day (tomorrow). # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#272 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:272 def tomorrow?; end - # Returns the object's date and time as an integer number of seconds - # since the Epoch (January 1, 1970 00:00 UTC). - # - # Time.zone.now.to_i # => 1417709320 - # - # source://activesupport//lib/active_support/time_with_zone.rb#480 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:480 def tv_sec; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def usec; end # Returns a Time instance of the simultaneous time in the UTC timezone. # - # source://activesupport//lib/active_support/time_with_zone.rb#69 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:69 def utc; end # Returns true if the current time zone is set to UTC. @@ -15540,17 +14415,15 @@ class ActiveSupport::TimeWithZone # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' # Time.zone.now.utc? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#111 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:111 def utc?; end # Returns the offset from current time to UTC time in seconds. # - # source://activesupport//lib/active_support/time_with_zone.rb#117 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:117 def utc_offset; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def wday; end # Returns a string of the object's date and time in the ISO 8601 standard @@ -15558,21 +14431,19 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" # - # source://activesupport//lib/active_support/time_with_zone.rb#154 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:154 def xmlschema(fraction_digits = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def yday; end - # source://activesupport//lib/active_support/time_with_zone.rb#449 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:449 def year; end # Returns true if the current object's time falls within # the previous day (yesterday). # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#279 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:279 def yesterday?; end # Returns the time zone abbreviation. @@ -15580,41 +14451,37 @@ class ActiveSupport::TimeWithZone # Time.zone = 'Eastern Time (US & Canada)' # => "Eastern Time (US & Canada)" # Time.zone.now.zone # => "EST" # - # source://activesupport//lib/active_support/time_with_zone.rb#139 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:139 def zone; end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#593 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:593 def duration_of_variable_length?(obj); end - # source://activesupport//lib/active_support/time_with_zone.rb#574 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:574 def get_period_and_ensure_valid_local_time(period); end - # source://activesupport//lib/active_support/time_with_zone.rb#564 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:564 def incorporate_utc_offset(time, offset); end # Ensure proxy class responds to all methods that underlying time instance # responds to. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#549 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:549 def respond_to_missing?(sym, include_priv); end - # source://activesupport//lib/active_support/time_with_zone.rb#587 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:587 def transfer_time_values_to_utc_constructor(time); end - # source://activesupport//lib/active_support/time_with_zone.rb#597 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:597 def wrap_with_time_zone(time); end end -# source://activesupport//lib/active_support/time_with_zone.rb#45 +# pkg:gem/activesupport#lib/active_support/time_with_zone.rb:45 ActiveSupport::TimeWithZone::PRECISIONS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/time_with_zone.rb#562 +# pkg:gem/activesupport#lib/active_support/time_with_zone.rb:562 ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) # = Active Support \Time Zone @@ -15642,30 +14509,28 @@ ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) # Time.zone.name # => "Eastern Time (US & Canada)" # Time.zone.now # => Sun, 18 May 2008 14:30:44 EDT -04:00 # -# source://activesupport//lib/active_support/values/time_zone.rb#31 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:31 class ActiveSupport::TimeZone include ::Comparable # :stopdoc: # - # @return [TimeZone] a new instance of TimeZone - # - # source://activesupport//lib/active_support/values/time_zone.rb#310 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:310 def initialize(name, utc_offset = T.unsafe(nil), tzinfo = T.unsafe(nil)); end # Compare this time zone to the parameter. The two are compared first on # their offsets, and then by name. # - # source://activesupport//lib/active_support/values/time_zone.rb#340 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:340 def <=>(zone); end # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ # if a match is found. # - # source://activesupport//lib/active_support/values/time_zone.rb#349 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:349 def =~(re); end - # source://activesupport//lib/active_support/values/time_zone.rb#574 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:574 def abbr(time); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -15680,15 +14545,13 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.at(946684800, 123456.789).nsec # => 123456789 # - # source://activesupport//lib/active_support/values/time_zone.rb#386 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:386 def at(*args); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/values/time_zone.rb#578 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:578 def dst?(time); end - # source://activesupport//lib/active_support/values/time_zone.rb#586 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:586 def encode_with(coder); end # Returns a formatted string of the offset from UTC, or an alternative @@ -15698,10 +14561,10 @@ class ActiveSupport::TimeZone # zone.formatted_offset # => "-06:00" # zone.formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/values/time_zone.rb#334 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:334 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#582 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:582 def init_with(coder); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -15718,7 +14581,7 @@ class ActiveSupport::TimeZone # If the string is invalid then an +ArgumentError+ will be raised unlike +parse+ # which usually returns +nil+ when given an invalid date string. # - # source://activesupport//lib/active_support/values/time_zone.rb#403 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:403 def iso8601(str); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -15727,26 +14590,22 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#370 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:370 def local(*args); end # Adjust the given time to the simultaneous time in UTC. Returns a # Time.utc() instance. # - # source://activesupport//lib/active_support/values/time_zone.rb#558 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:558 def local_to_utc(time, dst = T.unsafe(nil)); end # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ # if a match is found. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/values/time_zone.rb#355 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:355 def match?(re); end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/values/time_zone.rb#297 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:297 def name; end # Returns an ActiveSupport::TimeWithZone instance representing the current @@ -15755,7 +14614,7 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#523 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:523 def now; end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -15777,16 +14636,16 @@ class ActiveSupport::TimeZone # # If the string is invalid then an +ArgumentError+ could be raised. # - # source://activesupport//lib/active_support/values/time_zone.rb#460 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:460 def parse(str, now = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#566 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:566 def period_for_local(time, dst = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#562 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:562 def period_for_utc(time); end - # source://activesupport//lib/active_support/values/time_zone.rb#570 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:570 def periods_for_local(time); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -15802,15 +14661,13 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.rfc3339('1999-12-31') # => ArgumentError: invalid date # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/values/time_zone.rb#476 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:476 def rfc3339(str); end # Returns a standard time zone name defined by IANA # https://www.iana.org/time-zones # - # source://activesupport//lib/active_support/values/time_zone.rb#319 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:319 def standard_name; end # Parses +str+ according to +format+ and returns an ActiveSupport::TimeWithZone. @@ -15834,32 +14691,30 @@ class ActiveSupport::TimeZone # # Time.zone.strptime('Mar 2000', '%b %Y') # => Wed, 01 Mar 2000 00:00:00 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#514 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:514 def strptime(str, format, now = T.unsafe(nil)); end # Returns a textual representation of this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#361 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:361 def to_s; end # Returns the current date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#528 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:528 def today; end # Returns the next date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#533 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:533 def tomorrow; end - # Returns the value of attribute tzinfo. - # - # source://activesupport//lib/active_support/values/time_zone.rb#298 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:298 def tzinfo; end # Returns the offset of this time zone from UTC in seconds. # - # source://activesupport//lib/active_support/values/time_zone.rb#324 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:324 def utc_offset; end # Adjust the given time to the simultaneous time in the time zone @@ -15870,22 +14725,20 @@ class ActiveSupport::TimeZone # As of tzinfo 2, utc_to_local returns a Time with a non-zero utc_offset. # See the +utc_to_local_returns_utc_offset_times+ config for more info. # - # source://activesupport//lib/active_support/values/time_zone.rb#549 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:549 def utc_to_local(time); end # Returns the previous date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#538 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:538 def yesterday; end private - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/values/time_zone.rb#592 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:592 def parts_to_time(parts, now); end - # source://activesupport//lib/active_support/values/time_zone.rb#617 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:617 def time_now; end class << self @@ -15895,36 +14748,36 @@ class ActiveSupport::TimeZone # timezone to find. (The first one with that offset will be returned.) # Returns +nil+ if no such time zone is known to the system. # - # source://activesupport//lib/active_support/values/time_zone.rb#233 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:233 def [](arg); end # Returns an array of all TimeZone objects. There are multiple # TimeZone objects per time zone, in many cases, to make it easier # for users to find their own time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#224 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:224 def all; end - # source://activesupport//lib/active_support/values/time_zone.rb#266 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:266 def clear; end # A convenience method for returning a collection of TimeZone objects # for time zones in the country specified by its ISO 3166-1 Alpha2 code. # - # source://activesupport//lib/active_support/values/time_zone.rb#261 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:261 def country_zones(country_code); end - # source://activesupport//lib/active_support/values/time_zone.rb#212 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:212 def create(*_arg0); end - # source://activesupport//lib/active_support/values/time_zone.rb#208 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:208 def find_tzinfo(name); end # Returns a TimeZone instance with the given name, or +nil+ if no # such TimeZone instance exists. (This exists to support the use of # this class with the +composed_of+ macro.) # - # source://activesupport//lib/active_support/values/time_zone.rb#217 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:217 def new(name); end # Assumes self represents an offset from UTC in seconds (as returned from @@ -15932,138 +14785,122 @@ class ActiveSupport::TimeZone # # ActiveSupport::TimeZone.seconds_to_utc_offset(-21_600) # => "-06:00" # - # source://activesupport//lib/active_support/values/time_zone.rb#200 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:200 def seconds_to_utc_offset(seconds, colon = T.unsafe(nil)); end # A convenience method for returning a collection of TimeZone objects # for time zones in the USA. # - # source://activesupport//lib/active_support/values/time_zone.rb#255 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:255 def us_zones; end private - # source://activesupport//lib/active_support/values/time_zone.rb#274 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:274 def load_country_zones(code); end - # source://activesupport//lib/active_support/values/time_zone.rb#288 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:288 def zones_map; end end end # Keys are \Rails TimeZone names, values are TZInfo identifiers. # -# source://activesupport//lib/active_support/values/time_zone.rb#33 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:33 ActiveSupport::TimeZone::MAPPING = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/values/time_zone.rb#189 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:189 ActiveSupport::TimeZone::UTC_OFFSET_WITHOUT_COLON = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/values/time_zone.rb#188 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:188 ActiveSupport::TimeZone::UTC_OFFSET_WITH_COLON = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/object/json.rb#35 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:35 module ActiveSupport::ToJsonWithActiveSupportEncoder - # source://activesupport//lib/active_support/core_ext/object/json.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:36 def to_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/try.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:6 module ActiveSupport::Tryable - # source://activesupport//lib/active_support/core_ext/object/try.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:7 def try(*args, **_arg1, &block); end - # source://activesupport//lib/active_support/core_ext/object/try.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:20 def try!(*args, **_arg1, &block); end end -# source://activesupport//lib/active_support/gem_version.rb#9 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:9 module ActiveSupport::VERSION; end -# source://activesupport//lib/active_support/gem_version.rb#10 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:10 ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/gem_version.rb#11 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:11 ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/gem_version.rb#13 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:13 ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) -# source://activesupport//lib/active_support/gem_version.rb#15 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:15 ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/gem_version.rb#12 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:12 ActiveSupport::VERSION::TINY = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/hash/conversions.rb#140 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:140 class ActiveSupport::XMLConverter - # @return [XMLConverter] a new instance of XMLConverter - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#151 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:151 def initialize(xml, disallowed_types = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#156 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:156 def to_h; end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#222 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:222 def become_array?(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#218 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:218 def become_content?(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#226 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:226 def become_empty_string?(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#232 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:232 def become_hash?(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#172 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:172 def deep_to_h(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#241 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:241 def garbage?(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:161 def normalize_keys(params); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#236 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:236 def nothing?(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#257 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:257 def process_array(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#248 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:248 def process_content(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#185 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:185 def process_hash(value); end end -# source://activesupport//lib/active_support/core_ext/hash/conversions.rb#149 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:149 ActiveSupport::XMLConverter::DISALLOWED_TYPES = T.let(T.unsafe(nil), Array) # Raised if the XML contains attributes with type="yaml" or # type="symbol". Read Hash#from_xml for more details. # -# source://activesupport//lib/active_support/core_ext/hash/conversions.rb#143 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:143 class ActiveSupport::XMLConverter::DisallowedType < ::StandardError - # @return [DisallowedType] a new instance of DisallowedType - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#144 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:144 def initialize(type); end end @@ -16073,95 +14910,89 @@ end # gem "libxml-ruby" # XmlMini.backend = 'LibXML' # -# source://activesupport//lib/active_support/xml_mini.rb#17 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:17 module ActiveSupport::XmlMini extend ::ActiveSupport::XmlMini - # source://activesupport//lib/active_support/xml_mini.rb#102 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:102 def backend; end - # source://activesupport//lib/active_support/xml_mini.rb#106 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:106 def backend=(name); end - # Returns the value of attribute depth. - # - # source://activesupport//lib/active_support/xml_mini.rb#97 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:97 def depth; end - # Sets the attribute depth - # - # @param value the value to set the attribute depth to. - # - # source://activesupport//lib/active_support/xml_mini.rb#97 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:97 def depth=(_arg0); end - # source://activesupport//lib/active_support/xml_mini.rb#100 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:100 def parse(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/xml_mini.rb#153 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:153 def rename_key(key, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/xml_mini.rb#120 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:120 def to_tag(key, value, options); end - # source://activesupport//lib/active_support/xml_mini.rb#112 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:112 def with_backend(name); end private - # source://activesupport//lib/active_support/xml_mini.rb#164 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:164 def _dasherize(key); end - # source://activesupport//lib/active_support/xml_mini.rb#170 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:170 def _parse_binary(bin, entity); end - # source://activesupport//lib/active_support/xml_mini.rb#181 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:181 def _parse_file(file, entity); end - # source://activesupport//lib/active_support/xml_mini.rb#189 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:189 def _parse_hex_binary(bin); end - # source://activesupport//lib/active_support/xml_mini.rb#201 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:201 def cast_backend_name_to_module(name); end - # source://activesupport//lib/active_support/xml_mini.rb#193 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:193 def current_thread_backend; end - # source://activesupport//lib/active_support/xml_mini.rb#197 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:197 def current_thread_backend=(name); end end -# source://activesupport//lib/active_support/xml_mini.rb#34 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:34 ActiveSupport::XmlMini::DEFAULT_ENCODINGS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/xml_mini.rb#56 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:56 ActiveSupport::XmlMini::FORMATTING = T.let(T.unsafe(nil), Hash) # This module decorates files deserialized using Hash.from_xml with # the original_filename and content_type methods. # -# source://activesupport//lib/active_support/xml_mini.rb#22 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:22 module ActiveSupport::XmlMini::FileLike - # source://activesupport//lib/active_support/xml_mini.rb#29 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:29 def content_type; end - # source://activesupport//lib/active_support/xml_mini.rb#23 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:23 def content_type=(_arg0); end - # source://activesupport//lib/active_support/xml_mini.rb#25 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:25 def original_filename; end - # source://activesupport//lib/active_support/xml_mini.rb#23 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:23 def original_filename=(_arg0); end end -# source://activesupport//lib/active_support/xml_mini.rb#66 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:66 ActiveSupport::XmlMini::PARSING = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/xml_mini.rb#39 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:39 ActiveSupport::XmlMini::TYPE_NAMES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/xml_mini/rexml.rb#8 +# pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:8 module ActiveSupport::XmlMini_REXML extend ::ActiveSupport::XmlMini_REXML @@ -16173,7 +15004,7 @@ module ActiveSupport::XmlMini_REXML # data:: # XML Document string or IO to parse # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#20 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:20 def parse(data); end private @@ -16183,7 +15014,7 @@ module ActiveSupport::XmlMini_REXML # element:: # The document element to be collapsed. # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#63 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:63 def collapse(element, depth); end # Determines if a document element has text content @@ -16191,9 +15022,7 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element to be checked. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#133 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:133 def empty_content?(element); end # Converts the attributes array of an XML element into a hash. @@ -16202,7 +15031,7 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element to extract attributes from. # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#123 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:123 def get_attributes(element); end # Adds a new key/value pair to an existing Hash. If the key to be added @@ -16217,7 +15046,7 @@ module ActiveSupport::XmlMini_REXML # value:: # Value to be associated with key. # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#103 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:103 def merge!(hash, key, value); end # Convert an XML element and merge into the hash @@ -16227,9 +15056,7 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element to merge into hash # - # @raise [REXML::ParseException] - # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#54 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:54 def merge_element!(hash, element, depth); end # Merge all the texts of an element into the hash @@ -16239,21 +15066,21 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element whose texts are to me merged into the hash # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#81 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:81 def merge_texts!(hash, element); end - # source://activesupport//lib/active_support/xml_mini/rexml.rb#41 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:41 def require_rexml; end end -# source://activesupport//lib/active_support/xml_mini/rexml.rb#11 +# pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:11 ActiveSupport::XmlMini_REXML::CONTENT_KEY = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/array/extract.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/array/extract.rb:3 class Array include ::Enumerable - # source://activesupport//lib/active_support/core_ext/object/json.rb#164 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:164 def as_json(options = T.unsafe(nil)); end # An array is blank if it's empty: @@ -16263,7 +15090,7 @@ class Array # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#102 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:102 def blank?; end # Removes all blank elements from the +Array+ in place and returns self. @@ -16273,7 +15100,7 @@ class Array # a.compact_blank! # # => [1, 2, true] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#275 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:275 def compact_blank!; end # Returns a deep copy of array. @@ -16285,7 +15112,7 @@ class Array # array[1][2] # => nil # dup[1][2] # => 4 # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:29 def deep_dup; end # Returns a copy of the Array excluding the specified elements. @@ -16296,7 +15123,7 @@ class Array # Note: This is an optimization of Enumerable#excluding that uses Array#- # instead of Array#reject for performance reasons. # - # source://activesupport//lib/active_support/core_ext/array/access.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:47 def excluding(*elements); end # Removes and returns the elements for which the block returns a true value. @@ -16306,7 +15133,7 @@ class Array # odd_numbers = numbers.extract! { |number| number.odd? } # => [1, 3, 5, 7, 9] # numbers # => [0, 2, 4, 6, 8] # - # source://activesupport//lib/active_support/core_ext/array/extract.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/array/extract.rb:10 def extract!; end # Extracts options from a set of arguments. Removes and returns the last @@ -16319,28 +15146,28 @@ class Array # options(1, 2) # => {} # options(1, 2, a: :b) # => {:a=>:b} # - # source://activesupport//lib/active_support/core_ext/array/extract_options.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/array/extract_options.rb:24 def extract_options!; end # Equal to self[4]. # # %w( a b c d e ).fifth # => "e" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#76 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:76 def fifth; end # Equal to self[41]. Also known as accessing "the reddit". # # (1..42).to_a.forty_two # => 42 # - # source://activesupport//lib/active_support/core_ext/array/access.rb#83 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:83 def forty_two; end # Equal to self[3]. # # %w( a b c d e ).fourth # => "d" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:69 def fourth; end # Returns the tail of the array from +position+. @@ -16352,7 +15179,7 @@ class Array # %w( a b c d ).from(-2) # => ["c", "d"] # %w( a b c ).from(-10) # => [] # - # source://activesupport//lib/active_support/core_ext/array/access.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:12 def from(position); end # Returns a new array that includes the passed elements. @@ -16360,40 +15187,38 @@ class Array # [ 1, 2, 3 ].including(4, 5) # => [ 1, 2, 3, 4, 5 ] # [ [ 0, 1 ] ].including([ [ 1, 0 ] ]) # => [ [ 0, 1 ], [ 1, 0 ] ] # - # source://activesupport//lib/active_support/core_ext/array/access.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:36 def including(*elements); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#104 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:104 def present?; end # Equal to self[1]. # # %w( a b c d e ).second # => "b" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:55 def second; end # Equal to self[-2]. # # %w( a b c d e ).second_to_last # => "d" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#97 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:97 def second_to_last; end # Equal to self[2]. # # %w( a b c d e ).third # => "c" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:62 def third; end # Equal to self[-3]. # # %w( a b c d e ).third_to_last # => "c" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:90 def third_to_last; end # Returns the beginning of the array up to +position+. @@ -16405,19 +15230,10 @@ class Array # %w( a b c d ).to(-2) # => ["a", "b", "c"] # %w( a b c ).to(-10) # => [] # - # source://activesupport//lib/active_support/core_ext/array/access.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:24 def to(position); end - # Extends Array#to_s to convert a collection of elements into a - # comma separated id list if :db argument is given as the format. - # - # This method is aliased to to_formatted_s. - # - # Blog.all.to_fs(:db) # => "1,2,3" - # Blog.none.to_fs(:db) # => "null" - # [1,2].to_fs # => "[1, 2]" - # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#106 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:106 def to_formatted_s(format = T.unsafe(nil)); end # Extends Array#to_s to convert a collection of elements into a @@ -16429,13 +15245,13 @@ class Array # Blog.none.to_fs(:db) # => "null" # [1,2].to_fs # => "[1, 2]" # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#94 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:94 def to_fs(format = T.unsafe(nil)); end # Calls to_param on all its elements and joins the result with # slashes. This is used by url_for in Action Pack. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:48 def to_param; end # Converts an array into a string suitable for use as a URL query string, @@ -16443,7 +15259,7 @@ class Array # # ['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding" # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:56 def to_query(key); end # Converts the array to a comma-separated sentence where the last element is @@ -16498,7 +15314,7 @@ class Array # ['uno', 'dos', 'tres'].to_sentence(locale: :es) # # => "uno o dos o al menos tres" # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:60 def to_sentence(options = T.unsafe(nil)); end # Returns a string that represents the array in XML by invoking +to_xml+ @@ -16576,18 +15392,10 @@ class Array # # # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#183 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:183 def to_xml(options = T.unsafe(nil)); end - # Returns a copy of the Array excluding the specified elements. - # - # ["David", "Rafael", "Aaron", "Todd"].excluding("Aaron", "Todd") # => ["David", "Rafael"] - # [ [ 0, 1 ], [ 1, 0 ] ].excluding([ [ 1, 0 ] ]) # => [ [ 0, 1 ] ] - # - # Note: This is an optimization of Enumerable#excluding that uses Array#- - # instead of Array#reject for performance reasons. - # - # source://activesupport//lib/active_support/core_ext/array/access.rb#50 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:50 def without(*elements); end class << self @@ -16627,12 +15435,12 @@ class Array # The differences with Kernel#Array explained above # apply to the rest of objects. # - # source://activesupport//lib/active_support/core_ext/array/wrap.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/array/wrap.rb:39 def wrap(object); end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#124 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:124 class BigDecimal < ::Numeric include ::ActiveSupport::BigDecimalWithDefaultFormat @@ -16646,11 +15454,11 @@ class BigDecimal < ::Numeric # BigDecimal, it still has the chance to post-process the string and get the # real value. # - # source://activesupport//lib/active_support/core_ext/object/json.rb#134 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:134 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/class/attribute.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/class/attribute.rb:6 class Class < ::Module include ::ActiveSupport::DescendantsTracker::ReloadedClassesFiltering @@ -16734,7 +15542,7 @@ class Class < ::Module # # class_attribute :settings, default: {} # - # source://activesupport//lib/active_support/core_ext/class/attribute.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/class/attribute.rb:86 def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end # Returns an array with all classes that are < than its receiver. @@ -16751,41 +15559,37 @@ class Class < ::Module # class D < C; end # C.descendants # => [B, A, D] # - # source://activesupport//lib/active_support/core_ext/class/subclasses.rb#19 + # pkg:gem/activesupport#lib/active_support/core_ext/class/subclasses.rb:19 def descendants; end - # source://activesupport//lib/active_support/descendants_tracker.rb#59 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:59 def subclasses; end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#68 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:68 class Data - # source://activesupport//lib/active_support/core_ext/object/json.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:69 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/date/zones.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/date/zones.rb:6 class Date include ::Comparable include ::DateAndTime::Zones include ::DateAndTime::Calculations - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#98 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:98 def +(other); end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#108 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:108 def -(other); end - # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there. - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#160 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:160 def <=>(other); end # Duck-types as a Date-like class. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date/acts_like.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/date/acts_like.rb:7 def acts_like_date?; end # Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with @@ -16805,51 +15609,39 @@ class Date # Date.new(2004, 9, 30).advance(days: 1).advance(months: 1) # # => Mon, 01 Nov 2004 # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#127 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:127 def advance(options); end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) # and then subtracts the specified number of seconds. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:55 def ago(seconds); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#211 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:211 def as_json(options = T.unsafe(nil)); end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#72 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:72 def at_beginning_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#88 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:88 def at_end_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#80 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:80 def at_midday; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#82 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:82 def at_middle_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:71 def at_midnight; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:81 def at_noon; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:67 def beginning_of_day; end # Returns a new Date where one or more of the elements have been changed according to the +options+ parameter. @@ -16858,106 +15650,69 @@ class Date # Date.new(2007, 5, 12).change(day: 1) # => Date.new(2007, 5, 1) # Date.new(2007, 5, 12).change(year: 2005, month: 1) # => Date.new(2005, 1, 12) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#143 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:143 def change(options); end # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:152 def compare_with_coercion(other); end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#159 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:66 def default_inspect; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#85 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:85 def end_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # and then adds the specified number of seconds - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#64 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:64 def in(seconds); end - # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005" - # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:67 def inspect; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#78 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:78 def midday; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:75 def middle_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#70 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:70 def midnight; end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#100 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:100 def minus_with_duration(other); end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#107 + # pkg:gem/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#79 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:79 def noon; end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:90 def plus_with_duration(other); end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#97 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:97 def plus_without_duration(_arg0); end # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005" # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:63 def readable_inspect; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) # and then adds the specified number of seconds # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#61 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:61 def since(seconds); end - # Convert to a formatted string. See DATE_FORMATS for predefined formats. - # - # This method is aliased to to_formatted_s. - # - # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007 - # - # date.to_fs(:db) # => "2007-11-10" - # date.to_formatted_s(:db) # => "2007-11-10" - # - # date.to_fs(:short) # => "10 Nov" - # date.to_fs(:number) # => "20071110" - # date.to_fs(:long) # => "November 10, 2007" - # date.to_fs(:long_ordinal) # => "November 10th, 2007" - # date.to_fs(:rfc822) # => "10 Nov 2007" - # date.to_fs(:rfc2822) # => "10 Nov 2007" - # date.to_fs(:iso8601) # => "2007-11-10" - # - # == Adding your own date formats to to_fs - # You can add your own formats to the Date::DATE_FORMATS hash. - # Use the format name as the hash key and either a strftime string - # or Proc instance that takes a date argument as the value. - # - # # config/initializers/date_formats.rb - # Date::DATE_FORMATS[:month_and_year] = '%B %Y' - # Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") } - # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:60 def to_formatted_s(format = T.unsafe(nil)); end # Convert to a formatted string. See DATE_FORMATS for predefined formats. @@ -16986,7 +15741,7 @@ class Date # Date::DATE_FORMATS[:month_and_year] = '%B %Y' # Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") } # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#49 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:49 def to_fs(format = T.unsafe(nil)); end # Converts a Date instance to a Time, where the time is set to the beginning of the day. @@ -17002,9 +15757,7 @@ class Date # NOTE: The +:local+ timezone is Ruby's *process* timezone, i.e. ENV['TZ']. # If the application's timezone is needed, then use +in_time_zone+ instead. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:69 def to_time(form = T.unsafe(nil)); end # Returns a string which represents the time in used time zone as DateTime @@ -17013,7 +15766,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#88 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:88 def xmlschema; end class << self @@ -17021,7 +15774,7 @@ class Date # If Date.beginning_of_week has not been set for the current request, returns the week start specified in config.beginning_of_week. # If no +config.beginning_of_week+ was specified, returns +:monday+. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#19 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:19 def beginning_of_week; end # Sets Date.beginning_of_week to a week start (e.g. +:monday+) for current request/thread. @@ -17029,171 +15782,103 @@ class Date # This method accepts any of the following day symbols: # +:monday+, +:tuesday+, +:wednesday+, +:thursday+, +:friday+, +:saturday+, +:sunday+ # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:27 def beginning_of_week=(week_start); end - # Returns the value of attribute beginning_of_week_default. - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:14 def beginning_of_week_default; end - # Sets the attribute beginning_of_week_default - # - # @param value the value to set the attribute beginning_of_week_default to. - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:14 def beginning_of_week_default=(_arg0); end # Returns Time.zone.today when Time.zone or config.time_zone are set, otherwise just returns Date.today. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:48 def current; end # Returns week start day symbol (e.g. +:monday+), or raises an +ArgumentError+ for invalid day symbol. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:32 def find_beginning_of_week!(week_start); end # Returns a new Date representing the date 1 day after today (i.e. tomorrow's date). # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#43 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:43 def tomorrow; end # Returns a new Date representing the date 1 day ago (i.e. yesterday's date). # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#38 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:38 def yesterday; end end end -# source://activesupport//lib/active_support/core_ext/date/conversions.rb#9 +# pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:9 Date::DATE_FORMATS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:6 module DateAndTime; end -# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:7 module DateAndTime::Calculations # Returns true if the date/time falls after date_or_time. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#72 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:72 def after?(date_or_time); end # Returns a Range representing the whole day of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#310 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:310 def all_day; end # Returns a Range representing the whole month of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#321 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:321 def all_month; end # Returns a Range representing the whole quarter of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#326 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:326 def all_quarter; end # Returns a Range representing the whole week of the current date/time. # Week starts on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#316 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:316 def all_week(start_day = T.unsafe(nil)); end # Returns a Range representing the whole year of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#331 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:331 def all_year; end - # Returns a new date/time at the start of the month. - # - # today = Date.today # => Thu, 18 Jun 2015 - # today.beginning_of_month # => Mon, 01 Jun 2015 - # - # +DateTime+ objects will have a time set to 0:00. - # - # now = DateTime.current # => Thu, 18 Jun 2015 15:23:13 +0000 - # now.beginning_of_month # => Mon, 01 Jun 2015 00:00:00 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#128 + # pkg:gem/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. - # - # today = Date.today # => Fri, 10 Jul 2015 - # today.beginning_of_quarter # => Wed, 01 Jul 2015 - # - # +DateTime+ objects will have a time set to 0:00. - # - # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 - # now.beginning_of_quarter # => Wed, 01 Jul 2015 00:00:00 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#143 + # pkg:gem/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. - # Week is assumed to start on +start_day+, default is - # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. - # +DateTime+ objects have their time set to 0:00. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#271 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:271 def at_beginning_of_week(start_day = T.unsafe(nil)); end - # Returns a new date/time at the beginning of the year. - # - # today = Date.today # => Fri, 10 Jul 2015 - # today.beginning_of_year # => Thu, 01 Jan 2015 - # - # +DateTime+ objects will have a time set to 0:00. - # - # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 - # now.beginning_of_year # => Thu, 01 Jan 2015 00:00:00 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#182 + # pkg:gem/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#300 + # pkg:gem/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. - # - # today = Date.today # => Fri, 10 Jul 2015 - # today.end_of_quarter # => Wed, 30 Sep 2015 - # - # +DateTime+ objects will have a time set to 23:59:59. - # - # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 - # now.end_of_quarter # => Wed, 30 Sep 2015 23:59:59 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#158 + # pkg:gem/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. - # Week is assumed to start on +start_day+, default is - # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. - # DateTime objects have their time set to 23:59:59. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#286 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:286 def at_end_of_week(start_day = T.unsafe(nil)); end - # 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#307 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:307 def at_end_of_year; end # Returns true if the date/time falls before date_or_time. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:67 def before?(date_or_time); end # Returns a new date/time at the start of the month. @@ -17206,7 +15891,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 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:125 def beginning_of_month; end # Returns a new date/time at the start of the quarter. @@ -17219,7 +15904,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 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:139 def beginning_of_quarter; end # Returns a new date/time representing the start of this week on the given day. @@ -17227,7 +15912,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 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:267 def beginning_of_week(start_day = T.unsafe(nil)); end # Returns a new date/time at the beginning of the year. @@ -17240,30 +15925,30 @@ module DateAndTime::Calculations # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 # now.beginning_of_year # => Thu, 01 Jan 2015 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#179 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:179 def beginning_of_year; end # Returns a new date/time the specified number of days ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#77 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:77 def days_ago(days); end # Returns a new date/time the specified number of days in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#82 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:82 def days_since(days); end # Returns the number of days to the start of the week on the given day. # Week is assumed to start on +start_day+, default is # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#258 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:258 def days_to_week_start(start_day = T.unsafe(nil)); end # Returns a new date/time representing the end of the month. # DateTime objects will have a time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#296 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:296 def end_of_month; end # Returns a new date/time at the end of the quarter. @@ -17276,7 +15961,7 @@ module DateAndTime::Calculations # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 # now.end_of_quarter # => Wed, 30 Sep 2015 23:59:59 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#154 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:154 def end_of_quarter; end # Returns a new date/time representing the end of this week on the given day. @@ -17284,71 +15969,56 @@ module DateAndTime::Calculations # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # DateTime objects have their time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#283 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:283 def end_of_week(start_day = T.unsafe(nil)); end # Returns a new date/time representing the end of the year. # DateTime objects will have a time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#304 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:304 def end_of_year; end # Returns true if the date/time is in the future. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#52 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:52 def future?; end # Short-hand for months_ago(1). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#240 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:240 def last_month; end - # Short-hand for months_ago(3). - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#248 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:248 def last_quarter; end - # Returns a new date/time representing the given day in the previous week. - # Week is assumed to start on +start_day+, default is - # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. - # DateTime objects have their time set to 0:00 unless +same_time+ is true. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#227 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:227 def last_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end - # Returns a new date/time representing the previous weekday. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#237 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:237 def last_weekday; end # Short-hand for years_ago(1). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#251 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:251 def last_year; end # Returns Monday of this week assuming that week starts on Monday. # +DateTime+ objects have their time set to 0:00. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#275 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:275 def monday; end # Returns a new date/time the specified number of months ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#97 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:97 def months_ago(months); end # Returns a new date/time the specified number of months in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#102 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:102 def months_since(months); end - # Returns true if the date/time is tomorrow. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#38 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:38 def next_day?; end # Returns a new date/time representing the next occurrence of the specified day of week. @@ -17357,12 +16027,12 @@ module DateAndTime::Calculations # today.next_occurring(:monday) # => Mon, 18 Dec 2017 # today.next_occurring(:thursday) # => Thu, 21 Dec 2017 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#340 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:340 def next_occurring(day_of_week); end # Short-hand for months_since(3). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#215 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:215 def next_quarter; end # Returns a new date/time representing the given day in the next week. @@ -17382,40 +16052,30 @@ module DateAndTime::Calculations # now = DateTime.current # => Thu, 07 May 2015 13:31:16 +0000 # now.next_week # => Mon, 11 May 2015 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#200 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:200 def next_week(given_day_in_next_week = T.unsafe(nil), same_time: T.unsafe(nil)); end # Returns a new date/time representing the next weekday. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#206 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:206 def next_weekday; end # Returns true if the date/time does not fall on a Saturday or Sunday. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:62 def on_weekday?; end # Returns true if the date/time falls on a Saturday or Sunday. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#57 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:57 def on_weekend?; end # Returns true if the date/time is in the past. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:47 def past?; end - # Returns true if the date/time is yesterday. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#44 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:44 def prev_day?; end # Returns a new date/time representing the previous occurrence of the specified day of week. @@ -17424,12 +16084,12 @@ module DateAndTime::Calculations # today.prev_occurring(:monday) # => Mon, 11 Dec 2017 # today.prev_occurring(:thursday) # => Thu, 07 Dec 2017 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#351 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:351 def prev_occurring(day_of_week); end # Short-hand for months_ago(3). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#245 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:245 def prev_quarter; end # Returns a new date/time representing the given day in the previous week. @@ -17437,12 +16097,12 @@ module DateAndTime::Calculations # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # DateTime objects have their time set to 0:00 unless +same_time+ is true. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#223 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:223 def prev_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end # Returns a new date/time representing the previous weekday. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#230 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:230 def prev_weekday; end # Returns the quarter for a date/time. @@ -17452,102 +16112,96 @@ module DateAndTime::Calculations # Date.new(2010, 9, 15).quarter # => 3 # Date.new(2010, 12, 25).quarter # => 4 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#166 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:166 def quarter; end # Returns Sunday of this week assuming that week starts on Monday. # +DateTime+ objects have their time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#290 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:290 def sunday; end # Returns true if the date/time is today. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#30 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:30 def today?; end # Returns a new date/time representing tomorrow. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:25 def tomorrow; end # Returns true if the date/time is tomorrow. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#35 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:35 def tomorrow?; end # Returns a new date/time the specified number of weeks ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#87 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:87 def weeks_ago(weeks); end # Returns a new date/time the specified number of weeks in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:92 def weeks_since(weeks); end # Returns a new date/time the specified number of years ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#107 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:107 def years_ago(years); end # Returns a new date/time the specified number of years in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#112 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:112 def years_since(years); end # Returns a new date/time representing yesterday. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:20 def yesterday; end # Returns true if the date/time is yesterday. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:41 def yesterday?; end private - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#370 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:370 def copy_time_to(other); end - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#366 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:366 def days_span(day); end - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#358 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:358 def first_hour(date_or_time); end - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#362 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:362 def last_hour(date_or_time); end end -# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:8 DateAndTime::Calculations::DAYS_INTO_WEEK = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#17 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:17 DateAndTime::Calculations::WEEKEND_DAYS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:7 module DateAndTime::Compatibility - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:21 def utc_to_local_returns_utc_offset_times; end class << self - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:21 def utc_to_local_returns_utc_offset_times; end - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:21 def utc_to_local_returns_utc_offset_times=(val); end end end -# source://activesupport//lib/active_support/core_ext/date_and_time/zones.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/zones.rb:4 module DateAndTime::Zones # Returns the simultaneous time in Time.zone if a zone is given or # if Time.zone_default is set. Otherwise, it returns the current time. @@ -17565,21 +16219,21 @@ module DateAndTime::Zones # Time.utc(2000).in_time_zone('Alaska') # => Fri, 31 Dec 1999 15:00:00 AKST -09:00 # Date.new(2000).in_time_zone('Alaska') # => Sat, 01 Jan 2000 00:00:00 AKST -09:00 # - # source://activesupport//lib/active_support/core_ext/date_and_time/zones.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/zones.rb:20 def in_time_zone(zone = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/core_ext/date_and_time/zones.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/zones.rb:32 def time_with_zone(time, zone); end end -# source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:5 class DateTime < ::Date # Layers additional behavior on DateTime#<=> so that Time and # ActiveSupport::TimeWithZone instances can be compared with a DateTime. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#208 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:208 def <=>(other); end # Uses Date to provide precise Time calculations for years, months, and days. @@ -17591,81 +16245,61 @@ class DateTime < ::Date # largest to smallest. This order can affect the result around the end of a # month. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#82 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:82 def advance(options); end # Returns a new DateTime representing the time a number of seconds ago. # Do not use this method in combination with x.months, use months_ago instead! # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#109 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:109 def ago(seconds); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#221 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:221 def as_json(options = T.unsafe(nil)); end - # Returns a new DateTime representing the start of the day (0:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#127 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:127 def at_beginning_of_day; end - # Returns a new DateTime representing the start of the hour (hh:00:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#149 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:149 def at_beginning_of_hour; end - # Returns a new DateTime representing the start of the minute (hh:mm:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:161 def at_beginning_of_minute; end - # Returns a new DateTime representing the end of the day (23:59:59). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#143 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:143 def at_end_of_day; end - # Returns a new DateTime representing the end of the hour (hh:59:59). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:155 def at_end_of_hour; end - # Returns a new DateTime representing the end of the minute (hh:mm:59). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#167 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:167 def at_end_of_minute; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#135 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:135 def at_midday; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#137 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:137 def at_middle_of_day; end - # Returns a new DateTime representing the start of the day (0:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:126 def at_midnight; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#136 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:136 def at_noon; end # Returns a new DateTime representing the start of the day (0:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:122 def beginning_of_day; end # Returns a new DateTime representing the start of the hour (hh:00:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#146 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:146 def beginning_of_hour; end # Returns a new DateTime representing the start of the minute (hh:mm:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#158 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:158 def beginning_of_minute; end # Returns a new DateTime where one or more of the elements have been changed @@ -17680,27 +16314,25 @@ class DateTime < ::Date # DateTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => DateTime.new(1981, 8, 1, 22, 35, 0) # DateTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, hour: 0) # => DateTime.new(1981, 8, 29, 0, 0, 0) # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:51 def change(options); end - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#61 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:61 def default_inspect; end # Returns a new DateTime representing the end of the day (23:59:59). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:140 def end_of_day; end # Returns a new DateTime representing the end of the hour (hh:59:59). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:152 def end_of_hour; end # Returns a new DateTime representing the end of the minute (hh:mm:59). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#164 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:164 def end_of_minute; end # Returns a formatted string of the offset from UTC, or an alternative @@ -17710,83 +16342,54 @@ class DateTime < ::Date # datetime.formatted_offset # => "-06:00" # datetime.formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:53 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#192 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:192 def getgm; end - # Returns a Time instance of the simultaneous time in the system timezone. - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#178 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:178 def getlocal(utc_offset = T.unsafe(nil)); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#193 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:193 def getutc; end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#194 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:194 def gmtime; end - # Returns a new DateTime representing the time a number of seconds since the - # instance time. Do not use this method in combination with x.months, use - # months_since instead! - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#119 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:119 def in(seconds); end - # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000". - # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:62 def inspect; end # Returns a Time instance of the simultaneous time in the system timezone. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#170 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:170 def localtime(utc_offset = T.unsafe(nil)); end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#133 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:133 def midday; end # Returns a new DateTime representing the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:130 def middle_of_day; end - # Returns a new DateTime representing the start of the day (0:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#125 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:125 def midnight; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#134 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:134 def noon; end # Returns the fraction of a second as nanoseconds # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#96 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:96 def nsec; end # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000". # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#58 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:58 def readable_inspect; end # Returns the number of seconds since 00:00:00. @@ -17795,7 +16398,7 @@ class DateTime < ::Date # DateTime.new(2012, 8, 29, 12, 34, 56).seconds_since_midnight # => 45296 # DateTime.new(2012, 8, 29, 23, 59, 59).seconds_since_midnight # => 86399 # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:20 def seconds_since_midnight; end # Returns the number of seconds until 23:59:59. @@ -17804,57 +16407,29 @@ class DateTime < ::Date # DateTime.new(2012, 8, 29, 12, 34, 56).seconds_until_end_of_day # => 41103 # DateTime.new(2012, 8, 29, 23, 59, 59).seconds_until_end_of_day # => 0 # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:29 def seconds_until_end_of_day; end # Returns a new DateTime representing the time a number of seconds since the # instance time. Do not use this method in combination with x.months, use # months_since instead! # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:116 def since(seconds); end # Returns the fraction of a second as a +Rational+ # # DateTime.new(2012, 8, 29, 0, 0, 0.5).subsec # => (1/2) # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:36 def subsec; end # Converts +self+ to a floating-point number of seconds, including fractional microseconds, since the Unix epoch. # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:81 def to_f; end - # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats. - # - # This method is aliased to to_formatted_s. - # - # ==== Examples - # - # datetime = DateTime.civil(2007, 12, 4, 0, 0, 0, 0) # => Tue, 04 Dec 2007 00:00:00 +0000 - # - # datetime.to_fs(:db) # => "2007-12-04 00:00:00" - # datetime.to_formatted_s(:db) # => "2007-12-04 00:00:00" - # datetime.to_fs(:number) # => "20071204000000" - # datetime.to_fs(:short) # => "04 Dec 00:00" - # datetime.to_fs(:long) # => "December 04, 2007 00:00" - # datetime.to_fs(:long_ordinal) # => "December 4th, 2007 00:00" - # datetime.to_fs(:rfc822) # => "Tue, 04 Dec 2007 00:00:00 +0000" - # datetime.to_fs(:iso8601) # => "2007-12-04T00:00:00+00:00" - # - # ==== Adding your own datetime formats to +to_fs+ - # - # DateTime formats are shared with Time. You can add your own to the - # Time::DATE_FORMATS hash. Use the format name as the hash key and - # either a strftime string or Proc instance that takes a time or - # datetime argument as the value. - # - # # config/initializers/time_formats.rb - # Time::DATE_FORMATS[:month_and_year] = '%B %Y' - # Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") } - # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#44 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:44 def to_formatted_s(format = T.unsafe(nil)); end # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats. @@ -17885,17 +16460,17 @@ class DateTime < ::Date # Time::DATE_FORMATS[:month_and_year] = '%B %Y' # Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") } # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:37 def to_fs(format = T.unsafe(nil)); end # Converts +self+ to an integer number of seconds since the Unix epoch. # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:86 def to_i; end # Returns the fraction of a second as microseconds # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#91 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:91 def usec; end # Returns a Time instance of the simultaneous time in the UTC timezone. @@ -17903,27 +16478,25 @@ class DateTime < ::Date # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:184 def utc; end # Returns +true+ if offset == 0. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#197 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:197 def utc?; end # Returns the offset value in seconds. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#202 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:202 def utc_offset; end private - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:101 def offset_in_seconds; end - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#105 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:105 def seconds_since_unix_epoch; end class << self @@ -17935,26 +16508,24 @@ class DateTime < ::Date # DateTime.civil_from_format :local, 2012, 12, 17 # # => Mon, 17 Dec 2012 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:71 def civil_from_format(utc_or_local, year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), min = T.unsafe(nil), sec = T.unsafe(nil)); end # Returns Time.zone.now.to_datetime when Time.zone or # config.time_zone are set, otherwise returns # Time.now.to_datetime. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:10 def current; end end end -# source://activesupport//lib/active_support/core_ext/object/try.rb#117 +# pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:117 class Delegator < ::BasicObject include ::ActiveSupport::Tryable end -module ERB::Escape; end - -# source://activesupport//lib/active_support/core_ext/erb/util.rb#39 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:39 module ERB::Util include ::ActiveSupport::CoreExt::ERBUtil include ::ActiveSupport::CoreExt::ERBUtilPrivate @@ -17970,7 +16541,7 @@ module ERB::Util # html_escape_once('<< Accept & Checkout') # # => "<< Accept & Checkout" # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:63 def html_escape_once(s); end # A utility method for escaping HTML entities in JSON strings. Specifically, the @@ -18029,7 +16600,7 @@ module ERB::Util # JSON gem, do not provide this kind of protection by default; also some gems # might override +to_json+ to bypass Active Support's encoder). # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#124 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:124 def json_escape(s); end # A utility method for escaping XML names of tags and names of attributes. @@ -18039,7 +16610,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 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:142 def xml_name_escape(name); end class << self @@ -18051,7 +16622,7 @@ module ERB::Util # html_escape_once('<< Accept & Checkout') # # => "<< Accept & Checkout" # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:67 def html_escape_once(s); end # A utility method for escaping HTML entities in JSON strings. Specifically, the @@ -18110,16 +16681,16 @@ 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#134 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:134 def json_escape(s); end # Tokenizes a line of ERB. This is really just for error reporting and # nobody should use it. # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:161 def tokenize(source); end - # source://activesupport//lib/active_support/core_ext/erb/util.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:10 def unwrapped_html_escape(s); end # A utility method for escaping XML names of tags and names of attributes. @@ -18129,43 +16700,43 @@ 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#157 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:157 def xml_name_escape(name); end end end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#40 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:40 ERB::Util::HTML_ESCAPE = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#41 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:41 ERB::Util::HTML_ESCAPE_ONCE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#49 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:49 ERB::Util::INVALID_TAG_NAME_FOLLOWING_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#47 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:47 ERB::Util::INVALID_TAG_NAME_START_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#50 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:50 ERB::Util::SAFE_XML_TAG_NAME_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#48 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:48 ERB::Util::TAG_NAME_FOLLOWING_CODEPOINTS = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#51 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:51 ERB::Util::TAG_NAME_REPLACEMENT_CHAR = T.let(T.unsafe(nil), String) # Following XML requirements: https://www.w3.org/TR/REC-xml/#NT-Name # -# source://activesupport//lib/active_support/core_ext/erb/util.rb#44 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:44 ERB::Util::TAG_NAME_START_CODEPOINTS = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/object/json.rb#145 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:145 module Enumerable include ::ActiveSupport::ToJsonWithActiveSupportEncoder extend ::ActiveSupport::EnumerableCoreExt::Constants - # source://activesupport//lib/active_support/core_ext/object/json.rb#146 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:146 def as_json(options = T.unsafe(nil)); end # Returns a new +Array+ without the blank items. @@ -18182,15 +16753,13 @@ module Enumerable # { a: "", b: 1, c: nil, d: [], e: false, f: true }.compact_blank # # => { b: 1, f: true } # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:184 def compact_blank; end # The negative of the Enumerable#include?. Returns +true+ if the # collection does not include the object. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#118 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:118 def exclude?(object); end # Returns a copy of the enumerable excluding the specified elements. @@ -18204,7 +16773,7 @@ module Enumerable # {foo: 1, bar: 2, baz: 3}.excluding :bar # # => {foo: 1, baz: 3} # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#132 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:132 def excluding(*elements); end # Returns a new +Array+ where the order has been set to that provided in the +series+, based on the +key+ of the @@ -18217,7 +16786,7 @@ module Enumerable # If the Enumerable has additional elements that aren't named in the +series+, these are not included in the result, unless # the +filter+ option is set to +false+. # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#197 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:197 def in_order_of(key, series, filter: T.unsafe(nil)); end # Returns a new array that includes the passed elements. @@ -18228,7 +16797,7 @@ module Enumerable # ["David", "Rafael"].including %w[ Aaron Todd ] # # => ["David", "Rafael", "Aaron", "Todd"] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#112 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:112 def including(*elements); end # Convert an enumerable to a hash, using the block result as the key and the @@ -18240,7 +16809,7 @@ module Enumerable # people.index_by { |person| "#{person.first_name} #{person.last_name}" } # # => { "Chade- Fowlersburg-e" => , "David Heinemeier Hansson" => , ...} # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#52 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:52 def index_by; end # Convert an enumerable to a hash, using the element as the key and the block @@ -18257,7 +16826,7 @@ module Enumerable # %i( created_at updated_at ).index_with(Time.now) # # => { created_at: 2020-03-09 22:31:47, updated_at: 2020-03-09 22:31:47 } # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:75 def index_with(default = T.unsafe(nil)); end # Returns +true+ if the enumerable has more than 1 element. Functionally @@ -18265,9 +16834,7 @@ module Enumerable # much like any?, so people.many? { |p| p.age > 26 } returns +true+ # if more than one person is over 26. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:93 def many?; end # Calculates the maximum from the extracted elements. @@ -18275,7 +16842,7 @@ module Enumerable # payments = [Payment.new(5), Payment.new(15), Payment.new(10)] # payments.maximum(:price) # => 15 # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:40 def maximum(key); end # Calculates the minimum from the extracted elements. @@ -18283,7 +16850,7 @@ module Enumerable # payments = [Payment.new(5), Payment.new(15), Payment.new(10)] # payments.minimum(:price) # => 5 # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:32 def minimum(key); end # Extract the given key from the first element in the enumerable. @@ -18294,7 +16861,7 @@ module Enumerable # [{ id: 1, name: "David" }, { id: 2, name: "Rafael" }].pick(:id, :name) # # => [1, "David"] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:161 def pick(*keys); end # Extract the given key from each element in the enumerable. @@ -18305,7 +16872,7 @@ module Enumerable # [{ id: 1, name: "David" }, { id: 2, name: "Rafael" }].pluck(:id, :name) # # => [[1, "David"], [2, "Rafael"]] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#145 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:145 def pluck(*keys); end # Returns the sole item in the enumerable. If there are no items, or more @@ -18315,39 +16882,28 @@ module Enumerable # Set.new.sole # => Enumerable::SoleItemExpectedError: no item found # { a: 1, b: 2 }.sole # => Enumerable::SoleItemExpectedError: multiple items found # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#211 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:211 def sole; end - # Returns a copy of the enumerable excluding the specified elements. - # - # ["David", "Rafael", "Aaron", "Todd"].excluding "Aaron", "Todd" - # # => ["David", "Rafael"] - # - # ["David", "Rafael", "Aaron", "Todd"].excluding %w[ Aaron Todd ] - # # => ["David", "Rafael"] - # - # {foo: 1, bar: 2, baz: 3}.excluding :bar - # # => {foo: 1, baz: 3} - # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#136 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:136 def without(*elements); end end # Error generated by +sole+ when called on an enumerable that doesn't have # exactly one item. # -# source://activesupport//lib/active_support/core_ext/enumerable.rb#21 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:21 class Enumerable::SoleItemExpectedError < ::StandardError; end -# source://activesupport//lib/active_support/core_ext/object/json.rb#263 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:263 class Exception - # source://activesupport//lib/active_support/core_ext/object/json.rb#264 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:264 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/to_query.rb#38 +# pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:38 class FalseClass - # source://activesupport//lib/active_support/core_ext/object/json.rb#87 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:87 def as_json(options = T.unsafe(nil)); end # +false+ is blank: @@ -18356,21 +16912,19 @@ class FalseClass # # @return [true] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:71 def blank?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:75 def present?; end # Returns +self+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:40 def to_param; end end -# source://activesupport//lib/active_support/core_ext/file/atomic.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/file/atomic.rb:5 class File < ::IO class << self # Write to a file atomically. Useful for situations where you don't @@ -18389,31 +16943,31 @@ class File < ::IO # file.write('hello') # end # - # source://activesupport//lib/active_support/core_ext/file/atomic.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/file/atomic.rb:21 def atomic_write(file_name, temp_dir = T.unsafe(nil)); end # Private utility method. # - # source://activesupport//lib/active_support/core_ext/file/atomic.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/file/atomic.rb:56 def probe_stat_in(dir); end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#116 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:116 class Float < ::Numeric # Encoding Infinity or NaN to JSON should return "null". The default returns # "Infinity" or "NaN" which are not valid JSON. # - # source://activesupport//lib/active_support/core_ext/object/json.rb#119 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:119 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/hash/deep_merge.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_merge.rb:5 class Hash include ::Enumerable include ::ActiveSupport::DeepMergeable - # source://activesupport//lib/active_support/core_ext/object/json.rb#175 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:175 def as_json(options = T.unsafe(nil)); end # Validates all keys in a hash match *valid_keys, raising @@ -18426,7 +16980,7 @@ class Hash # { name: 'Rob', age: '28' }.assert_valid_keys('name', 'age') # => raises "ArgumentError: Unknown key: :name. Valid keys are: 'name', 'age'" # { name: 'Rob', age: '28' }.assert_valid_keys(:name, :age) # => passes, raises nothing # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:48 def assert_valid_keys(*valid_keys); end # A hash is blank if it's empty: @@ -18436,12 +16990,12 @@ class Hash # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:116 def blank?; end # Hash#reject has its own definition, so this needs one too. # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#234 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:234 def compact_blank; end # Removes all blank values from the +Hash+ in place and returns self. @@ -18451,7 +17005,7 @@ class Hash # h.compact_blank! # # => { b: 1, f: true } # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#244 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:244 def compact_blank!; end # Returns a deep copy of hash. @@ -18463,12 +17017,10 @@ class Hash # hash[:a][:c] # => nil # dup[:a][:c] # => "c" # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#43 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:43 def deep_dup; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/deep_merge.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_merge.rb:40 def deep_merge?(other); end # Returns a new hash with all keys converted to strings. @@ -18480,14 +17032,14 @@ class Hash # hash.deep_stringify_keys # # => {"person"=>{"name"=>"Rob", "age"=>"28"}} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#84 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:84 def deep_stringify_keys; end # Destructively converts all keys to strings. # This includes the keys from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#91 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:91 def deep_stringify_keys!; end # Returns a new hash with all keys converted to symbols, as long as @@ -18499,14 +17051,14 @@ class Hash # hash.deep_symbolize_keys # # => {:person=>{:name=>"Rob", :age=>"28"}} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#103 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:103 def deep_symbolize_keys; end # Destructively converts all keys to symbols, as long as they respond # to +to_sym+. This includes the keys from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#110 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:110 def deep_symbolize_keys!; end # Returns a new hash with all keys converted by the block operation. @@ -18518,14 +17070,14 @@ class Hash # hash.deep_transform_keys{ |key| key.to_s.upcase } # # => {"PERSON"=>{"NAME"=>"Rob", "AGE"=>"28"}} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#65 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:65 def deep_transform_keys(&block); end # Destructively converts all keys by using the block operation. # This includes the keys from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#72 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:72 def deep_transform_keys!(&block); end # Removes the given keys from hash and returns it. @@ -18533,7 +17085,7 @@ class Hash # hash.except!(:c) # => { a: true, b: false } # hash # => { a: true, b: false } # - # source://activesupport//lib/active_support/core_ext/hash/except.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/except.rb:8 def except!(*keys); end # Removes and returns the key/value pairs matching the given keys. @@ -18542,7 +17094,7 @@ class Hash # hash.extract!(:a, :b) # => {:a=>1, :b=>2} # hash # => {:c=>3, :d=>4} # - # source://activesupport//lib/active_support/core_ext/hash/slice.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/slice.rb:24 def extract!(*keys); end # By default, only instances of Hash itself are extractable. @@ -18551,14 +17103,9 @@ class Hash # is extractable, Array#extract_options! pops it from # the Array when it is the last element of the Array. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/array/extract_options.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/array/extract_options.rb:9 def extractable_options?; end - # Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver: - # - # { a: 1 }.with_indifferent_access['a'] # => 1 # Called when object is nested under an object that receives # #with_indifferent_access. This method will be called on the current object # by the enclosing object and is aliased to #with_indifferent_access by @@ -18570,12 +17117,10 @@ class Hash # { a: b }.with_indifferent_access['a'] # calls b.nested_under_indifferent_access # # => {"b"=>1} # - # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/indifferent_access.rb:23 def nested_under_indifferent_access; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#118 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:118 def present?; end # Merges the caller into +other_hash+. For example, @@ -18589,17 +17134,15 @@ class Hash # This is particularly useful for initializing an options hash # with default values. # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:14 def reverse_merge(other_hash); end # Destructive +reverse_merge+. # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:20 def reverse_merge!(other_hash); end - # Destructive +reverse_merge+. - # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:23 def reverse_update(other_hash); end # Replaces the hash with only the given keys. @@ -18609,7 +17152,7 @@ class Hash # hash.slice!(:a, :b) # => {:c=>3, :d=>4} # hash # => {:a=>1, :b=>2} # - # source://activesupport//lib/active_support/core_ext/hash/slice.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/slice.rb:10 def slice!(*keys); end # Returns a new hash with all keys converted to strings. @@ -18619,13 +17162,13 @@ class Hash # hash.stringify_keys # # => {"name"=>"Rob", "age"=>"28"} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:10 def stringify_keys; end # Destructively converts all keys to strings. Same as # +stringify_keys+, but modifies +self+. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:16 def stringify_keys!; end # Returns a new hash with all keys converted to symbols, as long as @@ -18636,47 +17179,22 @@ class Hash # hash.symbolize_keys # # => {:name=>"Rob", :age=>"28"} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:27 def symbolize_keys; end # Destructively converts all keys to symbols, as long as they respond # to +to_sym+. Same as +symbolize_keys+, but modifies +self+. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:34 def symbolize_keys!; end - # Returns a new hash with all keys converted to symbols, as long as - # they respond to +to_sym+. - # - # hash = { 'name' => 'Rob', 'age' => '28' } - # - # hash.symbolize_keys - # # => {:name=>"Rob", :age=>"28"} - # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#30 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:30 def to_options; end - # Destructively converts all keys to symbols, as long as they respond - # to +to_sym+. Same as +symbolize_keys+, but modifies +self+. - # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#37 + # pkg:gem/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 - # query string: - # - # {name: 'David', nationality: 'Danish'}.to_query - # # => "name=David&nationality=Danish" - # - # An optional namespace can be passed to enclose key names: - # - # {name: 'David', nationality: 'Danish'}.to_query('user') - # # => "user%5Bname%5D=David&user%5Bnationality%5D=Danish" - # - # The string pairs "key=value" that conform the query string - # are sorted lexicographically in ascending order. - # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:92 def to_param(namespace = T.unsafe(nil)); end # Returns a string representation of the receiver suitable for use as a URL @@ -18693,7 +17211,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#81 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:81 def to_query(namespace = T.unsafe(nil)); end # Returns a string containing an XML representation of its receiver: @@ -18759,49 +17277,36 @@ class Hash # configure your own builder with the :builder option. The method also accepts # options like :dasherize and friends, they are forwarded to the builder. # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#74 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:74 def to_xml(options = T.unsafe(nil)); end - # Merges the caller into +other_hash+. For example, - # - # options = options.reverse_merge(size: 25, velocity: 10) - # - # is equivalent to - # - # options = { size: 25, velocity: 10 }.merge(options) - # - # This is particularly useful for initializing an options hash - # with default values. - # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#17 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:17 def with_defaults(other_hash); end - # Destructive +reverse_merge+. - # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:24 def with_defaults!(other_hash); end # Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver: # # { a: 1 }.with_indifferent_access['a'] # => 1 # - # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/indifferent_access.rb:9 def with_indifferent_access; end private # Support methods for deep transforming nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:116 def _deep_transform_keys_in_object(object, &block); end - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#129 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:129 def _deep_transform_keys_in_object!(object, &block); end class << self # Builds a Hash from XML just like Hash.from_xml, but also allows Symbol and YAML. # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#133 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:133 def from_trusted_xml(xml); end # Returns a Hash containing a collection of pairs when the key is the node name and the value is @@ -18839,52 +17344,52 @@ class Hash # Note that passing custom disallowed types will override the default types, # which are Symbol and YAML. # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#128 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:128 def from_xml(xml, disallowed_types = T.unsafe(nil)); end end end # :stopdoc: # -# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#464 +# pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:464 HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess # :enddoc: # -# source://activesupport//lib/active_support/i18n_railtie.rb#9 +# pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:9 module I18n; end -# source://activesupport//lib/active_support/i18n_railtie.rb#10 +# pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:10 class I18n::Railtie < ::Rails::Railtie class << self - # source://activesupport//lib/active_support/i18n_railtie.rb#103 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:103 def include_fallbacks_module; end - # source://activesupport//lib/active_support/i18n_railtie.rb#107 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:107 def init_fallbacks(fallbacks); end # Setup i18n configuration. # - # source://activesupport//lib/active_support/i18n_railtie.rb#36 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:36 def initialize_i18n(app); end - # source://activesupport//lib/active_support/i18n_railtie.rb#84 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:84 def setup_raise_on_missing_translations_config(app, strict); end - # source://activesupport//lib/active_support/i18n_railtie.rb#123 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:123 def validate_fallbacks(fallbacks); end - # source://activesupport//lib/active_support/i18n_railtie.rb#134 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:134 def watched_dirs_with_extensions(paths); end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#151 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:151 class IO include ::Enumerable include ::File::Constants - # source://activesupport//lib/active_support/core_ext/object/json.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:152 def as_json(options = T.unsafe(nil)); end end @@ -18967,7 +17472,6 @@ 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; end class IO::EAGAINWaitReadable < ::Errno::EAGAIN include ::IO::WaitReadable @@ -18991,47 +17495,37 @@ IO::PRIORITY = T.let(T.unsafe(nil), Integer) IO::READABLE = T.let(T.unsafe(nil), Integer) IO::WRITABLE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/integer/time.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:6 class Integer < ::Numeric - # Returns a Duration instance matching the number of months provided. - # - # 2.months # => 2 months - # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:13 def month; end # Returns a Duration instance matching the number of months provided. # # 2.months # => 2 months # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:10 def months; end - # Returns a Duration instance matching the number of years provided. - # - # 2.years # => 2 years - # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:21 def year; end # Returns a Duration instance matching the number of years provided. # # 2.years # => 2 years # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:18 def years; end end -Integer::GMP_VERSION = T.let(T.unsafe(nil), String) - -# source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:3 module Kernel private # Sets $VERBOSE to +true+ for the duration of the block and back to its # original value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:20 def enable_warnings(&block); end # Sets $VERBOSE to +nil+ for the duration of the block and back to its original @@ -19043,7 +17537,7 @@ module Kernel # # noisy_call # warning voiced # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:14 def silence_warnings(&block); end # Blocks and ignores any exception passed as argument if raised within the block. @@ -19055,20 +17549,20 @@ module Kernel # # puts 'This code gets executed and nothing related to ZeroDivisionError was seen' # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:41 def suppress(*exception_classes); end # Sets $VERBOSE for the duration of the block and back to its original # value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:26 def with_warnings(flag); end class << self # Sets $VERBOSE to +true+ for the duration of the block and back to its # original value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:20 def enable_warnings(&block); end # Sets $VERBOSE to +nil+ for the duration of the block and back to its original @@ -19080,7 +17574,7 @@ module Kernel # # noisy_call # warning voiced # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:14 def silence_warnings(&block); end # Blocks and ignores any exception passed as argument if raised within the block. @@ -19092,17 +17586,22 @@ module Kernel # # puts 'This code gets executed and nothing related to ZeroDivisionError was seen' # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:41 def suppress(*exception_classes); end # Sets $VERBOSE for the duration of the block and back to its original # value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:26 def with_warnings(flag); end end end +# == Attribute Accessors +# +# Extends the module object with class/module and instance accessors for +# class/module attributes, just like the native attr* accessors for instance +# attributes. # == Attribute Accessors per Thread # # Extends the module object with class/module and instance accessors for @@ -19115,7 +17614,7 @@ end # Note that it can also be scoped per-fiber if +Rails.application.config.active_support.isolation_level+ # is set to +:fiber+. # -# source://activesupport//lib/active_support/core_ext/module/delegation.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:3 class Module include ::Module::Concerning @@ -19137,7 +17636,7 @@ class Module # e.subject = "Megastars" # e.title # => "Megastars" # - # source://activesupport//lib/active_support/core_ext/module/aliasing.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/module/aliasing.rb:21 def alias_attribute(new_name, old_name); end # A module may or may not have a name. @@ -19164,206 +17663,38 @@ class Module # m.name # => "M" # m.anonymous? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/module/anonymous.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/module/anonymous.rb:27 def anonymous?; end - # source://activesupport//lib/active_support/core_ext/object/json.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:53 def as_json(options = T.unsafe(nil)); end - # Declares an attribute reader and writer backed by an internally-named instance - # variable. - # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:20 def attr_internal(*attrs); end # Declares an attribute reader and writer backed by an internally-named instance # variable. # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:16 def attr_internal_accessor(*attrs); end # Declares an attribute reader backed by an internally-named instance variable. # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#5 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:5 def attr_internal_reader(*attrs); end # Declares an attribute writer backed by an internally-named instance variable. # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:10 def attr_internal_writer(*attrs); end - # Defines both class and instance accessors for class attributes. - # All class and instance methods created will be public, even if - # this method is called with a private or protected access modifier. - # - # module HairColors - # mattr_accessor :hair_colors - # end - # - # class Person - # include HairColors - # end - # - # HairColors.hair_colors = [:brown, :black, :blonde, :red] - # HairColors.hair_colors # => [:brown, :black, :blonde, :red] - # Person.new.hair_colors # => [:brown, :black, :blonde, :red] - # - # If a subclass changes the value then that would also change the value for - # parent class. Similarly if parent class changes the value then that would - # change the value of subclasses too. - # - # class Citizen < Person - # end - # - # Citizen.new.hair_colors << :blue - # Person.new.hair_colors # => [:brown, :black, :blonde, :red, :blue] - # - # To omit the instance writer method, pass instance_writer: false. - # To omit the instance reader method, pass instance_reader: false. - # - # module HairColors - # mattr_accessor :hair_colors, instance_writer: false, instance_reader: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors = [:brown] # => NoMethodError - # Person.new.hair_colors # => NoMethodError - # - # Or pass instance_accessor: false, to omit both instance methods. - # - # module HairColors - # mattr_accessor :hair_colors, instance_accessor: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors = [:brown] # => NoMethodError - # Person.new.hair_colors # => NoMethodError - # - # You can set a default value for the attribute. - # - # module HairColors - # mattr_accessor :hair_colors, default: [:brown, :black, :blonde, :red] - # mattr_accessor(:hair_styles) { [:long, :short] } - # end - # - # class Person - # include HairColors - # end - # - # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] - # Person.class_variable_get("@@hair_styles") # => [:long, :short] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#213 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:213 def cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end - # Defines a class attribute and creates a class and instance reader methods. - # The underlying class variable is set to +nil+, if it is not previously - # defined. All class and instance methods created will be public, even if - # this method is called with a private or protected access modifier. - # - # module HairColors - # mattr_reader :hair_colors - # end - # - # HairColors.hair_colors # => nil - # HairColors.class_variable_set("@@hair_colors", [:brown, :black]) - # HairColors.hair_colors # => [:brown, :black] - # - # The attribute name must be a valid method name in Ruby. - # - # module Foo - # mattr_reader :"1_Badname" - # end - # # => NameError: invalid attribute name: 1_Badname - # - # To omit the instance reader method, pass - # instance_reader: false or instance_accessor: false. - # - # module HairColors - # mattr_reader :hair_colors, instance_reader: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors # => NoMethodError - # - # You can set a default value for the attribute. - # - # module HairColors - # mattr_reader :hair_colors, default: [:brown, :black, :blonde, :red] - # mattr_reader(:hair_styles) { [:long, :short] } - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors # => [:brown, :black, :blonde, :red] - # Person.new.hair_styles # => [:long, :short] - # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:75 def cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end - # Defines a class attribute and creates a class and instance writer methods to - # allow assignment to the attribute. All class and instance methods created - # will be public, even if this method is called with a private or protected - # access modifier. - # - # module HairColors - # mattr_writer :hair_colors - # end - # - # class Person - # include HairColors - # end - # - # HairColors.hair_colors = [:brown, :black] - # Person.class_variable_get("@@hair_colors") # => [:brown, :black] - # Person.new.hair_colors = [:blonde, :red] - # HairColors.class_variable_get("@@hair_colors") # => [:blonde, :red] - # - # To omit the instance writer method, pass - # instance_writer: false or instance_accessor: false. - # - # module HairColors - # mattr_writer :hair_colors, instance_writer: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors = [:blonde, :red] # => NoMethodError - # - # You can set a default value for the attribute. - # - # module HairColors - # mattr_writer :hair_colors, default: [:brown, :black, :blonde, :red] - # mattr_writer(:hair_styles) { [:long, :short] } - # end - # - # class Person - # include HairColors - # end - # - # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] - # Person.class_variable_get("@@hair_styles") # => [:long, :short] - # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:140 def cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end # Returns a copy of module or class if it's anonymous. If it's @@ -19373,7 +17704,7 @@ class Module # klass = Class.new # klass.deep_dup == klass # => false # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#64 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:64 def deep_dup; end # Provides a +delegate+ class method to easily expose contained objects' @@ -19530,7 +17861,7 @@ class Module # # The target method must be public, otherwise it will raise +NoMethodError+. # - # source://activesupport//lib/active_support/core_ext/module/delegation.rb#160 + # pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:160 def delegate(*methods, to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), private: T.unsafe(nil)); end # When building decorators, a common pattern may emerge: @@ -19580,10 +17911,10 @@ class Module # Marshal.dump(object), should the delegation target method # of object add or remove instance variables. # - # source://activesupport//lib/active_support/core_ext/module/delegation.rb#218 + # pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:218 def delegate_missing_to(target, allow_nil: T.unsafe(nil)); end - # deprecate :foo, deprecator: MyLib.deprecator + # deprecate :foo, deprecator: MyLib.deprecator # deprecate :foo, bar: "warning!", deprecator: MyLib.deprecator # # A deprecator is typically an instance of ActiveSupport::Deprecation, but you can also pass any object that responds @@ -19597,7 +17928,7 @@ class Module # end # end # - # source://activesupport//lib/active_support/core_ext/module/deprecation.rb#17 + # pkg:gem/activesupport#lib/active_support/core_ext/module/deprecation.rb:17 def deprecate(*method_names, deprecator:, **options); end # Defines both class and instance accessors for class attributes. @@ -19667,7 +17998,7 @@ class Module # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] # Person.class_variable_get("@@hair_styles") # => [:long, :short] # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#208 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:208 def mattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end # Defines a class attribute and creates a class and instance reader methods. @@ -19717,9 +18048,7 @@ class Module # Person.new.hair_colors # => [:brown, :black, :blonde, :red] # Person.new.hair_styles # => [:long, :short] # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:55 def mattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end # Defines a class attribute and creates a class and instance writer methods to @@ -19767,184 +18096,90 @@ class Module # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] # Person.class_variable_get("@@hair_styles") # => [:long, :short] # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#121 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:121 def mattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#30 + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:30 def method_visibility(method); end # Returns the module which contains this one according to its name. # - # module M - # module N - # end - # end - # X = M::N - # - # M::N.module_parent # => M - # X.module_parent # => M - # - # The parent of top-level and anonymous modules is Object. - # - # M.module_parent # => Object - # Module.new.module_parent # => Object - # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#37 - def module_parent; end - - # Returns the name of the module containing this one. - # - # M::N.module_parent_name # => "M" - # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#9 - def module_parent_name; end - - # Returns all the parents of this module according to its name, ordered from - # nested outwards. The receiver is not contained within the result. - # - # module M - # module N - # end - # end - # X = M::N - # - # M.module_parents # => [Object] - # M::N.module_parents # => [M, Object] - # X.module_parents # => [M, Object] - # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#53 - def module_parents; end - - # Replaces the existing method definition, if there is one, with the passed - # block as its body. - # - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#17 - def redefine_method(method, &block); end - - # Replaces the existing singleton method definition, if there is one, with - # the passed block as its body. - # - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#26 - def redefine_singleton_method(method, &block); end - - # Removes the named method, if it exists. - # - # source://activesupport//lib/active_support/core_ext/module/remove_method.rb#7 - def remove_possible_method(method); end - - # Removes the named singleton method, if it exists. - # - # source://activesupport//lib/active_support/core_ext/module/remove_method.rb#14 - def remove_possible_singleton_method(method); end - - # Marks the named method as intended to be redefined, if it exists. - # Suppresses the Ruby method redefinition warning. Prefer - # #redefine_method where possible. - # - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#7 - def silence_redefinition_of_method(method); end - - # Defines both class and instance accessors for class attributes. - # - # class Account - # thread_mattr_accessor :user - # end - # - # Account.user = "DHH" - # Account.user # => "DHH" - # Account.new.user # => "DHH" - # - # Unlike +mattr_accessor+, values are *not* shared with subclasses or parent classes. - # If a subclass changes the value, the parent class' value is not changed. - # If the parent class changes the value, the value of subclasses is not changed. - # - # class Customer < Account - # end - # - # Account.user # => "DHH" - # Customer.user # => nil - # Customer.user = "Rafael" - # Customer.user # => "Rafael" - # Account.user # => "DHH" - # - # To omit the instance writer method, pass instance_writer: false. - # To omit the instance reader method, pass instance_reader: false. - # - # class Current - # thread_mattr_accessor :user, instance_writer: false, instance_reader: false - # end - # - # Current.new.user = "DHH" # => NoMethodError - # Current.new.user # => NoMethodError - # - # Or pass instance_accessor: false, to omit both instance methods. - # - # class Current - # thread_mattr_accessor :user, instance_accessor: false - # end - # - # Current.new.user = "DHH" # => NoMethodError - # Current.new.user # => NoMethodError - # - # A default value may be specified using the +:default+ option. Because - # multiple threads can access the default value, non-frozen default values - # will be duped and frozen. - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#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. - # The underlying per-thread class variable is set to +nil+, if it is not previously defined. - # - # module Current - # thread_mattr_reader :user + # module M + # module N + # end # end + # X = M::N # - # Current.user = "DHH" - # Current.user # => "DHH" - # Thread.new { Current.user }.value # => nil - # - # The attribute name must be a valid method name in Ruby. + # M::N.module_parent # => M + # X.module_parent # => M # - # module Foo - # thread_mattr_reader :"1_Badname" - # end - # # => NameError: invalid attribute name: 1_Badname + # The parent of top-level and anonymous modules is Object. # - # To omit the instance reader method, pass - # instance_reader: false or instance_accessor: false. + # M.module_parent # => Object + # Module.new.module_parent # => Object # - # class Current - # thread_mattr_reader :user, instance_reader: false - # end + # pkg:gem/activesupport#lib/active_support/core_ext/module/introspection.rb:37 + def module_parent; end + + # Returns the name of the module containing this one. # - # Current.new.user # => NoMethodError + # M::N.module_parent_name # => "M" # - # 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 + # pkg:gem/activesupport#lib/active_support/core_ext/module/introspection.rb:9 + def module_parent_name; end - # Defines a per-thread class attribute and creates a class and instance writer methods to - # allow assignment to the attribute. + # Returns all the parents of this module according to its name, ordered from + # nested outwards. The receiver is not contained within the result. # - # module Current - # thread_mattr_writer :user + # module M + # module N + # end # end + # X = M::N # - # Current.user = "DHH" - # Thread.current[:attr_Current_user] # => "DHH" + # M.module_parents # => [Object] + # M::N.module_parents # => [M, Object] + # X.module_parents # => [M, Object] # - # To omit the instance writer method, pass - # instance_writer: false or instance_accessor: false. + # pkg:gem/activesupport#lib/active_support/core_ext/module/introspection.rb:53 + def module_parents; end + + # Replaces the existing method definition, if there is one, with the passed + # block as its body. # - # class Current - # thread_mattr_writer :user, instance_writer: false - # end + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:17 + def redefine_method(method, &block); end + + # Replaces the existing singleton method definition, if there is one, with + # the passed block as its body. # - # Current.new.user = "DHH" # => NoMethodError + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:26 + def redefine_singleton_method(method, &block); end + + # Removes the named method, if it exists. # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#123 + # pkg:gem/activesupport#lib/active_support/core_ext/module/remove_method.rb:7 + def remove_possible_method(method); end + + # Removes the named singleton method, if it exists. + # + # pkg:gem/activesupport#lib/active_support/core_ext/module/remove_method.rb:14 + def remove_possible_singleton_method(method); end + + # Marks the named method as intended to be redefined, if it exists. + # Suppresses the Ruby method redefinition warning. Prefer + # #redefine_method where possible. + # + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:7 + def silence_redefinition_of_method(method); end + + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:174 + def thread_cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end + + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:81 + def thread_cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end + + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:123 def thread_cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil)); end # Defines both class and instance accessors for class attributes. @@ -19993,7 +18228,7 @@ class Module # multiple threads can access the default value, non-frozen default values # will be duped and frozen. # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#170 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:170 def thread_mattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end # Defines a per-thread class attribute and creates class and instance reader methods. @@ -20023,7 +18258,7 @@ class Module # # Current.new.user # => NoMethodError # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:41 def thread_mattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end # Defines a per-thread class attribute and creates a class and instance writer methods to @@ -20045,21 +18280,19 @@ class Module # # Current.new.user = "DHH" # => NoMethodError # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:101 def thread_mattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil)); end private - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:40 def attr_internal_define(attr_name, type); end class << self - # Returns the value of attribute attr_internal_naming_format. - # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:23 def attr_internal_naming_format; end - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:25 def attr_internal_naming_format=(format); end end end @@ -20171,7 +18404,7 @@ end # concerning supports a prepend: true argument which will prepend the # concern instead of using include for it. # -# source://activesupport//lib/active_support/core_ext/module/concerning.rb#112 +# pkg:gem/activesupport#lib/active_support/core_ext/module/concerning.rb:112 module Module::Concerning # A low-cruft shortcut to define a concern. # @@ -20187,19 +18420,19 @@ module Module::Concerning # ... # end # - # source://activesupport//lib/active_support/core_ext/module/concerning.rb#132 + # pkg:gem/activesupport#lib/active_support/core_ext/module/concerning.rb:132 def concern(topic, &module_definition); end # Define a new concern and mix it in. # - # source://activesupport//lib/active_support/core_ext/module/concerning.rb#114 + # pkg:gem/activesupport#lib/active_support/core_ext/module/concerning.rb:114 def concerning(topic, prepend: T.unsafe(nil), &block); end end -# source://activesupport//lib/active_support/core_ext/module/delegation.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:5 Module::DelegationError = ActiveSupport::DelegationError -# source://activesupport//lib/active_support/core_ext/name_error.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:3 class NameError < ::StandardError include ::ErrorHighlight::CoreExt include ::DidYouMean::Correctable @@ -20213,7 +18446,7 @@ class NameError < ::StandardError # end # # => "HelloWorld" # - # source://activesupport//lib/active_support/core_ext/name_error.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:12 def missing_name; end # Was this exception raised because the given name was missing? @@ -20225,23 +18458,21 @@ class NameError < ::StandardError # end # # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/name_error.rb#44 + # pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:44 def missing_name?(name); end private - # source://activesupport//lib/active_support/core_ext/name_error.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:56 def real_mod_name(mod); end end -# source://activesupport//lib/active_support/core_ext/name_error.rb#53 +# pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:53 NameError::UNBOUND_METHOD_MODULE_NAME = T.let(T.unsafe(nil), UnboundMethod) -# source://activesupport//lib/active_support/core_ext/object/to_query.rb#19 +# pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:19 class NilClass - # source://activesupport//lib/active_support/core_ext/object/json.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:93 def as_json(options = T.unsafe(nil)); end # +nil+ is blank: @@ -20250,22 +18481,20 @@ class NilClass # # @return [true] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:56 def blank?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:60 def present?; end # Returns +self+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:26 def to_param; end # Returns a CGI-escaped +key+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:21 def to_query(key); end # Calling +try+ on +nil+ always returns +nil+. @@ -20279,22 +18508,22 @@ class NilClass # With +try+ # @person.try(:children).try(:first).try(:name) # - # source://activesupport//lib/active_support/core_ext/object/try.rb#148 + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:148 def try(*_arg0, &_arg1); end # Calling +try!+ on +nil+ always returns +nil+. # # nil.try!(:name) # => nil # - # source://activesupport//lib/active_support/core_ext/object/try.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:155 def try!(*_arg0, &_arg1); end end -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#12 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:12 class Numeric include ::Comparable - # source://activesupport//lib/active_support/core_ext/object/json.rb#111 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:111 def as_json(options = T.unsafe(nil)); end # No number is blank: @@ -20304,96 +18533,70 @@ class Numeric # # @return [false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#177 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:177 def blank?; end - # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes - # - # 2.bytes # => 2 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:18 def byte; end # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes # # 2.bytes # => 2 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:15 def bytes; end - # Returns a Duration instance matching the number of days provided. - # - # 2.days # => 2 days - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:40 def day; end # Returns a Duration instance matching the number of days provided. # # 2.days # => 2 days # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:37 def days; end - # Returns the number of bytes equivalent to the exabytes provided. - # - # 2.exabytes # => 2_305_843_009_213_693_952 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#66 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:66 def exabyte; end # Returns the number of bytes equivalent to the exabytes provided. # # 2.exabytes # => 2_305_843_009_213_693_952 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:63 def exabytes; end - # Returns a Duration instance matching the number of fortnights provided. - # - # 2.fortnights # => 4 weeks - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:56 def fortnight; end # Returns a Duration instance matching the number of fortnights provided. # # 2.fortnights # => 4 weeks # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:53 def fortnights; end - # Returns the number of bytes equivalent to the gigabytes provided. - # - # 2.gigabytes # => 2_147_483_648 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#42 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:42 def gigabyte; end # Returns the number of bytes equivalent to the gigabytes provided. # # 2.gigabytes # => 2_147_483_648 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:39 def gigabytes; end - # Returns a Duration instance matching the number of hours provided. - # - # 2.hours # => 2 hours - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:32 def hour; end # Returns a Duration instance matching the number of hours provided. # # 2.hours # => 2 hours # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:29 def hours; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:13 def html_safe?; end # Returns the number of milliseconds equivalent to the seconds provided. @@ -20402,146 +18605,112 @@ class Numeric # 2.in_milliseconds # => 2000 # 1.hour.in_milliseconds # => 3600000 # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:63 def in_milliseconds; end - # Returns the number of bytes equivalent to the kilobytes provided. - # - # 2.kilobytes # => 2048 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:26 def kilobyte; end # Returns the number of bytes equivalent to the kilobytes provided. # # 2.kilobytes # => 2048 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:23 def kilobytes; end - # Returns the number of bytes equivalent to the megabytes provided. - # - # 2.megabytes # => 2_097_152 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:34 def megabyte; end # Returns the number of bytes equivalent to the megabytes provided. # # 2.megabytes # => 2_097_152 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#31 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:31 def megabytes; end - # Returns a Duration instance matching the number of minutes provided. - # - # 2.minutes # => 2 minutes - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:24 def minute; end # Returns a Duration instance matching the number of minutes provided. # # 2.minutes # => 2 minutes # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:21 def minutes; end - # Returns the number of bytes equivalent to the petabytes provided. - # - # 2.petabytes # => 2_251_799_813_685_248 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#58 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:58 def petabyte; end # Returns the number of bytes equivalent to the petabytes provided. # # 2.petabytes # => 2_251_799_813_685_248 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:55 def petabytes; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#181 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:181 def present?; end - # Returns a Duration instance matching the number of seconds provided. - # - # 2.seconds # => 2 seconds - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:16 def second; end # Returns a Duration instance matching the number of seconds provided. # # 2.seconds # => 2 seconds # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:13 def seconds; end - # Returns the number of bytes equivalent to the terabytes provided. - # - # 2.terabytes # => 2_199_023_255_552 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#50 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:50 def terabyte; end # Returns the number of bytes equivalent to the terabytes provided. # # 2.terabytes # => 2_199_023_255_552 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:47 def terabytes; end - # Returns a Duration instance matching the number of weeks provided. - # - # 2.weeks # => 2 weeks - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:48 def week; end # Returns a Duration instance matching the number of weeks provided. # # 2.weeks # => 2 weeks # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#45 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:45 def weeks; end - # Returns the number of bytes equivalent to the zettabytes provided. - # - # 2.zettabytes # => 2_361_183_241_434_822_606_848 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#74 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:74 def zettabyte; end # Returns the number of bytes equivalent to the zettabytes provided. # # 2.zettabytes # => 2_361_183_241_434_822_606_848 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:71 def zettabytes; end end -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#9 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:9 Numeric::EXABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:6 Numeric::GIGABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:4 Numeric::KILOBYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:5 Numeric::MEGABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:8 Numeric::PETABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:7 Numeric::TERABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#10 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:10 Numeric::ZETTABYTE = T.let(T.unsafe(nil), Integer) # -- @@ -20563,7 +18732,7 @@ Numeric::ZETTABYTE = T.let(T.unsafe(nil), Integer) # using that rescue idiom. # ++ # -# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#21 +# pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:21 class Object < ::BasicObject include ::ActiveSupport::Dependencies::RequireDependency include ::Kernel @@ -20600,12 +18769,10 @@ class Object < ::BasicObject # # Stringish.new.acts_like?(:string) # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/acts_like.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/object/acts_like.rb:33 def acts_like?(duck); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#59 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:59 def as_json(options = T.unsafe(nil)); end # An object is blank if it's false, empty, or a whitespace string. @@ -20621,7 +18788,7 @@ class Object < ::BasicObject # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:18 def blank?; end # Returns a deep copy of object if it's duplicable. If it's @@ -20634,7 +18801,7 @@ class Object < ::BasicObject # object.instance_variable_defined?(:@a) # => false # dup.instance_variable_defined?(:@a) # => true # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:15 def deep_dup; end # Can you safely dup this object? @@ -20642,14 +18809,10 @@ class Object < ::BasicObject # False for method objects; # true otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:26 def duplicable?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:7 def html_safe?; end # Returns true if this object is included in the argument. @@ -20664,9 +18827,7 @@ class Object < ::BasicObject # For non +Range+ arguments, this will throw an +ArgumentError+ if the argument # doesn't respond to +#include?+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/inclusion.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/object/inclusion.rb:15 def in?(another_object); end # Returns a hash with string keys that maps instance variable names without "@" to their @@ -20680,7 +18841,7 @@ class Object < ::BasicObject # # C.new(0, 1).instance_values # => {"x" => 0, "y" => 1} # - # source://activesupport//lib/active_support/core_ext/object/instance_variables.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/object/instance_variables.rb:14 def instance_values; end # Returns an array of instance variable names as strings including "@". @@ -20693,7 +18854,7 @@ class Object < ::BasicObject # # C.new(0, 1).instance_variable_names # => ["@y", "@x"] # - # source://activesupport//lib/active_support/core_ext/object/instance_variables.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/object/instance_variables.rb:29 def instance_variable_names; end # Returns the receiver if it's present otherwise returns +nil+. @@ -20713,7 +18874,7 @@ class Object < ::BasicObject # # @return [Object] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#45 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:45 def presence; end # Returns the receiver if it's included in the argument otherwise returns +nil+. @@ -20725,25 +18886,25 @@ class Object < ::BasicObject # # @return [Object] # - # source://activesupport//lib/active_support/core_ext/object/inclusion.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/object/inclusion.rb:34 def presence_in(another_object); end # An object is present if it's not blank. # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:25 def present?; end # Alias of to_s. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:8 def to_param; end # Converts an object into a string suitable for use as a URL query string, # using the given key as the param name. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:14 def to_query(key); end # Set and restore public attributes around a block. @@ -20769,7 +18930,7 @@ class Object < ::BasicObject # It can be used on any object as long as both the reader and writer methods # are public. # - # source://activesupport//lib/active_support/core_ext/object/with.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/object/with.rb:26 def with(**attributes); end # An elegant way to factor duplication out of options passed to a series of @@ -20858,13 +19019,13 @@ class Object < ::BasicObject # styled.button_tag "I'm red too!" # # => # - # source://activesupport//lib/active_support/core_ext/object/with_options.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/object/with_options.rb:92 def with_options(options, &block); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#236 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:236 class Pathname - # source://activesupport//lib/active_support/core_ext/object/json.rb#237 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:237 def as_json(options = T.unsafe(nil)); end end @@ -20872,40 +19033,33 @@ module Process extend ::ActiveSupport::ForkTracker::CoreExt class << self - # source://activesupport//lib/active_support/fork_tracker.rb#6 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:6 def _fork; end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#257 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:257 class Process::Status - # source://activesupport//lib/active_support/core_ext/object/json.rb#258 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:258 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#157 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:157 class Range include ::ActiveSupport::RangeWithFormat include ::ActiveSupport::CompareWithRange include ::Enumerable - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:16 def ===(value); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#158 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:158 def as_json(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:41 def include?(value); end - # Compare two ranges and see if they overlap each other - # (1..5).overlap?(4..6) # => true - # (1..5).overlap?(7..9) # => false - # - # @raise [TypeError] - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/range/overlap.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/range/overlap.rb:39 def overlaps?(_arg0); end # Returns the sole item in the range. If there are no items, or more @@ -20915,19 +19069,19 @@ class Range # (2..1).sole # => Enumerable::SoleItemExpectedError: no item found # (..1).sole # => Enumerable::SoleItemExpectedError: infinite range cannot represent a sole item # - # source://activesupport//lib/active_support/core_ext/range/sole.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/range/sole.rb:10 def sole; end # Optimize range sum to use arithmetic progression if a block is not given and # we have a range of numeric values. # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#253 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:253 def sum(initial_value = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#139 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:139 class Regexp - # source://activesupport//lib/active_support/core_ext/object/json.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:140 def as_json(options = T.unsafe(nil)); end # Returns +true+ if the regexp has the multiline flag set. @@ -20938,13 +19092,11 @@ class Regexp # Regexp.new(".").multiline? # => false # Regexp.new(".", Regexp::MULTILINE).multiline? # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/regexp.rb#11 + # pkg:gem/activesupport#lib/active_support/core_ext/regexp.rb:11 def multiline?; end end -# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#62 +# pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:62 module Singleton mixes_in_class_methods ::Singleton::SingletonClassMethods @@ -20952,9 +19104,7 @@ module Singleton # # Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#66 + # pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:66 def duplicable?; end end @@ -20963,18 +19113,16 @@ end # # 'ScaleScore'.tableize # => "scale_scores" # -# source://activesupport//lib/active_support/core_ext/string/multibyte.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/string/multibyte.rb:5 class String include ::Comparable # Enables more predictable duck-typing on String-like classes. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/behavior.rb#5 + # pkg:gem/activesupport#lib/active_support/core_ext/string/behavior.rb:5 def acts_like_string?; end - # source://activesupport//lib/active_support/core_ext/object/json.rb#99 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:99 def as_json(options = T.unsafe(nil)); end # If you pass a single integer, returns a substring of one character at that @@ -21003,7 +19151,7 @@ class String # str.at("lo") # => "lo" # str.at("ol") # => nil # - # source://activesupport//lib/active_support/core_ext/string/access.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:29 def at(position); end # A string is blank if it's empty or contains whitespaces only: @@ -21019,22 +19167,10 @@ class String # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#153 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:153 def blank?; end - # By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize - # is set to :lower then camelize produces lowerCamelCase. - # - # +camelize+ will also convert '/' to '::' which is useful for converting paths to namespaces. - # - # 'active_record'.camelize # => "ActiveRecord" - # 'active_record'.camelize(:lower) # => "activeRecord" - # 'active_record/errors'.camelize # => "ActiveRecord::Errors" - # 'active_record/errors'.camelize(:lower) # => "activeRecord::Errors" - # - # See ActiveSupport::Inflector.camelize. - # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#111 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:111 def camelcase(first_letter = T.unsafe(nil)); end # By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize @@ -21049,7 +19185,7 @@ class String # # See ActiveSupport::Inflector.camelize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:101 def camelize(first_letter = T.unsafe(nil)); end # Creates a class name from a plural table name like \Rails does for table names to models. @@ -21061,7 +19197,7 @@ class String # # See ActiveSupport::Inflector.classify. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#239 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:239 def classify; end # +constantize+ tries to find a declared constant with the name specified @@ -21074,7 +19210,7 @@ class String # # See ActiveSupport::Inflector.constantize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#73 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:73 def constantize; end # Replaces underscores with dashes in the string. @@ -21083,7 +19219,7 @@ class String # # See ActiveSupport::Inflector.dasherize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#148 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:148 def dasherize; end # Removes the rightmost segment from the constant expression in the string. @@ -21098,7 +19234,7 @@ class String # # See also +demodulize+. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#177 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:177 def deconstantize; end # Removes the module part from the constant expression in the string. @@ -21112,7 +19248,7 @@ class String # # See also +deconstantize+. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#162 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:162 def demodulize; end # Converts the first character to lowercase. @@ -21123,10 +19259,10 @@ class String # # See ActiveSupport::Inflector.downcase_first. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#284 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:284 def downcase_first; end - # source://activesupport//lib/active_support/core_ext/string/starts_ends_with.rb#5 + # pkg:gem/activesupport#lib/active_support/core_ext/string/starts_ends_with.rb:5 def ends_with?(*_arg0); end # The inverse of String#include?. Returns true if the string @@ -21136,9 +19272,7 @@ class String # "hello".exclude? "ol" # => true # "hello".exclude? ?h # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/exclude.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/string/exclude.rb:10 def exclude?(string); end # Returns the first character. If a limit is supplied, returns a substring @@ -21152,7 +19286,7 @@ class String # str.first(0) # => "" # str.first(6) # => "hello" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#78 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:78 def first(limit = T.unsafe(nil)); end # Creates a foreign key name from a class name. @@ -21165,7 +19299,7 @@ class String # # See ActiveSupport::Inflector.foreign_key. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#297 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:297 def foreign_key(separate_class_name_and_id_with_underscore = T.unsafe(nil)); end # Returns a substring from the given position to the end of the string. @@ -21182,7 +19316,7 @@ class String # str.from(0).to(-1) # => "hello" # str.from(1).to(-2) # => "ell" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#46 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:46 def from(position); end # Marks a string as trusted safe. It will be inserted into HTML with no @@ -21191,7 +19325,7 @@ class String # +raw+ helper in views. It is recommended that you use +sanitize+ instead of # this method. It should never be called on user input. # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#232 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:232 def html_safe; end # Capitalizes the first word, turns underscores into spaces, and (by default) strips a @@ -21214,13 +19348,13 @@ class String # # See ActiveSupport::Inflector.humanize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#262 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:262 def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end # Converts String to a TimeWithZone in the current zone if Time.zone or Time.zone_default # is set, otherwise converts String to a Time via String#to_time # - # source://activesupport//lib/active_support/core_ext/string/zones.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/string/zones.rb:9 def in_time_zone(zone = T.unsafe(nil)); end # Indents the lines in the receiver: @@ -21252,14 +19386,14 @@ class String # "foo\n\nbar".indent(2) # => " foo\n\n bar" # "foo\n\nbar".indent(2, nil, true) # => " foo\n \n bar" # - # source://activesupport//lib/active_support/core_ext/string/indent.rb#42 + # pkg:gem/activesupport#lib/active_support/core_ext/string/indent.rb:42 def indent(amount, indent_string = T.unsafe(nil), indent_empty_lines = T.unsafe(nil)); end # Same as +indent+, except it indents the receiver in-place. # # Returns the indented string, or +nil+ if there was nothing to indent. # - # source://activesupport//lib/active_support/core_ext/string/indent.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/string/indent.rb:7 def indent!(amount, indent_string = T.unsafe(nil), indent_empty_lines = T.unsafe(nil)); end # Wraps the current string in the ActiveSupport::StringInquirer class, @@ -21269,7 +19403,7 @@ class String # env.production? # => true # env.development? # => false # - # source://activesupport//lib/active_support/core_ext/string/inquiry.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inquiry.rb:13 def inquiry; end # Returns +true+ if string has utf_8 encoding. @@ -21280,9 +19414,7 @@ class String # utf_8_str.is_utf8? # => true # iso_str.is_utf8? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/multibyte.rb#57 + # pkg:gem/activesupport#lib/active_support/core_ext/string/multibyte.rb:57 def is_utf8?; end # Returns the last character of the string. If a limit is supplied, returns a substring @@ -21296,7 +19428,7 @@ class String # str.last(0) # => "" # str.last(6) # => "hello" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:92 def last(limit = T.unsafe(nil)); end # == Multibyte proxy @@ -21331,7 +19463,7 @@ class String # For more information about the methods defined on the Chars proxy see ActiveSupport::Multibyte::Chars. For # information about how to change the default Multibyte behavior see ActiveSupport::Multibyte. # - # source://activesupport//lib/active_support/core_ext/string/multibyte.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/string/multibyte.rb:37 def mb_chars; end # Replaces special characters in a string so that it may be used as part of a 'pretty' URL. @@ -21369,7 +19501,7 @@ class String # # See ActiveSupport::Inflector.parameterize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#215 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:215 def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end # Returns the plural form of the word in the string. @@ -21396,12 +19528,10 @@ class String # # See ActiveSupport::Inflector.pluralize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#35 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:35 def pluralize(count = T.unsafe(nil), locale = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#165 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:165 def present?; end # Returns a new string with all occurrences of the patterns removed. @@ -21410,7 +19540,7 @@ class String # str.remove(" test", /bar/) # => "foo " # str # => "foo bar test" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:32 def remove(*patterns); end # Alters the string by removing all occurrences of the patterns. @@ -21418,7 +19548,7 @@ class String # str.remove!(" test", /bar/) # => "foo " # str # => "foo " # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:40 def remove!(*patterns); end # +safe_constantize+ tries to find a declared constant with the name specified @@ -21431,7 +19561,7 @@ class String # # See ActiveSupport::Inflector.safe_constantize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:86 def safe_constantize; end # The reverse of +pluralize+, returns the singular form of a word in a string. @@ -21451,7 +19581,7 @@ class String # # See ActiveSupport::Inflector.singularize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:60 def singularize(locale = T.unsafe(nil)); end # Returns the string, first removing all whitespace on both ends of @@ -21464,7 +19594,7 @@ class String # string }.squish # => "Multi-line string" # " foo bar \n \t boo".squish # => "foo bar boo" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:13 def squish; end # Performs a destructive squish. See String#squish. @@ -21472,10 +19602,10 @@ class String # str.squish! # => "foo bar boo" # str # => "foo bar boo" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:21 def squish!; end - # source://activesupport//lib/active_support/core_ext/string/starts_ends_with.rb#4 + # pkg:gem/activesupport#lib/active_support/core_ext/string/starts_ends_with.rb:4 def starts_with?(*_arg0); end # Strips indentation in heredocs. @@ -21497,7 +19627,7 @@ class String # Technically, it looks for the least indented non-empty line # in the whole string, and removes that amount of leading whitespace. # - # source://activesupport//lib/active_support/core_ext/string/strip.rb#22 + # pkg:gem/activesupport#lib/active_support/core_ext/string/strip.rb:22 def strip_heredoc; end # Creates the name of a table like \Rails does for models to table names. This method @@ -21509,24 +19639,10 @@ class String # # See ActiveSupport::Inflector.tableize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#227 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:227 def tableize; end - # Capitalizes all the words and replaces some characters in the string to create - # a nicer looking title. +titleize+ is meant for creating pretty output. It is not - # used in the \Rails internals. - # - # The trailing '_id','Id'.. can be kept and capitalized by setting the - # optional parameter +keep_id_suffix+ to true. - # By default, this parameter is false. - # - # 'man from the boondocks'.titleize # => "Man From The Boondocks" - # 'x-men: the last stand'.titleize # => "X Men: The Last Stand" - # 'string_ending_with_id'.titleize(keep_id_suffix: true) # => "String Ending With Id" - # - # See ActiveSupport::Inflector.titleize. - # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#129 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:129 def titlecase(keep_id_suffix: T.unsafe(nil)); end # Capitalizes all the words and replaces some characters in the string to create @@ -21543,7 +19659,7 @@ class String # # See ActiveSupport::Inflector.titleize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:126 def titleize(keep_id_suffix: T.unsafe(nil)); end # Returns a substring from the beginning of the string to the given position. @@ -21560,7 +19676,7 @@ class String # str.from(0).to(-1) # => "hello" # str.from(1).to(-2) # => "ell" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:63 def to(position); end # Converts a string to a Date value. @@ -21570,7 +19686,7 @@ class String # "2012-12-13".to_date # => Thu, 13 Dec 2012 # "12/13/2012".to_date # => ArgumentError: invalid date # - # source://activesupport//lib/active_support/core_ext/string/conversions.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/string/conversions.rb:47 def to_date; end # Converts a string to a DateTime value. @@ -21580,7 +19696,7 @@ class String # "2012-12-13 12:50".to_datetime # => Thu, 13 Dec 2012 12:50:00 +0000 # "12/13/2012".to_datetime # => ArgumentError: invalid date # - # source://activesupport//lib/active_support/core_ext/string/conversions.rb#57 + # pkg:gem/activesupport#lib/active_support/core_ext/string/conversions.rb:57 def to_datetime; end # Converts a string to a Time value. @@ -21599,7 +19715,7 @@ class String # "12/13/2012".to_time # => ArgumentError: argument out of range # "1604326192".to_time # => ArgumentError: argument out of range # - # source://activesupport//lib/active_support/core_ext/string/conversions.rb#22 + # pkg:gem/activesupport#lib/active_support/core_ext/string/conversions.rb:22 def to_time(form = T.unsafe(nil)); end # Truncates a given +text+ to length truncate_to if +text+ is longer than truncate_to: @@ -21625,7 +19741,7 @@ class String # 'And they found that many people were sleeping better.'.truncate(4, omission: '... (continued)') # # => "... (continued)" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#70 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:70 def truncate(truncate_to, options = T.unsafe(nil)); end # Truncates +text+ to at most truncate_to bytes in length without @@ -21645,7 +19761,7 @@ class String # # Raises +ArgumentError+ when the bytesize of :omission exceeds truncate_to. # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:101 def truncate_bytes(truncate_to, omission: T.unsafe(nil)); end # Truncates a given +text+ after a given number of words (words_count): @@ -21663,7 +19779,7 @@ class String # 'And they found that many people were sleeping better.'.truncate_words(5, omission: '... (continued)') # # => "And they found that many... (continued)" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#142 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:142 def truncate_words(words_count, options = T.unsafe(nil)); end # The reverse of +camelize+. Makes an underscored, lowercase form from the expression in the string. @@ -21675,7 +19791,7 @@ class String # # See ActiveSupport::Inflector.underscore. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#139 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:139 def underscore; end # Converts the first character to uppercase. @@ -21686,29 +19802,29 @@ class String # # See ActiveSupport::Inflector.upcase_first. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#273 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:273 def upcase_first; end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#136 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:136 String::BLANK_RE = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/object/blank.rb#137 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:137 String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map) -# source://activesupport//lib/active_support/core_ext/object/json.rb#74 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:74 class Struct include ::Enumerable - # source://activesupport//lib/active_support/core_ext/object/json.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:75 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#104 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:104 class Symbol include ::Comparable - # source://activesupport//lib/active_support/core_ext/object/json.rb#105 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:105 def as_json(options = T.unsafe(nil)); end # A Symbol is blank if it's empty: @@ -21716,56 +19832,45 @@ class Symbol # :''.blank? # => true # :symbol.blank? # => false # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#128 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:130 def present?; end end class Thread - # source://activesupport//lib/active_support/isolated_execution_state.rb#7 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:7 def active_support_execution_state; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#7 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:7 def active_support_execution_state=(_arg0); end end -# source://activesupport//lib/active_support/core_ext/thread/backtrace/location.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/thread/backtrace/location.rb:3 class Thread::Backtrace::Location - # source://activesupport//lib/active_support/core_ext/thread/backtrace/location.rb#4 + # pkg:gem/activesupport#lib/active_support/core_ext/thread/backtrace/location.rb:4 def spot(ex); end end -# source://activesupport//lib/active_support/core_ext/time/conversions.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:7 class Time include ::Comparable include ::DateAndTime::Zones include ::DateAndTime::Calculations - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#298 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:298 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#308 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:308 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#338 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:338 def <=>(other); end # Duck-types as a Time-like class. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/time/acts_like.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/time/acts_like.rb:7 def acts_like_time?; end # Uses Date to provide precise Time calculations for years, months, and days @@ -21784,80 +19889,60 @@ class Time # largest to smallest. This order can affect the result around the end of a # month. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#194 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:194 def advance(options); end # Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#220 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:220 def ago(seconds); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#201 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:201 def as_json(options = T.unsafe(nil)); end - # Returns a new Time representing the start of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#236 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:236 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#263 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:263 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#279 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:279 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#257 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:257 def at_end_of_day; end - # Returns a new Time representing the end of the hour, x:59:59.999999 - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#273 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:273 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#288 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:288 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#244 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:244 def at_midday; end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:246 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#235 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:235 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#245 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:245 def at_noon; end # Returns a new Time representing the start of the day (0:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#231 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:231 def beginning_of_day; end # Returns a new Time representing the start of the hour (x:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#260 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:260 def beginning_of_hour; end # Returns a new Time representing the start of the minute (x:xx:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#276 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:276 def beginning_of_minute; end # No Time is blank: @@ -21866,7 +19951,7 @@ class Time # # @return [false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#192 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:192 def blank?; end # Returns a new Time where one or more of the elements have been changed according @@ -21882,48 +19967,43 @@ class Time # Time.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => Time.new(1981, 8, 1, 22, 35, 0) # Time.new(2012, 8, 29, 22, 35, 0).change(year: 1981, hour: 0) # => Time.new(1981, 8, 29, 0, 0, 0) # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#123 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:123 def change(options); end # Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances # can be chronologically compared with a Time # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#322 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:322 def compare_with_coercion(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#337 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:337 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#249 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:249 def end_of_day; end # Returns a new Time representing the end of the hour, x:59:59.999999 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#266 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:266 def end_of_hour; end # Returns a new Time representing the end of the minute, x:xx:59.999999 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#282 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:282 def end_of_minute; end - # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances - # can be eql? to an equivalent Time - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#348 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:348 def eql?(other); end # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances # can be eql? to an equivalent Time # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#342 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:342 def eql_with_coercion(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#347 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:347 def eql_without_coercion(_arg0); end # Returns a formatted string of the offset from UTC, or an alternative @@ -21932,101 +20012,91 @@ class Time # Time.local(2000).formatted_offset # => "-06:00" # Time.local(2000).formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/core_ext/time/conversions.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:69 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # Returns a new Time representing the time a number of seconds since the instance time - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#228 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:228 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#242 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:242 def midday; end # Returns a new Time representing the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#239 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:239 def middle_of_day; end - # Returns a new Time representing the start of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:234 def midnight; end # Time#- can also be used to determine the number of seconds between two Time instances. # We're layering on additional behavior so that ActiveSupport::TimeWithZone instances # are coerced into values that Time#- will recognize # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#313 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:313 def minus_with_coercion(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#300 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:300 def minus_with_duration(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#317 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:317 def minus_without_coercion(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#307 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:307 def minus_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#356 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:356 def next_day(days = T.unsafe(nil)); end # Returns a new time the specified number of months in the future. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#366 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:366 def next_month(months = T.unsafe(nil)); end # Returns a new time the specified number of years in the future. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#376 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:376 def next_year(years = T.unsafe(nil)); end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#243 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:243 def noon; end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#290 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:290 def plus_with_duration(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#297 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:297 def plus_without_duration(_arg0); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#196 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:196 def present?; end # Returns a new time the specified number of days ago. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#351 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:351 def prev_day(days = T.unsafe(nil)); end # Returns a new time the specified number of months ago. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#361 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:361 def prev_month(months = T.unsafe(nil)); end # Returns a new time the specified number of years ago. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#371 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:371 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 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:74 def rfc3339(*_arg0); end # Returns the fraction of a second as a +Rational+ # # Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#107 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:107 def sec_fraction; end # Returns the number of seconds since 00:00:00. @@ -22035,7 +20105,7 @@ class Time # Time.new(2012, 8, 29, 12, 34, 56).seconds_since_midnight # => 45296.0 # Time.new(2012, 8, 29, 23, 59, 59).seconds_since_midnight # => 86399.0 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#91 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:91 def seconds_since_midnight; end # Returns the number of seconds until 23:59:59. @@ -22044,42 +20114,15 @@ class Time # Time.new(2012, 8, 29, 12, 34, 56).seconds_until_end_of_day # => 41103 # Time.new(2012, 8, 29, 23, 59, 59).seconds_until_end_of_day # => 0 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#100 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:100 def seconds_until_end_of_day; end # Returns a new Time representing the time a number of seconds since the instance time # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:225 def since(seconds); end - # Converts to a formatted string. See DATE_FORMATS for built-in formats. - # - # This method is aliased to to_formatted_s. - # - # time = Time.now # => 2007-01-18 06:10:17 -06:00 - # - # time.to_fs(:time) # => "06:10" - # time.to_formatted_s(:time) # => "06:10" - # - # time.to_fs(:db) # => "2007-01-18 06:10:17" - # time.to_fs(:number) # => "20070118061017" - # time.to_fs(:short) # => "18 Jan 06:10" - # time.to_fs(:long) # => "January 18, 2007 06:10" - # time.to_fs(:long_ordinal) # => "January 18th, 2007 06:10" - # time.to_fs(:rfc822) # => "Thu, 18 Jan 2007 06:10:17 -0600" - # time.to_fs(:rfc2822) # => "Thu, 18 Jan 2007 06:10:17 -0600" - # time.to_fs(:iso8601) # => "2007-01-18T06:10:17-06:00" - # - # == Adding your own time formats to +to_fs+ - # You can add your own formats to the Time::DATE_FORMATS hash. - # Use the format name as the hash key and either a strftime string - # or Proc instance that takes a time argument as the value. - # - # # config/initializers/time_formats.rb - # Time::DATE_FORMATS[:month_and_year] = '%B %Y' - # Time::DATE_FORMATS[:short_ordinal] = ->(time) { time.strftime("%B #{time.day.ordinalize}") } - # - # source://activesupport//lib/active_support/core_ext/time/conversions.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:62 def to_formatted_s(format = T.unsafe(nil)); end # Converts to a formatted string. See DATE_FORMATS for built-in formats. @@ -22109,45 +20152,42 @@ class Time # Time::DATE_FORMATS[:month_and_year] = '%B %Y' # Time::DATE_FORMATS[:short_ordinal] = ->(time) { time.strftime("%B #{time.day.ordinalize}") } # - # source://activesupport//lib/active_support/core_ext/time/conversions.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:55 def to_fs(format = T.unsafe(nil)); end class << self # Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:18 def ===(other); end - # Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime - # instances can be used when called with a single argument - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#60 + # pkg:gem/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 # instances can be used when called with a single argument # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#45 + # pkg:gem/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 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:59 def at_without_coercion(time, subsec = T.unsafe(nil), unit = T.unsafe(nil), in: T.unsafe(nil)); end # Returns Time.zone.now when Time.zone or config.time_zone are set, otherwise just returns Time.now. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:39 def current; end # Returns the number of days in the given month. # If no year is specified, it will use the current year. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:24 def days_in_month(month, year = T.unsafe(nil)); end # Returns the number of days in the given year. # If no year is specified, it will use the current year. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:34 def days_in_year(year = T.unsafe(nil)); end # Returns a TimeZone instance matching the time zone provided. @@ -22157,7 +20197,7 @@ class Time # Time.find_zone "America/New_York" # => # # Time.find_zone "NOT-A-TIMEZONE" # => nil # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:93 def find_zone(time_zone); end # Returns a TimeZone instance matching the time zone provided. @@ -22171,7 +20211,7 @@ class Time # Time.find_zone! false # => false # Time.find_zone! "NOT-A-TIMEZONE" # => ArgumentError: Invalid Timezone: NOT-A-TIMEZONE # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:81 def find_zone!(time_zone); end # Creates a +Time+ instance from an RFC 3339 string. @@ -22182,9 +20222,7 @@ class Time # # Time.rfc3339('1999-12-31') # => ArgumentError: invalid date # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:69 def rfc3339(str); end # Allows override of Time.zone locally inside supplied block; @@ -22204,13 +20242,13 @@ class Time # attributes that have been read before the block will remain in # the application's default timezone. # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#61 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:61 def use_zone(time_zone); end # Returns the TimeZone for the current request, if this has been set (via Time.zone=). # If Time.zone has not been set for the current request, returns the TimeZone specified in config.time_zone. # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:14 def zone; end # Sets Time.zone to a TimeZone object for the current request/thread. @@ -22237,32 +20275,26 @@ class Time # end # end # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:41 def zone=(time_zone); end - # Returns the value of attribute zone_default. - # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:10 def zone_default; end - # Sets the attribute zone_default - # - # @param value the value to set the attribute zone_default to. - # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:10 def zone_default=(_arg0); end end end -# source://activesupport//lib/active_support/core_ext/time/calculations.rb#14 +# pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:14 Time::COMMON_YEAR_DAYS_IN_MONTH = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/time/conversions.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:8 Time::DATE_FORMATS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/object/to_query.rb#31 +# pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:31 class TrueClass - # source://activesupport//lib/active_support/core_ext/object/json.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:81 def as_json(options = T.unsafe(nil)); end # +true+ is not blank: @@ -22271,22 +20303,20 @@ class TrueClass # # @return [false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:86 def blank?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:90 def present?; end # Returns +self+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:33 def to_param; end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#230 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:230 class URI::Generic - # source://activesupport//lib/active_support/core_ext/object/json.rb#231 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:231 def as_json(options = T.unsafe(nil)); end end diff --git a/sorbet/rbi/gems/ast@2.4.3.rbi b/sorbet/rbi/gems/ast@2.4.3.rbi index c05e587..e946b00 100644 --- a/sorbet/rbi/gems/ast@2.4.3.rbi +++ b/sorbet/rbi/gems/ast@2.4.3.rbi @@ -17,7 +17,7 @@ # See also {AST::Node}, {AST::Processor::Mixin} and {AST::Sexp} for # additional recommendations and design patterns. # -# source://ast//lib/ast.rb#13 +# pkg:gem/ast#lib/ast.rb:13 module AST; end # Node is an immutable class, instances of which represent abstract @@ -56,7 +56,7 @@ module AST; end # temporary node type requires making globally visible changes to # the codebase. # -# source://ast//lib/ast/node.rb#40 +# pkg:gem/ast#lib/ast/node.rb:40 class AST::Node # Constructs a new instance of Node. # @@ -68,23 +68,13 @@ class AST::Node # # The `properties` hash is passed to {#assign_properties}. # - # @return [Node] a new instance of Node - # - # source://ast//lib/ast/node.rb#72 + # pkg:gem/ast#lib/ast/node.rb:72 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end - # Concatenates `array` with `children` and returns the resulting node. - # - # @return [AST::Node] - # - # source://ast//lib/ast/node.rb#172 + # pkg:gem/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#181 + # pkg:gem/ast#lib/ast/node.rb:181 def <<(element); end # Compares `self` to `other`, possibly converting with `to_ast`. Only @@ -92,14 +82,14 @@ class AST::Node # # @return [Boolean] # - # source://ast//lib/ast/node.rb#153 + # pkg:gem/ast#lib/ast/node.rb:153 def ==(other); end # Appends `element` to `children` and returns the resulting node. # # @return [AST::Node] # - # source://ast//lib/ast/node.rb#177 + # pkg:gem/ast#lib/ast/node.rb:177 def append(element); end # Returns the children of this node. @@ -114,23 +104,17 @@ class AST::Node # # @return [Array] # - # source://ast//lib/ast/node.rb#56 + # pkg:gem/ast#lib/ast/node.rb:56 def children; end - # Nodes are already frozen, so there is no harm in returning the - # current node as opposed to initializing from scratch and freezing - # another one. - # - # @return self - # - # source://ast//lib/ast/node.rb#118 + # pkg:gem/ast#lib/ast/node.rb:118 def clone; end # Concatenates `array` with `children` and returns the resulting node. # # @return [AST::Node] # - # source://ast//lib/ast/node.rb#168 + # pkg:gem/ast#lib/ast/node.rb:168 def concat(array); end # Enables matching for Node, where type is the first element @@ -138,7 +122,7 @@ class AST::Node # # @return [Array] # - # source://ast//lib/ast/node.rb#253 + # pkg:gem/ast#lib/ast/node.rb:253 def deconstruct; end # Nodes are already frozen, so there is no harm in returning the @@ -147,67 +131,48 @@ class AST::Node # # @return self # - # source://ast//lib/ast/node.rb#115 + # pkg:gem/ast#lib/ast/node.rb:115 def dup; end # Test if other object is equal to - # - # @param other [Object] + # @param [Object] other # @return [Boolean] # - # source://ast//lib/ast/node.rb#85 + # pkg:gem/ast#lib/ast/node.rb:85 def eql?(other); end # Returns the precomputed hash value for this node - # # @return [Integer] # - # source://ast//lib/ast/node.rb#61 + # pkg:gem/ast#lib/ast/node.rb:61 def hash; end # Converts `self` to a s-expression ruby string. # The code return will recreate the node, using the sexp module s() # - # @param indent [Integer] Base indentation level. + # @param [Integer] indent Base indentation level. # @return [String] # - # source://ast//lib/ast/node.rb#211 + # pkg:gem/ast#lib/ast/node.rb:211 def inspect(indent = T.unsafe(nil)); end - # Returns the children of this node. - # The returned value is frozen. - # The to_a alias is useful for decomposing nodes concisely. - # For example: - # - # node = s(:gasgn, :$foo, s(:integer, 1)) - # var_name, value = *node - # p var_name # => :$foo - # p value # => (integer 1) - # - # @return [Array] - # - # source://ast//lib/ast/node.rb#57 + # pkg:gem/ast#lib/ast/node.rb:57 def to_a; end # @return [AST::Node] self # - # source://ast//lib/ast/node.rb#229 + # pkg:gem/ast#lib/ast/node.rb:229 def to_ast; end - # Converts `self` to a pretty-printed s-expression. - # - # @param indent [Integer] Base indentation level. - # @return [String] - # - # source://ast//lib/ast/node.rb#204 + # pkg:gem/ast#lib/ast/node.rb:204 def to_s(indent = T.unsafe(nil)); end # Converts `self` to a pretty-printed s-expression. # - # @param indent [Integer] Base indentation level. + # @param [Integer] indent Base indentation level. # @return [String] # - # source://ast//lib/ast/node.rb#187 + # pkg:gem/ast#lib/ast/node.rb:187 def to_sexp(indent = T.unsafe(nil)); end # Converts `self` to an Array where the first element is the type as a Symbol, @@ -215,14 +180,13 @@ class AST::Node # # @return [Array] # - # source://ast//lib/ast/node.rb#237 + # pkg:gem/ast#lib/ast/node.rb:237 def to_sexp_array; end # Returns the type of this node. - # # @return [Symbol] # - # source://ast//lib/ast/node.rb#43 + # pkg:gem/ast#lib/ast/node.rb:43 def type; end # Returns a new instance of Node where non-nil arguments replace the @@ -234,12 +198,12 @@ class AST::Node # # If the resulting node would be identical to `self`, does nothing. # - # @param children [Array, nil] - # @param properties [Hash, nil] - # @param type [Symbol, nil] + # @param [Symbol, nil] type + # @param [Array, nil] children + # @param [Hash, nil] properties # @return [AST::Node] # - # source://ast//lib/ast/node.rb#133 + # pkg:gem/ast#lib/ast/node.rb:133 def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end protected @@ -252,7 +216,7 @@ class AST::Node # # @return [nil] # - # source://ast//lib/ast/node.rb#98 + # pkg:gem/ast#lib/ast/node.rb:98 def assign_properties(properties); end # Returns `@type` with all underscores replaced by dashes. This allows @@ -261,12 +225,12 @@ class AST::Node # # @return [String] # - # source://ast//lib/ast/node.rb#264 + # pkg:gem/ast#lib/ast/node.rb:264 def fancy_type; end private - # source://ast//lib/ast/node.rb#107 + # pkg:gem/ast#lib/ast/node.rb:107 def original_dup; end end @@ -277,7 +241,7 @@ end # # @deprecated Use {AST::Processor::Mixin} instead. # -# source://ast//lib/ast/processor.rb#8 +# pkg:gem/ast#lib/ast/processor.rb:8 class AST::Processor include ::AST::Processor::Mixin end @@ -520,14 +484,14 @@ end # use some partial evaluation before! The possibilites are # endless. Have fun. # -# source://ast//lib/ast/processor/mixin.rb#240 +# pkg:gem/ast#lib/ast/processor/mixin.rb:240 module AST::Processor::Mixin # Default handler. Does nothing. # - # @param node [AST::Node] + # @param [AST::Node] node # @return [AST::Node, nil] # - # source://ast//lib/ast/processor/mixin.rb#284 + # pkg:gem/ast#lib/ast/processor/mixin.rb:284 def handler_missing(node); end # Dispatches `node`. If a node has type `:foo`, then a handler @@ -538,19 +502,19 @@ module AST::Processor::Mixin # If the handler returns `nil`, `node` is returned; otherwise, # the return value of the handler is passed along. # - # @param node [AST::Node, nil] + # @param [AST::Node, nil] node # @return [AST::Node, nil] # - # source://ast//lib/ast/processor/mixin.rb#251 + # pkg:gem/ast#lib/ast/processor/mixin.rb:251 def process(node); end # {#process}es each node from `nodes` and returns an array of # results. # - # @param nodes [Array] + # @param [Array] nodes # @return [Array] # - # source://ast//lib/ast/processor/mixin.rb#274 + # pkg:gem/ast#lib/ast/processor/mixin.rb:274 def process_all(nodes); end end @@ -573,7 +537,7 @@ end # # This way the amount of boilerplate code is greatly reduced. # -# source://ast//lib/ast/sexp.rb#20 +# pkg:gem/ast#lib/ast/sexp.rb:20 module AST::Sexp # Creates a {Node} with type `type` and children `children`. # Note that the resulting node is of the type AST::Node and not a @@ -581,6 +545,6 @@ module AST::Sexp # This would not pose a problem with comparisons, as {Node#==} # ignores metadata. # - # source://ast//lib/ast/sexp.rb#26 + # pkg:gem/ast#lib/ast/sexp.rb:26 def s(type, *children); end end diff --git a/sorbet/rbi/gems/base64@0.3.0.rbi b/sorbet/rbi/gems/base64@0.3.0.rbi index e8543fc..9995f72 100644 --- a/sorbet/rbi/gems/base64@0.3.0.rbi +++ b/sorbet/rbi/gems/base64@0.3.0.rbi @@ -186,7 +186,7 @@ # s = "This is line 1\nThis is line 2\n" # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # -# source://base64//lib/base64.rb#184 +# pkg:gem/base64#lib/base64.rb:184 module Base64 private @@ -211,7 +211,7 @@ module Base64 # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" # - # source://base64//lib/base64.rb#247 + # pkg:gem/base64#lib/base64.rb:247 def decode64(str); end # :call-seq: @@ -246,7 +246,7 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # - # source://base64//lib/base64.rb#222 + # pkg:gem/base64#lib/base64.rb:222 def encode64(bin); end # :call-seq: @@ -272,7 +272,7 @@ module Base64 # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError # - # source://base64//lib/base64.rb#309 + # pkg:gem/base64#lib/base64.rb:309 def strict_decode64(str); end # :call-seq: @@ -306,7 +306,7 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" # - # source://base64//lib/base64.rb#282 + # pkg:gem/base64#lib/base64.rb:282 def strict_encode64(bin); end # :call-seq: @@ -328,7 +328,7 @@ module Base64 # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. # - # source://base64//lib/base64.rb#369 + # pkg:gem/base64#lib/base64.rb:369 def urlsafe_decode64(str); end # :call-seq: @@ -361,7 +361,7 @@ module Base64 # Base64.urlsafe_encode64('*' * 46) # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" # - # source://base64//lib/base64.rb#343 + # pkg:gem/base64#lib/base64.rb:343 def urlsafe_encode64(bin, padding: T.unsafe(nil)); end class << self @@ -386,7 +386,7 @@ module Base64 # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" # - # source://base64//lib/base64.rb#247 + # pkg:gem/base64#lib/base64.rb:247 def decode64(str); end # :call-seq: @@ -421,7 +421,7 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # - # source://base64//lib/base64.rb#222 + # pkg:gem/base64#lib/base64.rb:222 def encode64(bin); end # :call-seq: @@ -447,7 +447,7 @@ module Base64 # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError # - # source://base64//lib/base64.rb#309 + # pkg:gem/base64#lib/base64.rb:309 def strict_decode64(str); end # :call-seq: @@ -481,7 +481,7 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" # - # source://base64//lib/base64.rb#282 + # pkg:gem/base64#lib/base64.rb:282 def strict_encode64(bin); end # :call-seq: @@ -503,7 +503,7 @@ module Base64 # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. # - # source://base64//lib/base64.rb#369 + # pkg:gem/base64#lib/base64.rb:369 def urlsafe_decode64(str); end # :call-seq: @@ -536,10 +536,10 @@ module Base64 # Base64.urlsafe_encode64('*' * 46) # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" # - # source://base64//lib/base64.rb#343 + # pkg:gem/base64#lib/base64.rb:343 def urlsafe_encode64(bin, padding: T.unsafe(nil)); end end end -# source://base64//lib/base64.rb#186 +# pkg:gem/base64#lib/base64.rb:186 Base64::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/benchmark@0.5.0.rbi b/sorbet/rbi/gems/benchmark@0.5.0.rbi index 8531eef..1c75f8e 100644 --- a/sorbet/rbi/gems/benchmark@0.5.0.rbi +++ b/sorbet/rbi/gems/benchmark@0.5.0.rbi @@ -109,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#123 +# pkg:gem/benchmark#lib/benchmark.rb:123 module Benchmark private @@ -154,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#171 + # pkg:gem/benchmark#lib/benchmark.rb:171 def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end # A simple interface to the #benchmark method, #bm generates sequential @@ -177,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#216 + # pkg:gem/benchmark#lib/benchmark.rb:216 def bm(label_width = T.unsafe(nil), *labels, &blk); end # Sometimes benchmark results are skewed because code executed @@ -217,7 +217,7 @@ module Benchmark # #bmbm yields a Benchmark::Job object and returns an array of # Benchmark::Tms objects. # - # source://benchmark//lib/benchmark.rb#258 + # pkg:gem/benchmark#lib/benchmark.rb:258 def bmbm(width = T.unsafe(nil)); end # Returns the time used to execute the given block as a @@ -236,7 +236,7 @@ module Benchmark # # 0.220000 0.000000 0.220000 ( 0.227313) # - # source://benchmark//lib/benchmark.rb#303 + # pkg:gem/benchmark#lib/benchmark.rb:303 def measure(label = T.unsafe(nil)); end # Returns the elapsed real time used to execute the given block. @@ -245,7 +245,7 @@ module Benchmark # Benchmark.ms { "a" * 1_000_000_000 } # #=> 509.8029999935534 # - # source://benchmark//lib/benchmark.rb#335 + # pkg:gem/benchmark#lib/benchmark.rb:335 def ms; end # Returns the elapsed real time used to execute the given block. @@ -254,7 +254,7 @@ module Benchmark # Benchmark.realtime { "a" * 1_000_000_000 } # #=> 0.5098029999935534 # - # source://benchmark//lib/benchmark.rb#322 + # pkg:gem/benchmark#lib/benchmark.rb:322 def realtime; end class << self @@ -299,7 +299,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#341 + # pkg:gem/benchmark#lib/benchmark.rb:341 def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end # A simple interface to the #benchmark method, #bm generates sequential @@ -322,7 +322,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#341 + # pkg:gem/benchmark#lib/benchmark.rb:341 def bm(label_width = T.unsafe(nil), *labels, &blk); end # Sometimes benchmark results are skewed because code executed @@ -362,7 +362,7 @@ module Benchmark # #bmbm yields a Benchmark::Job object and returns an array of # Benchmark::Tms objects. # - # source://benchmark//lib/benchmark.rb#341 + # pkg:gem/benchmark#lib/benchmark.rb:341 def bmbm(width = T.unsafe(nil)); end # Returns the time used to execute the given block as a @@ -381,7 +381,7 @@ module Benchmark # # 0.220000 0.000000 0.220000 ( 0.227313) # - # source://benchmark//lib/benchmark.rb#341 + # pkg:gem/benchmark#lib/benchmark.rb:341 def measure(label = T.unsafe(nil)); end # Returns the elapsed real time used to execute the given block. @@ -390,7 +390,7 @@ module Benchmark # Benchmark.ms { "a" * 1_000_000_000 } # #=> 509.8029999935534 # - # source://benchmark//lib/benchmark.rb#341 + # pkg:gem/benchmark#lib/benchmark.rb:341 def ms; end # Returns the elapsed real time used to execute the given block. @@ -399,7 +399,7 @@ module Benchmark # Benchmark.realtime { "a" * 1_000_000_000 } # #=> 0.5098029999935534 # - # source://benchmark//lib/benchmark.rb#341 + # pkg:gem/benchmark#lib/benchmark.rb:341 def realtime; end end end @@ -407,7 +407,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#347 +# pkg:gem/benchmark#lib/benchmark.rb:347 class Benchmark::Job # Returns an initialized Job instance. # Usually, one doesn't call this method directly, as new @@ -415,40 +415,32 @@ class Benchmark::Job # +width+ is a initial value for the label offset used in formatting; # the #bmbm method passes its +width+ argument to this constructor. # - # @return [Job] a new instance of Job - # - # source://benchmark//lib/benchmark.rb#355 + # pkg:gem/benchmark#lib/benchmark.rb:355 def initialize(width); end # Registers the given label and block pair in the job list. # - # @raise [ArgumentError] - # - # source://benchmark//lib/benchmark.rb#363 + # pkg:gem/benchmark#lib/benchmark.rb:363 def item(label = T.unsafe(nil), &blk); end # An array of 2-element arrays, consisting of label and block pairs. # - # source://benchmark//lib/benchmark.rb#375 + # pkg:gem/benchmark#lib/benchmark.rb:375 def list; end - # Registers the given label and block pair in the job list. - # - # @raise [ArgumentError] - # - # source://benchmark//lib/benchmark.rb#372 + # pkg:gem/benchmark#lib/benchmark.rb:372 def report(label = T.unsafe(nil), &blk); end # Length of the widest label in the #list. # - # source://benchmark//lib/benchmark.rb#378 + # pkg:gem/benchmark#lib/benchmark.rb:378 def width; end end # This class is used by the Benchmark.benchmark and Benchmark.bm methods. # It is of little direct interest to the user. # -# source://benchmark//lib/benchmark.rb#385 +# pkg:gem/benchmark#lib/benchmark.rb:385 class Benchmark::Report # Returns an initialized Report instance. # Usually, one doesn't call this method directly, as new @@ -456,60 +448,52 @@ class Benchmark::Report # +width+ and +format+ are the label offset and # format string used by Tms#format. # - # @return [Report] a new instance of Report - # - # source://benchmark//lib/benchmark.rb#393 + # pkg:gem/benchmark#lib/benchmark.rb:393 def initialize(width = T.unsafe(nil), format = T.unsafe(nil)); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#412 + # pkg:gem/benchmark#lib/benchmark.rb:412 def format; end # Prints the +label+ and measured time for the block, # formatted by +format+. See Tms#format for the # formatting rules. # - # source://benchmark//lib/benchmark.rb#402 + # pkg:gem/benchmark#lib/benchmark.rb:402 def item(label = T.unsafe(nil), *format, &blk); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#412 + # pkg:gem/benchmark#lib/benchmark.rb:412 def list; end - # Prints the +label+ and measured time for the block, - # formatted by +format+. See Tms#format for the - # formatting rules. - # - # source://benchmark//lib/benchmark.rb#409 + # pkg:gem/benchmark#lib/benchmark.rb:409 def report(label = T.unsafe(nil), *format, &blk); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#412 + # pkg:gem/benchmark#lib/benchmark.rb:412 def width; end end # A data object, representing the times associated with a benchmark # measurement. # -# source://benchmark//lib/benchmark.rb#421 +# pkg:gem/benchmark#lib/benchmark.rb:421 class Benchmark::Tms # Returns an initialized Tms object which has # +utime+ as the user CPU time, +stime+ as the system CPU time, # +cutime+ as the children's user CPU time, +cstime+ as the children's # system CPU time, +real+ as the elapsed real time and +label+ as the label. # - # @return [Tms] a new instance of Tms - # - # source://benchmark//lib/benchmark.rb#456 + # pkg:gem/benchmark#lib/benchmark.rb:456 def initialize(utime = T.unsafe(nil), stime = T.unsafe(nil), cutime = T.unsafe(nil), cstime = T.unsafe(nil), real = T.unsafe(nil), label = T.unsafe(nil)); end # Returns a new Tms object obtained by memberwise multiplication # of the individual times for this Tms object by +x+. # - # source://benchmark//lib/benchmark.rb#504 + # pkg:gem/benchmark#lib/benchmark.rb:504 def *(x); end # Returns a new Tms object obtained by memberwise summation @@ -517,27 +501,27 @@ class Benchmark::Tms # Tms object. # This method and #/() are useful for taking statistics. # - # source://benchmark//lib/benchmark.rb#491 + # pkg:gem/benchmark#lib/benchmark.rb:491 def +(other); end # Returns a new Tms object obtained by memberwise subtraction # of the individual times for the +other+ Tms object from those of this # Tms object. # - # source://benchmark//lib/benchmark.rb#498 + # pkg:gem/benchmark#lib/benchmark.rb:498 def -(other); end # Returns a new Tms object obtained by memberwise division # of the individual times for this Tms object by +x+. # This method and #+() are useful for taking statistics. # - # source://benchmark//lib/benchmark.rb#511 + # pkg:gem/benchmark#lib/benchmark.rb:511 def /(x); end # Returns a new Tms object whose times are the sum of the times for this # Tms object, plus the time required to execute the code block (+blk+). # - # source://benchmark//lib/benchmark.rb#465 + # pkg:gem/benchmark#lib/benchmark.rb:465 def add(&blk); end # An in-place version of #add. @@ -545,17 +529,17 @@ class Benchmark::Tms # for this Tms object, plus the time required to execute # the code block (+blk+). # - # source://benchmark//lib/benchmark.rb#475 + # pkg:gem/benchmark#lib/benchmark.rb:475 def add!(&blk); end # System CPU time of children # - # source://benchmark//lib/benchmark.rb#439 + # pkg:gem/benchmark#lib/benchmark.rb:439 def cstime; end # User CPU time of children # - # source://benchmark//lib/benchmark.rb#436 + # pkg:gem/benchmark#lib/benchmark.rb:436 def cutime; end # Returns the contents of this Tms object as @@ -574,22 +558,22 @@ class Benchmark::Tms # If +format+ is not given, FORMAT is used as default value, detailing the # user, system, total and real elapsed time. # - # source://benchmark//lib/benchmark.rb#530 + # pkg:gem/benchmark#lib/benchmark.rb:530 def format(format = T.unsafe(nil), *args); end # Label # - # source://benchmark//lib/benchmark.rb#448 + # pkg:gem/benchmark#lib/benchmark.rb:448 def label; end # Elapsed real time # - # source://benchmark//lib/benchmark.rb#442 + # pkg:gem/benchmark#lib/benchmark.rb:442 def real; end # System CPU time # - # source://benchmark//lib/benchmark.rb#433 + # pkg:gem/benchmark#lib/benchmark.rb:433 def stime; end # Returns a new 6-element array, consisting of the @@ -597,27 +581,27 @@ class Benchmark::Tms # user CPU time, children's system CPU time and elapsed # real time. # - # source://benchmark//lib/benchmark.rb#555 + # pkg:gem/benchmark#lib/benchmark.rb:555 def to_a; end # Returns a hash containing the same data as `to_a`. # - # source://benchmark//lib/benchmark.rb#562 + # pkg:gem/benchmark#lib/benchmark.rb:562 def to_h; end # Same as #format. # - # source://benchmark//lib/benchmark.rb#545 + # pkg:gem/benchmark#lib/benchmark.rb:545 def to_s; end # Total time, that is +utime+ + +stime+ + +cutime+ + +cstime+ # - # source://benchmark//lib/benchmark.rb#445 + # pkg:gem/benchmark#lib/benchmark.rb:445 def total; end # User CPU time # - # source://benchmark//lib/benchmark.rb#430 + # pkg:gem/benchmark#lib/benchmark.rb:430 def utime; end protected @@ -629,9 +613,9 @@ class Benchmark::Tms # +op+ can be a mathematical operation such as +, -, # *, / # - # source://benchmark//lib/benchmark.rb#583 + # pkg:gem/benchmark#lib/benchmark.rb:583 def memberwise(op, x); end end -# source://benchmark//lib/benchmark.rb#125 +# pkg:gem/benchmark#lib/benchmark.rb:125 Benchmark::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/better_html@2.2.0.rbi b/sorbet/rbi/gems/better_html@2.2.0.rbi index 7638800..7b8976a 100644 --- a/sorbet/rbi/gems/better_html@2.2.0.rbi +++ b/sorbet/rbi/gems/better_html@2.2.0.rbi @@ -5,714 +5,623 @@ # Please instead update this file by running `bin/tapioca gem better_html`. -# source://better_html//lib/better_html.rb#8 +# pkg:gem/better_html#lib/better_html.rb:8 module BetterHtml class << self - # source://better_html//lib/better_html.rb#12 + # pkg:gem/better_html#lib/better_html.rb:12 def config; end - # Sets the attribute config - # - # @param value the value to set the attribute config to. - # - # source://better_html//lib/better_html.rb#10 + # pkg:gem/better_html#lib/better_html.rb:10 def config=(_arg0); end - # @yield [config] - # - # source://better_html//lib/better_html.rb#16 + # pkg:gem/better_html#lib/better_html.rb:16 def configure; end end end -# source://better_html//lib/better_html/ast/iterator.rb#7 +# pkg:gem/better_html#lib/better_html/ast/iterator.rb:7 module BetterHtml::AST; end -# source://better_html//lib/better_html/ast/iterator.rb#8 +# pkg:gem/better_html#lib/better_html/ast/iterator.rb:8 class BetterHtml::AST::Iterator - # @return [Iterator] a new instance of Iterator - # - # source://better_html//lib/better_html/ast/iterator.rb#18 + # pkg:gem/better_html#lib/better_html/ast/iterator.rb:18 def initialize(types, &block); end - # source://better_html//lib/better_html/ast/iterator.rb#23 + # pkg:gem/better_html#lib/better_html/ast/iterator.rb:23 def traverse(node); end - # source://better_html//lib/better_html/ast/iterator.rb#30 + # pkg:gem/better_html#lib/better_html/ast/iterator.rb:30 def traverse_all(nodes); end class << self - # source://better_html//lib/better_html/ast/iterator.rb#10 + # pkg:gem/better_html#lib/better_html/ast/iterator.rb:10 def descendants(root_node, type); end end end -# source://better_html//lib/better_html/ast/node.rb#8 +# pkg:gem/better_html#lib/better_html/ast/node.rb:8 class BetterHtml::AST::Node < ::AST::Node - # source://better_html//lib/better_html/ast/node.rb#11 + # pkg:gem/better_html#lib/better_html/ast/node.rb:11 def descendants(*types); end - # Returns the value of attribute loc. - # - # source://better_html//lib/better_html/ast/node.rb#9 + # pkg:gem/better_html#lib/better_html/ast/node.rb:9 def loc; end - # source://better_html//lib/better_html/ast/node.rb#15 + # pkg:gem/better_html#lib/better_html/ast/node.rb:15 def location; end end -# source://better_html//lib/better_html/better_erb/runtime_checks.rb#6 +# pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:6 class BetterHtml::BetterErb - # source://better_html//lib/better_html/better_erb.rb#11 + # pkg:gem/better_html#lib/better_html/better_erb.rb:11 def content_types; end - # source://better_html//lib/better_html/better_erb.rb#11 + # pkg:gem/better_html#lib/better_html/better_erb.rb:11 def content_types=(val); end class << self - # source://better_html//lib/better_html/better_erb.rb#11 + # pkg:gem/better_html#lib/better_html/better_erb.rb:11 def content_types; end - # source://better_html//lib/better_html/better_erb.rb#11 + # pkg:gem/better_html#lib/better_html/better_erb.rb:11 def content_types=(val); end - # source://better_html//lib/better_html/better_erb.rb#18 + # pkg:gem/better_html#lib/better_html/better_erb.rb:18 def prepend!; end end end -# source://better_html//lib/better_html/better_erb.rb#23 +# pkg:gem/better_html#lib/better_html/better_erb.rb:23 module BetterHtml::BetterErb::ConditionalImplementation - # source://better_html//lib/better_html/better_erb.rb#24 + # pkg:gem/better_html#lib/better_html/better_erb.rb:24 def call(template, source = T.unsafe(nil)); end private - # source://better_html//lib/better_html/better_erb.rb#30 + # pkg:gem/better_html#lib/better_html/better_erb.rb:30 def generate(template, source); end end -# source://better_html//lib/better_html/better_erb/erubi_implementation.rb#8 +# pkg:gem/better_html#lib/better_html/better_erb/erubi_implementation.rb:8 class BetterHtml::BetterErb::ErubiImplementation < ::ActionView::Template::Handlers::ERB::Erubi include ::BetterHtml::BetterErb::RuntimeChecks - # source://better_html//lib/better_html/better_erb/erubi_implementation.rb#39 + # pkg:gem/better_html#lib/better_html/better_erb/erubi_implementation.rb:39 def add_code(code); end - # source://better_html//lib/better_html/better_erb/erubi_implementation.rb#31 + # pkg:gem/better_html#lib/better_html/better_erb/erubi_implementation.rb:31 def add_expression(indicator, code); end - # source://better_html//lib/better_html/better_erb/erubi_implementation.rb#11 + # pkg:gem/better_html#lib/better_html/better_erb/erubi_implementation.rb:11 def add_text(text); end private - # source://better_html//lib/better_html/better_erb/erubi_implementation.rb#49 + # pkg:gem/better_html#lib/better_html/better_erb/erubi_implementation.rb:49 def escape_text(text); end end -# source://better_html//lib/better_html/better_erb/runtime_checks.rb#7 +# pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:7 module BetterHtml::BetterErb::RuntimeChecks - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#8 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:8 def initialize(erb, config: T.unsafe(nil), **options); end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#14 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:14 def validate!; end private - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#32 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:32 def add_expr_auto_escaped(src, code, auto_escape); end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#82 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:82 def block_check(src, code); end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#157 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:157 def build_location(line, column, length); end - # @raise [BetterHtml::HtmlError] - # - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#128 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:128 def check_attribute_name(type, start, stop, line, column); end - # @raise [BetterHtml::HtmlError] - # - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#94 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:94 def check_parser_errors; end - # @raise [BetterHtml::HtmlError] - # - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#138 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:138 def check_quoted_value(type, start, stop, line, column); end - # @raise [BetterHtml::HtmlError] - # - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#117 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:117 def check_tag_name(type, start, stop, line, column); end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#110 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:110 def check_token(type, *args); end - # @raise [BetterHtml::HtmlError] - # - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#149 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:149 def check_unquoted_value(type, start, stop, line, column); end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#24 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:24 def class_name; end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#164 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:164 def extract_line(line); end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#48 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:48 def parser_context; end - # source://better_html//lib/better_html/better_erb/runtime_checks.rb#28 + # pkg:gem/better_html#lib/better_html/better_erb/runtime_checks.rb:28 def wrap_method; end end -# source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#5 +# pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:5 class BetterHtml::BetterErb::ValidatedOutputBuffer - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#165 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:165 def html_safe; end - # @return [Boolean] - # - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#161 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:161 def html_safe?; end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#169 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:169 def to_s; end class << self - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#156 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:156 def wrap(output, context, code, auto_escape); end end end -# source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#6 +# pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:6 class BetterHtml::BetterErb::ValidatedOutputBuffer::Context - # @return [Context] a new instance of Context - # - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#7 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:7 def initialize(output, context, code, auto_escape); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#53 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:53 def safe_after_attribute_name_append=(value); end - # @raise [DontInterpolateHere] - # - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#65 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:65 def safe_after_equal_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#40 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:40 def safe_attribute_name_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#116 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:116 def safe_comment_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#130 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:130 def safe_none_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#14 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:14 def safe_quoted_value_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#95 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:95 def safe_rawtext_append=(value); end - # @raise [DontInterpolateHere] - # - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#34 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:34 def safe_space_after_attribute_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#70 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:70 def safe_tag_append=(value); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#82 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:82 def safe_tag_name_append=(value); end - # @raise [DontInterpolateHere] - # - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#27 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:27 def safe_unquoted_value_append=(value); end private - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#150 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:150 def auto_escape_html_safe_value(arg); end - # source://better_html//lib/better_html/better_erb/validated_output_buffer.rb#138 + # pkg:gem/better_html#lib/better_html/better_erb/validated_output_buffer.rb:138 def properly_escaped(value); end end -# source://better_html//lib/better_html/config.rb#6 +# pkg:gem/better_html#lib/better_html/config.rb:6 class BetterHtml::Config include ::SmartProperties extend ::SmartProperties::ClassMethods - # @return [Boolean] - # - # source://better_html//lib/better_html/config.rb#20 + # pkg:gem/better_html#lib/better_html/config.rb:20 def javascript_attribute_name?(name); end - # @return [Boolean] - # - # source://better_html//lib/better_html/config.rb#28 + # pkg:gem/better_html#lib/better_html/config.rb:28 def javascript_safe_method?(name); end - # @return [Boolean] - # - # source://better_html//lib/better_html/config.rb#24 + # pkg:gem/better_html#lib/better_html/config.rb:24 def lodash_safe_javascript_expression?(code); end end -# source://better_html//lib/better_html/errors.rb#8 +# pkg:gem/better_html#lib/better_html/errors.rb:8 class BetterHtml::DontInterpolateHere < ::BetterHtml::InterpolatorError; end -# source://better_html//lib/better_html/errors.rb#12 +# pkg:gem/better_html#lib/better_html/errors.rb:12 class BetterHtml::Errors < ::Array - # source://better_html//lib/better_html/errors.rb#13 + # pkg:gem/better_html#lib/better_html/errors.rb:13 def add(_arg0); end end -# source://better_html//lib/better_html/helpers.rb#4 +# pkg:gem/better_html#lib/better_html/helpers.rb:4 module BetterHtml::Helpers - # source://better_html//lib/better_html/helpers.rb#5 + # pkg:gem/better_html#lib/better_html/helpers.rb:5 def html_attributes(args); end end -# source://better_html//lib/better_html/html_attributes.rb#4 +# pkg:gem/better_html#lib/better_html/html_attributes.rb:4 class BetterHtml::HtmlAttributes - # @return [HtmlAttributes] a new instance of HtmlAttributes - # - # source://better_html//lib/better_html/html_attributes.rb#5 + # pkg:gem/better_html#lib/better_html/html_attributes.rb:5 def initialize(data); end - # source://better_html//lib/better_html/html_attributes.rb#9 + # pkg:gem/better_html#lib/better_html/html_attributes.rb:9 def to_s; end end -# source://better_html//lib/better_html/errors.rb#10 +# pkg:gem/better_html#lib/better_html/errors.rb:10 class BetterHtml::HtmlError < ::RuntimeError; end -# source://better_html//lib/better_html/errors.rb#7 +# pkg:gem/better_html#lib/better_html/errors.rb:7 class BetterHtml::InterpolatorError < ::RuntimeError; end -# source://better_html//lib/better_html/parser.rb#13 +# pkg:gem/better_html#lib/better_html/parser.rb:13 class BetterHtml::Parser - # @raise [ArgumentError] - # @return [Parser] a new instance of Parser - # - # source://better_html//lib/better_html/parser.rb#26 + # pkg:gem/better_html#lib/better_html/parser.rb:26 def initialize(buffer, template_language: T.unsafe(nil)); end - # source://better_html//lib/better_html/parser.rb#48 + # pkg:gem/better_html#lib/better_html/parser.rb:48 def ast; end - # source://better_html//lib/better_html/parser.rb#61 + # pkg:gem/better_html#lib/better_html/parser.rb:61 def inspect; end - # source://better_html//lib/better_html/parser.rb#43 + # pkg:gem/better_html#lib/better_html/parser.rb:43 def nodes_with_type(*type); end - # source://better_html//lib/better_html/parser.rb#52 + # pkg:gem/better_html#lib/better_html/parser.rb:52 def parser_errors; end - # Returns the value of attribute template_language. - # - # source://better_html//lib/better_html/parser.rb#14 + # pkg:gem/better_html#lib/better_html/parser.rb:14 def template_language; end private - # source://better_html//lib/better_html/parser.rb#180 + # pkg:gem/better_html#lib/better_html/parser.rb:180 def build_attribute_name_node(tokens); end - # source://better_html//lib/better_html/parser.rb#170 + # pkg:gem/better_html#lib/better_html/parser.rb:170 def build_attribute_node(tokens); end - # source://better_html//lib/better_html/parser.rb#185 + # pkg:gem/better_html#lib/better_html/parser.rb:185 def build_attribute_value_node(tokens); end - # source://better_html//lib/better_html/parser.rb#115 + # pkg:gem/better_html#lib/better_html/parser.rb:115 def build_cdata_node(tokens); end - # source://better_html//lib/better_html/parser.rb#120 + # pkg:gem/better_html#lib/better_html/parser.rb:120 def build_comment_node(tokens); end - # source://better_html//lib/better_html/parser.rb#69 + # pkg:gem/better_html#lib/better_html/parser.rb:69 def build_document_node; end - # source://better_html//lib/better_html/parser.rb#91 + # pkg:gem/better_html#lib/better_html/parser.rb:91 def build_erb_node(tokens); end - # source://better_html//lib/better_html/parser.rb#249 + # pkg:gem/better_html#lib/better_html/parser.rb:249 def build_interpolation_node(tokens); end - # @raise [ArgumentError] - # - # source://better_html//lib/better_html/parser.rb#210 + # pkg:gem/better_html#lib/better_html/parser.rb:210 def build_location(enumerable); end - # source://better_html//lib/better_html/parser.rb#104 + # pkg:gem/better_html#lib/better_html/parser.rb:104 def build_lodash_node(tokens); end - # source://better_html//lib/better_html/parser.rb#165 + # pkg:gem/better_html#lib/better_html/parser.rb:165 def build_nameless_attribute_node(tokens); end - # source://better_html//lib/better_html/parser.rb#202 + # pkg:gem/better_html#lib/better_html/parser.rb:202 def build_node(type, tokens, pre: T.unsafe(nil), post: T.unsafe(nil)); end - # source://better_html//lib/better_html/parser.rb#145 + # pkg:gem/better_html#lib/better_html/parser.rb:145 def build_tag_attributes_node(tokens); end - # source://better_html//lib/better_html/parser.rb#140 + # pkg:gem/better_html#lib/better_html/parser.rb:140 def build_tag_name_node(tokens); end - # source://better_html//lib/better_html/parser.rb#125 + # pkg:gem/better_html#lib/better_html/parser.rb:125 def build_tag_node(tokens); end - # source://better_html//lib/better_html/parser.rb#197 + # pkg:gem/better_html#lib/better_html/parser.rb:197 def build_text_node(tokens); end - # source://better_html//lib/better_html/parser.rb#217 + # pkg:gem/better_html#lib/better_html/parser.rb:217 def empty_location; end - # source://better_html//lib/better_html/parser.rb#221 + # pkg:gem/better_html#lib/better_html/parser.rb:221 def shift_all(tokens, *types); end - # source://better_html//lib/better_html/parser.rb#259 + # pkg:gem/better_html#lib/better_html/parser.rb:259 def shift_all_with_interpolation(tokens, *types); end - # source://better_html//lib/better_html/parser.rb#284 + # pkg:gem/better_html#lib/better_html/parser.rb:284 def shift_between(tokens, start_type, end_type); end - # source://better_html//lib/better_html/parser.rb#292 + # pkg:gem/better_html#lib/better_html/parser.rb:292 def shift_between_with_interpolation(tokens, start_type, end_type); end - # source://better_html//lib/better_html/parser.rb#233 + # pkg:gem/better_html#lib/better_html/parser.rb:233 def shift_single(tokens, *types); end - # source://better_html//lib/better_html/parser.rb#237 + # pkg:gem/better_html#lib/better_html/parser.rb:237 def shift_until(tokens, *types); end - # source://better_html//lib/better_html/parser.rb#272 + # pkg:gem/better_html#lib/better_html/parser.rb:272 def shift_until_with_interpolation(tokens, *types); end - # source://better_html//lib/better_html/parser.rb#300 + # pkg:gem/better_html#lib/better_html/parser.rb:300 def wrap_token(object); end - # source://better_html//lib/better_html/parser.rb#322 + # pkg:gem/better_html#lib/better_html/parser.rb:322 def wrap_tokens(enumerable); end end -# source://better_html//lib/better_html/parser.rb#16 +# pkg:gem/better_html#lib/better_html/parser.rb:16 class BetterHtml::Parser::Error < ::BetterHtml::HtmlError - # @return [Error] a new instance of Error - # - # source://better_html//lib/better_html/parser.rb#20 + # pkg:gem/better_html#lib/better_html/parser.rb:20 def initialize(message, location:); end - # Returns the value of attribute location. - # - # source://better_html//lib/better_html/parser.rb#18 + # pkg:gem/better_html#lib/better_html/parser.rb:18 def loc; end - # Returns the value of attribute location. - # - # source://better_html//lib/better_html/parser.rb#17 + # pkg:gem/better_html#lib/better_html/parser.rb:17 def location; end end -# source://better_html//lib/better_html/parser.rb#67 +# pkg:gem/better_html#lib/better_html/parser.rb:67 BetterHtml::Parser::INTERPOLATION_TYPES = T.let(T.unsafe(nil), Array) -# source://better_html//lib/better_html/errors.rb#16 +# pkg:gem/better_html#lib/better_html/errors.rb:16 class BetterHtml::ParserError < ::RuntimeError - # @return [ParserError] a new instance of ParserError - # - # source://better_html//lib/better_html/errors.rb#19 + # pkg:gem/better_html#lib/better_html/errors.rb:19 def initialize(message, position, line, column); end - # Returns the value of attribute column. - # - # source://better_html//lib/better_html/errors.rb#17 + # pkg:gem/better_html#lib/better_html/errors.rb:17 def column; end - # Returns the value of attribute line. - # - # source://better_html//lib/better_html/errors.rb#17 + # pkg:gem/better_html#lib/better_html/errors.rb:17 def line; end - # Returns the value of attribute position. - # - # source://better_html//lib/better_html/errors.rb#17 + # pkg:gem/better_html#lib/better_html/errors.rb:17 def position; end end -# source://better_html//lib/better_html/railtie.rb#6 +# pkg:gem/better_html#lib/better_html/railtie.rb:6 class BetterHtml::Railtie < ::Rails::Railtie; end -# source://better_html//lib/better_html/tokenizer/token.rb#4 +# pkg:gem/better_html#lib/better_html/tokenizer/token.rb:4 module BetterHtml::Tokenizer; end -# source://better_html//lib/better_html/tokenizer/base_erb.rb#10 +# pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:10 class BetterHtml::Tokenizer::BaseErb < ::Erubi::Engine - # @raise [ArgumentError] - # @return [BaseErb] a new instance of BaseErb - # - # source://better_html//lib/better_html/tokenizer/base_erb.rb#18 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:18 def initialize(buffer); end - # Returns the value of attribute current_position. - # - # source://better_html//lib/better_html/tokenizer/base_erb.rb#16 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:16 def current_position; end - # Returns the value of attribute tokens. - # - # source://better_html//lib/better_html/tokenizer/base_erb.rb#15 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:15 def tokens; end private - # source://better_html//lib/better_html/tokenizer/base_erb.rb#34 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:34 def add_code(code); end - # source://better_html//lib/better_html/tokenizer/base_erb.rb#53 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:53 def add_erb_tokens(ltrim, indicator, code, rtrim); end - # source://better_html//lib/better_html/tokenizer/base_erb.rb#47 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:47 def add_expression(indicator, code); end - # source://better_html//lib/better_html/tokenizer/base_erb.rb#80 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:80 def add_token(type, begin_pos, end_pos); end - # source://better_html//lib/better_html/tokenizer/base_erb.rb#30 + # pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:30 def append(text); end end -# source://better_html//lib/better_html/tokenizer/base_erb.rb#13 +# pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:13 BetterHtml::Tokenizer::BaseErb::EXPR_TRIM_MATCHER = T.let(T.unsafe(nil), Regexp) -# source://better_html//lib/better_html/tokenizer/base_erb.rb#11 +# pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:11 BetterHtml::Tokenizer::BaseErb::REGEXP_WITHOUT_TRIM = T.let(T.unsafe(nil), Regexp) -# source://better_html//lib/better_html/tokenizer/base_erb.rb#12 +# pkg:gem/better_html#lib/better_html/tokenizer/base_erb.rb:12 BetterHtml::Tokenizer::BaseErb::STMT_TRIM_MATCHER = T.let(T.unsafe(nil), Regexp) -# source://better_html//lib/better_html/tokenizer/html_erb.rb#7 +# pkg:gem/better_html#lib/better_html/tokenizer/html_erb.rb:7 class BetterHtml::Tokenizer::HtmlErb < ::BetterHtml::Tokenizer::BaseErb - # @return [HtmlErb] a new instance of HtmlErb - # - # source://better_html//lib/better_html/tokenizer/html_erb.rb#10 + # pkg:gem/better_html#lib/better_html/tokenizer/html_erb.rb:10 def initialize(buffer); end - # source://better_html//lib/better_html/tokenizer/html_erb.rb#15 + # pkg:gem/better_html#lib/better_html/tokenizer/html_erb.rb:15 def current_position; end - # Returns the value of attribute parser. - # - # source://better_html//lib/better_html/tokenizer/html_erb.rb#8 + # pkg:gem/better_html#lib/better_html/tokenizer/html_erb.rb:8 def parser; end private - # source://better_html//lib/better_html/tokenizer/html_erb.rb#25 + # pkg:gem/better_html#lib/better_html/tokenizer/html_erb.rb:25 def add_text(text); end - # source://better_html//lib/better_html/tokenizer/html_erb.rb#21 + # pkg:gem/better_html#lib/better_html/tokenizer/html_erb.rb:21 def append(text); end end -# source://better_html//lib/better_html/tokenizer/html_lodash.rb#9 +# pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:9 class BetterHtml::Tokenizer::HtmlLodash - # @return [HtmlLodash] a new instance of HtmlLodash - # - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#18 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:18 def initialize(buffer); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_escape; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_escape=(val); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_evaluate; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_evaluate=(val); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_interpolate; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_interpolate=(val); end - # Returns the value of attribute parser. - # - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#11 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:11 def parser; end - # Returns the value of attribute tokens. - # - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#10 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:10 def tokens; end private - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#79 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:79 def add_lodash_tokens(indicator, code); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#73 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:73 def add_text(text); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#96 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:96 def add_token(type, begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#28 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:28 def scan!; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#62 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:62 def scan_pattern; end class << self - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_escape; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_escape=(val); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_evaluate; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_evaluate=(val); end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_interpolate; end - # source://better_html//lib/better_html/tokenizer/html_lodash.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/html_lodash.rb:13 def lodash_interpolate=(val); end end end -# source://better_html//lib/better_html/tokenizer/javascript_erb.rb#7 +# pkg:gem/better_html#lib/better_html/tokenizer/javascript_erb.rb:7 class BetterHtml::Tokenizer::JavascriptErb < ::BetterHtml::Tokenizer::BaseErb private - # source://better_html//lib/better_html/tokenizer/javascript_erb.rb#10 + # pkg:gem/better_html#lib/better_html/tokenizer/javascript_erb.rb:10 def add_text(text); end end -# source://better_html//lib/better_html/tokenizer/location.rb#8 +# pkg:gem/better_html#lib/better_html/tokenizer/location.rb:8 class BetterHtml::Tokenizer::Location < ::Parser::Source::Range - # @raise [ArgumentError] - # @return [Location] a new instance of Location - # - # source://better_html//lib/better_html/tokenizer/location.rb#9 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:9 def initialize(buffer, begin_pos, end_pos); end - # source://better_html//lib/better_html/tokenizer/location.rb#50 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:50 def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end - # source://better_html//lib/better_html/tokenizer/location.rb#62 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:62 def begin; end - # source://better_html//lib/better_html/tokenizer/location.rb#66 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:66 def end; end - # source://better_html//lib/better_html/tokenizer/location.rb#30 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:30 def line_range; end - # source://better_html//lib/better_html/tokenizer/location.rb#39 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:39 def line_source_with_underline; end - # source://better_html//lib/better_html/tokenizer/location.rb#58 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:58 def offset(offset); end - # source://better_html//lib/better_html/tokenizer/location.rb#26 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:26 def range; end - # source://better_html//lib/better_html/tokenizer/location.rb#54 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:54 def resize(new_size); end - # source://better_html//lib/better_html/tokenizer/location.rb#36 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:36 def start_column; end - # source://better_html//lib/better_html/tokenizer/location.rb#34 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:34 def start_line; end - # source://better_html//lib/better_html/tokenizer/location.rb#37 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:37 def stop_column; end - # source://better_html//lib/better_html/tokenizer/location.rb#35 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:35 def stop_line; end - # source://better_html//lib/better_html/tokenizer/location.rb#46 + # pkg:gem/better_html#lib/better_html/tokenizer/location.rb:46 def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end end -# source://better_html//lib/better_html/tokenizer/token.rb#5 +# pkg:gem/better_html#lib/better_html/tokenizer/token.rb:5 class BetterHtml::Tokenizer::Token - # @return [Token] a new instance of Token - # - # source://better_html//lib/better_html/tokenizer/token.rb#8 + # pkg:gem/better_html#lib/better_html/tokenizer/token.rb:8 def initialize(type:, loc:); end - # source://better_html//lib/better_html/tokenizer/token.rb#13 + # pkg:gem/better_html#lib/better_html/tokenizer/token.rb:13 def inspect; end - # Returns the value of attribute loc. - # - # source://better_html//lib/better_html/tokenizer/token.rb#6 + # pkg:gem/better_html#lib/better_html/tokenizer/token.rb:6 def loc; end - # Returns the value of attribute type. - # - # source://better_html//lib/better_html/tokenizer/token.rb#6 + # pkg:gem/better_html#lib/better_html/tokenizer/token.rb:6 def type; end end -# source://better_html//lib/better_html/tokenizer/token_array.rb#5 +# pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:5 class BetterHtml::Tokenizer::TokenArray - # @return [TokenArray] a new instance of TokenArray - # - # source://better_html//lib/better_html/tokenizer/token_array.rb#6 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:6 def initialize(list); end - # @return [Boolean] - # - # source://better_html//lib/better_html/tokenizer/token_array.rb#37 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:37 def any?; end - # source://better_html//lib/better_html/tokenizer/token_array.rb#41 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:41 def current; end - # @return [Boolean] - # - # source://better_html//lib/better_html/tokenizer/token_array.rb#33 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:33 def empty?; end - # source://better_html//lib/better_html/tokenizer/token_array.rb#45 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:45 def last; end - # source://better_html//lib/better_html/tokenizer/token_array.rb#20 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:20 def pop; end - # source://better_html//lib/better_html/tokenizer/token_array.rb#12 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:12 def shift; end - # source://better_html//lib/better_html/tokenizer/token_array.rb#49 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:49 def size; end - # source://better_html//lib/better_html/tokenizer/token_array.rb#28 + # pkg:gem/better_html#lib/better_html/tokenizer/token_array.rb:28 def trim(type); end end -# source://better_html//lib/better_html/errors.rb#9 +# pkg:gem/better_html#lib/better_html/errors.rb:9 class BetterHtml::UnsafeHtmlError < ::BetterHtml::InterpolatorError; end -# source://better_html//lib/better_html/version.rb#4 +# pkg:gem/better_html#lib/better_html/version.rb:4 BetterHtml::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/bigdecimal@4.0.1.rbi b/sorbet/rbi/gems/bigdecimal@4.0.1.rbi index 4486974..29f24d6 100644 --- a/sorbet/rbi/gems/bigdecimal@4.0.1.rbi +++ b/sorbet/rbi/gems/bigdecimal@4.0.1.rbi @@ -5,15 +5,15 @@ # Please instead update this file by running `bin/tapioca gem bigdecimal`. -# source://bigdecimal//lib/bigdecimal.rb#13 +# pkg:gem/bigdecimal#lib/bigdecimal.rb:10 class BigDecimal < ::Numeric - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def %(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def *(_arg0); end - # call-seq: + # call-seq: # self ** other -> bigdecimal # # Returns the \BigDecimal value of +self+ raised to power +other+: @@ -25,115 +25,115 @@ class BigDecimal < ::Numeric # # Related: BigDecimal#power. # - # source://bigdecimal//lib/bigdecimal.rb#77 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:77 def **(y); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def +(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def +@; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def -(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def -@; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def /(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def <(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def <=(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def <=>(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def ==(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def ===(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def >(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def >=(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def _decimal_shift(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def _dump(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def abs; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def add(_arg0, _arg1); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def ceil(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def clone; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def coerce(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def div(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def divmod(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def dup; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def eql?(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def exponent; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def finite?; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def fix; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def floor(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def frac; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def hash; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def infinite?; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def inspect; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def modulo(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def mult(_arg0, _arg1); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def n_significant_digits; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def nan?; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def nonzero?; end # call-seq: @@ -144,43 +144,41 @@ class BigDecimal < ::Numeric # # Also available as the operator **. # - # source://bigdecimal//lib/bigdecimal.rb#97 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:97 def power(y, prec = T.unsafe(nil)); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def precision; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def precision_scale; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def quo(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def remainder(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def round(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def scale; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def sign; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def split; end # Returns the square root of the value. # # Result has at least prec significant digits. # - # @raise [FloatDomainError] - # - # source://bigdecimal//lib/bigdecimal.rb#212 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:212 def sqrt(prec); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def sub(_arg0, _arg1); end # call-seq: @@ -193,7 +191,7 @@ class BigDecimal < ::Numeric # d = BigDecimal("3.14") # d.to_d # => 0.314e1 # - # source://bigdecimal//lib/bigdecimal/util.rb#110 + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:110 def to_d; end # call-seq: @@ -207,89 +205,132 @@ class BigDecimal < ::Numeric # d = BigDecimal("3.14") # d.to_digits # => "3.14" # - # source://bigdecimal//lib/bigdecimal/util.rb#90 + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:90 def to_digits; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def to_f; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def to_i; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def to_int; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def to_r; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def to_s(format = T.unsafe(nil)); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def truncate(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def zero?; end class << self - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def _load(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def double_fig; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def interpret_loosely(_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def limit(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def mode(*_arg0); end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def save_exception_mode; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def save_limit; end - # source://bigdecimal//lib/bigdecimal.rb#10 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 def save_rounding_mode; end end end -# source://bigdecimal//lib/bigdecimal.rb#14 +# pkg:gem/bigdecimal#lib/bigdecimal.rb:14 module BigDecimal::Internal class << self # Coerce x to BigDecimal with the specified precision. # TODO: some methods (example: BigMath.exp) require more precision than specified to coerce. # - # @raise [ArgumentError] - # - # source://bigdecimal//lib/bigdecimal.rb#18 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:18 def coerce_to_bigdecimal(x, prec, method_name); end - # source://bigdecimal//lib/bigdecimal.rb#30 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:30 def coerce_validate_prec(prec, method_name, accept_zero: T.unsafe(nil)); end - # source://bigdecimal//lib/bigdecimal.rb#50 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:50 def infinity_computation_result; end - # source://bigdecimal//lib/bigdecimal.rb#57 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:57 def nan_computation_result; end end end -BigDecimal::VERSION = T.let(T.unsafe(nil), String) - # Core BigMath methods for BigDecimal (log, exp) are defined here. # Other methods (sin, cos, atan) are defined in 'bigdecimal/math.rb'. # -# source://bigdecimal//lib/bigdecimal.rb#240 +# -- +# Contents: +# sqrt(x, prec) +# cbrt(x, prec) +# hypot(x, y, prec) +# sin (x, prec) +# cos (x, prec) +# tan (x, prec) +# asin(x, prec) +# acos(x, prec) +# atan(x, prec) +# atan2(y, x, prec) +# sinh (x, prec) +# cosh (x, prec) +# tanh (x, prec) +# asinh(x, prec) +# acosh(x, prec) +# atanh(x, prec) +# log2 (x, prec) +# log10(x, prec) +# log1p(x, prec) +# expm1(x, prec) +# erf (x, prec) +# erfc(x, prec) +# gamma(x, prec) +# lgamma(x, prec) +# frexp(x) +# ldexp(x, exponent) +# PI (prec) +# E (prec) == exp(1.0,prec) +# +# where: +# x, y ... BigDecimal number to be computed. +# prec ... Number of digits to be obtained. +# ++ +# +# Provides mathematical functions. +# +# Example: +# +# require "bigdecimal/math" +# +# include BigMath +# +# a = BigDecimal((PI(49)/2).to_s) +# puts sin(a,100) # => 0.9999999999...9999999986e0 +# +# pkg:gem/bigdecimal#lib/bigdecimal.rb:240 module BigMath private - # source://bigdecimal//lib/bigdecimal.rb#310 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:310 def _exp_taylor(x, prec); end # call-seq: @@ -302,7 +343,7 @@ module BigMath # # If +decimal+ is NaN, returns NaN. # - # source://bigdecimal//lib/bigdecimal.rb#332 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:332 def exp(x, prec); end # call-seq: @@ -317,7 +358,7 @@ module BigMath # # If +decimal+ is NaN, returns NaN. # - # source://bigdecimal//lib/bigdecimal.rb#255 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:255 def log(x, prec); end class << self @@ -331,7 +372,7 @@ module BigMath # # If +decimal+ is NaN, returns NaN. # - # source://bigdecimal//lib/bigdecimal.rb#332 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:332 def exp(x, prec); end # call-seq: @@ -346,19 +387,17 @@ module BigMath # # If +decimal+ is NaN, returns NaN. # - # @raise [Math::DomainError] - # - # source://bigdecimal//lib/bigdecimal.rb#255 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:255 def log(x, prec); end private - # source://bigdecimal//lib/bigdecimal.rb#310 + # pkg:gem/bigdecimal#lib/bigdecimal.rb:310 def _exp_taylor(x, prec); end end end -# source://bigdecimal//lib/bigdecimal/util.rb#141 +# pkg:gem/bigdecimal#lib/bigdecimal/util.rb:141 class Complex < ::Numeric # call-seq: # cmp.to_d -> bigdecimal @@ -382,11 +421,11 @@ class Complex < ::Numeric # # See also Kernel.BigDecimal. # - # source://bigdecimal//lib/bigdecimal/util.rb#164 + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:164 def to_d(precision = T.unsafe(nil)); end end -# source://bigdecimal//lib/bigdecimal/util.rb#116 +# pkg:gem/bigdecimal#lib/bigdecimal/util.rb:116 class Rational < ::Numeric # call-seq: # rat.to_d(precision) -> bigdecimal @@ -406,6 +445,6 @@ class Rational < ::Numeric # # See also Kernel.BigDecimal. # - # source://bigdecimal//lib/bigdecimal/util.rb#135 + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:135 def to_d(precision = T.unsafe(nil)); end end diff --git a/sorbet/rbi/gems/coderay@1.1.3.rbi b/sorbet/rbi/gems/coderay@1.1.3.rbi index 12c7652..13a80f5 100644 --- a/sorbet/rbi/gems/coderay@1.1.3.rbi +++ b/sorbet/rbi/gems/coderay@1.1.3.rbi @@ -128,12 +128,12 @@ # If you want to re-use scanners and encoders (because that is faster), see # CodeRay::Duo for the most convenient (and recommended) interface. # -# source://coderay//lib/coderay.rb#126 +# pkg:gem/coderay#lib/coderay.rb:126 module CodeRay class << self # Assuming the path is a subpath of lib/coderay/ # - # source://coderay//lib/coderay.rb#133 + # pkg:gem/coderay#lib/coderay.rb:133 def coderay_path(*path); end # Encode a string. @@ -144,7 +144,7 @@ module CodeRay # # See CodeRay::Encoder.encode. # - # source://coderay//lib/coderay.rb#196 + # pkg:gem/coderay#lib/coderay.rb:196 def encode(code, lang, format, options = T.unsafe(nil)); end # Encodes +filename+ (a path to a code file) with the Scanner for +lang+. @@ -156,7 +156,7 @@ module CodeRay # require 'coderay' # page = CodeRay.encode_file 'some_c_code.c', :html # - # source://coderay//lib/coderay.rb#221 + # pkg:gem/coderay#lib/coderay.rb:221 def encode_file(filename, format, options = T.unsafe(nil)); end # Encode pre-scanned Tokens. @@ -168,7 +168,7 @@ module CodeRay # tokens = CodeRay.scan '1 + 2', :ruby # puts CodeRay.encode_tokens(tokens, :span) # - # source://coderay//lib/coderay.rb#209 + # pkg:gem/coderay#lib/coderay.rb:209 def encode_tokens(tokens, format, options = T.unsafe(nil)); end # Finds the Encoder class for +format+ and creates an instance, passing @@ -186,7 +186,7 @@ module CodeRay # ] # #-> 2 out of 4 tokens have the kind :integer. # - # source://coderay//lib/coderay.rb#260 + # pkg:gem/coderay#lib/coderay.rb:260 def encoder(format, options = T.unsafe(nil)); end # Extract the options for the scanner from the +options+ hash. @@ -196,7 +196,7 @@ module CodeRay # This is used if a method like CodeRay.encode has to provide options # for Encoder _and_ scanner. # - # source://coderay//lib/coderay.rb#278 + # pkg:gem/coderay#lib/coderay.rb:278 def get_scanner_options(options); end # Highlight a string into a HTML
. @@ -206,7 +206,7 @@ module CodeRay # # See encode. # - # source://coderay//lib/coderay.rb#232 + # pkg:gem/coderay#lib/coderay.rb:232 def highlight(code, lang, options = T.unsafe(nil), format = T.unsafe(nil)); end # Highlight a file into a HTML
. @@ -216,7 +216,7 @@ module CodeRay # # See encode. # - # source://coderay//lib/coderay.rb#242 + # pkg:gem/coderay#lib/coderay.rb:242 def highlight_file(filename, options = T.unsafe(nil), format = T.unsafe(nil)); end # Scans the given +code+ (a String) with the Scanner for +lang+. @@ -227,7 +227,7 @@ module CodeRay # # See also demo/demo_simple. # - # source://coderay//lib/coderay.rb#168 + # pkg:gem/coderay#lib/coderay.rb:168 def scan(code, lang, options = T.unsafe(nil), &block); end # Scans +filename+ (a path to a code file) with the Scanner for +lang+. @@ -242,7 +242,7 @@ module CodeRay # require 'coderay' # page = CodeRay.scan_file('some_c_code.c').html # - # source://coderay//lib/coderay.rb#183 + # pkg:gem/coderay#lib/coderay.rb:183 def scan_file(filename, lang = T.unsafe(nil), options = T.unsafe(nil), &block); end # Finds the Scanner class for +lang+ and creates an instance, passing @@ -250,12 +250,12 @@ module CodeRay # # See Scanner.new. # - # source://coderay//lib/coderay.rb#268 + # pkg:gem/coderay#lib/coderay.rb:268 def scanner(lang, options = T.unsafe(nil), &block); end end end -# source://coderay//lib/coderay.rb#130 +# pkg:gem/coderay#lib/coderay.rb:130 CodeRay::CODERAY_PATH = T.let(T.unsafe(nil), String) # = Duo @@ -273,7 +273,7 @@ CodeRay::CODERAY_PATH = T.let(T.unsafe(nil), String) # Until you want to do uncommon things with CodeRay, I recommend to use # this method, since it takes care of everything. # -# source://coderay//lib/coderay/duo.rb#17 +# pkg:gem/coderay#lib/coderay/duo.rb:17 class CodeRay::Duo # Create a new Duo, holding a lang and a format to highlight code. # @@ -292,12 +292,9 @@ class CodeRay::Duo # The options are forwarded to scanner and encoder # (see CodeRay.get_scanner_options). # - # @return [Duo] a new instance of Duo - # - # source://coderay//lib/coderay/duo.rb#37 + # pkg:gem/coderay#lib/coderay/duo.rb:37 def initialize(lang = T.unsafe(nil), format = T.unsafe(nil), options = T.unsafe(nil)); end - # Tokenize and highlight the code using +scanner+ and +encoder+. # Allows to use Duo like a proc object: # # CodeRay::Duo[:python => :yaml].call(code) @@ -306,69 +303,49 @@ class CodeRay::Duo # # CodeRay::Duo[:python => :yaml].(code) # - # source://coderay//lib/coderay/duo.rb#77 + # pkg:gem/coderay#lib/coderay/duo.rb:77 def call(code, options = T.unsafe(nil)); end # Tokenize and highlight the code using +scanner+ and +encoder+. # - # source://coderay//lib/coderay/duo.rb#64 + # pkg:gem/coderay#lib/coderay/duo.rb:64 def encode(code, options = T.unsafe(nil)); end # The encoder of the duo. Only created once. # - # source://coderay//lib/coderay/duo.rb#59 + # pkg:gem/coderay#lib/coderay/duo.rb:59 def encoder; end - # Returns the value of attribute format. - # - # source://coderay//lib/coderay/duo.rb#19 + # pkg:gem/coderay#lib/coderay/duo.rb:19 def format; end - # Sets the attribute format - # - # @param value the value to set the attribute format to. - # - # source://coderay//lib/coderay/duo.rb#19 + # pkg:gem/coderay#lib/coderay/duo.rb:19 def format=(_arg0); end - # Tokenize and highlight the code using +scanner+ and +encoder+. - # - # source://coderay//lib/coderay/duo.rb#68 + # pkg:gem/coderay#lib/coderay/duo.rb:68 def highlight(code, options = T.unsafe(nil)); end - # Returns the value of attribute lang. - # - # source://coderay//lib/coderay/duo.rb#19 + # pkg:gem/coderay#lib/coderay/duo.rb:19 def lang; end - # Sets the attribute lang - # - # @param value the value to set the attribute lang to. - # - # source://coderay//lib/coderay/duo.rb#19 + # pkg:gem/coderay#lib/coderay/duo.rb:19 def lang=(_arg0); end - # Returns the value of attribute options. - # - # source://coderay//lib/coderay/duo.rb#19 + # pkg:gem/coderay#lib/coderay/duo.rb:19 def options; end - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://coderay//lib/coderay/duo.rb#19 + # pkg:gem/coderay#lib/coderay/duo.rb:19 def options=(_arg0); end # The scanner of the duo. Only created once. # - # source://coderay//lib/coderay/duo.rb#54 + # pkg:gem/coderay#lib/coderay/duo.rb:54 def scanner; end class << self # To allow calls like Duo[:ruby, :html].highlight. # - # source://coderay//lib/coderay/duo.rb#50 + # pkg:gem/coderay#lib/coderay/duo.rb:50 def [](*_arg0); end end end @@ -381,7 +358,7 @@ end # mechanism and the [] method that returns the Encoder class # belonging to the given format. # -# source://coderay//lib/coderay/encoders.rb#10 +# pkg:gem/coderay#lib/coderay/encoders.rb:10 module CodeRay::Encoders extend ::CodeRay::PluginHost end @@ -396,39 +373,39 @@ end # # See also: TokenKindFilter, LinesOfCode # -# source://coderay//lib/coderay/encoders/comment_filter.rb#15 +# pkg:gem/coderay#lib/coderay/encoders/comment_filter.rb:15 class CodeRay::Encoders::CommentFilter < ::CodeRay::Encoders::TokenKindFilter; end -# source://coderay//lib/coderay/encoders/comment_filter.rb#19 +# pkg:gem/coderay#lib/coderay/encoders/comment_filter.rb:19 CodeRay::Encoders::CommentFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # Returns the number of tokens. # # Text and block tokens are counted. # -# source://coderay//lib/coderay/encoders/count.rb#7 +# pkg:gem/coderay#lib/coderay/encoders/count.rb:7 class CodeRay::Encoders::Count < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/count.rb#29 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:29 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/count.rb#33 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:33 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/count.rb#32 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:32 def end_group(kind); end - # source://coderay//lib/coderay/encoders/count.rb#34 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:34 def end_line(kind); end - # source://coderay//lib/coderay/encoders/count.rb#25 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:25 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/count.rb#19 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:19 def finish(options); end - # source://coderay//lib/coderay/encoders/count.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/count.rb:13 def setup(options); end end @@ -443,25 +420,25 @@ end # # See also: Scanners::Debug # -# source://coderay//lib/coderay/encoders/debug.rb#14 +# pkg:gem/coderay#lib/coderay/encoders/debug.rb:14 class CodeRay::Encoders::Debug < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/debug.rb#30 + # pkg:gem/coderay#lib/coderay/encoders/debug.rb:30 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/debug.rb#38 + # pkg:gem/coderay#lib/coderay/encoders/debug.rb:38 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/debug.rb#34 + # pkg:gem/coderay#lib/coderay/encoders/debug.rb:34 def end_group(kind); end - # source://coderay//lib/coderay/encoders/debug.rb#42 + # pkg:gem/coderay#lib/coderay/encoders/debug.rb:42 def end_line(kind); end - # source://coderay//lib/coderay/encoders/debug.rb#20 + # pkg:gem/coderay#lib/coderay/encoders/debug.rb:20 def text_token(text, kind); end end -# source://coderay//lib/coderay/encoders/debug.rb#18 +# pkg:gem/coderay#lib/coderay/encoders/debug.rb:18 CodeRay::Encoders::Debug::FILE_EXTENSION = T.let(T.unsafe(nil), String) # = Debug Lint Encoder @@ -475,35 +452,29 @@ CodeRay::Encoders::Debug::FILE_EXTENSION = T.let(T.unsafe(nil), String) # # See also: Encoders::Debug # -# source://coderay//lib/coderay/encoders/debug_lint.rb#16 +# pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:16 class CodeRay::Encoders::DebugLint < ::CodeRay::Encoders::Debug - # source://coderay//lib/coderay/encoders/debug_lint.rb#26 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:26 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/debug_lint.rb#37 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:37 def begin_line(kind); end - # @raise [Lint::IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/debug_lint.rb#31 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:31 def end_group(kind); end - # @raise [Lint::IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/debug_lint.rb#42 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:42 def end_line(kind); end - # @raise [Lint::EmptyToken] - # - # source://coderay//lib/coderay/encoders/debug_lint.rb#20 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:20 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/debug_lint.rb#55 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:55 def finish(options); end - # source://coderay//lib/coderay/encoders/debug_lint.rb#50 + # pkg:gem/coderay#lib/coderay/encoders/debug_lint.rb:50 def setup(options); end end @@ -511,13 +482,13 @@ end # # See Encoders::HTML for available options. # -# source://coderay//lib/coderay/encoders/div.rb#9 +# pkg:gem/coderay#lib/coderay/encoders/div.rb:9 class CodeRay::Encoders::Div < ::CodeRay::Encoders::HTML; end -# source://coderay//lib/coderay/encoders/div.rb#15 +# pkg:gem/coderay#lib/coderay/encoders/div.rb:15 CodeRay::Encoders::Div::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/div.rb#11 +# pkg:gem/coderay#lib/coderay/encoders/div.rb:11 CodeRay::Encoders::Div::FILE_EXTENSION = T.let(T.unsafe(nil), String) # = Encoder @@ -533,7 +504,7 @@ CodeRay::Encoders::Div::FILE_EXTENSION = T.let(T.unsafe(nil), String) # If you want the highlighted code in a div or a span instead, # use its subclasses Div and Span. # -# source://coderay//lib/coderay/encoders/encoder.rb#16 +# pkg:gem/coderay#lib/coderay/encoders/encoder.rb:16 class CodeRay::Encoders::Encoder extend ::CodeRay::Plugin @@ -548,79 +519,76 @@ class CodeRay::Encoders::Encoder # Each method has an optional +options+ parameter. These are # added to the options you passed at creation. # - # @return [Encoder] a new instance of Encoder - # - # source://coderay//lib/coderay/encoders/encoder.rb#55 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:55 def initialize(options = T.unsafe(nil)); end - # source://coderay//lib/coderay/encoders/encoder.rb#87 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:87 def <<(token); end # Starts a token group with the given +kind+. # - # source://coderay//lib/coderay/encoders/encoder.rb#123 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:123 def begin_group(kind); end # Starts a new line token group with the given +kind+. # - # source://coderay//lib/coderay/encoders/encoder.rb#131 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:131 def begin_line(kind); end # Encode the given +code+ using the Scanner for +lang+. # - # source://coderay//lib/coderay/encoders/encoder.rb#70 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:70 def encode(code, lang, options = T.unsafe(nil)); end # Encode a Tokens object. # - # source://coderay//lib/coderay/encoders/encoder.rb#61 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:61 def encode_tokens(tokens, options = T.unsafe(nil)); end # Ends a token group with the given +kind+. # - # source://coderay//lib/coderay/encoders/encoder.rb#127 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:127 def end_group(kind); end # Ends a new line token group with the given +kind+. # - # source://coderay//lib/coderay/encoders/encoder.rb#135 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:135 def end_line(kind); end # The default file extension for this encoder. # - # source://coderay//lib/coderay/encoders/encoder.rb#83 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:83 def file_extension; end - # Encode the given +code+ using the Scanner for +lang+. # You can use highlight instead of encode, if that seems # more clear to you. # - # source://coderay//lib/coderay/encoders/encoder.rb#80 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:80 def highlight(code, lang, options = T.unsafe(nil)); end # The options you gave the Encoder at creating. # - # source://coderay//lib/coderay/encoders/encoder.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:43 def options; end # The options you gave the Encoder at creating. # - # source://coderay//lib/coderay/encoders/encoder.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:43 def options=(_arg0); end # The options you gave the Encoder at creating. # - # source://coderay//lib/coderay/encoders/encoder.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:43 def scanner; end # The options you gave the Encoder at creating. # - # source://coderay//lib/coderay/encoders/encoder.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:43 def scanner=(_arg0); end # Called for each text token ([text, kind]), where text is a String. # - # source://coderay//lib/coderay/encoders/encoder.rb#118 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:118 def text_token(text, kind); end # Called with +content+ and +kind+ of the currently scanned token. @@ -629,15 +597,10 @@ class CodeRay::Encoders::Encoder # By default, it calls text_token, begin_group, end_group, begin_line, # or end_line, depending on the +content+. # - # source://coderay//lib/coderay/encoders/encoder.rb#100 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:100 def token(content, kind); end - # Do the encoding. - # - # The already created +tokens+ object must be used; it must be a - # Tokens object. - # - # source://coderay//lib/coderay/encoders/encoder.rb#184 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:184 def tokens(tokens, options = T.unsafe(nil)); end protected @@ -647,21 +610,21 @@ 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 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:168 def compile(tokens, options = T.unsafe(nil)); end # Called with merged options after encoding starts. # The return value is the result of encoding, typically @out. # - # source://coderay//lib/coderay/encoders/encoder.rb#160 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:160 def finish(options); end - # source://coderay//lib/coderay/encoders/encoder.rb#148 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:148 def get_output(options); end # Append data.to_s to the output. Returns the argument. # - # source://coderay//lib/coderay/encoders/encoder.rb#153 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:153 def output(data); end # Called with merged options before encoding starts. @@ -669,29 +632,29 @@ class CodeRay::Encoders::Encoder # # See the HTML Encoder for an example of option caching. # - # source://coderay//lib/coderay/encoders/encoder.rb#144 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:144 def setup(options); end class << self # If FILE_EXTENSION isn't defined, this method returns the # downcase class name instead. # - # source://coderay//lib/coderay/encoders/encoder.rb#24 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:24 def const_missing(sym); end # The default file extension for output file of this encoder class. # - # source://coderay//lib/coderay/encoders/encoder.rb#33 + # pkg:gem/coderay#lib/coderay/encoders/encoder.rb:33 def file_extension; end end end # Subclasses are to store their default options in this constant. # -# source://coderay//lib/coderay/encoders/encoder.rb#40 +# pkg:gem/coderay#lib/coderay/encoders/encoder.rb:40 CodeRay::Encoders::Encoder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/helpers/plugin.rb#41 +# pkg:gem/coderay#lib/coderay/helpers/plugin.rb:41 CodeRay::Encoders::Encoder::PLUGIN_HOST = CodeRay::Encoders # A Filter encoder has another Tokens instance as output. @@ -709,29 +672,29 @@ CodeRay::Encoders::Encoder::PLUGIN_HOST = CodeRay::Encoders # # See also: TokenKindFilter # -# source://coderay//lib/coderay/encoders/filter.rb#18 +# pkg:gem/coderay#lib/coderay/encoders/filter.rb:18 class CodeRay::Encoders::Filter < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/filter.rb#39 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:39 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/filter.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:43 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/filter.rb#47 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:47 def end_group(kind); end - # source://coderay//lib/coderay/encoders/filter.rb#51 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:51 def end_line(kind); end - # source://coderay//lib/coderay/encoders/filter.rb#35 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:35 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/filter.rb#29 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:29 def finish(options); end - # source://coderay//lib/coderay/encoders/filter.rb#23 + # pkg:gem/coderay#lib/coderay/encoders/filter.rb:23 def setup(options); end end @@ -827,119 +790,113 @@ end # # Default: false # -# source://coderay//lib/coderay/encoders/html.rb#97 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:97 class CodeRay::Encoders::HTML < ::CodeRay::Encoders::Encoder # token groups, eg. strings # - # source://coderay//lib/coderay/encoders/html.rb#235 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:235 def begin_group(kind); end # whole lines to be highlighted, eg. a deleted line in a diff # - # source://coderay//lib/coderay/encoders/html.rb#247 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:247 def begin_line(kind); end - # Returns the value of attribute css. - # - # source://coderay//lib/coderay/encoders/html.rb#126 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:126 def css; end - # source://coderay//lib/coderay/encoders/html.rb#241 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:241 def end_group(kind); end - # source://coderay//lib/coderay/encoders/html.rb#261 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:261 def end_line(kind); end - # source://coderay//lib/coderay/encoders/html.rb#221 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:221 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/html.rb#316 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:316 def break_lines(text, style); end - # source://coderay//lib/coderay/encoders/html.rb#310 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:310 def check_group_nesting(name, kind); end - # source://coderay//lib/coderay/encoders/html.rb#268 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:268 def check_options!(options); end - # source://coderay//lib/coderay/encoders/html.rb#324 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:324 def close_span; end - # source://coderay//lib/coderay/encoders/html.rb#280 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:280 def css_class_for_kinds(kinds); end - # source://coderay//lib/coderay/encoders/html.rb#195 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:195 def finish(options); end - # source://coderay//lib/coderay/encoders/html.rb#289 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:289 def make_span_for_kinds(method, hint); end - # source://coderay//lib/coderay/encoders/html.rb#172 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:172 def setup(options); end - # source://coderay//lib/coderay/encoders/html.rb#284 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:284 def style_for_kinds(kinds); end class << self - # source://coderay//lib/coderay/encoders/html.rb#130 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:130 def make_html_escape_hash; end # Generate a hint about the given +kinds+ in a +hint+ style. # # +hint+ may be :info, :info_long or :debug. # - # source://coderay//lib/coderay/encoders/html.rb#157 + # pkg:gem/coderay#lib/coderay/encoders/html.rb:157 def token_path_to_hint(hint, kinds); end end end -# source://coderay//lib/coderay/encoders/html/css.rb#5 +# pkg:gem/coderay#lib/coderay/encoders/html/css.rb:5 class CodeRay::Encoders::HTML::CSS - # @return [CSS] a new instance of CSS - # - # source://coderay//lib/coderay/encoders/html/css.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/html/css.rb:13 def initialize(style = T.unsafe(nil)); end - # source://coderay//lib/coderay/encoders/html/css.rb#23 + # pkg:gem/coderay#lib/coderay/encoders/html/css.rb:23 def get_style_for_css_classes(css_classes); end - # Returns the value of attribute stylesheet. - # - # source://coderay//lib/coderay/encoders/html/css.rb#7 + # pkg:gem/coderay#lib/coderay/encoders/html/css.rb:7 def stylesheet; end private - # source://coderay//lib/coderay/encoders/html/css.rb#49 + # pkg:gem/coderay#lib/coderay/encoders/html/css.rb:49 def parse(stylesheet); end class << self - # source://coderay//lib/coderay/encoders/html/css.rb#9 + # pkg:gem/coderay#lib/coderay/encoders/html/css.rb:9 def load_stylesheet(style = T.unsafe(nil)); end end end -# source://coderay//lib/coderay/encoders/html/css.rb#36 +# pkg:gem/coderay#lib/coderay/encoders/html/css.rb:36 CodeRay::Encoders::HTML::CSS::CSS_CLASS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/encoders/html.rb#103 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:103 CodeRay::Encoders::HTML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/html.rb#101 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:101 CodeRay::Encoders::HTML::FILE_EXTENSION = T.let(T.unsafe(nil), String) -# source://coderay//lib/coderay/encoders/html.rb#143 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:143 CodeRay::Encoders::HTML::HTML_ESCAPE = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/html.rb#144 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:144 CodeRay::Encoders::HTML::HTML_ESCAPE_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/encoders/html/numbering.rb#6 +# pkg:gem/coderay#lib/coderay/encoders/html/numbering.rb:6 module CodeRay::Encoders::HTML::Numbering class << self - # source://coderay//lib/coderay/encoders/html/numbering.rb#8 + # pkg:gem/coderay#lib/coderay/encoders/html/numbering.rb:8 def number!(output, mode = T.unsafe(nil), options = T.unsafe(nil)); end end end @@ -953,91 +910,79 @@ end # # TODO: Rewrite this without monkey patching. # -# source://coderay//lib/coderay/encoders/html/output.rb#14 +# pkg:gem/coderay#lib/coderay/encoders/html/output.rb:14 module CodeRay::Encoders::HTML::Output - # source://coderay//lib/coderay/encoders/html/output.rb#57 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:57 def apply_title!(title); end - # Returns the value of attribute css. - # - # source://coderay//lib/coderay/encoders/html/output.rb#16 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:16 def css; end - # Sets the attribute css - # - # @param value the value to set the attribute css to. - # - # source://coderay//lib/coderay/encoders/html/output.rb#16 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:16 def css=(_arg0); end - # source://coderay//lib/coderay/encoders/html/output.rb#86 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:86 def stylesheet(in_tag = T.unsafe(nil)); end - # source://coderay//lib/coderay/encoders/html/output.rb#62 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:62 def wrap!(element, *args); end - # source://coderay//lib/coderay/encoders/html/output.rb#52 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:52 def wrap_in!(template); end - # source://coderay//lib/coderay/encoders/html/output.rb#47 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:47 def wrapped_in; end - # Sets the attribute wrapped_in - # - # @param value the value to set the attribute wrapped_in to. - # - # source://coderay//lib/coderay/encoders/html/output.rb#50 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:50 def wrapped_in=(_arg0); end - # @return [Boolean] - # - # source://coderay//lib/coderay/encoders/html/output.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:43 def wrapped_in?(element); end class << self # Raises an exception if an object that doesn't respond to to_str is extended by Output, # to prevent users from misuse. Use Module#remove_method to disable. # - # source://coderay//lib/coderay/encoders/html/output.rb#22 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:22 def extended(o); end - # source://coderay//lib/coderay/encoders/html/output.rb#26 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:26 def make_stylesheet(css, in_tag = T.unsafe(nil)); end - # source://coderay//lib/coderay/encoders/html/output.rb#36 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:36 def page_template_for_css(css); end end end -# source://coderay//lib/coderay/encoders/html/output.rb#117 +# pkg:gem/coderay#lib/coderay/encoders/html/output.rb:117 CodeRay::Encoders::HTML::Output::DIV = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) -# source://coderay//lib/coderay/encoders/html/output.rb#130 +# pkg:gem/coderay#lib/coderay/encoders/html/output.rb:130 CodeRay::Encoders::HTML::Output::PAGE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) -# source://coderay//lib/coderay/encoders/html/output.rb#115 +# pkg:gem/coderay#lib/coderay/encoders/html/output.rb:115 CodeRay::Encoders::HTML::Output::SPAN = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) -# source://coderay//lib/coderay/encoders/html/output.rb#123 +# pkg:gem/coderay#lib/coderay/encoders/html/output.rb:123 CodeRay::Encoders::HTML::Output::TABLE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) # -- don't include the templates in docu # -# source://coderay//lib/coderay/encoders/html/output.rb#92 +# pkg:gem/coderay#lib/coderay/encoders/html/output.rb:92 class CodeRay::Encoders::HTML::Output::Template < ::String - # source://coderay//lib/coderay/encoders/html/output.rb#104 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:104 def apply(target, replacement); end class << self - # source://coderay//lib/coderay/encoders/html/output.rb#94 + # pkg:gem/coderay#lib/coderay/encoders/html/output.rb:94 def wrap!(str, template, target); end end end -# source://coderay//lib/coderay/encoders/html.rb#146 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:146 CodeRay::Encoders::HTML::TOKEN_KIND_TO_INFO = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/html.rb#150 +# pkg:gem/coderay#lib/coderay/encoders/html.rb:150 CodeRay::Encoders::HTML::TRANSPARENT_TOKEN_KINDS = T.let(T.unsafe(nil), Set) # A simple JSON Encoder. @@ -1055,36 +1000,36 @@ CodeRay::Encoders::HTML::TRANSPARENT_TOKEN_KINDS = T.let(T.unsafe(nil), Set) # {"type"=>"block", "action"=>"close", "kind"=>"string"}, # ] # -# source://coderay//lib/coderay/encoders/json.rb#18 +# pkg:gem/coderay#lib/coderay/encoders/json.rb:18 class CodeRay::Encoders::JSON < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/json.rb#64 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:64 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/json.rb#72 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:72 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/json.rb#68 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:68 def end_group(kind); end - # source://coderay//lib/coderay/encoders/json.rb#76 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:76 def end_line(kind); end - # source://coderay//lib/coderay/encoders/json.rb#60 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:60 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/json.rb#49 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:49 def append(data); end - # source://coderay//lib/coderay/encoders/json.rb#45 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:45 def finish(options); end - # source://coderay//lib/coderay/encoders/json.rb#38 + # pkg:gem/coderay#lib/coderay/encoders/json.rb:38 def setup(options); end end -# source://coderay//lib/coderay/encoders/json.rb#35 +# pkg:gem/coderay#lib/coderay/encoders/json.rb:35 CodeRay::Encoders::JSON::FILE_EXTENSION = T.let(T.unsafe(nil), String) # Counts the LoC (Lines of Code). Returns an Integer >= 0. @@ -1101,18 +1046,18 @@ CodeRay::Encoders::JSON::FILE_EXTENSION = T.let(T.unsafe(nil), String) # A Scanner class should define the token kinds that are not code in the # KINDS_NOT_LOC constant, which defaults to [:comment, :doctype]. # -# source://coderay//lib/coderay/encoders/lines_of_code.rb#17 +# pkg:gem/coderay#lib/coderay/encoders/lines_of_code.rb:17 class CodeRay::Encoders::LinesOfCode < ::CodeRay::Encoders::TokenKindFilter protected - # source://coderay//lib/coderay/encoders/lines_of_code.rb#38 + # pkg:gem/coderay#lib/coderay/encoders/lines_of_code.rb:38 def finish(options); end - # source://coderay//lib/coderay/encoders/lines_of_code.rb#25 + # pkg:gem/coderay#lib/coderay/encoders/lines_of_code.rb:25 def setup(options); end end -# source://coderay//lib/coderay/encoders/lines_of_code.rb#21 +# pkg:gem/coderay#lib/coderay/encoders/lines_of_code.rb:21 CodeRay::Encoders::LinesOfCode::NON_EMPTY_LINE = T.let(T.unsafe(nil), Regexp) # = Lint Encoder @@ -1126,57 +1071,51 @@ CodeRay::Encoders::LinesOfCode::NON_EMPTY_LINE = T.let(T.unsafe(nil), Regexp) # # See also: Encoders::DebugLint # -# source://coderay//lib/coderay/encoders/lint.rb#14 +# pkg:gem/coderay#lib/coderay/encoders/lint.rb:14 class CodeRay::Encoders::Lint < ::CodeRay::Encoders::Debug - # source://coderay//lib/coderay/encoders/lint.rb#28 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:28 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/lint.rb#37 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:37 def begin_line(kind); end - # @raise [IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/lint.rb#32 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:32 def end_group(kind); end - # @raise [IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/lint.rb#41 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:41 def end_line(kind); end - # @raise [EmptyToken] - # - # source://coderay//lib/coderay/encoders/lint.rb#23 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:23 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/lint.rb#52 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:52 def finish(options); end - # source://coderay//lib/coderay/encoders/lint.rb#48 + # pkg:gem/coderay#lib/coderay/encoders/lint.rb:48 def setup(options); end end -# source://coderay//lib/coderay/encoders/lint.rb#19 +# pkg:gem/coderay#lib/coderay/encoders/lint.rb:19 class CodeRay::Encoders::Lint::EmptyToken < ::CodeRay::Encoders::Lint::InvalidTokenStream; end -# source://coderay//lib/coderay/encoders/lint.rb#21 +# pkg:gem/coderay#lib/coderay/encoders/lint.rb:21 class CodeRay::Encoders::Lint::IncorrectTokenGroupNesting < ::CodeRay::Encoders::Lint::InvalidTokenStream; end -# source://coderay//lib/coderay/encoders/lint.rb#18 +# pkg:gem/coderay#lib/coderay/encoders/lint.rb:18 class CodeRay::Encoders::Lint::InvalidTokenStream < ::StandardError; end -# source://coderay//lib/coderay/encoders/lint.rb#20 +# pkg:gem/coderay#lib/coderay/encoders/lint.rb:20 class CodeRay::Encoders::Lint::UnknownTokenKind < ::CodeRay::Encoders::Lint::InvalidTokenStream; end # = Null Encoder # # Does nothing and returns an empty string. # -# source://coderay//lib/coderay/encoders/null.rb#7 +# pkg:gem/coderay#lib/coderay/encoders/null.rb:7 class CodeRay::Encoders::Null < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/null.rb#11 + # pkg:gem/coderay#lib/coderay/encoders/null.rb:11 def text_token(text, kind); end end @@ -1185,152 +1124,148 @@ end # # See Encoders::HTML for available options. # -# source://coderay//lib/coderay/encoders/page.rb#10 +# pkg:gem/coderay#lib/coderay/encoders/page.rb:10 class CodeRay::Encoders::Page < ::CodeRay::Encoders::HTML; end -# source://coderay//lib/coderay/encoders/page.rb#16 +# pkg:gem/coderay#lib/coderay/encoders/page.rb:16 CodeRay::Encoders::Page::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/page.rb#12 +# pkg:gem/coderay#lib/coderay/encoders/page.rb:12 CodeRay::Encoders::Page::FILE_EXTENSION = T.let(T.unsafe(nil), String) # Wraps HTML output into a SPAN element, using inline styles by default. # # See Encoders::HTML for available options. # -# source://coderay//lib/coderay/encoders/span.rb#9 +# pkg:gem/coderay#lib/coderay/encoders/span.rb:9 class CodeRay::Encoders::Span < ::CodeRay::Encoders::HTML; end -# source://coderay//lib/coderay/encoders/span.rb#15 +# pkg:gem/coderay#lib/coderay/encoders/span.rb:15 CodeRay::Encoders::Span::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/span.rb#11 +# pkg:gem/coderay#lib/coderay/encoders/span.rb:11 CodeRay::Encoders::Span::FILE_EXTENSION = T.let(T.unsafe(nil), String) # Makes a statistic for the given tokens. # # Alias: +stats+ # -# source://coderay//lib/coderay/encoders/statistic.rb#7 +# pkg:gem/coderay#lib/coderay/encoders/statistic.rb:7 class CodeRay::Encoders::Statistic < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/statistic.rb#70 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:70 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/statistic.rb#78 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:78 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/statistic.rb#86 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:86 def block_token(action, kind); end - # source://coderay//lib/coderay/encoders/statistic.rb#74 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:74 def end_group(kind); end - # source://coderay//lib/coderay/encoders/statistic.rb#82 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:82 def end_line(kind); end - # source://coderay//lib/coderay/encoders/statistic.rb#11 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:11 def real_token_count; end - # source://coderay//lib/coderay/encoders/statistic.rb#62 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:62 def text_token(text, kind); end - # source://coderay//lib/coderay/encoders/statistic.rb#11 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:11 def type_stats; end protected - # source://coderay//lib/coderay/encoders/statistic.rb#42 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:42 def finish(options); end - # source://coderay//lib/coderay/encoders/statistic.rb#17 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:17 def setup(options); end end -# source://coderay//lib/coderay/encoders/statistic.rb#24 +# pkg:gem/coderay#lib/coderay/encoders/statistic.rb:24 CodeRay::Encoders::Statistic::STATS = T.let(T.unsafe(nil), String) -# source://coderay//lib/coderay/encoders/statistic.rb#38 +# pkg:gem/coderay#lib/coderay/encoders/statistic.rb:38 CodeRay::Encoders::Statistic::TOKEN_TYPES_ROW = T.let(T.unsafe(nil), String) -# source://coderay//lib/coderay/encoders/statistic.rb#13 +# pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 def size=(_); end class << self - # source://coderay//lib/coderay/encoders/statistic.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 def [](*_arg0); end - # source://coderay//lib/coderay/encoders/statistic.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 def inspect; end - # source://coderay//lib/coderay/encoders/statistic.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 def keyword_init?; end - # source://coderay//lib/coderay/encoders/statistic.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 def members; end - # source://coderay//lib/coderay/encoders/statistic.rb#13 + # pkg:gem/coderay#lib/coderay/encoders/statistic.rb:13 def new(*_arg0); end end end -# source://coderay//lib/coderay/encoders/terminal.rb#17 +# Outputs code highlighted for a color terminal. +# +# Note: This encoder is in beta. It currently doesn't use the Styles. +# +# Alias: +term+ +# +# == Authors & License +# +# By Rob Aldred (http://robaldred.co.uk) +# +# Based on idea by Nathan Weizenbaum (http://nex-3.com) +# +# MIT License (http://www.opensource.org/licenses/mit-license.php) +# +# pkg:gem/coderay#lib/coderay/encoders/terminal.rb:17 class CodeRay::Encoders::Terminal < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/terminal.rb#156 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:156 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/terminal.rb#160 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:160 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/terminal.rb#162 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:162 def end_group(kind); end - # source://coderay//lib/coderay/encoders/terminal.rb#172 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:172 def end_line(kind); end - # source://coderay//lib/coderay/encoders/terminal.rb#141 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:141 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/terminal.rb#133 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:133 def setup(options); end private - # source://coderay//lib/coderay/encoders/terminal.rb#179 + # pkg:gem/coderay#lib/coderay/encoders/terminal.rb:179 def open_token(kind); end end -# source://coderay//lib/coderay/encoders/terminal.rb#21 +# pkg:gem/coderay#lib/coderay/encoders/terminal.rb:21 CodeRay::Encoders::Terminal::TOKEN_COLORS = T.let(T.unsafe(nil), Hash) # Concats the tokens into a single string, resulting in the original @@ -1345,21 +1280,21 @@ CodeRay::Encoders::Terminal::TOKEN_COLORS = T.let(T.unsafe(nil), Hash) # # Default: empty String # -# source://coderay//lib/coderay/encoders/text.rb#15 +# pkg:gem/coderay#lib/coderay/encoders/text.rb:15 class CodeRay::Encoders::Text < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/text.rb#25 + # pkg:gem/coderay#lib/coderay/encoders/text.rb:25 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/text.rb#36 + # pkg:gem/coderay#lib/coderay/encoders/text.rb:36 def setup(options); end end -# source://coderay//lib/coderay/encoders/text.rb#21 +# pkg:gem/coderay#lib/coderay/encoders/text.rb:21 CodeRay::Encoders::Text::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/text.rb#19 +# pkg:gem/coderay#lib/coderay/encoders/text.rb:19 CodeRay::Encoders::Text::FILE_EXTENSION = T.let(T.unsafe(nil), String) # A Filter that selects tokens based on their token kind. @@ -1382,7 +1317,7 @@ CodeRay::Encoders::Text::FILE_EXTENSION = T.let(T.unsafe(nil), String) # # See also: CommentFilter # -# source://coderay//lib/coderay/encoders/token_kind_filter.rb#25 +# pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:25 class CodeRay::Encoders::TokenKindFilter < ::CodeRay::Encoders::Filter # Add the token group to the output stream if +kind+ matches the # conditions. @@ -1390,110 +1325,106 @@ class CodeRay::Encoders::TokenKindFilter < ::CodeRay::Encoders::Filter # If it does not, all tokens inside the group are excluded from the # stream, even if their kinds match. # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#66 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:66 def begin_group(kind); end # See +begin_group+. # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#77 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:77 def begin_line(kind); end # Take care of re-enabling the delegation of tokens to the output stream # if an exluded group has ended. # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#89 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:89 def end_group(kind); end # See +end_group+. # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#99 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:99 def end_line(kind); end # Add the token to the output stream if +kind+ matches the conditions. # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#57 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:57 def text_token(text, kind); end protected - # @return [Boolean] - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#49 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:49 def include_group?(kind); end - # @return [Boolean] - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#45 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:45 def include_text_token?(text, kind); end - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#35 + # pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:35 def setup(options); end end -# source://coderay//lib/coderay/encoders/token_kind_filter.rb#29 +# pkg:gem/coderay#lib/coderay/encoders/token_kind_filter.rb:29 CodeRay::Encoders::TokenKindFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # = XML Encoder # # Uses REXML. Very slow. # -# source://coderay//lib/coderay/encoders/xml.rb#7 +# pkg:gem/coderay#lib/coderay/encoders/xml.rb:7 class CodeRay::Encoders::XML < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/xml.rb#58 + # pkg:gem/coderay#lib/coderay/encoders/xml.rb:58 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/xml.rb#62 + # pkg:gem/coderay#lib/coderay/encoders/xml.rb:62 def end_group(kind); end - # source://coderay//lib/coderay/encoders/xml.rb#38 + # pkg:gem/coderay#lib/coderay/encoders/xml.rb:38 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/xml.rb#31 + # pkg:gem/coderay#lib/coderay/encoders/xml.rb:31 def finish(options); end - # source://coderay//lib/coderay/encoders/xml.rb#22 + # pkg:gem/coderay#lib/coderay/encoders/xml.rb:22 def setup(options); end end -# source://coderay//lib/coderay/encoders/xml.rb#15 +# pkg:gem/coderay#lib/coderay/encoders/xml.rb:15 CodeRay::Encoders::XML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/encoders/xml.rb#11 +# pkg:gem/coderay#lib/coderay/encoders/xml.rb:11 CodeRay::Encoders::XML::FILE_EXTENSION = T.let(T.unsafe(nil), String) # = YAML Encoder # # Slow. # -# source://coderay//lib/coderay/encoders/yaml.rb#9 +# pkg:gem/coderay#lib/coderay/encoders/yaml.rb:9 class CodeRay::Encoders::YAML < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/yaml.rb#31 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:31 def begin_group(kind); end - # source://coderay//lib/coderay/encoders/yaml.rb#39 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:39 def begin_line(kind); end - # source://coderay//lib/coderay/encoders/yaml.rb#35 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:35 def end_group(kind); end - # source://coderay//lib/coderay/encoders/yaml.rb#43 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:43 def end_line(kind); end - # source://coderay//lib/coderay/encoders/yaml.rb#27 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:27 def text_token(text, kind); end protected - # source://coderay//lib/coderay/encoders/yaml.rb#22 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:22 def finish(options); end - # source://coderay//lib/coderay/encoders/yaml.rb#16 + # pkg:gem/coderay#lib/coderay/encoders/yaml.rb:16 def setup(options); end end -# source://coderay//lib/coderay/encoders/yaml.rb#13 +# pkg:gem/coderay#lib/coderay/encoders/yaml.rb:13 CodeRay::Encoders::YAML::FILE_EXTENSION = T.let(T.unsafe(nil), String) # = FileType @@ -1511,7 +1442,7 @@ CodeRay::Encoders::YAML::FILE_EXTENSION = T.let(T.unsafe(nil), String) # # try the shebang line, too # lang = FileType.fetch file_name, :text, true # -# source://coderay//lib/coderay/helpers/file_type.rb#17 +# pkg:gem/coderay#lib/coderay/helpers/file_type.rb:17 module CodeRay::FileType class << self # Try to determine the file type of the file. @@ -1521,7 +1452,7 @@ module CodeRay::FileType # The file itself is only accessed when +read_shebang+ is set to true. # That means you can get filetypes from files that don't exist. # - # source://coderay//lib/coderay/helpers/file_type.rb#29 + # pkg:gem/coderay#lib/coderay/helpers/file_type.rb:29 def [](filename, read_shebang = T.unsafe(nil)); end # This works like Hash#fetch. @@ -1529,26 +1460,26 @@ module CodeRay::FileType # If the filetype cannot be found, the +default+ value # is returned. # - # source://coderay//lib/coderay/helpers/file_type.rb#50 + # pkg:gem/coderay#lib/coderay/helpers/file_type.rb:50 def fetch(filename, default = T.unsafe(nil), read_shebang = T.unsafe(nil)); end protected - # source://coderay//lib/coderay/helpers/file_type.rb#66 + # pkg:gem/coderay#lib/coderay/helpers/file_type.rb:66 def type_from_shebang(filename); end end end -# source://coderay//lib/coderay/helpers/file_type.rb#79 +# pkg:gem/coderay#lib/coderay/helpers/file_type.rb:79 CodeRay::FileType::TypeFromExt = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/helpers/file_type.rb#139 +# pkg:gem/coderay#lib/coderay/helpers/file_type.rb:139 CodeRay::FileType::TypeFromName = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/helpers/file_type.rb#137 +# pkg:gem/coderay#lib/coderay/helpers/file_type.rb:137 CodeRay::FileType::TypeFromShebang = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/helpers/file_type.rb#19 +# pkg:gem/coderay#lib/coderay/helpers/file_type.rb:19 class CodeRay::FileType::UnknownFileType < ::Exception; end # = Plugin @@ -1559,19 +1490,17 @@ class CodeRay::FileType::UnknownFileType < ::Exception; end # # See CodeRay::PluginHost for examples. # -# source://coderay//lib/coderay/helpers/plugin.rb#10 +# pkg:gem/coderay#lib/coderay/helpers/plugin.rb:10 module CodeRay::Plugin - # source://coderay//lib/coderay/helpers/plugin.rb#46 + # pkg:gem/coderay#lib/coderay/helpers/plugin.rb:46 def aliases; end # The PluginHost for this Plugin class. # - # source://coderay//lib/coderay/helpers/plugin.rb#39 + # pkg:gem/coderay#lib/coderay/helpers/plugin.rb:39 def plugin_host(host = T.unsafe(nil)); end - # Returns the value of attribute plugin_id. - # - # source://coderay//lib/coderay/helpers/plugin.rb#12 + # pkg:gem/coderay#lib/coderay/helpers/plugin.rb:12 def plugin_id; end # Register this class for the given +id+. @@ -1584,13 +1513,13 @@ module CodeRay::Plugin # # See PluginHost.register. # - # source://coderay//lib/coderay/helpers/plugin.rb#23 + # pkg:gem/coderay#lib/coderay/helpers/plugin.rb:23 def register_for(id); end # Returns the title of the plugin, or sets it to the # optional argument +title+. # - # source://coderay//lib/coderay/helpers/plugin.rb#30 + # pkg:gem/coderay#lib/coderay/helpers/plugin.rb:30 def title(title = T.unsafe(nil)); end end @@ -1619,27 +1548,27 @@ end # # or # Generators::Fancy # -# source://coderay//lib/coderay/helpers/plugin_host.rb#27 +# pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:27 module CodeRay::PluginHost # Returns the Plugin for +id+. # # Example: # yaml_plugin = MyPluginHost[:yaml] # - # source://coderay//lib/coderay/helpers/plugin_host.rb#49 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:49 def [](id, *args, &blk); end # Returns an array of all Plugins. # # Note: This loads all plugins using load_all. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#151 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:151 def all_plugins; end # Tries to +load+ the missing plugin by translating +const+ to the # underscore form (eg. LinesOfCode becomes lines_of_code). # - # source://coderay//lib/coderay/helpers/plugin_host.rb#61 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:61 def const_missing(const); end # Define the default plugin to use when no plugin is found @@ -1654,34 +1583,29 @@ module CodeRay::PluginHost # # MyColorHost.default # loads and returns the Gray plugin # - # source://coderay//lib/coderay/helpers/plugin_host.rb#114 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:114 def default(id = T.unsafe(nil)); end # Returns an array of all .rb files in the plugin path. # # The extension .rb is not included. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#140 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:140 def list; end - # Returns the Plugin for +id+. - # - # Example: - # yaml_plugin = MyPluginHost[:yaml] - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#57 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:57 def load(id, *args, &blk); end # Loads all plugins using list and load. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#39 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:39 def load_all; end # Loads the map file (see map). # # This is done automatically when plugin_path is called. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#159 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:159 def load_plugin_map; end # Map a plugin_id to another. @@ -1694,17 +1618,17 @@ module CodeRay::PluginHost # :luna => :moon # end # - # source://coderay//lib/coderay/helpers/plugin_host.rb#95 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:95 def map(hash); end # A Hash of plugion_id => Plugin pairs. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#133 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:133 def plugin_hash; end # The path where the plugins can be found. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#79 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:79 def plugin_path(*args); end # Every plugin must register itself for +id+ by calling register_for, @@ -1712,19 +1636,19 @@ module CodeRay::PluginHost # # See Plugin#register_for. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#128 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:128 def register(plugin, id); end protected # Return a plugin hash that automatically loads plugins. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#172 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:172 def make_plugin_hash; end # Returns the expected path to the plugin file for the given id. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#196 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:196 def path_to(plugin_id); end # Converts +id+ to a valid plugin ID String, or returns +nil+. @@ -1732,33 +1656,31 @@ module CodeRay::PluginHost # Raises +ArgumentError+ for all other objects, or if the # given String includes non-alphanumeric characters (\W). # - # source://coderay//lib/coderay/helpers/plugin_host.rb#204 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:204 def validate_id(id); end class << self # Adds the module/class to the PLUGIN_HOSTS list. # - # source://coderay//lib/coderay/helpers/plugin_host.rb#72 + # pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:72 def extended(mod); end end end -# source://coderay//lib/coderay/helpers/plugin_host.rb#33 +# pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:33 class CodeRay::PluginHost::HostNotFound < ::LoadError; end -# source://coderay//lib/coderay/helpers/plugin_host.rb#35 +# pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:35 CodeRay::PluginHost::PLUGIN_HOSTS = T.let(T.unsafe(nil), Array) -# dummy hash -# -# source://coderay//lib/coderay/helpers/plugin_host.rb#36 +# pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:36 CodeRay::PluginHost::PLUGIN_HOSTS_BY_ID = T.let(T.unsafe(nil), Hash) # Raised if Encoders::[] fails because: # * a file could not be found # * the requested Plugin is not registered # -# source://coderay//lib/coderay/helpers/plugin_host.rb#32 +# pkg:gem/coderay#lib/coderay/helpers/plugin_host.rb:32 class CodeRay::PluginHost::PluginNotFound < ::LoadError; end # = Scanners @@ -1773,40 +1695,40 @@ class CodeRay::PluginHost::PluginNotFound < ::LoadError; end # # See PluginHost. # -# source://coderay//lib/coderay/scanners.rb#18 +# pkg:gem/coderay#lib/coderay/scanners.rb:18 module CodeRay::Scanners extend ::CodeRay::PluginHost end # Scanner for C. # -# source://coderay//lib/coderay/scanners/c.rb#5 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:5 class CodeRay::Scanners::C < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/c.rb#44 + # pkg:gem/coderay#lib/coderay/scanners/c.rb:44 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/c.rb#27 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:27 CodeRay::Scanners::C::DIRECTIVES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/c.rb#39 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:39 CodeRay::Scanners::C::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/c.rb#33 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:33 CodeRay::Scanners::C::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/c.rb#10 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:10 CodeRay::Scanners::C::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/c.rb#23 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:23 CodeRay::Scanners::C::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/c.rb#17 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:17 CodeRay::Scanners::C::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/c.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/c.rb:40 CodeRay::Scanners::C::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # Scanner for C++. @@ -1814,268 +1736,270 @@ CodeRay::Scanners::C::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # Aliases: +cplusplus+, c++ CodeRay::Scanners::CPlusPlus = CodeRay::Scanners::Text -# source://coderay//lib/coderay/scanners/css.rb#4 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:4 class CodeRay::Scanners::CSS < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/css.rb#55 + # pkg:gem/coderay#lib/coderay/scanners/css.rb:55 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/css.rb#50 + # pkg:gem/coderay#lib/coderay/scanners/css.rb:50 def setup; end end -# source://coderay//lib/coderay/scanners/css.rb#8 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:8 CodeRay::Scanners::CSS::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/css.rb#16 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:16 module CodeRay::Scanners::CSS::RE; end -# source://coderay//lib/coderay/scanners/css.rb#31 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:31 CodeRay::Scanners::CSS::RE::AtKeyword = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#45 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:45 CodeRay::Scanners::CSS::RE::AttributeSelector = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#43 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:43 CodeRay::Scanners::CSS::RE::Class = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#38 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:38 CodeRay::Scanners::CSS::RE::Dimension = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#19 +# differs from standard because it allows uppercase hex too +# +# pkg:gem/coderay#lib/coderay/scanners/css.rb:19 CodeRay::Scanners::CSS::RE::Escape = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:40 CodeRay::Scanners::CSS::RE::Function = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#17 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:17 CodeRay::Scanners::CSS::RE::Hex = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#26 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:26 CodeRay::Scanners::CSS::RE::HexColor = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#42 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:42 CodeRay::Scanners::CSS::RE::Id = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#30 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:30 CodeRay::Scanners::CSS::RE::Ident = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#20 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:20 CodeRay::Scanners::CSS::RE::NMChar = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#21 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:21 CodeRay::Scanners::CSS::RE::NMStart = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#29 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:29 CodeRay::Scanners::CSS::RE::Name = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#28 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:28 CodeRay::Scanners::CSS::RE::Num = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#32 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:32 CodeRay::Scanners::CSS::RE::Percentage = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#44 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:44 CodeRay::Scanners::CSS::RE::PseudoClass = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#24 -CodeRay::Scanners::CSS::RE::String = T.let(T.unsafe(nil), Regexp) - # TODO: buggy regexp # -# source://coderay//lib/coderay/scanners/css.rb#22 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:24 +CodeRay::Scanners::CSS::RE::String = T.let(T.unsafe(nil), Regexp) + +# pkg:gem/coderay#lib/coderay/scanners/css.rb:22 CodeRay::Scanners::CSS::RE::String1 = T.let(T.unsafe(nil), Regexp) # TODO: buggy regexp # -# source://coderay//lib/coderay/scanners/css.rb#23 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:23 CodeRay::Scanners::CSS::RE::String2 = T.let(T.unsafe(nil), Regexp) -# differs from standard because it allows uppercase hex too -# -# source://coderay//lib/coderay/scanners/css.rb#18 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:18 CodeRay::Scanners::CSS::RE::Unicode = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/css.rb#36 +# pkg:gem/coderay#lib/coderay/scanners/css.rb:36 CodeRay::Scanners::CSS::RE::Unit = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#6 +# Clojure scanner by Licenser. +# +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:6 class CodeRay::Scanners::Clojure < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/clojure.rb#145 + # pkg:gem/coderay#lib/coderay/scanners/clojure.rb:145 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/clojure.rb#95 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:95 CodeRay::Scanners::Clojure::BASIC_IDENTIFIER = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#133 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:133 CodeRay::Scanners::Clojure::COMPLEX10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#134 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:134 CodeRay::Scanners::Clojure::COMPLEX16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#136 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:136 CodeRay::Scanners::Clojure::COMPLEX2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#135 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:135 CodeRay::Scanners::Clojure::COMPLEX8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#16 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:16 CodeRay::Scanners::Clojure::CORE_FORMS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/clojure.rb#120 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:120 CodeRay::Scanners::Clojure::DECIMAL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#98 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:98 CodeRay::Scanners::Clojure::DIGIT = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#99 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:99 CodeRay::Scanners::Clojure::DIGIT10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#100 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:100 CodeRay::Scanners::Clojure::DIGIT16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#102 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:102 CodeRay::Scanners::Clojure::DIGIT2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#101 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:101 CodeRay::Scanners::Clojure::DIGIT8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#107 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:107 CodeRay::Scanners::Clojure::EXACTNESS = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#110 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:110 CodeRay::Scanners::Clojure::EXP = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#109 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:109 CodeRay::Scanners::Clojure::EXP_MARK = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#96 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:96 CodeRay::Scanners::Clojure::IDENTIFIER = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#85 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:85 CodeRay::Scanners::Clojure::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/clojure.rb#129 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:129 CodeRay::Scanners::Clojure::IMAG10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#130 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:130 CodeRay::Scanners::Clojure::IMAG16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#132 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:132 CodeRay::Scanners::Clojure::IMAG2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#131 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:131 CodeRay::Scanners::Clojure::IMAG8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#90 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:90 CodeRay::Scanners::Clojure::KEYWORD_NEXT_TOKEN_KIND = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/clojure.rb#141 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:141 CodeRay::Scanners::Clojure::NUM = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#137 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:137 CodeRay::Scanners::Clojure::NUM10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#138 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:138 CodeRay::Scanners::Clojure::NUM16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#140 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:140 CodeRay::Scanners::Clojure::NUM2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#139 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:139 CodeRay::Scanners::Clojure::NUM8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#78 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:78 CodeRay::Scanners::Clojure::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/clojure.rb#112 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:112 CodeRay::Scanners::Clojure::PREFIX10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#113 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:113 CodeRay::Scanners::Clojure::PREFIX16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#115 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:115 CodeRay::Scanners::Clojure::PREFIX2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#114 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:114 CodeRay::Scanners::Clojure::PREFIX8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#106 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:106 CodeRay::Scanners::Clojure::RADIX10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#103 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:103 CodeRay::Scanners::Clojure::RADIX16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#105 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:105 CodeRay::Scanners::Clojure::RADIX2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#104 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:104 CodeRay::Scanners::Clojure::RADIX8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#125 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:125 CodeRay::Scanners::Clojure::REAL10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#126 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:126 CodeRay::Scanners::Clojure::REAL16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#128 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:128 CodeRay::Scanners::Clojure::REAL2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#127 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:127 CodeRay::Scanners::Clojure::REAL8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#108 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:108 CodeRay::Scanners::Clojure::SIGN = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#11 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:11 CodeRay::Scanners::Clojure::SPECIAL_FORMS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/clojure.rb#111 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:111 CodeRay::Scanners::Clojure::SUFFIX = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#97 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:97 CodeRay::Scanners::Clojure::SYMBOL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#116 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:116 CodeRay::Scanners::Clojure::UINT10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#117 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:117 CodeRay::Scanners::Clojure::UINT16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#119 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:119 CodeRay::Scanners::Clojure::UINT2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#118 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:118 CodeRay::Scanners::Clojure::UINT8 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#121 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:121 CodeRay::Scanners::Clojure::UREAL10 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#122 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:122 CodeRay::Scanners::Clojure::UREAL16 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#124 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:124 CodeRay::Scanners::Clojure::UREAL2 = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/clojure.rb#123 +# pkg:gem/coderay#lib/coderay/scanners/clojure.rb:123 CodeRay::Scanners::Clojure::UREAL8 = T.let(T.unsafe(nil), Regexp) # = Debug Scanner # # Interprets the output of the Encoders::Debug encoder (basically the inverse function). # -# source://coderay//lib/coderay/scanners/debug.rb#9 +# pkg:gem/coderay#lib/coderay/scanners/debug.rb:9 class CodeRay::Scanners::Debug < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/debug.rb#21 + # pkg:gem/coderay#lib/coderay/scanners/debug.rb:21 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/debug.rb#16 + # pkg:gem/coderay#lib/coderay/scanners/debug.rb:16 def setup; end end @@ -2083,157 +2007,157 @@ end # # Alias: +pascal+ # -# source://coderay//lib/coderay/scanners/delphi.rb#7 +# pkg:gem/coderay#lib/coderay/scanners/delphi.rb:7 class CodeRay::Scanners::Delphi < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/delphi.rb#45 + # pkg:gem/coderay#lib/coderay/scanners/delphi.rb:45 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/delphi.rb#25 +# pkg:gem/coderay#lib/coderay/scanners/delphi.rb:25 CodeRay::Scanners::Delphi::DIRECTIVES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/delphi.rb#36 +# pkg:gem/coderay#lib/coderay/scanners/delphi.rb:36 CodeRay::Scanners::Delphi::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) -# source://coderay//lib/coderay/scanners/delphi.rb#12 +# pkg:gem/coderay#lib/coderay/scanners/delphi.rb:12 CodeRay::Scanners::Delphi::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/delphi.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/delphi.rb:40 CodeRay::Scanners::Delphi::NAME_FOLLOWS = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) # Scanner for output of the diff command. # # Alias: +patch+ # -# source://coderay//lib/coderay/scanners/diff.rb#7 +# pkg:gem/coderay#lib/coderay/scanners/diff.rb:7 class CodeRay::Scanners::Diff < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/diff.rb#19 + # pkg:gem/coderay#lib/coderay/scanners/diff.rb:19 def scan_tokens(encoder, options); end private - # source://coderay//lib/coderay/scanners/diff.rb#204 + # pkg:gem/coderay#lib/coderay/scanners/diff.rb:204 def diff(a, b); end end -# source://coderay//lib/coderay/scanners/diff.rb#12 +# pkg:gem/coderay#lib/coderay/scanners/diff.rb:12 CodeRay::Scanners::Diff::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # Scanner for HTML ERB templates. # -# source://coderay//lib/coderay/scanners/erb.rb#8 +# pkg:gem/coderay#lib/coderay/scanners/erb.rb:8 class CodeRay::Scanners::ERB < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/erb.rb#38 + # pkg:gem/coderay#lib/coderay/scanners/erb.rb:38 def reset_instance; end - # source://coderay//lib/coderay/scanners/erb.rb#43 + # pkg:gem/coderay#lib/coderay/scanners/erb.rb:43 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/erb.rb#33 + # pkg:gem/coderay#lib/coderay/scanners/erb.rb:33 def setup; end end -# source://coderay//lib/coderay/scanners/erb.rb#15 +# pkg:gem/coderay#lib/coderay/scanners/erb.rb:15 CodeRay::Scanners::ERB::ERB_RUBY_BLOCK = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/erb.rb#13 +# pkg:gem/coderay#lib/coderay/scanners/erb.rb:13 CodeRay::Scanners::ERB::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/erb.rb#27 +# pkg:gem/coderay#lib/coderay/scanners/erb.rb:27 CodeRay::Scanners::ERB::START_OF_ERB = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/go.rb#4 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:4 class CodeRay::Scanners::Go < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/go.rb#50 + # pkg:gem/coderay#lib/coderay/scanners/go.rb:50 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/go.rb#45 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:45 CodeRay::Scanners::Go::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/go.rb#39 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:39 CodeRay::Scanners::Go::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) # http://golang.org/ref/spec#Keywords # -# source://coderay//lib/coderay/scanners/go.rb#10 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:10 CodeRay::Scanners::Go::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/go.rb#29 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:29 CodeRay::Scanners::Go::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/go.rb#34 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:34 CodeRay::Scanners::Go::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array) # http://golang.org/ref/spec#Types # -# source://coderay//lib/coderay/scanners/go.rb#19 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:19 CodeRay::Scanners::Go::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/go.rb#46 +# pkg:gem/coderay#lib/coderay/scanners/go.rb:46 CodeRay::Scanners::Go::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # Scanner for Groovy. # -# source://coderay//lib/coderay/scanners/groovy.rb#7 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:7 class CodeRay::Scanners::Groovy < ::CodeRay::Scanners::Java protected - # source://coderay//lib/coderay/scanners/groovy.rb#43 + # pkg:gem/coderay#lib/coderay/scanners/groovy.rb:43 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/groovy.rb#39 + # pkg:gem/coderay#lib/coderay/scanners/groovy.rb:39 def setup; end end -# source://coderay//lib/coderay/scanners/groovy.rb#24 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:24 CodeRay::Scanners::Groovy::ESCAPE = T.let(T.unsafe(nil), Regexp) # TODO: check list of keywords # -# source://coderay//lib/coderay/scanners/groovy.rb#12 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:12 CodeRay::Scanners::Groovy::GROOVY_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/groovy.rb#18 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:18 CodeRay::Scanners::Groovy::GROOVY_MAGIC_VARIABLES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/groovy.rb#20 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:20 CodeRay::Scanners::Groovy::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/groovy.rb#15 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:15 CodeRay::Scanners::Groovy::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/groovy.rb#26 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:26 CodeRay::Scanners::Groovy::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp) # TODO: interpretation inside ', ", / # -# source://coderay//lib/coderay/scanners/groovy.rb#29 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:29 CodeRay::Scanners::Groovy::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/groovy.rb#25 +# pkg:gem/coderay#lib/coderay/scanners/groovy.rb:25 CodeRay::Scanners::Groovy::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/haml.rb#8 +# pkg:gem/coderay#lib/coderay/scanners/haml.rb:8 class CodeRay::Scanners::HAML < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/haml.rb#24 + # pkg:gem/coderay#lib/coderay/scanners/haml.rb:24 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/haml.rb#17 + # pkg:gem/coderay#lib/coderay/scanners/haml.rb:17 def setup; end end -# source://coderay//lib/coderay/scanners/haml.rb#13 +# pkg:gem/coderay#lib/coderay/scanners/haml.rb:13 CodeRay::Scanners::HAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) # HTML Scanner @@ -2242,184 +2166,186 @@ CodeRay::Scanners::HAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) # # See also: Scanners::XML # -# source://coderay//lib/coderay/scanners/html.rb#9 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:9 class CodeRay::Scanners::HTML < ::CodeRay::Scanners::Scanner - # source://coderay//lib/coderay/scanners/html.rb#62 + # pkg:gem/coderay#lib/coderay/scanners/html.rb:62 def reset; end protected - # source://coderay//lib/coderay/scanners/html.rb#83 + # pkg:gem/coderay#lib/coderay/scanners/html.rb:83 def scan_css(encoder, code, state = T.unsafe(nil)); end - # source://coderay//lib/coderay/scanners/html.rb#76 + # pkg:gem/coderay#lib/coderay/scanners/html.rb:76 def scan_java_script(encoder, code); end - # source://coderay//lib/coderay/scanners/html.rb#90 + # pkg:gem/coderay#lib/coderay/scanners/html.rb:90 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/html.rb#70 + # pkg:gem/coderay#lib/coderay/scanners/html.rb:70 def setup; end end -# source://coderay//lib/coderay/scanners/html.rb#39 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:39 CodeRay::Scanners::HTML::ATTR_NAME = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/html.rb#42 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:42 CodeRay::Scanners::HTML::ENTITY = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/html.rb#20 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:20 CodeRay::Scanners::HTML::EVENT_ATTRIBUTES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/html.rb#41 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:41 CodeRay::Scanners::HTML::HEX = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/html.rb#35 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:35 CodeRay::Scanners::HTML::IN_ATTRIBUTE = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) -# source://coderay//lib/coderay/scanners/html.rb#13 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:13 CodeRay::Scanners::HTML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/html.rb#57 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:57 CodeRay::Scanners::HTML::PLAIN_STRING_CONTENT = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/html.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/html.rb:40 CodeRay::Scanners::HTML::TAG_END = T.let(T.unsafe(nil), Regexp) # Scanner for JSON (JavaScript Object Notation). # -# source://coderay//lib/coderay/scanners/json.rb#5 +# pkg:gem/coderay#lib/coderay/scanners/json.rb:5 class CodeRay::Scanners::JSON < ::CodeRay::Scanners::Scanner protected # See http://json.org/ for a definition of the JSON lexic/grammar. # - # source://coderay//lib/coderay/scanners/json.rb#26 + # pkg:gem/coderay#lib/coderay/scanners/json.rb:26 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/json.rb#21 + # pkg:gem/coderay#lib/coderay/scanners/json.rb:21 def setup; end end -# source://coderay//lib/coderay/scanners/json.rb#15 +# pkg:gem/coderay#lib/coderay/scanners/json.rb:15 CodeRay::Scanners::JSON::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/json.rb#17 +# pkg:gem/coderay#lib/coderay/scanners/json.rb:17 CodeRay::Scanners::JSON::KEY = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/json.rb#10 +# pkg:gem/coderay#lib/coderay/scanners/json.rb:10 CodeRay::Scanners::JSON::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/json.rb#16 +# pkg:gem/coderay#lib/coderay/scanners/json.rb:16 CodeRay::Scanners::JSON::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # Scanner for Java. # -# source://coderay//lib/coderay/scanners/java.rb#5 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:5 class CodeRay::Scanners::Java < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/java.rb#51 + # pkg:gem/coderay#lib/coderay/scanners/java.rb:51 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/java/builtin_types.rb#4 +# pkg:gem/coderay#lib/coderay/scanners/java/builtin_types.rb:4 module CodeRay::Scanners::Java::BuiltinTypes; end -# source://coderay//lib/coderay/scanners/java/builtin_types.rb#7 +# :nocov: +# +# pkg:gem/coderay#lib/coderay/scanners/java/builtin_types.rb:7 CodeRay::Scanners::Java::BuiltinTypes::List = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#19 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:19 CodeRay::Scanners::Java::CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#25 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:25 CodeRay::Scanners::Java::DIRECTIVES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:40 CodeRay::Scanners::Java::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/java.rb#47 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:47 CodeRay::Scanners::Java::IDENT = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/java.rb#30 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:30 CodeRay::Scanners::Java::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) # http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html # -# source://coderay//lib/coderay/scanners/java.rb#12 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:12 CodeRay::Scanners::Java::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#20 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:20 CodeRay::Scanners::Java::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#18 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:18 CodeRay::Scanners::Java::RESERVED = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#42 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:42 CodeRay::Scanners::Java::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/java.rb#21 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:21 CodeRay::Scanners::Java::TYPES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java.rb#41 +# pkg:gem/coderay#lib/coderay/scanners/java.rb:41 CodeRay::Scanners::Java::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # Scanner for JavaScript. # # Aliases: +ecmascript+, +ecma_script+, +javascript+ # -# source://coderay//lib/coderay/scanners/java_script.rb#7 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:7 class CodeRay::Scanners::JavaScript < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/java_script.rb#224 + # pkg:gem/coderay#lib/coderay/scanners/java_script.rb:224 def reset_instance; end - # source://coderay//lib/coderay/scanners/java_script.rb#61 + # pkg:gem/coderay#lib/coderay/scanners/java_script.rb:61 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/java_script.rb#57 + # pkg:gem/coderay#lib/coderay/scanners/java_script.rb:57 def setup; end - # source://coderay//lib/coderay/scanners/java_script.rb#229 + # pkg:gem/coderay#lib/coderay/scanners/java_script.rb:229 def xml_scanner; end end -# source://coderay//lib/coderay/scanners/java_script.rb#42 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:42 CodeRay::Scanners::JavaScript::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/java_script.rb#36 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:36 CodeRay::Scanners::JavaScript::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) # The actual JavaScript keywords. # -# source://coderay//lib/coderay/scanners/java_script.rb#13 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:13 CodeRay::Scanners::JavaScript::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java_script.rb#24 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:24 CodeRay::Scanners::JavaScript::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/java_script.rb#50 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:50 CodeRay::Scanners::JavaScript::KEY_CHECK_PATTERN = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/java_script.rb#22 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:22 CodeRay::Scanners::JavaScript::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java_script.rb#18 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:18 CodeRay::Scanners::JavaScript::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java_script.rb#44 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:44 CodeRay::Scanners::JavaScript::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp) # Reserved for future use. # -# source://coderay//lib/coderay/scanners/java_script.rb#29 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:29 CodeRay::Scanners::JavaScript::RESERVED_WORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/java_script.rb#45 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:45 CodeRay::Scanners::JavaScript::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/java_script.rb#43 +# pkg:gem/coderay#lib/coderay/scanners/java_script.rb:43 CodeRay::Scanners::JavaScript::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # Scanner for the Lua[http://lua.org] programming lanuage. @@ -2428,34 +2354,34 @@ CodeRay::Scanners::JavaScript::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # {the Lua manual}[http://www.lua.org/manual/5.2/manual.html], # which is what this scanner tries to conform to. # -# source://coderay//lib/coderay/scanners/lua.rb#11 +# pkg:gem/coderay#lib/coderay/scanners/lua.rb:11 class CodeRay::Scanners::Lua < ::CodeRay::Scanners::Scanner protected # CodeRay entry hook. Starts parsing. # - # source://coderay//lib/coderay/scanners/lua.rb#60 + # pkg:gem/coderay#lib/coderay/scanners/lua.rb:60 def scan_tokens(encoder, options); end # Scanner initialization. # - # source://coderay//lib/coderay/scanners/lua.rb#54 + # pkg:gem/coderay#lib/coderay/scanners/lua.rb:54 def setup; end end # Automatic token kind selection for normal words. # -# source://coderay//lib/coderay/scanners/lua.rb#46 +# pkg:gem/coderay#lib/coderay/scanners/lua.rb:46 CodeRay::Scanners::Lua::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) # Keywords used in Lua. # -# source://coderay//lib/coderay/scanners/lua.rb#18 +# pkg:gem/coderay#lib/coderay/scanners/lua.rb:18 CodeRay::Scanners::Lua::KEYWORDS = T.let(T.unsafe(nil), Array) # Constants set by the Lua core. # -# source://coderay//lib/coderay/scanners/lua.rb#25 +# pkg:gem/coderay#lib/coderay/scanners/lua.rb:25 CodeRay::Scanners::Lua::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) # The expressions contained in this array are parts of Lua’s `basic' @@ -2470,89 +2396,89 @@ CodeRay::Scanners::Lua::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) # highlighted directly accordingly, without the need for specific # identifiers to be listed here. # -# source://coderay//lib/coderay/scanners/lua.rb#38 +# pkg:gem/coderay#lib/coderay/scanners/lua.rb:38 CodeRay::Scanners::Lua::PREDEFINED_EXPRESSIONS = T.let(T.unsafe(nil), Array) # Scanner for PHP. # # Original by Stefan Walk. # -# source://coderay//lib/coderay/scanners/php.rb#10 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:10 class CodeRay::Scanners::PHP < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/php.rb#23 + # pkg:gem/coderay#lib/coderay/scanners/php.rb:23 def reset_instance; end - # source://coderay//lib/coderay/scanners/php.rb#234 + # pkg:gem/coderay#lib/coderay/scanners/php.rb:234 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/php.rb#19 + # pkg:gem/coderay#lib/coderay/scanners/php.rb:19 def setup; end end -# source://coderay//lib/coderay/scanners/php.rb#15 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:15 CodeRay::Scanners::PHP::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#197 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:197 module CodeRay::Scanners::PHP::RE; end -# source://coderay//lib/coderay/scanners/php.rb#211 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:211 CodeRay::Scanners::PHP::RE::HTML_INDICATOR = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/php.rb#213 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:213 CodeRay::Scanners::PHP::RE::IDENTIFIER = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/php.rb#216 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:216 CodeRay::Scanners::PHP::RE::OPERATOR = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/php.rb#206 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:206 CodeRay::Scanners::PHP::RE::PHP_END = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/php.rb#199 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:199 CodeRay::Scanners::PHP::RE::PHP_START = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/php.rb#214 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:214 CodeRay::Scanners::PHP::RE::VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/php.rb#28 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:28 module CodeRay::Scanners::PHP::Words; end # according to http://php.net/quickref.php on 2009-04-21; # all functions with _ excluded (module functions) and selected additional functions # -# source://coderay//lib/coderay/scanners/php.rb#50 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:50 CodeRay::Scanners::PHP::Words::BUILTIN_FUNCTIONS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#46 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:46 CodeRay::Scanners::PHP::Words::CLASSES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#145 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:145 CodeRay::Scanners::PHP::Words::CONSTANTS = T.let(T.unsafe(nil), Array) # TODO: more built-in PHP functions? # -# source://coderay//lib/coderay/scanners/php.rb#140 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:140 CodeRay::Scanners::PHP::Words::EXCEPTIONS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#184 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:184 CodeRay::Scanners::PHP::Words::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) # according to http://www.php.net/manual/en/reserved.keywords.php # -# source://coderay//lib/coderay/scanners/php.rb#31 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:31 CodeRay::Scanners::PHP::Words::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#41 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:41 CodeRay::Scanners::PHP::Words::LANGUAGE_CONSTRUCTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#178 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:178 CodeRay::Scanners::PHP::Words::PREDEFINED = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#39 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:39 CodeRay::Scanners::PHP::Words::TYPES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/php.rb#193 +# pkg:gem/coderay#lib/coderay/scanners/php.rb:193 CodeRay::Scanners::PHP::Words::VARIABLE_KIND = T.let(T.unsafe(nil), CodeRay::WordList) # Scanner for Python. Supports Python 3. @@ -2560,71 +2486,71 @@ CodeRay::Scanners::PHP::Words::VARIABLE_KIND = T.let(T.unsafe(nil), CodeRay::Wor # Based on pygments' PythonLexer, see # http://dev.pocoo.org/projects/pygments/browser/pygments/lexers/agile.py. # -# source://coderay//lib/coderay/scanners/python.rb#8 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:8 class CodeRay::Scanners::Python < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/python.rb#103 + # pkg:gem/coderay#lib/coderay/scanners/python.rb:103 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/python.rb#86 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:86 CodeRay::Scanners::Python::DEF_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/python.rb#91 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:91 CodeRay::Scanners::Python::DESCRIPTOR = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/python.rb#97 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:97 CodeRay::Scanners::Python::DOCSTRING_COMING = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/python.rb#65 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:65 CodeRay::Scanners::Python::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/python.rb#57 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:57 CodeRay::Scanners::Python::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/python.rb#13 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:13 CodeRay::Scanners::Python::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/python.rb#64 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:64 CodeRay::Scanners::Python::NAME = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/python.rb#21 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:21 CodeRay::Scanners::Python::OLD_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/python.rb#68 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:68 CodeRay::Scanners::Python::OPERATOR = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/python.rb#37 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:37 CodeRay::Scanners::Python::PREDEFINED_EXCEPTIONS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/python.rb#25 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:25 CodeRay::Scanners::Python::PREDEFINED_METHODS_AND_TYPES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/python.rb#52 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:52 CodeRay::Scanners::Python::PREDEFINED_VARIABLES_AND_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/python.rb#82 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:82 CodeRay::Scanners::Python::STRING_CONTENT_REGEXP = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/python.rb#78 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:78 CodeRay::Scanners::Python::STRING_DELIMITER_REGEXP = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/python.rb#66 +# pkg:gem/coderay#lib/coderay/scanners/python.rb:66 CodeRay::Scanners::Python::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # = Raydebug Scanner # # Highlights the output of the Encoders::Debug encoder. # -# source://coderay//lib/coderay/scanners/raydebug.rb#9 +# pkg:gem/coderay#lib/coderay/scanners/raydebug.rb:9 class CodeRay::Scanners::Raydebug < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/raydebug.rb#22 + # pkg:gem/coderay#lib/coderay/scanners/raydebug.rb:22 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/raydebug.rb#17 + # pkg:gem/coderay#lib/coderay/scanners/raydebug.rb:17 def setup; end end @@ -2636,222 +2562,230 @@ end # It is optimized for HTML highlighting, and is not very useful for # parsing or pretty printing. # -# source://coderay//lib/coderay/scanners/ruby.rb#11 +# pkg:gem/coderay#lib/coderay/scanners/ruby.rb:11 class CodeRay::Scanners::Ruby < ::CodeRay::Scanners::Scanner - # source://coderay//lib/coderay/scanners/ruby.rb#19 + # pkg:gem/coderay#lib/coderay/scanners/ruby.rb:19 def interpreted_string_state; end protected - # source://coderay//lib/coderay/scanners/ruby.rb#29 + # pkg:gem/coderay#lib/coderay/scanners/ruby.rb:29 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/ruby.rb#25 + # pkg:gem/coderay#lib/coderay/scanners/ruby.rb:25 def setup; end end -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#5 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:5 module CodeRay::Scanners::Ruby::Patterns; end -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#72 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:72 CodeRay::Scanners::Ruby::Patterns::BINARY = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#106 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:106 CodeRay::Scanners::Ruby::Patterns::CHARACTER = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#55 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:55 CodeRay::Scanners::Ruby::Patterns::CLASS_VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#96 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:96 CodeRay::Scanners::Ruby::Patterns::CONTROL_META_ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#132 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:132 CodeRay::Scanners::Ruby::Patterns::DATA = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#69 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:69 CodeRay::Scanners::Ruby::Patterns::DECIMAL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#102 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:102 CodeRay::Scanners::Ruby::Patterns::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#74 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:74 CodeRay::Scanners::Ruby::Patterns::EXPONENT = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#168 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:168 CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_INTERPRETED = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#161 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:161 CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_KIND = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#160 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:160 CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_START = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#76 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:76 CodeRay::Scanners::Ruby::Patterns::FLOAT_OR_INT = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#75 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:75 CodeRay::Scanners::Ruby::Patterns::FLOAT_SUFFIX = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#57 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:57 CodeRay::Scanners::Ruby::Patterns::GLOBAL_VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#116 +# NOTE: This is not completely correct, but +# nobody needs heredoc delimiters ending with \n. +# +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:116 CodeRay::Scanners::Ruby::Patterns::HEREDOC_OPEN = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#71 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:71 CodeRay::Scanners::Ruby::Patterns::HEXADECIMAL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#38 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:38 CodeRay::Scanners::Ruby::Patterns::IDENT = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#28 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:28 CodeRay::Scanners::Ruby::Patterns::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#54 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:54 CodeRay::Scanners::Ruby::Patterns::INSTANCE_VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#7 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:7 CodeRay::Scanners::Ruby::Patterns::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#151 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:151 CodeRay::Scanners::Ruby::Patterns::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#32 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:32 CodeRay::Scanners::Ruby::Patterns::KEYWORD_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#53 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:53 CodeRay::Scanners::Ruby::Patterns::METHOD_AFTER_DOT = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:40 CodeRay::Scanners::Ruby::Patterns::METHOD_NAME = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#52 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:52 CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_EX = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#41 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:41 CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OPERATOR = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#87 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:87 CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OR_SYMBOL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#51 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:51 CodeRay::Scanners::Ruby::Patterns::METHOD_SUFFIX = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#77 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:77 CodeRay::Scanners::Ruby::Patterns::NUMERIC = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#56 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:56 CodeRay::Scanners::Ruby::Patterns::OBJECT_VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#70 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:70 CodeRay::Scanners::Ruby::Patterns::OCTAL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#17 +# See http://murfy.de/ruby-constants. +# +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:17 CodeRay::Scanners::Ruby::Patterns::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#58 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:58 CodeRay::Scanners::Ruby::Patterns::PREFIX_VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#61 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:61 CodeRay::Scanners::Ruby::Patterns::QUOTE_TO_TYPE = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#67 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:67 CodeRay::Scanners::Ruby::Patterns::REGEXP_MODIFIERS = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#126 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:126 CodeRay::Scanners::Ruby::Patterns::RUBYDOC = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#138 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:138 CodeRay::Scanners::Ruby::Patterns::RUBYDOC_OR_DATA = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#89 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:89 CodeRay::Scanners::Ruby::Patterns::SIMPLE_ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#79 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:79 CodeRay::Scanners::Ruby::Patterns::SYMBOL = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#142 +# Checks for a valid value to follow. This enables +# value_expected in method calls without parentheses. +# +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:142 CodeRay::Scanners::Ruby::Patterns::VALUE_FOLLOWS = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#59 +# pkg:gem/coderay#lib/coderay/scanners/ruby/patterns.rb:59 CodeRay::Scanners::Ruby::Patterns::VARIABLE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/ruby/string_state.rb#8 +# pkg:gem/coderay#lib/coderay/scanners/ruby/string_state.rb:7 class CodeRay::Scanners::Ruby::StringState < ::Struct - # @return [StringState] a new instance of StringState - # - # source://coderay//lib/coderay/scanners/ruby/string_state.rb#48 + # pkg:gem/coderay#lib/coderay/scanners/ruby/string_state.rb:48 def initialize(kind, interpreted, delim, heredoc = T.unsafe(nil)); end - # source://coderay//lib/coderay/scanners/ruby/string_state.rb#63 + # pkg:gem/coderay#lib/coderay/scanners/ruby/string_state.rb:63 def heredoc_pattern(delim, interpreted, indented); end class << self - # source://coderay//lib/coderay/scanners/ruby/string_state.rb#40 + # pkg:gem/coderay#lib/coderay/scanners/ruby/string_state.rb:40 def simple_key_pattern(delim); end end end -# source://coderay//lib/coderay/scanners/ruby/string_state.rb#10 +# pkg:gem/coderay#lib/coderay/scanners/ruby/string_state.rb:10 CodeRay::Scanners::Ruby::StringState::CLOSING_PAREN = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/ruby/string_state.rb#17 +# debug, if I try to change it with << +# +# pkg:gem/coderay#lib/coderay/scanners/ruby/string_state.rb:17 CodeRay::Scanners::Ruby::StringState::STRING_PATTERN = T.let(T.unsafe(nil), Hash) # by Josh Goebel # -# source://coderay//lib/coderay/scanners/sql.rb#5 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:5 class CodeRay::Scanners::SQL < ::CodeRay::Scanners::Scanner - # source://coderay//lib/coderay/scanners/sql.rb#66 + # pkg:gem/coderay#lib/coderay/scanners/sql.rb:66 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/sql.rb#23 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:23 CodeRay::Scanners::SQL::COMMANDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#38 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:38 CodeRay::Scanners::SQL::DIRECTIVES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#55 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:55 CodeRay::Scanners::SQL::ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/sql.rb#46 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:46 CodeRay::Scanners::SQL::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) -# source://coderay//lib/coderay/scanners/sql.rb#9 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:9 CodeRay::Scanners::SQL::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#18 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:18 CodeRay::Scanners::SQL::OBJECTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#44 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:44 CodeRay::Scanners::SQL::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#36 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:36 CodeRay::Scanners::SQL::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#28 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:28 CodeRay::Scanners::SQL::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/scanners/sql.rb#60 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:60 CodeRay::Scanners::SQL::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/sql.rb#58 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:58 CodeRay::Scanners::SQL::STRING_PREFIXES = T.let(T.unsafe(nil), Regexp) -# source://coderay//lib/coderay/scanners/sql.rb#56 +# pkg:gem/coderay#lib/coderay/scanners/sql.rb:56 CodeRay::Scanners::SQL::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) # A scanner for Sass. # -# source://coderay//lib/coderay/scanners/sass.rb#5 +# pkg:gem/coderay#lib/coderay/scanners/sass.rb:5 class CodeRay::Scanners::Sass < ::CodeRay::Scanners::CSS protected - # source://coderay//lib/coderay/scanners/sass.rb#16 + # pkg:gem/coderay#lib/coderay/scanners/sass.rb:16 def scan_tokens(encoder, options); end - # source://coderay//lib/coderay/scanners/sass.rb#12 + # pkg:gem/coderay#lib/coderay/scanners/sass.rb:12 def setup; end end @@ -2879,7 +2813,7 @@ end # You can also use +map+, +any?+, +find+ and even +sort_by+, # if you want. # -# source://coderay//lib/coderay/scanners/scanner.rb#29 +# pkg:gem/coderay#lib/coderay/scanners/scanner.rb:29 class CodeRay::Scanners::Scanner < ::StringScanner include ::Enumerable extend ::CodeRay::Plugin @@ -2894,9 +2828,7 @@ class CodeRay::Scanners::Scanner < ::StringScanner # # Else, a Tokens object is used. # - # @return [Scanner] a new instance of Scanner - # - # source://coderay//lib/coderay/scanners/scanner.rb#125 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:125 def initialize(code = T.unsafe(nil), options = T.unsafe(nil)); end # The string in binary encoding. @@ -2904,28 +2836,28 @@ class CodeRay::Scanners::Scanner < ::StringScanner # To be used with #pos, which is the index of the byte the scanner # will scan next. # - # source://coderay//lib/coderay/scanners/scanner.rb#218 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:218 def binary_string; end # The current column position of the scanner, starting with 1. # See also: #line. # - # source://coderay//lib/coderay/scanners/scanner.rb#209 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:209 def column(pos = T.unsafe(nil)); end # Traverse the tokens. # - # source://coderay//lib/coderay/scanners/scanner.rb#192 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:192 def each(&block); end # the default file extension for this scanner # - # source://coderay//lib/coderay/scanners/scanner.rb#160 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:160 def file_extension; end # the Plugin ID for this scanner # - # source://coderay//lib/coderay/scanners/scanner.rb#155 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:155 def lang; end # The current line position of the scanner, starting with 1. @@ -2934,63 +2866,55 @@ class CodeRay::Scanners::Scanner < ::StringScanner # Beware, this is implemented inefficiently. It should be used # for debugging only. # - # source://coderay//lib/coderay/scanners/scanner.rb#202 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:202 def line(pos = T.unsafe(nil)); end # Sets back the scanner. Subclasses should redefine the reset_instance # method instead of this one. # - # source://coderay//lib/coderay/scanners/scanner.rb#142 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:142 def reset; end - # Returns the value of attribute state. - # - # source://coderay//lib/coderay/scanners/scanner.rb#44 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:44 def state; end - # Sets the attribute state - # - # @param value the value to set the attribute state to. - # - # source://coderay//lib/coderay/scanners/scanner.rb#44 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:44 def state=(_arg0); end # Set a new string to be scanned. # - # source://coderay//lib/coderay/scanners/scanner.rb#148 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:148 def string=(code); end # Scan the code and returns all tokens in a Tokens object. # - # source://coderay//lib/coderay/scanners/scanner.rb#165 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:165 def tokenize(source = T.unsafe(nil), options = T.unsafe(nil)); end # Cache the result of tokenize. # - # source://coderay//lib/coderay/scanners/scanner.rb#187 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:187 def tokens; end protected # Scanner error with additional status information # - # @raise [ScanError] - # - # source://coderay//lib/coderay/scanners/scanner.rb#314 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:314 def raise_inspect(message, tokens, state = T.unsafe(nil), ambit = T.unsafe(nil), backtrace = T.unsafe(nil)); end - # source://coderay//lib/coderay/scanners/scanner.rb#289 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:289 def raise_inspect_arguments(message, tokens, state, ambit); end # Resets the scanner. # - # source://coderay//lib/coderay/scanners/scanner.rb#265 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:265 def reset_instance; end # Shorthand for scan_until(/\z/). # This method also avoids a JRuby 1.9 mode bug. # - # source://coderay//lib/coderay/scanners/scanner.rb#328 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:328 def scan_rest; end # This is the central method, and commonly the only one a @@ -2999,18 +2923,16 @@ class CodeRay::Scanners::Scanner < ::StringScanner # Subclasses must implement this method; it must return +tokens+ # and must only use Tokens#<< for storing scanned tokens! # - # @raise [NotImplementedError] - # - # source://coderay//lib/coderay/scanners/scanner.rb#260 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:260 def scan_tokens(tokens, options); end - # source://coderay//lib/coderay/scanners/scanner.rb#305 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:305 def scanner_state_info(state); end - # source://coderay//lib/coderay/scanners/scanner.rb#239 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:239 def set_string_from_source(source); end - # source://coderay//lib/coderay/scanners/scanner.rb#250 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:250 def set_tokens_from_options(options); end # Can be implemented by subclasses to do some initialization @@ -3019,47 +2941,47 @@ class CodeRay::Scanners::Scanner < ::StringScanner # Use reset for initialization that has to be done once per # scan. # - # source://coderay//lib/coderay/scanners/scanner.rb#236 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:236 def setup; end - # source://coderay//lib/coderay/scanners/scanner.rb#322 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:322 def tokens_last(tokens, n); end - # source://coderay//lib/coderay/scanners/scanner.rb#318 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:318 def tokens_size(tokens); end class << self # The encoding used internally by this scanner. # - # source://coderay//lib/coderay/scanners/scanner.rb#71 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:71 def encoding(name = T.unsafe(nil)); end # The typical filename suffix for this scanner's language. # - # source://coderay//lib/coderay/scanners/scanner.rb#66 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:66 def file_extension(extension = T.unsafe(nil)); end # The lang of this Scanner class, which is equal to its Plugin ID. # - # source://coderay//lib/coderay/scanners/scanner.rb#76 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:76 def lang; end # Normalizes the given code into a string with UNIX newlines, in the # scanner's internal encoding, with invalid and undefined charachters # replaced by placeholders. Always returns a new object. # - # source://coderay//lib/coderay/scanners/scanner.rb#51 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:51 def normalize(code); end protected - # source://coderay//lib/coderay/scanners/scanner.rb#82 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:82 def encode_with_encoding(code, target_encoding); end - # source://coderay//lib/coderay/scanners/scanner.rb#100 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:100 def guess_encoding(s); end - # source://coderay//lib/coderay/scanners/scanner.rb#96 + # pkg:gem/coderay#lib/coderay/scanners/scanner.rb:96 def to_unix(code); end end end @@ -3068,31 +2990,31 @@ end # # Define @default_options for subclasses. # -# source://coderay//lib/coderay/scanners/scanner.rb#40 +# pkg:gem/coderay#lib/coderay/scanners/scanner.rb:40 CodeRay::Scanners::Scanner::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/scanners/scanner.rb#42 +# pkg:gem/coderay#lib/coderay/scanners/scanner.rb:42 CodeRay::Scanners::Scanner::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) -# source://coderay//lib/coderay/helpers/plugin.rb#41 +# pkg:gem/coderay#lib/coderay/helpers/plugin.rb:41 CodeRay::Scanners::Scanner::PLUGIN_HOST = CodeRay::Scanners -# source://coderay//lib/coderay/scanners/scanner.rb#299 +# pkg:gem/coderay#lib/coderay/scanners/scanner.rb:299 CodeRay::Scanners::Scanner::SCANNER_STATE_INFO = T.let(T.unsafe(nil), String) -# source://coderay//lib/coderay/scanners/scanner.rb#271 +# pkg:gem/coderay#lib/coderay/scanners/scanner.rb:271 CodeRay::Scanners::Scanner::SCAN_ERROR_MESSAGE = T.let(T.unsafe(nil), String) # Raised if a Scanner fails while scanning # -# source://coderay//lib/coderay/scanners/scanner.rb#35 +# pkg:gem/coderay#lib/coderay/scanners/scanner.rb:35 class CodeRay::Scanners::Scanner::ScanError < ::StandardError; end -# source://coderay//lib/coderay/scanners/taskpaper.rb#4 +# pkg:gem/coderay#lib/coderay/scanners/taskpaper.rb:4 class CodeRay::Scanners::Taskpaper < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/taskpaper.rb#11 + # pkg:gem/coderay#lib/coderay/scanners/taskpaper.rb:11 def scan_tokens(encoder, options); end end @@ -3102,77 +3024,77 @@ end # # Alias: +plaintext+, +plain+ # -# source://coderay//lib/coderay/scanners/text.rb#9 +# pkg:gem/coderay#lib/coderay/scanners/text.rb:9 class CodeRay::Scanners::Text < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/text.rb#18 + # pkg:gem/coderay#lib/coderay/scanners/text.rb:18 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/text.rb#14 +# pkg:gem/coderay#lib/coderay/scanners/text.rb:14 CodeRay::Scanners::Text::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) # Scanner for XML. # # Currently this is the same scanner as Scanners::HTML. # -# source://coderay//lib/coderay/scanners/xml.rb#9 +# pkg:gem/coderay#lib/coderay/scanners/xml.rb:9 class CodeRay::Scanners::XML < ::CodeRay::Scanners::HTML; end # Scanner for YAML. # # Based on the YAML scanner from Syntax by Jamis Buck. # -# source://coderay//lib/coderay/scanners/yaml.rb#7 +# pkg:gem/coderay#lib/coderay/scanners/yaml.rb:7 class CodeRay::Scanners::YAML < ::CodeRay::Scanners::Scanner protected - # source://coderay//lib/coderay/scanners/yaml.rb#16 + # pkg:gem/coderay#lib/coderay/scanners/yaml.rb:16 def scan_tokens(encoder, options); end end -# source://coderay//lib/coderay/scanners/yaml.rb#12 +# pkg:gem/coderay#lib/coderay/scanners/yaml.rb:12 CodeRay::Scanners::YAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Symbol) # This module holds the Style class and its subclasses. # # See Plugin. # -# source://coderay//lib/coderay/styles.rb#6 +# pkg:gem/coderay#lib/coderay/styles.rb:6 module CodeRay::Styles extend ::CodeRay::PluginHost end # A colorful theme using CSS 3 colors (with alpha channel). # -# source://coderay//lib/coderay/styles/alpha.rb#5 +# pkg:gem/coderay#lib/coderay/styles/alpha.rb:5 class CodeRay::Styles::Alpha < ::CodeRay::Styles::Style; end -# source://coderay//lib/coderay/styles/alpha.rb#14 +# pkg:gem/coderay#lib/coderay/styles/alpha.rb:14 CodeRay::Styles::Alpha::CSS_MAIN_STYLES = T.let(T.unsafe(nil), String) -# source://coderay//lib/coderay/styles/alpha.rb#53 +# pkg:gem/coderay#lib/coderay/styles/alpha.rb:53 CodeRay::Styles::Alpha::TOKEN_COLORS = T.let(T.unsafe(nil), String) # Base class for styles. # # Styles are used by Encoders::HTML to colorize tokens. # -# source://coderay//lib/coderay/styles/style.rb#8 +# pkg:gem/coderay#lib/coderay/styles/style.rb:8 class CodeRay::Styles::Style extend ::CodeRay::Plugin end -# source://coderay//lib/coderay/styles/style.rb#12 +# pkg:gem/coderay#lib/coderay/styles/style.rb:12 CodeRay::Styles::Style::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://coderay//lib/coderay/helpers/plugin.rb#41 +# pkg:gem/coderay#lib/coderay/helpers/plugin.rb:41 CodeRay::Styles::Style::PLUGIN_HOST = CodeRay::Styles # A Hash of all known token kinds and their associated CSS classes. # -# source://coderay//lib/coderay/token_kinds.rb#4 +# pkg:gem/coderay#lib/coderay/token_kinds.rb:4 CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash) # The Tokens class represents a list of tokens returned from @@ -3214,17 +3136,17 @@ CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash) # You can serialize it to a JSON string and store it in a database, pass it # around to encode it more than once, send it to other algorithms... # -# source://coderay//lib/coderay/tokens.rb#41 +# pkg:gem/coderay#lib/coderay/tokens.rb:41 class CodeRay::Tokens < ::Array - # source://coderay//lib/coderay/tokens.rb#156 + # pkg:gem/coderay#lib/coderay/tokens.rb:156 def begin_group(kind); end - # source://coderay//lib/coderay/tokens.rb#158 + # pkg:gem/coderay#lib/coderay/tokens.rb:158 def begin_line(kind); end # Return the actual number of tokens. # - # source://coderay//lib/coderay/tokens.rb#151 + # pkg:gem/coderay#lib/coderay/tokens.rb:151 def count; end # Encode the tokens using encoder. @@ -3235,13 +3157,13 @@ class CodeRay::Tokens < ::Array # # options are passed to the encoder. # - # source://coderay//lib/coderay/tokens.rb#56 + # pkg:gem/coderay#lib/coderay/tokens.rb:56 def encode(encoder, options = T.unsafe(nil)); end - # source://coderay//lib/coderay/tokens.rb#157 + # pkg:gem/coderay#lib/coderay/tokens.rb:157 def end_group(kind); end - # source://coderay//lib/coderay/tokens.rb#159 + # pkg:gem/coderay#lib/coderay/tokens.rb:159 def end_line(kind); end # Redirects unknown methods to encoder calls. @@ -3249,17 +3171,17 @@ class CodeRay::Tokens < ::Array # For example, if you call +tokens.html+, the HTML encoder # is used to highlight the tokens. # - # source://coderay//lib/coderay/tokens.rb#70 + # pkg:gem/coderay#lib/coderay/tokens.rb:70 def method_missing(meth, options = T.unsafe(nil)); end # The Scanner instance that created the tokens. # - # source://coderay//lib/coderay/tokens.rb#47 + # pkg:gem/coderay#lib/coderay/tokens.rb:47 def scanner; end # The Scanner instance that created the tokens. # - # source://coderay//lib/coderay/tokens.rb#47 + # pkg:gem/coderay#lib/coderay/tokens.rb:47 def scanner=(_arg0); end # Split the tokens into parts of the given +sizes+. @@ -3272,18 +3194,18 @@ class CodeRay::Tokens < ::Array # This method is used by @Scanner#tokenize@ when called with an Array # of source strings. The Diff encoder uses it for inline highlighting. # - # source://coderay//lib/coderay/tokens.rb#85 + # pkg:gem/coderay#lib/coderay/tokens.rb:85 def split_into_parts(*sizes); end - # source://coderay//lib/coderay/tokens.rb#155 + # pkg:gem/coderay#lib/coderay/tokens.rb:155 def text_token(*_arg0); end # Turn tokens into a string by concatenating them. # - # source://coderay//lib/coderay/tokens.rb#62 + # pkg:gem/coderay#lib/coderay/tokens.rb:62 def to_s; end - # source://coderay//lib/coderay/tokens.rb#160 + # pkg:gem/coderay#lib/coderay/tokens.rb:160 def tokens(*_arg0); end end @@ -3292,92 +3214,66 @@ end # This proxy makes it possible to use the classic CodeRay.scan.encode API # while still providing the benefits of direct streaming. # -# source://coderay//lib/coderay/tokens_proxy.rb#7 +# pkg:gem/coderay#lib/coderay/tokens_proxy.rb:7 class CodeRay::TokensProxy # Create a new TokensProxy with the arguments of CodeRay.scan. # - # @return [TokensProxy] a new instance of TokensProxy - # - # source://coderay//lib/coderay/tokens_proxy.rb#12 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:12 def initialize(input, lang, options = T.unsafe(nil), block = T.unsafe(nil)); end - # Returns the value of attribute block. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def block; end - # Sets the attribute block - # - # @param value the value to set the attribute block to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def block=(_arg0); end # Overwrite Struct#each. # - # source://coderay//lib/coderay/tokens_proxy.rb#48 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:48 def each(*args, &blk); end # Call CodeRay.encode if +encoder+ is a Symbol; # otherwise, convert the receiver to tokens and call encoder.encode_tokens. # - # source://coderay//lib/coderay/tokens_proxy.rb#21 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:21 def encode(encoder, options = T.unsafe(nil)); end - # Returns the value of attribute input. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def input; end - # Sets the attribute input - # - # @param value the value to set the attribute input to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def input=(_arg0); end - # Returns the value of attribute lang. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def lang; end - # Sets the attribute lang - # - # @param value the value to set the attribute lang to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def lang=(_arg0); end # Tries to call encode; # delegates to tokens otherwise. # - # source://coderay//lib/coderay/tokens_proxy.rb#31 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:31 def method_missing(method, *args, &blk); end - # Returns the value of attribute options. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def options; end - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:9 def options=(_arg0); end # A (cached) scanner instance to use for the scan task. # - # source://coderay//lib/coderay/tokens_proxy.rb#43 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:43 def scanner; end # The (cached) result of the tokenized input; a Tokens instance. # - # source://coderay//lib/coderay/tokens_proxy.rb#38 + # pkg:gem/coderay#lib/coderay/tokens_proxy.rb:38 def tokens; end end -# source://coderay//lib/coderay/version.rb#2 +# pkg:gem/coderay#lib/coderay/version.rb:2 CodeRay::VERSION = T.let(T.unsafe(nil), String) # = WordList @@ -3418,31 +3314,29 @@ CodeRay::VERSION = T.let(T.unsafe(nil), String) # kind = IDENT_KIND[match] # ... # -# source://coderay//lib/coderay/helpers/word_list.rb#40 +# pkg:gem/coderay#lib/coderay/helpers/word_list.rb:40 class CodeRay::WordList < ::Hash # Create a new WordList with +default+ as default value. # - # @return [WordList] a new instance of WordList - # - # source://coderay//lib/coderay/helpers/word_list.rb#43 + # pkg:gem/coderay#lib/coderay/helpers/word_list.rb:43 def initialize(default = T.unsafe(nil)); end # Add words to the list and associate them with +value+. # # Returns +self+, so you can concat add calls. # - # source://coderay//lib/coderay/helpers/word_list.rb#50 + # pkg:gem/coderay#lib/coderay/helpers/word_list.rb:50 def add(words, value = T.unsafe(nil)); end end # A CaseIgnoring WordList is like a WordList, only that # keys are compared case-insensitively (normalizing keys using +downcase+). # -# source://coderay//lib/coderay/helpers/word_list.rb#60 +# pkg:gem/coderay#lib/coderay/helpers/word_list.rb:60 class CodeRay::WordList::CaseIgnoring < ::CodeRay::WordList - # source://coderay//lib/coderay/helpers/word_list.rb#62 + # pkg:gem/coderay#lib/coderay/helpers/word_list.rb:62 def [](key); end - # source://coderay//lib/coderay/helpers/word_list.rb#66 + # pkg:gem/coderay#lib/coderay/helpers/word_list.rb:66 def []=(key, value); end end diff --git a/sorbet/rbi/gems/concurrent-ruby@1.3.6.rbi b/sorbet/rbi/gems/concurrent-ruby@1.3.6.rbi index 98fdf89..022cfe1 100644 --- a/sorbet/rbi/gems/concurrent-ruby@1.3.6.rbi +++ b/sorbet/rbi/gems/concurrent-ruby@1.3.6.rbi @@ -6,8 +6,10 @@ # {include:file:README.md} +# load native parts first +# load native parts first # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/constants.rb#1 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/constants.rb:1 module Concurrent extend ::Concurrent::Utility::EngineDetector extend ::Concurrent::Utility::NativeExtensionLoader @@ -18,9 +20,7 @@ module Concurrent # Abort a currently running transaction - see `Concurrent::atomically`. # - # @raise [Transaction::AbortError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:139 def abort_transaction; end # Run a block that reads and writes `TVar`s as a single atomic transaction. @@ -50,66 +50,67 @@ module Concurrent # b = new TVar(100) # # Concurrent::atomically do - # a.value -= 10 - # b.value += 10 + # a.value -= 10 + # b.value += 10 # end - # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#82 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:82 def atomically; end - # @raise [ArgumentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:56 def call_dataflow(method, executor, *inputs, &block); end # Dataflow allows you to create a task that will be scheduled when all of its data dependencies are available. # {include:file:docs-source/dataflow.md} # - # @param inputs [Future] zero or more `Future` operations that this dataflow depends upon - # @raise [ArgumentError] if no block is given - # @raise [ArgumentError] if any of the inputs are not `IVar`s - # @return [Object] the result of all the operations + # @param [Future] inputs zero or more `Future` operations that this dataflow depends upon + # # @yield The operation to perform once all the dependencies are met - # @yieldparam inputs [Future] each of the `Future` inputs to the dataflow + # @yieldparam [Future] inputs 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 + # @return [Object] the result of all the operations + # + # @raise [ArgumentError] if no block is given + # @raise [ArgumentError] if any of the inputs are not `IVar`s + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:34 def dataflow(*inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:44 def dataflow!(*inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#39 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:39 def dataflow_with(executor, *inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#49 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:49 def dataflow_with!(executor, *inputs, &block); end # Leave a transaction without committing or aborting - see `Concurrent::atomically`. # - # @raise [Transaction::LeaveError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#144 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:144 def leave_transaction; end - # Returns the current time as tracked by the application monotonic clock. + # @!macro monotonic_get_time # - # @param unit [Symbol] the time unit to be returned, can be either - # :float_second, :float_millisecond, :float_microsecond, :second, - # :millisecond, :microsecond, or :nanosecond default to :float_second. - # @return [Float] The current monotonic time since some unspecified - # starting point + # Returns the current time as tracked by the application monotonic clock. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/monotonic_time.rb#15 + # @param [Symbol] unit the time unit to be returned, can be either + # :float_second, :float_millisecond, :float_microsecond, :second, + # :millisecond, :microsecond, or :nanosecond default to :float_second. + # + # @return [Float] The current monotonic time since some unspecified + # starting point + # + # @!macro monotonic_clock_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/monotonic_time.rb:15 def monotonic_time(unit = T.unsafe(nil)); end class << self # Abort a currently running transaction - see `Concurrent::atomically`. # - # @raise [Transaction::AbortError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148 + # pkg:gem/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. @@ -139,12 +140,11 @@ module Concurrent # b = new TVar(100) # # Concurrent::atomically do - # a.value -= 10 - # b.value += 10 + # a.value -= 10 + # b.value += 10 # end - # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:148 def atomically; end # Number of processors cores available for process scheduling. @@ -157,12 +157,10 @@ module Concurrent # # @return [Float] number of available processors # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#194 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:194 def available_processor_count; end - # @raise [ArgumentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#80 + # pkg:gem/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. @@ -177,7 +175,7 @@ module Concurrent # # @return [nil, Float] Maximum number of available processors as set by a cgroup CPU quota, or nil if none set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#209 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:209 def cpu_quota; end # The CPU shares requested by the process. For performance reasons the calculated @@ -185,43 +183,45 @@ module Concurrent # # @return [Float, nil] CPU shares requested by the process, or nil if not set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#217 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:217 def cpu_shares; end # Create a simple logger with provided level and output. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#38 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:38 def create_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end # Create a stdlib logger with provided level and output. # If you use this deprecated method you might need to add logger to your Gemfile to avoid warnings from Ruby 3.3.5+. - # # @deprecated # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#73 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:73 def create_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end # Dataflow allows you to create a task that will be scheduled when all of its data dependencies are available. # {include:file:docs-source/dataflow.md} # - # @param inputs [Future] zero or more `Future` operations that this dataflow depends upon - # @raise [ArgumentError] if no block is given - # @raise [ArgumentError] if any of the inputs are not `IVar`s - # @return [Object] the result of all the operations + # @param [Future] inputs zero or more `Future` operations that this dataflow depends upon + # # @yield The operation to perform once all the dependencies are met - # @yieldparam inputs [Future] each of the `Future` inputs to the dataflow + # @yieldparam [Future] inputs 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#37 + # @return [Object] the result of all the operations + # + # @raise [ArgumentError] if no block is given + # @raise [ArgumentError] if any of the inputs are not `IVar`s + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:37 def dataflow(*inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#47 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:47 def dataflow!(*inputs, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#42 + # pkg:gem/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#52 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:52 def dataflow_with!(executor, *inputs, &block); end # Disables AtExit handlers including pool auto-termination handlers. @@ -229,7 +229,6 @@ module Concurrent # to ensure that the handlers are shutdown properly prior to application # exit by calling `AtExit.run` method. # - # @deprecated Has no effect since it is no longer needed, see https://github.com/ruby-concurrency/concurrent-ruby/pull/841. # @note this option should be needed only because of `at_exit` ordering # issues which may arise when running some of the testing frameworks. # E.g. Minitest's test-suite runs itself in `at_exit` callback which @@ -238,78 +237,81 @@ module Concurrent # @note This method should *never* be called # from within a gem. It should *only* be used from within the main # application and even then it should be used only when necessary. + # @deprecated Has no effect since it is no longer needed, see https://github.com/ruby-concurrency/concurrent-ruby/pull/841. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#48 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:48 def disable_at_exit_handlers!; end # General access point to global executors. - # - # @param executor_identifier [Symbol, Executor] symbols: + # @param [Symbol, Executor] executor_identifier symbols: # - :fast - {Concurrent.global_fast_executor} # - :io - {Concurrent.global_io_executor} # - :immediate - {Concurrent.global_immediate_executor} # @return [Executor] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#83 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:83 def executor(executor_identifier); end # Global thread pool optimized for short, fast *operations*. # # @return [ThreadPoolExecutor] the thread pool # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#55 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:55 def global_fast_executor; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#66 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:66 def global_immediate_executor; end # Global thread pool optimized for long, blocking (IO) *tasks*. # # @return [ThreadPoolExecutor] the thread pool # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:62 def global_io_executor; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#114 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:114 def global_logger; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#118 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:118 def global_logger=(value); end # Global thread pool user for global *timers*. # # @return [Concurrent::TimerSet] the thread pool # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#73 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:73 def global_timer_set; end # Leave a transaction without committing or aborting - see `Concurrent::atomically`. # - # @raise [Transaction::LeaveError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:148 def leave_transaction; end - # Returns the current time as tracked by the application monotonic clock. + # @!macro monotonic_get_time + # + # Returns the current time as tracked by the application monotonic clock. # - # @param unit [Symbol] the time unit to be returned, can be either - # :float_second, :float_millisecond, :float_microsecond, :second, - # :millisecond, :microsecond, or :nanosecond default to :float_second. - # @return [Float] The current monotonic time since some unspecified - # starting point + # @param [Symbol] unit the time unit to be returned, can be either + # :float_second, :float_millisecond, :float_microsecond, :second, + # :millisecond, :microsecond, or :nanosecond default to :float_second. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/monotonic_time.rb#18 + # @return [Float] The current monotonic time since some unspecified + # starting point + # + # @!macro monotonic_clock_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/monotonic_time.rb:18 def monotonic_time(unit = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb#7 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:7 def mutex_owned_per_thread?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#87 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:87 def new_fast_executor(opts = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#98 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:98 def new_io_executor(opts = T.unsafe(nil)); end # Number of physical processor cores on the current system. For performance @@ -323,12 +325,14 @@ module Concurrent # work or an exception is raised the function will simply return 1. # # @return [Integer] number physical processor cores on the current system - # @see http://linux.die.net/man/8/sysctl + # + # @see https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb + # # @see http://msdn.microsoft.com/en-us/library/aa394373(v=vs.85).aspx # @see http://www.unix.com/man-page/osx/1/HWPREFS/ - # @see https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb + # @see http://linux.die.net/man/8/sysctl # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#181 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:181 def physical_processor_count; end # Number of processors seen by the OS and used for process scheduling. For @@ -345,127 +349,115 @@ module Concurrent # Otherwise Ruby's Etc.nprocessors will be used. # # @return [Integer] number of processors seen by the OS or Java runtime + # # @see http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#availableProcessors() # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#160 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:160 def processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#142 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:142 def processor_counter; end # Use logger created by #create_simple_logger to log concurrent-ruby messages. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#66 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:66 def use_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end # Use logger created by #create_stdlib_logger to log concurrent-ruby messages. - # # @deprecated # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#101 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:101 def use_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#38 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:38 class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object - # @return [AbstractExchanger] a new instance of AbstractExchanger - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:44 def initialize; end - # Waits for another thread to arrive at this exchange point (unless the - # current thread is interrupted), and then transfers the given object to - # it, receiving its object in return. The timeout value indicates the - # approximate number of seconds the method should block while waiting - # for the exchange. When the timeout value is `nil` the method will - # block indefinitely. + # @!macro exchanger_method_do_exchange # + # Waits for another thread to arrive at this exchange point (unless the + # current thread is interrupted), and then transfers the given object to + # it, receiving its object in return. The timeout value indicates the + # approximate number of seconds the method should block while waiting + # for the exchange. When the timeout value is `nil` the method will + # block indefinitely. # - # In some edge cases when a `timeout` is given a return value of `nil` may be - # ambiguous. Specifically, if `nil` is a valid value in the exchange it will - # be impossible to tell whether `nil` is the actual return value or if it - # signifies timeout. When `nil` is a valid value in the exchange consider - # using {#exchange!} or {#try_exchange} instead. + # @param [Object] value the value to exchange with another thread + # @param [Numeric, nil] timeout in seconds, `nil` blocks indefinitely # - # @param timeout [Numeric, nil] in seconds, `nil` blocks indefinitely - # @param value [Object] the value to exchange with another thread - # @return [Object] the value exchanged by the other thread or `nil` on timeout + # @!macro exchanger_method_exchange # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#69 + # In some edge cases when a `timeout` is given a return value of `nil` may be + # ambiguous. Specifically, if `nil` is a valid value in the exchange it will + # be impossible to tell whether `nil` is the actual return value or if it + # signifies timeout. When `nil` is a valid value in the exchange consider + # using {#exchange!} or {#try_exchange} instead. + # + # @return [Object] the value exchanged by the other thread or `nil` on timeout + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:69 def exchange(value, timeout = T.unsafe(nil)); end - # Waits for another thread to arrive at this exchange point (unless the - # current thread is interrupted), and then transfers the given object to - # it, receiving its object in return. The timeout value indicates the - # approximate number of seconds the method should block while waiting - # for the exchange. When the timeout value is `nil` the method will - # block indefinitely. + # @!macro exchanger_method_do_exchange + # @!macro exchanger_method_exchange_bang # + # On timeout a {Concurrent::TimeoutError} exception will be raised. # - # On timeout a {Concurrent::TimeoutError} exception will be raised. + # @return [Object] the value exchanged by the other thread + # @raise [Concurrent::TimeoutError] on timeout # - # @param timeout [Numeric, nil] in seconds, `nil` blocks indefinitely - # @param value [Object] the value to exchange with another thread - # @raise [Concurrent::TimeoutError] on timeout - # @return [Object] the value exchanged by the other thread - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#80 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:80 def exchange!(value, timeout = T.unsafe(nil)); end - # Waits for another thread to arrive at this exchange point (unless the - # current thread is interrupted), and then transfers the given object to - # it, receiving its object in return. The timeout value indicates the - # approximate number of seconds the method should block while waiting - # for the exchange. When the timeout value is `nil` the method will - # block indefinitely. + # @!macro exchanger_method_do_exchange + # @!macro exchanger_method_try_exchange # + # The return value will be a {Concurrent::Maybe} set to `Just` on success or + # `Nothing` on timeout. # - # The return value will be a {Concurrent::Maybe} set to `Just` on success or - # `Nothing` on timeout. + # @return [Concurrent::Maybe] on success a `Just` maybe will be returned with + # the item exchanged by the other thread as `#value`; on timeout a + # `Nothing` maybe will be returned with {Concurrent::TimeoutError} as `#reason` # - # @example + # @example # - # exchanger = Concurrent::Exchanger.new + # exchanger = Concurrent::Exchanger.new # - # result = exchanger.exchange(:foo, 0.5) + # result = exchanger.exchange(:foo, 0.5) # - # if result.just? - # puts result.value #=> :bar - # else - # puts 'timeout' - # end - # @param timeout [Numeric, nil] in seconds, `nil` blocks indefinitely - # @param value [Object] the value to exchange with another thread - # @return [Concurrent::Maybe] on success a `Just` maybe will be returned with - # the item exchanged by the other thread as `#value`; on timeout a - # `Nothing` maybe will be returned with {Concurrent::TimeoutError} as `#reason` + # if result.just? + # puts result.value #=> :bar + # else + # puts 'timeout' + # end # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#109 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:109 def try_exchange(value, timeout = T.unsafe(nil)); end private - # Waits for another thread to arrive at this exchange point (unless the - # current thread is interrupted), and then transfers the given object to - # it, receiving its object in return. The timeout value indicates the - # approximate number of seconds the method should block while waiting - # for the exchange. When the timeout value is `nil` the method will - # block indefinitely. + # @!macro exchanger_method_do_exchange # - # @param timeout [Numeric, nil] in seconds, `nil` blocks indefinitely - # @param value [Object] the value to exchange with another thread - # @raise [NotImplementedError] # @return [Object, CANCEL] the value exchanged by the other thread; {CANCEL} on timeout # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#122 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:122 def do_exchange(value, timeout); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#41 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:41 Concurrent::AbstractExchanger::CANCEL = T.let(T.unsafe(nil), Object) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#10 +# @!macro abstract_executor_service_public_api +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:10 class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::LockableObject include ::Concurrent::Concern::Logging include ::Concurrent::ExecutorService @@ -473,60 +465,58 @@ class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::Locka # Create a new thread pool. # - # @return [AbstractExecutorService] a new instance of AbstractExecutorService - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#23 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:23 def initialize(opts = T.unsafe(nil), &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#72 + # @!macro executor_service_method_auto_terminate_setter + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:72 def auto_terminate=(value); end - # @return [Boolean] + # @!macro executor_service_method_auto_terminate_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#67 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:67 def auto_terminate?; end - # Returns the value of attribute fallback_policy. + # @!macro executor_service_attr_reader_fallback_policy # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:18 def fallback_policy; end - # @raise [NotImplementedError] + # @!macro executor_service_method_kill # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#42 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:42 def kill; end - # Returns the value of attribute name. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#20 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:20 def name; end - # @return [Boolean] + # @!macro executor_service_method_running_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#52 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:52 def running?; end - # @raise [NotImplementedError] + # @!macro executor_service_method_shutdown # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:37 def shutdown; end - # @return [Boolean] + # @!macro executor_service_method_shutdown_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:62 def shutdown?; end - # @return [Boolean] + # @!macro executor_service_method_shuttingdown_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#57 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:57 def shuttingdown?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#32 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:32 def to_s; end - # @raise [NotImplementedError] + # @!macro executor_service_method_wait_for_termination # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#47 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:47 def wait_for_termination(timeout = T.unsafe(nil)); end private @@ -535,39 +525,44 @@ class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::Locka # size reaches `max_queue`. The reason for the indirection of an action # is so that the work can be deferred outside of synchronization. # - # @param args [Array] the arguments to the task which is being handled. + # @param [Array] args the arguments to the task which is being handled. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#85 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:85 def fallback_action(*args); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#126 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:126 def ns_auto_terminate?; end - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#106 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:106 def ns_execute(*args, &task); end - # Callback method called when the executor has been killed. - # The default behavior is to do nothing. + # @!macro executor_service_method_ns_kill_execution # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#122 + # Callback method called when the executor has been killed. + # The default behavior is to do nothing. + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:122 def ns_kill_execution; end - # Callback method called when an orderly shutdown has completed. - # The default behavior is to signal all waiting threads. + # @!macro executor_service_method_ns_shutdown_execution + # + # Callback method called when an orderly shutdown has completed. + # The default behavior is to signal all waiting threads. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#114 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:114 def ns_shutdown_execution; end end # The set of possible fallback policies that may be set at thread pool creation. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#15 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb:15 Concurrent::AbstractExecutorService::FALLBACK_POLICIES = T.let(T.unsafe(nil), Array) +# @!visibility private +# @!macro internal_implementation_note +# # An abstract implementation of local storage, with sub-classes for # per-thread and per-fiber locals. # @@ -595,55 +590,49 @@ Concurrent::AbstractExecutorService::FALLBACK_POLICIES = T.let(T.unsafe(nil), Ar # them. This is why we need to use a finalizer to clean up the locals array # when the EC goes out of scope. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#35 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:35 class Concurrent::AbstractLocals - # @return [AbstractLocals] a new instance of AbstractLocals - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#36 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:36 def initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#89 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:89 def fetch(index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#71 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:71 def free_index(index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#55 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:55 def next_index(local); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#102 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:102 def set(index, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#43 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:43 def synchronize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#48 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:48 def weak_synchronize; end private # When the local goes out of scope, clean up that slot across all locals currently assigned. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#112 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:112 def local_finalizer(index); end # Returns the locals for the current scope, or nil if none exist. # - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#128 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:128 def locals; end # Returns the locals for the current scope, creating them if necessary. # - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#133 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:133 def locals!; end # When a thread/fiber goes out of scope, remove the array from @all_arrays. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#119 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:119 def thread_fiber_finalizer(array_object_id); end end @@ -769,17 +758,20 @@ end # end # ``` # +# @!macro agent_await_warning # -# **NOTE** Never, *under any circumstances*, call any of the "await" methods -# ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action -# block/proc/lambda. The call will block the Agent and will always fail. -# Calling either {#await} or {#wait} (with a timeout of `nil`) will -# hopelessly deadlock the Agent with no possibility of recovery. +# **NOTE** Never, *under any circumstances*, call any of the "await" methods +# ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action +# block/proc/lambda. The call will block the Agent and will always fail. +# Calling either {#await} or {#wait} (with a timeout of `nil`) will +# hopelessly deadlock the Agent with no possibility of recovery. +# +# @!macro thread_safe_variable_comparison # # @see http://clojure.org/Agents Clojure Agents # @see http://clojure.org/state Values and Change - Clojure's approach to Identity and State # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#145 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:145 class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject include ::Concurrent::Concern::Observable @@ -811,25 +803,25 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # held until {#restart} is called. The {#value} method will still work, # returning the value of the Agent before the error. # - # @option opts - # @option opts - # @option opts - # @param initial [Object] the initial value - # @param opts [Hash] the configuration options - # @return [Agent] a new instance of Agent + # @param [Object] initial the initial value + # @param [Hash] opts the configuration options + # + # @option opts [Symbol] :error_mode either `:continue` or `:fail` + # @option opts [nil, Proc] :error_handler the (optional) error handler + # @option opts [nil, Proc] :validator the (optional) validation procedure # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#220 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:220 def initialize(initial, opts = T.unsafe(nil)); end # Dispatches an action to the Agent and returns immediately. Subsequently, # in a thread from a thread pool, the {#value} will be set to the return # value of the action. Appropriate for actions that may block on IO. # - # @param action [Proc] the action dispatch to be enqueued + # @param [Proc] action the action dispatch to be enqueued # @return [Concurrent::Agent] self # @see #send_off # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#331 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:331 def <<(action); end # Blocks the current thread (indefinitely!) until all actions dispatched @@ -843,59 +835,40 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # current_value = agent.await.value # ``` # - # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # # @return [Boolean] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#350 + # @!macro agent_await_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:350 def await; end # Blocks the current thread until all actions dispatched thus far, from this # thread or nested by the Agent, have occurred, or the timeout (in seconds) # has elapsed. # - # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # - # @param timeout [Float] the maximum number of seconds to wait + # @param [Float] timeout the maximum number of seconds to wait # @return [Boolean] true if all actions complete before timeout else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#363 + # @!macro agent_await_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:363 def await_for(timeout); end # Blocks the current thread until all actions dispatched thus far, from this # thread or nested by the Agent, have occurred, or the timeout (in seconds) # has elapsed. # + # @param [Float] timeout the maximum number of seconds to wait + # @return [Boolean] true if all actions complete before timeout # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # - # @param timeout [Float] the maximum number of seconds to wait # @raise [Concurrent::TimeoutError] when timeout is reached - # @return [Boolean] true if all actions complete before timeout # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#377 + # @!macro agent_await_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:377 def await_for!(timeout); end - # The current value (state) of the Agent, irrespective of any pending or - # in-progress actions. The value is always available and is non-blocking. - # - # @return [Object] the current value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#233 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:233 def deref; end # When {#failed?} and {#error_mode} is `:fail`, returns the error object @@ -904,60 +877,25 @@ 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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:240 def error; end # The error mode this Agent is operating in. See {#initialize} for details. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#184 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:184 def error_mode; end # Is the Agent in a failed state? # - # @return [Boolean] # @see #restart # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#402 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:402 def failed?; end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @return [Boolean] true if the action is successfully enqueued, false if - # the Agent is {#failed?} - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#298 + # pkg:gem/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 - # which caused the failure, else `nil`. When {#error_mode} is `:continue` - # will *always* return `nil`. - # - # @return [nil, Error] the error which caused the failure when {#failed?} - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#244 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:244 def reason; end # When an Agent is {#failed?}, changes the Agent {#value} to `new_value` @@ -969,211 +907,91 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # remain failed with its old {#value} and {#error}. Observers, if any, will # not be notified of the new state. # - # @option opts - # @param new_value [Object] the new value for the Agent once restarted - # @param opts [Hash] the configuration options - # @raise [Concurrent:AgentError] when not failed + # @param [Object] new_value the new value for the Agent once restarted + # @param [Hash] opts the configuration options + # @option opts [Symbol] :clear_actions true if all enqueued but unprocessed + # actions should be discarded on restart, else false (default: false) # @return [Boolean] true # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#424 + # @raise [Concurrent:AgentError] when not failed + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:424 def restart(new_value, opts = T.unsafe(nil)); end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @return [Boolean] true if the action is successfully enqueued, false if - # the Agent is {#failed?} - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#278 + # @!macro agent_send + # + # Dispatches an action to the Agent and returns immediately. Subsequently, + # in a thread from a thread pool, the {#value} will be set to the return + # value of the action. Action dispatches are only allowed when the Agent + # is not {#failed?}. + # + # The action must be a block/proc/lambda which takes 1 or more arguments. + # The first argument is the current {#value} of the Agent. Any arguments + # passed to the send method via the `args` parameter will be passed to the + # action as the remaining arguments. The action must return the new value + # of the Agent. + # + # * {#send} and {#send!} should be used for actions that are CPU limited + # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that + # may block on IO + # * {#send_via} and {#send_via!} are used when a specific executor is to + # be used for the action + # + # @param [Array] args zero or more arguments to be passed to + # the action + # @param [Proc] action the action dispatch to be enqueued + # + # @yield [agent, value, *args] process the old value and return the new + # @yieldparam [Object] value the current {#value} of the Agent + # @yieldparam [Array] args zero or more arguments to pass to the + # action + # @yieldreturn [Object] the new value of the Agent + # + # @!macro send_return + # @return [Boolean] true if the action is successfully enqueued, false if + # the Agent is {#failed?} + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:278 def send(*args, &action); end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @raise [Concurrent::Agent::Error] if the Agent is {#failed?} - # @return [Boolean] true if the action is successfully enqueued - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#287 + # @!macro agent_send + # + # @!macro send_bang_return_and_raise + # @return [Boolean] true if the action is successfully enqueued + # @raise [Concurrent::Agent::Error] if the Agent is {#failed?} + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:287 def send!(*args, &action); end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @return [Boolean] true if the action is successfully enqueued, false if - # the Agent is {#failed?} - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#294 + # @!macro agent_send + # @!macro send_return + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:294 def send_off(*args, &action); end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @raise [Concurrent::Agent::Error] if the Agent is {#failed?} - # @return [Boolean] true if the action is successfully enqueued - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#302 + # @!macro agent_send + # @!macro send_bang_return_and_raise + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:302 def send_off!(*args, &action); end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @param executor [Concurrent::ExecutorService] the executor on which the + # @!macro agent_send + # @!macro send_return + # @param [Concurrent::ExecutorService] executor the executor on which the # action is to be dispatched - # @return [Boolean] true if the action is successfully enqueued, false if - # the Agent is {#failed?} - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#311 + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:311 def send_via(executor, *args, &action); end - # Dispatches an action to the Agent and returns immediately. Subsequently, - # in a thread from a thread pool, the {#value} will be set to the return - # value of the action. Action dispatches are only allowed when the Agent - # is not {#failed?}. - # - # The action must be a block/proc/lambda which takes 1 or more arguments. - # The first argument is the current {#value} of the Agent. Any arguments - # passed to the send method via the `args` parameter will be passed to the - # action as the remaining arguments. The action must return the new value - # of the Agent. - # - # * {#send} and {#send!} should be used for actions that are CPU limited - # * {#send_off}, {#send_off!}, and {#<<} are appropriate for actions that - # may block on IO - # * {#send_via} and {#send_via!} are used when a specific executor is to - # be used for the action - # - # @param action [Proc] the action dispatch to be enqueued - # @param args [Array] zero or more arguments to be passed to - # the action - # @param executor [Concurrent::ExecutorService] the executor on which the + # @!macro agent_send + # @!macro send_bang_return_and_raise + # @param [Concurrent::ExecutorService] executor the executor on which the # action is to be dispatched - # @raise [Concurrent::Agent::Error] if the Agent is {#failed?} - # @return [Boolean] true if the action is successfully enqueued - # @yield [agent, value, *args] process the old value and return the new - # @yieldparam args [Array] zero or more arguments to pass to the - # action - # @yieldparam value [Object] the current {#value} of the Agent - # @yieldreturn [Object] the new value of the Agent - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#319 + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:319 def send_via!(executor, *args, &action); end - # Is the Agent in a failed state? - # - # @return [Boolean] - # @see #restart - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#406 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:406 def stopped?; end # The current value (state) of the Agent, irrespective of any pending or @@ -1181,7 +999,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # # @return [Object] the current value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#229 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:229 def value; end # Blocks the current thread until all actions dispatched thus far, from this @@ -1191,48 +1009,41 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # Provided mainly for consistency with other classes in this library. Prefer # the various `await` methods instead. # - # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # - # @param timeout [Float] the maximum number of seconds to wait + # @param [Float] timeout the maximum number of seconds to wait # @return [Boolean] true if all actions complete before timeout else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#393 + # @!macro agent_await_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:393 def wait(timeout = T.unsafe(nil)); end private - # @raise [ArgumentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#510 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:510 def enqueue_action_job(action, args, executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#516 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:516 def enqueue_await_job(latch); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#543 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:543 def execute_next_job; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#576 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:576 def handle_error(error); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#529 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:529 def ns_enqueue_job(job, index = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#584 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:584 def ns_find_last_job_for_thread; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#490 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:490 def ns_initialize(initial, opts); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#539 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:539 def ns_post_next_job; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#570 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:570 def ns_validate(value); end class << self @@ -1242,159 +1053,106 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject # failed. Will never return if a failed Agent is restart with # `:clear_actions` true. # - # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # - # @param agents [Array] the Agents on which to wait + # @param [Array] agents the Agents on which to wait # @return [Boolean] true # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#449 + # @!macro agent_await_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:449 def await(*agents); end # Blocks the current thread until all actions dispatched thus far to all # the given Agents, from this thread or nested by the given Agents, have # occurred, or the timeout (in seconds) has elapsed. # - # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # - # @param agents [Array] the Agents on which to wait - # @param timeout [Float] the maximum number of seconds to wait + # @param [Float] timeout the maximum number of seconds to wait + # @param [Array] agents the Agents on which to wait # @return [Boolean] true if all actions complete before timeout else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#463 + # @!macro agent_await_warning + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:463 def await_for(timeout, *agents); end # Blocks the current thread until all actions dispatched thus far to all # the given Agents, from this thread or nested by the given Agents, have # occurred, or the timeout (in seconds) has elapsed. # + # @param [Float] timeout the maximum number of seconds to wait + # @param [Array] agents the Agents on which to wait + # @return [Boolean] true if all actions complete before timeout # - # **NOTE** Never, *under any circumstances*, call any of the "await" methods - # ({#await}, {#await_for}, {#await_for!}, and {#wait}) from within an action - # block/proc/lambda. The call will block the Agent and will always fail. - # Calling either {#await} or {#wait} (with a timeout of `nil`) will - # hopelessly deadlock the Agent with no possibility of recovery. - # - # @param agents [Array] the Agents on which to wait - # @param timeout [Float] the maximum number of seconds to wait # @raise [Concurrent::TimeoutError] when timeout is reached - # @return [Boolean] true if all actions complete before timeout + # @!macro agent_await_warning # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#482 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:482 def await_for!(timeout, *agents); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#154 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:154 Concurrent::Agent::AWAIT_ACTION = T.let(T.unsafe(nil), Proc) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#151 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:151 Concurrent::Agent::AWAIT_FLAG = T.let(T.unsafe(nil), Object) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#157 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:157 Concurrent::Agent::DEFAULT_ERROR_HANDLER = T.let(T.unsafe(nil), Proc) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#160 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:160 Concurrent::Agent::DEFAULT_VALIDATOR = T.let(T.unsafe(nil), Proc) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#148 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:148 Concurrent::Agent::ERROR_MODES = T.let(T.unsafe(nil), Array) # Raised during action processing or any other time in an Agent's lifecycle. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#167 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:167 class Concurrent::Agent::Error < ::StandardError - # @return [Error] a new instance of Error - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#168 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:168 def initialize(message = T.unsafe(nil)); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 def executor=(_); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 def [](*_arg0); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 def keyword_init?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 def members; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:163 def new(*_arg0); end end end @@ -1402,30 +1160,20 @@ end # Raised when a new value obtained during action processing or at `#restart` # fails validation. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#176 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:176 class Concurrent::Agent::ValidationError < ::Concurrent::Agent::Error - # @return [ValidationError] a new instance of ValidationError - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#177 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/agent.rb:177 def initialize(message = T.unsafe(nil)); end end -# A thread-safe subclass of Array. This version locks against the object -# itself for every method call, ensuring only one thread can be reading -# or writing at a time. This includes iteration methods like `#each`. +# @!macro concurrent_array # -# @note `a += b` is **not** a **thread-safe** operation on -# `Concurrent::Array`. It reads array `a`, then it creates new `Concurrent::Array` -# which is concatenation of `a` and `b`, then it writes the concatenation to `a`. -# The read and write are independent operations they do not form a single atomic -# operation therefore when two `+=` operations are executed concurrently updates -# may be lost. Use `#concat` instead. -# @see http://ruby-doc.org/core/Array.html Ruby standard library `Array` -# -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/array.rb#53 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/array.rb:53 class Concurrent::Array < ::Array; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/array.rb#22 +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/array.rb:22 Concurrent::ArrayImplementation = Array # A mixin module that provides simple asynchronous behavior to a class, @@ -1617,28 +1365,29 @@ Concurrent::ArrayImplementation = Array # @example # # class Echo -# include Concurrent::Async +# include Concurrent::Async # -# def echo(msg) -# print "#{msg}\n" -# end +# def echo(msg) +# print "#{msg}\n" +# end # end # # horn = Echo.new # horn.echo('zero') # synchronous, not thread-safe -# # returns the actual return value of the method +# # returns the actual return value of the method # # horn.async.echo('one') # asynchronous, non-blocking, thread-safe -# # returns an IVar in the :pending state +# # returns an IVar in the :pending state # # horn.await.echo('two') # synchronous, blocking, thread-safe -# # returns an IVar in the :complete state +# # returns an IVar in the :complete state +# # @see Concurrent::Actor -# @see http://c2.com/cgi/wiki?LetItCrash "Let It Crash" at http://c2.com/ -# @see http://www.erlang.org/doc/man/gen_server.html Erlang gen_server # @see https://en.wikipedia.org/wiki/Actor_model "Actor Model" at Wikipedia +# @see http://www.erlang.org/doc/man/gen_server.html Erlang gen_server +# @see http://c2.com/cgi/wiki?LetItCrash "Let It Crash" at http://c2.com/ # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#217 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:217 module Concurrent::Async mixes_in_class_methods ::Concurrent::Async::ClassMethods @@ -1648,18 +1397,21 @@ module Concurrent::Async # object's thread. The final disposition of the method call can be obtained # by inspecting the returned future. # - # @note The method call is guaranteed to be thread safe with respect to - # all other method calls against the same object that are called with - # either `async` or `await`. The mutable nature of Ruby references - # (and object orientation in general) prevent any other thread safety - # guarantees. Do NOT mix direct method calls with delegated method calls. - # Use *only* delegated method calls when sharing the object between threads. + # @!macro async_thread_safety_warning + # @note The method call is guaranteed to be thread safe with respect to + # all other method calls against the same object that are called with + # either `async` or `await`. The mutable nature of Ruby references + # (and object orientation in general) prevent any other thread safety + # guarantees. Do NOT mix direct method calls with delegated method calls. + # Use *only* delegated method calls when sharing the object between threads. + # + # @return [Concurrent::IVar] the pending result of the asynchronous operation + # # @raise [NameError] the object does not respond to the requested method # @raise [ArgumentError] the given `args` do not match the arity of # the requested method - # @return [Concurrent::IVar] the pending result of the asynchronous operation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#412 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:412 def async; end # Causes the chained method call to be performed synchronously on the @@ -1668,58 +1420,21 @@ module Concurrent::Async # completed. The final disposition of the delegated method can be obtained # by inspecting the returned future. # - # @note The method call is guaranteed to be thread safe with respect to - # all other method calls against the same object that are called with - # either `async` or `await`. The mutable nature of Ruby references - # (and object orientation in general) prevent any other thread safety - # guarantees. Do NOT mix direct method calls with delegated method calls. - # Use *only* delegated method calls when sharing the object between threads. - # @raise [NameError] the object does not respond to the requested method - # @raise [ArgumentError] the given `args` do not match the arity of the - # requested method - # @return [Concurrent::IVar] the completed result of the synchronous operation + # @!macro async_thread_safety_warning # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#430 - def await; end - - # Causes the chained method call to be performed synchronously on the - # current thread. The delegated will return a future in either the - # `:fulfilled` or `:rejected` state and the delegated method will have - # completed. The final disposition of the delegated method can be obtained - # by inspecting the returned future. + # @return [Concurrent::IVar] the completed result of the synchronous operation # - # @note The method call is guaranteed to be thread safe with respect to - # all other method calls against the same object that are called with - # either `async` or `await`. The mutable nature of Ruby references - # (and object orientation in general) prevent any other thread safety - # guarantees. Do NOT mix direct method calls with delegated method calls. - # Use *only* delegated method calls when sharing the object between threads. # @raise [NameError] the object does not respond to the requested method # @raise [ArgumentError] the given `args` do not match the arity of the # requested method - # @return [Concurrent::IVar] the completed result of the synchronous operation # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#433 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:430 + def await; end + + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:433 def call; end - # Causes the chained method call to be performed asynchronously on the - # object's thread. The delegated method will return a future in the - # `:pending` state and the method call will have been scheduled on the - # object's thread. The final disposition of the method call can be obtained - # by inspecting the returned future. - # - # @note The method call is guaranteed to be thread safe with respect to - # all other method calls against the same object that are called with - # either `async` or `await`. The mutable nature of Ruby references - # (and object orientation in general) prevent any other thread safety - # guarantees. Do NOT mix direct method calls with delegated method calls. - # Use *only* delegated method calls when sharing the object between threads. - # @raise [NameError] the object does not respond to the requested method - # @raise [ArgumentError] the given `args` do not match the arity of - # the requested method - # @return [Concurrent::IVar] the pending result of the asynchronous operation - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#415 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:415 def cast; end # Initialize the internal serializer and other stnchronization mechanisms. @@ -1727,58 +1442,68 @@ module Concurrent::Async # @note This method *must* be called immediately upon object construction. # This is the only way thread-safe initialization can be guaranteed. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#441 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:441 def init_synchronization; end class << self - # @private + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#262 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:262 def included(base); end # Check for the presence of a method on an object and determine if a given # set of arguments matches the required arity. # + # @param [Object] obj the object to check against + # @param [Symbol] method the method to check the object for + # @param [Array] args zero or more arguments for the arity check + # + # @raise [NameError] the object does not respond to `method` method + # @raise [ArgumentError] the given `args` do not match the arity of `method` + # # @note This check is imperfect because of the way Ruby reports the arity of # methods with a variable number of arguments. It is possible to determine # if too few arguments are given but impossible to determine if too many # arguments are given. This check may also fail to recognize dynamic behavior # of the object, such as methods simulated with `method_missing`. - # @param args [Array] zero or more arguments for the arity check - # @param method [Symbol] the method to check the object for - # @param obj [Object] the object to check against - # @raise [NameError] the object does not respond to `method` method - # @raise [ArgumentError] the given `args` do not match the arity of `method` + # + # @see http://www.ruby-doc.org/core-2.1.1/Method.html#method-i-arity Method#arity # @see http://ruby-doc.org/core-2.1.0/Object.html#method-i-respond_to-3F Object#respond_to? # @see http://www.ruby-doc.org/core-2.1.0/BasicObject.html#method-i-method_missing BasicObject#method_missing - # @see http://www.ruby-doc.org/core-2.1.1/Method.html#method-i-arity Method#arity # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#250 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:250 def validate_argc(obj, method, *args); end end end # Delegates asynchronous, thread-safe method calls to the wrapped object. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#282 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:282 class Concurrent::Async::AsyncDelegator < ::Concurrent::Synchronization::LockableObject # Create a new delegator object wrapping the given delegate. # - # @param delegate [Object] the object to wrap and delegate method calls to - # @return [AsyncDelegator] a new instance of AsyncDelegator + # @param [Object] delegate the object to wrap and delegate method calls to # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#288 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:288 def initialize(delegate); end # Delegates method calls to the wrapped object. # - # @param args [Array] zero or more arguments to the method - # @param method [Symbol] the method being called + # @param [Symbol] method the method being called + # @param [Array] args zero or more arguments to the method + # + # @return [IVar] the result of the method call + # # @raise [NameError] the object does not respond to `method` method # @raise [ArgumentError] the given `args` do not match the arity of `method` - # @return [IVar] the result of the method call # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#305 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:305 def method_missing(method, *args, &block); end # Perform all enqueued tasks. @@ -1786,60 +1511,63 @@ class Concurrent::Async::AsyncDelegator < ::Concurrent::Synchronization::Lockabl # This method must be called from within the executor. It must not be # called while already running. It will loop until the queue is empty. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#330 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:330 def perform; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#348 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:348 def reset_if_forked; end private # Check whether the method is responsive # - # @param method [Symbol] the method being called - # @return [Boolean] + # @param [Symbol] method the method being called # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#322 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:322 def respond_to_missing?(method, include_private = T.unsafe(nil)); end end # Delegates synchronous, thread-safe method calls to the wrapped object. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#360 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:360 class Concurrent::Async::AwaitDelegator # Create a new delegator object wrapping the given delegate. # - # @param delegate [AsyncDelegator] the object to wrap and delegate method calls to - # @return [AwaitDelegator] a new instance of AwaitDelegator + # @param [AsyncDelegator] delegate the object to wrap and delegate method calls to # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#365 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:365 def initialize(delegate); end # Delegates method calls to the wrapped object. # - # @param args [Array] zero or more arguments to the method - # @param method [Symbol] the method being called + # @param [Symbol] method the method being called + # @param [Array] args zero or more arguments to the method + # + # @return [IVar] the result of the method call + # # @raise [NameError] the object does not respond to `method` method # @raise [ArgumentError] the given `args` do not match the arity of `method` - # @return [IVar] the result of the method call # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#378 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:378 def method_missing(method, *args, &block); end private # Check whether the method is responsive # - # @param method [Symbol] the method being called - # @return [Boolean] + # @param [Symbol] method the method being called # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#387 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:387 def respond_to_missing?(method, include_private = T.unsafe(nil)); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#269 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:269 module Concurrent::Async::ClassMethods - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#270 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/async.rb:270 def new(*args, **_arg1, &block); end end @@ -1891,59 +1619,33 @@ end # # Unlike in Clojure, `Atom` cannot participate in {Concurrent::TVar} transactions. # -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. +# @!macro thread_safe_variable_comparison # # @see http://clojure.org/atoms Clojure Atoms # @see http://clojure.org/state Values and Change - Clojure's approach to Identity and State # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#95 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:95 class Concurrent::Atom < ::Concurrent::Synchronization::Object include ::Concurrent::Concern::Observable extend ::Concurrent::Synchronization::SafeInitialization # Create a new atom with the given initial value. # - # @option opts - # @param opts [Hash] The options used to configure the atom - # @param value [Object] The initial value + # @param [Object] value The initial value + # @param [Hash] opts The options used to configure the atom + # @option opts [Proc] :validator (nil) Optional proc used to validate new + # values. It must accept one and only one argument which will be the + # intended new value. The validator will return true if the new value + # is acceptable else return false (preferably) or raise an exception. + # + # @!macro deref_options + # # @raise [ArgumentError] if the validator is not a `Proc` (when given) - # @return [Atom] a new instance of Atom # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#121 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:121 def initialize(value, opts = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 + # pkg:gem/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 @@ -1951,25 +1653,27 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object # value successfully validates against the (optional) validator given # at construction. # - # @param new_value [Object] The intended new value. - # @param old_value [Object] The expected current value. + # @param [Object] old_value The expected current value. + # @param [Object] new_value The intended new value. + # # @return [Boolean] True if the value is changed else false. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#181 + # pkg:gem/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/atom.rb#102 + # pkg:gem/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 # current value so long as the new value successfully validates against the # (optional) validator given at construction. # - # @param new_value [Object] The intended new value. + # @param [Object] new_value The intended new value. + # # @return [Object] The final value of the atom after all operations and # validations are complete. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#198 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:198 def reset(new_value); end # Atomically swaps the value of atom using the given block. The current @@ -1988,219 +1692,171 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object # # @note The given block may be called multiple times, and thus should be free # of side effects. - # @param args [Object] Zero or more arguments passed to the block. - # @raise [ArgumentError] When no block is given. - # @return [Object] The final value of the atom after all operations and - # validations are complete. + # + # @param [Object] args Zero or more arguments passed to the block. + # # @yield [value, args] Calculates a new value for the atom based on the # current value and any supplied arguments. - # @yieldparam args [Object] All arguments passed to the function, in order. # @yieldparam value [Object] The current value of the atom. + # @yieldparam args [Object] All arguments passed to the function, in order. # @yieldreturn [Object] The intended new value of the atom. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#157 - def swap(*args); end - - # The current value of the atom. + # @return [Object] The final value of the atom after all operations and + # validations are complete. # - # @return [Object] The current value. + # @raise [ArgumentError] When no block is given. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:157 + def swap(*args); end + + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:99 def value; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:99 def compare_and_set_value(expected, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:99 def swap_value(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:99 def update_value(&block); end # Is the new value valid? # - # @param new_value [Object] The intended new value. + # @param [Object] new_value The intended new value. # @return [Boolean] false if the validator function returns false or raises # an exception else true # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#216 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:216 def valid?(new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atom.rb:99 def value=(value); end end -# A boolean value that can be updated atomically. Reads and writes to an atomic -# boolean and thread-safe and guaranteed to succeed. Reads and writes may block -# briefly but no explicit locking is required. -# -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. -# Performance: +# @!macro atomic_boolean # -# ``` -# Testing with ruby 2.1.2 -# Testing with Concurrent::MutexAtomicBoolean... -# 2.790000 0.000000 2.790000 ( 2.791454) -# Testing with Concurrent::CAtomicBoolean... -# 0.740000 0.000000 0.740000 ( 0.740206) -# -# Testing with jruby 1.9.3 -# Testing with Concurrent::MutexAtomicBoolean... -# 5.240000 2.520000 7.760000 ( 3.683000) -# Testing with Concurrent::JavaAtomicBoolean... -# 3.340000 0.010000 3.350000 ( 0.855000) -# ``` +# A boolean value that can be updated atomically. Reads and writes to an atomic +# boolean and thread-safe and guaranteed to succeed. Reads and writes may block +# briefly but no explicit locking is required. +# +# @!macro thread_safe_variable_comparison +# +# Performance: +# +# ``` +# Testing with ruby 2.1.2 +# Testing with Concurrent::MutexAtomicBoolean... +# 2.790000 0.000000 2.790000 ( 2.791454) +# Testing with Concurrent::CAtomicBoolean... +# 0.740000 0.000000 0.740000 ( 0.740206) +# +# Testing with jruby 1.9.3 +# Testing with Concurrent::MutexAtomicBoolean... +# 5.240000 2.520000 7.760000 ( 3.683000) +# Testing with Concurrent::JavaAtomicBoolean... +# 3.340000 0.010000 3.350000 ( 0.855000) +# ``` # -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicBoolean.html java.util.concurrent.atomic.AtomicBoolean +# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicBoolean.html java.util.concurrent.atomic.AtomicBoolean # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#119 +# @!macro atomic_boolean_public_api +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb:119 class Concurrent::AtomicBoolean < ::Concurrent::MutexAtomicBoolean - # @return [String] Short string representation. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#125 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb:125 def inspect; end # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#121 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb:121 def to_s; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#82 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb:82 Concurrent::AtomicBooleanImplementation = Concurrent::MutexAtomicBoolean # Define update methods that use direct paths # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb#9 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb:9 module Concurrent::AtomicDirectUpdate - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb#15 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb:15 def try_update; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb:24 def try_update!; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb#10 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/atomic_direct_update.rb:10 def update; end end -# A numeric value that can be updated atomically. Reads and writes to an atomic -# fixnum and thread-safe and guaranteed to succeed. Reads and writes may block -# briefly but no explicit locking is required. -# -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. -# Performance: +# @!macro atomic_fixnum # -# ``` -# Testing with ruby 2.1.2 -# Testing with Concurrent::MutexAtomicFixnum... -# 3.130000 0.000000 3.130000 ( 3.136505) -# Testing with Concurrent::CAtomicFixnum... -# 0.790000 0.000000 0.790000 ( 0.785550) -# -# Testing with jruby 1.9.3 -# Testing with Concurrent::MutexAtomicFixnum... -# 5.460000 2.460000 7.920000 ( 3.715000) -# Testing with Concurrent::JavaAtomicFixnum... -# 4.520000 0.030000 4.550000 ( 1.187000) -# ``` +# A numeric value that can be updated atomically. Reads and writes to an atomic +# fixnum and thread-safe and guaranteed to succeed. Reads and writes may block +# briefly but no explicit locking is required. # -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicLong.html java.util.concurrent.atomic.AtomicLong +# @!macro thread_safe_variable_comparison # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#136 -class Concurrent::AtomicFixnum < ::Concurrent::MutexAtomicFixnum - # @return [String] Short string representation. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#142 +# Performance: +# +# ``` +# Testing with ruby 2.1.2 +# Testing with Concurrent::MutexAtomicFixnum... +# 3.130000 0.000000 3.130000 ( 3.136505) +# Testing with Concurrent::CAtomicFixnum... +# 0.790000 0.000000 0.790000 ( 0.785550) +# +# Testing with jruby 1.9.3 +# Testing with Concurrent::MutexAtomicFixnum... +# 5.460000 2.460000 7.920000 ( 3.715000) +# Testing with Concurrent::JavaAtomicFixnum... +# 4.520000 0.030000 4.550000 ( 1.187000) +# ``` +# +# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicLong.html java.util.concurrent.atomic.AtomicLong +# +# @!macro atomic_fixnum_public_api +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb:136 +class Concurrent::AtomicFixnum < ::Concurrent::MutexAtomicFixnum + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb:142 def inspect; end # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#138 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb:138 def to_s; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#99 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb:99 Concurrent::AtomicFixnumImplementation = Concurrent::MutexAtomicFixnum # An atomic reference which maintains an object reference along with a mark bit # that can be updated atomically. # -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicMarkableReference.html java.util.concurrent.atomic.AtomicMarkableReference +# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicMarkableReference.html +# java.util.concurrent.atomic.AtomicMarkableReference # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:10 class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Object extend ::Concurrent::Synchronization::SafeInitialization - # @return [AtomicMarkableReference] a new instance of AtomicMarkableReference - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#15 + # pkg:gem/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/atomic/atomic_markable_reference.rb#12 + # pkg:gem/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 @@ -2208,398 +1864,422 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec # - the current value == the expected value && # - the current mark == the expected mark # - # that the actual value was not equal to the expected value or the - # actual mark was not equal to the expected mark + # @param [Object] expected_val the expected value + # @param [Object] new_val the new value + # @param [Boolean] expected_mark the expected mark + # @param [Boolean] new_mark the new mark # - # @param expected_mark [Boolean] the expected mark - # @param expected_val [Object] the expected value - # @param new_mark [Boolean] the new mark - # @param new_val [Object] the new value # @return [Boolean] `true` if successful. A `false` return indicates - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#33 - def compare_and_set(expected_val, new_val, expected_mark, new_mark); end - - # Atomically sets the value and mark to the given updated value and - # mark given both: - # - the current value == the expected value && - # - the current mark == the expected mark - # # that the actual value was not equal to the expected value or the # actual mark was not equal to the expected mark # - # @param expected_mark [Boolean] the expected mark - # @param expected_val [Object] the expected value - # @param new_mark [Boolean] the new mark - # @param new_val [Object] the new value - # @return [Boolean] `true` if successful. A `false` return indicates - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:33 + def compare_and_set(expected_val, new_val, expected_mark, new_mark); end + + # pkg:gem/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. # # @return [Array] the current reference and marked values # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#64 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:64 def get; end # Gets the current marked value # # @return [Boolean] the current marked value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#78 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:78 def mark; end - # Gets the current marked value - # - # @return [Boolean] the current marked value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#82 + # pkg:gem/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 # the mark. # - # @param new_mark [Boolean] the new mark - # @param new_val [Object] the new value + # @param [Object] new_val the new value + # @param [Boolean] new_mark the new mark + # # @return [Array] both the new value and the new mark # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#91 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:91 def set(new_val, new_mark); end # Pass the current value to the given block, replacing it with the # block's result. Simply return nil if update fails. # - # the update failed - # - # @return [Array] the new value and marked state, or nil if # @yield [Object] Calculate a new value and marked state for the atomic # reference using given (old) value and (old) marked - # @yieldparam old_mark [Boolean] the starting state of marked - # @yieldparam old_val [Object] the starting value of the atomic reference + # @yieldparam [Object] old_val the starting value of the atomic reference + # @yieldparam [Boolean] old_mark the starting state of marked # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#152 + # @return [Array] the new value and marked state, or nil if + # the update failed + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:152 def try_update; end # Pass the current value to the given block, replacing it # with the block's result. Raise an exception if the update # fails. # - # @raise [Concurrent::ConcurrentUpdateError] if the update fails - # @return [Array] the new value and marked state # @yield [Object] Calculate a new value and marked state for the atomic # reference using given (old) value and (old) marked - # @yieldparam old_mark [Boolean] the starting state of marked - # @yieldparam old_val [Object] the starting value of the atomic reference + # @yieldparam [Object] old_val the starting value of the atomic reference + # @yieldparam [Boolean] old_mark the starting state of marked + # + # @return [Array] the new value and marked state + # + # @raise [Concurrent::ConcurrentUpdateError] if the update fails # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#128 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:128 def try_update!; end # Pass the current value and marked state to the given block, replacing it # with the block's results. May retry if the value changes during the # block's execution. # - # @return [Array] the new value and new mark # @yield [Object] Calculate a new value and marked state for the atomic # reference using given (old) value and (old) marked - # @yieldparam old_mark [Boolean] the starting state of marked - # @yieldparam old_val [Object] the starting value of the atomic reference + # @yieldparam [Object] old_val the starting value of the atomic reference + # @yieldparam [Boolean] old_mark the starting state of marked + # + # @return [Array] the new value and new mark # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#105 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:105 def update; end # Gets the current value of the reference # # @return [Object] the current value of the reference # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#71 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:71 def value; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:163 def immutable_array(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:12 def reference; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:12 def reference=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:12 def swap_reference(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb:12 def update_reference(&block); end end # Special "compare and set" handling of numeric values. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb#7 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb:7 module Concurrent::AtomicNumericCompareAndSetWrapper - # Atomically sets the value to the given updated value if - # the current value == the expected value. - # - # that the actual value was not equal to the expected value. - # - # @param new_value [Object] the new value - # @param old_value [Object] the expected value - # @return [Boolean] `true` if successful. A `false` return indicates + # @!macro atomic_reference_method_compare_and_set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb#10 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb:10 def compare_and_set(old_value, new_value); end end # An object reference that may be updated atomically. All read and write # operations have java volatile semantic. # -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. +# @!macro thread_safe_variable_comparison # # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/package-summary.html # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#126 +# @!method initialize(value = nil) +# @!macro atomic_reference_method_initialize +# @param [Object] value The initial value. +# +# @!method get +# @!macro atomic_reference_method_get +# Gets the current value. +# @return [Object] the current value +# +# @!method set(new_value) +# @!macro atomic_reference_method_set +# Sets to the given value. +# @param [Object] new_value the new value +# @return [Object] the new value +# +# @!method get_and_set(new_value) +# @!macro atomic_reference_method_get_and_set +# Atomically sets to the given value and returns the old value. +# @param [Object] new_value the new value +# @return [Object] the old value +# +# @!method compare_and_set(old_value, new_value) +# @!macro atomic_reference_method_compare_and_set +# +# Atomically sets the value to the given updated value if +# the current value == the expected value. +# +# @param [Object] old_value the expected value +# @param [Object] new_value the new value +# +# @return [Boolean] `true` if successful. A `false` return indicates +# that the actual value was not equal to the expected value. +# +# @!method update +# Pass the current value to the given block, replacing it +# with the block's result. May retry if the value changes +# during the block's execution. +# +# @yield [Object] Calculate a new value for the atomic reference using +# given (old) value +# @yieldparam [Object] old_value the starting value of the atomic reference +# @return [Object] the new value +# +# @!method try_update +# Pass the current value to the given block, replacing it +# with the block's result. Return nil if the update fails. +# +# @yield [Object] Calculate a new value for the atomic reference using +# given (old) value +# @yieldparam [Object] old_value the starting value of the atomic reference +# @note This method was altered to avoid raising an exception by default. +# Instead, this method now returns `nil` in case of failure. For more info, +# please see: https://github.com/ruby-concurrency/concurrent-ruby/pull/336 +# @return [Object] the new value, or nil if update failed +# +# @!method try_update! +# Pass the current value to the given block, replacing it +# with the block's result. Raise an exception if the update +# fails. +# +# @yield [Object] Calculate a new value for the atomic reference using +# given (old) value +# @yieldparam [Object] old_value the starting value of the atomic reference +# @note This behavior mimics the behavior of the original +# `AtomicReference#try_update` API. The reason this was changed was to +# avoid raising exceptions (which are inherently slow) by default. For more +# info: https://github.com/ruby-concurrency/concurrent-ruby/pull/336 +# @return [Object] the new value +# @raise [Concurrent::ConcurrentUpdateError] if the update fails +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb:126 class Concurrent::AtomicReference < ::Concurrent::MutexAtomicReference - # @return [String] Short string representation. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#133 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb:133 def inspect; end # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#129 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb:129 def to_s; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#18 +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb:18 Concurrent::AtomicReferenceImplementation = Concurrent::MutexAtomicReference -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#30 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:30 class Concurrent::CRubySet < ::Set - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + include ::Set::SubclassCompatible + extend ::Set::SubclassCompatible::ClassMethods + + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def initialize(*args, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def &(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def +(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def -(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def <(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def <<(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def <=(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def <=>(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def ==(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def ===(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def >(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def >=(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def ^(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def add(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def add?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def classify(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def clear(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def collect!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def compare_by_identity(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def compare_by_identity?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def delete(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def delete?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def delete_if(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def difference(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def disjoint?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def divide(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def each(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def empty?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 + def encode_with(*args); end + + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def eql?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def filter!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def flatten(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def flatten!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 - def flatten_merge(*args); end - - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 - def freeze(*args); end - - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def hash(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def include?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 + def init_with(*args); end + + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def inspect(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def intersect?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def intersection(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def join(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def keep_if(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def length(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def map!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def member?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def merge(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def pretty_print(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def pretty_print_cycle(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def proper_subset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def proper_superset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def reject!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def replace(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def reset(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def select!(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def size(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def subset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def subtract(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def superset?(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def to_a(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def to_s(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def to_set(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def union(*args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def |(*args); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:33 def initialize_copy(other); end end @@ -2623,38 +2303,45 @@ end # # The API and behavior of this class are based on Java's `CachedThreadPool` # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb#27 +# @!macro thread_pool_options +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb:27 class Concurrent::CachedThreadPool < ::Concurrent::ThreadPoolExecutor - # Create a new thread pool. + # @!macro cached_thread_pool_method_initialize + # + # Create a new thread pool. # - # @option opts - # @param opts [Hash] the options defining pool behavior. - # @raise [ArgumentError] if `fallback_policy` is not a known policy - # @return [CachedThreadPool] a new instance of CachedThreadPool - # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executors.html#newCachedThreadPool-- + # @param [Hash] opts the options defining pool behavior. + # @option opts [Symbol] :fallback_policy (`:abort`) the fallback policy # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb#39 + # @raise [ArgumentError] if `fallback_policy` is not a known policy + # + # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executors.html#newCachedThreadPool-- + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb:39 def initialize(opts = T.unsafe(nil)); end private - # Create a new thread pool. - # - # @option opts - # @param opts [Hash] the options defining pool behavior. - # @raise [ArgumentError] if `fallback_policy` is not a known policy - # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executors.html#newCachedThreadPool-- + # @!macro cached_thread_pool_method_initialize + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb#51 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb:51 def ns_initialize(opts); end end # Raised when an asynchronous operation is cancelled before execution. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#9 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:9 class Concurrent::CancelledOperationError < ::Concurrent::Error; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#7 +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:7 module Concurrent::Collection; end # A thread safe observer set implemented using copy-on-read approach: @@ -2664,75 +2351,60 @@ module Concurrent::Collection; end # # @api private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#12 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:12 class Concurrent::Collection::CopyOnNotifyObserverSet < ::Concurrent::Synchronization::LockableObject - # @api private - # @return [CopyOnNotifyObserverSet] a new instance of CopyOnNotifyObserverSet - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#14 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:14 def initialize; end - # @api private + # @!macro observable_add_observer # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#20 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:20 def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end - # @api private + # @!macro observable_count_observers # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#55 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:55 def count_observers; end - # @api private + # @!macro observable_delete_observer # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#39 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:39 def delete_observer(observer); end - # @api private + # @!macro observable_delete_observers # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#47 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:47 def delete_observers; end # Notifies all registered observers with optional args and deletes them. # - # @api private - # @param args [Object] arguments to be passed to each observer + # @param [Object] args arguments to be passed to each observer # @return [CopyOnWriteObserverSet] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#72 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:72 def notify_and_delete_observers(*args, &block); end # Notifies all registered observers with optional args - # - # @api private - # @param args [Object] arguments to be passed to each observer + # @param [Object] args arguments to be passed to each observer # @return [CopyOnWriteObserverSet] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:62 def notify_observers(*args, &block); end protected - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#80 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:80 def ns_initialize; end private - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#86 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:86 def duplicate_and_clear_observers; end - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#94 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:94 def duplicate_observers; end - # @api private - # @raise [ArgumentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb#98 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb:98 def notify_to(observers, *args); end end @@ -2742,402 +2414,318 @@ end # # @api private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:11 class Concurrent::Collection::CopyOnWriteObserverSet < ::Concurrent::Synchronization::LockableObject - # @api private - # @return [CopyOnWriteObserverSet] a new instance of CopyOnWriteObserverSet - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#13 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:13 def initialize; end - # @api private + # @!macro observable_add_observer # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:19 def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end - # @api private + # @!macro observable_count_observers # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:56 def count_observers; end - # @api private + # @!macro observable_delete_observer # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:40 def delete_observer(observer); end - # @api private + # @!macro observable_delete_observers # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#50 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:50 def delete_observers; end # Notifies all registered observers with optional args and deletes them. # - # @api private - # @param args [Object] arguments to be passed to each observer + # @param [Object] args arguments to be passed to each observer # @return [CopyOnWriteObserverSet] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#72 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:72 def notify_and_delete_observers(*args, &block); end # Notifies all registered observers with optional args - # - # @api private - # @param args [Object] arguments to be passed to each observer + # @param [Object] args arguments to be passed to each observer # @return [CopyOnWriteObserverSet] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#63 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:63 def notify_observers(*args, &block); end protected - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#80 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:80 def ns_initialize; end private - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#102 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:102 def clear_observers_and_return_old; end - # @api private - # @raise [ArgumentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#86 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:86 def notify_to(observers, *args); end - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#94 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:94 def observers; end - # @api private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb#98 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb:98 def observers=(new_set); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#10 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:10 Concurrent::Collection::MapImplementation = Concurrent::Collection::MriMapBackend -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#10 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:10 class Concurrent::Collection::MriMapBackend < ::Concurrent::Collection::NonConcurrentMapBackend - # @return [MriMapBackend] a new instance of MriMapBackend - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:12 def initialize(options = T.unsafe(nil), &default_proc); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#17 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:17 def []=(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#61 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:61 def clear; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:33 def compute(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:21 def compute_if_absent(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:29 def compute_if_present(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#53 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:53 def delete(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#57 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:57 def delete_pair(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#49 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:49 def get_and_set(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:37 def merge_pair(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#45 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:45 def replace_if_exists(key, new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#41 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb:41 def replace_pair(key, old_value, new_value); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#9 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:9 class Concurrent::Collection::NonConcurrentMapBackend # WARNING: all public methods of the class must operate on the @backend # directly without calling each other. This is important because of the # SynchronizedMapBackend which uses a non-reentrant mutex for performance # reasons. # - # @return [NonConcurrentMapBackend] a new instance of NonConcurrentMapBackend - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#15 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:15 def initialize(options = T.unsafe(nil), &default_proc); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:21 def [](key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#25 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:25 def []=(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#94 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:94 def clear; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:59 def compute(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:29 def compute_if_absent(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#53 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:53 def compute_if_present(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#81 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:81 def delete(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#85 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:85 def delete_pair(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:99 def each_pair; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#71 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:71 def get_and_set(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#110 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:110 def get_or_default(key, default_value); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#77 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:77 def key?(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#63 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:63 def merge_pair(key, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#46 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:46 def replace_if_exists(key, new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:37 def replace_pair(key, old_value, new_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#106 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:106 def size; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#130 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:130 def dupped_backend; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#124 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:124 def initialize_copy(other); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#134 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:134 def pair?(key, expected_value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#116 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:116 def set_backend(default_proc); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#138 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:138 def store_computed_value(key, new_value); end end -# A queue collection in which the elements are sorted based on their -# comparison (spaceship) operator `<=>`. Items are added to the queue -# at a position relative to their priority. On removal the element -# with the "highest" priority is removed. By default the sort order is -# from highest to lowest, but a lowest-to-highest sort order can be -# set on construction. +# @!macro priority_queue +# +# A queue collection in which the elements are sorted based on their +# comparison (spaceship) operator `<=>`. Items are added to the queue +# at a position relative to their priority. On removal the element +# with the "highest" priority is removed. By default the sort order is +# from highest to lowest, but a lowest-to-highest sort order can be +# set on construction. # -# The API is based on the `Queue` class from the Ruby standard library. +# The API is based on the `Queue` class from the Ruby standard library. # -# The pure Ruby implementation, `RubyNonConcurrentPriorityQueue` uses a heap algorithm -# stored in an array. The algorithm is based on the work of Robert Sedgewick -# and Kevin Wayne. +# The pure Ruby implementation, `RubyNonConcurrentPriorityQueue` uses a heap algorithm +# stored in an array. The algorithm is based on the work of Robert Sedgewick +# and Kevin Wayne. # -# The JRuby native implementation is a thin wrapper around the standard -# library `java.util.NonConcurrentPriorityQueue`. +# The JRuby native implementation is a thin wrapper around the standard +# library `java.util.NonConcurrentPriorityQueue`. # -# When running under JRuby the class `NonConcurrentPriorityQueue` extends `JavaNonConcurrentPriorityQueue`. -# When running under all other interpreters it extends `RubyNonConcurrentPriorityQueue`. +# When running under JRuby the class `NonConcurrentPriorityQueue` extends `JavaNonConcurrentPriorityQueue`. +# When running under all other interpreters it extends `RubyNonConcurrentPriorityQueue`. # -# @note This implementation is *not* thread safe. -# @see http://algs4.cs.princeton.edu/24pq/MaxPQ.java.html -# @see http://algs4.cs.princeton.edu/24pq/index.php#2.6 -# @see http://docs.oracle.com/javase/7/docs/api/java/util/PriorityQueue.html -# @see http://en.wikipedia.org/wiki/Priority_queue -# @see http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/Queue.html +# @note This implementation is *not* thread safe. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#50 +# @see http://en.wikipedia.org/wiki/Priority_queue +# @see http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/Queue.html +# +# @see http://algs4.cs.princeton.edu/24pq/index.php#2.6 +# @see http://algs4.cs.princeton.edu/24pq/MaxPQ.java.html +# +# @see http://docs.oracle.com/javase/7/docs/api/java/util/PriorityQueue.html +# +# @!visibility private +# +# pkg:gem/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/non_concurrent_priority_queue.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb:59 def <<(item); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb:56 def deq; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#60 + # pkg:gem/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/non_concurrent_priority_queue.rb#52 + # pkg:gem/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/non_concurrent_priority_queue.rb#57 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb:57 def shift; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb:54 def size; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#10 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb:10 Concurrent::Collection::NonConcurrentPriorityQueueImplementation = Concurrent::Collection::RubyNonConcurrentPriorityQueue -# A queue collection in which the elements are sorted based on their -# comparison (spaceship) operator `<=>`. Items are added to the queue -# at a position relative to their priority. On removal the element -# with the "highest" priority is removed. By default the sort order is -# from highest to lowest, but a lowest-to-highest sort order can be -# set on construction. -# -# The API is based on the `Queue` class from the Ruby standard library. -# -# The pure Ruby implementation, `RubyNonConcurrentPriorityQueue` uses a heap algorithm -# stored in an array. The algorithm is based on the work of Robert Sedgewick -# and Kevin Wayne. -# -# The JRuby native implementation is a thin wrapper around the standard -# library `java.util.NonConcurrentPriorityQueue`. +# @!macro priority_queue # -# When running under JRuby the class `NonConcurrentPriorityQueue` extends `JavaNonConcurrentPriorityQueue`. -# When running under all other interpreters it extends `RubyNonConcurrentPriorityQueue`. +# @!visibility private +# @!macro internal_implementation_note # -# @note This implementation is *not* thread safe. -# @see http://algs4.cs.princeton.edu/24pq/MaxPQ.java.html -# @see http://algs4.cs.princeton.edu/24pq/index.php#2.6 -# @see http://docs.oracle.com/javase/7/docs/api/java/util/PriorityQueue.html -# @see http://en.wikipedia.org/wiki/Priority_queue -# @see http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/Queue.html -# -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#8 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:8 class Concurrent::Collection::RubyNonConcurrentPriorityQueue - # Create a new priority queue with no items. - # - # @option opts - # @param opts [Hash] the options for creating the queue - # @return [RubyNonConcurrentPriorityQueue] a new instance of RubyNonConcurrentPriorityQueue + # @!macro priority_queue_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:11 def initialize(opts = T.unsafe(nil)); end - # Inserts the specified element into this priority queue. - # - # @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#85 + # pkg:gem/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. + # @!macro priority_queue_method_clear # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:18 def clear; end - # Deletes all items from `self` that are equal to `item`. + # @!macro priority_queue_method_delete # - # @param item [Object] the item to be removed from the queue - # @return [Object] true if the item is found else false - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#25 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:25 def delete(item); end - # Retrieves and removes the head of this queue, or returns `nil` if this - # queue is empty. - # - # @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#74 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:74 def deq; end - # Returns `true` if `self` contains no elements. - # - # @return [Boolean] true if there are no items in the queue else false + # @!macro priority_queue_method_empty # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#43 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:43 def empty?; end - # Inserts the specified element into this priority queue. - # - # @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#86 + # pkg:gem/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 - # element == `item`), otherwise returns false. - # - # @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#51 + # pkg:gem/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 - # element == `item`), otherwise returns false. + # @!macro priority_queue_method_include # - # @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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:48 def include?(item); end - # The current length of the queue. - # - # @return [Fixnum] the number of items in the queue + # @!macro priority_queue_method_length # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:54 def length; end - # Retrieves, but does not remove, the head of this queue, or returns `nil` - # if this queue is empty. + # @!macro priority_queue_method_peek # - # @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#60 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:60 def peek; end - # Retrieves and removes the head of this queue, or returns `nil` if this - # queue is empty. - # - # @return [Object] the head of the queue or `nil` when empty + # @!macro priority_queue_method_pop # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:65 def pop; end - # Inserts the specified element into this priority queue. + # @!macro priority_queue_method_push # - # @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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:78 def push(item); end - # Retrieves and removes the head of this queue, or returns `nil` if this - # queue is empty. - # - # @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#75 + # pkg:gem/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#57 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:57 def size; end private @@ -3145,63 +2733,81 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue # Are the items at the given indexes ordered based on the priority # order specified at construction? # - # @param x [Integer] the first index from which to retrieve a comparable value - # @param y [Integer] the second index from which to retrieve a comparable value + # @param [Integer] x the first index from which to retrieve a comparable value + # @param [Integer] y the second index from which to retrieve a comparable value + # # @return [Boolean] true if the two elements are in the correct priority order # else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#119 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:119 def ordered?(x, y); end # Percolate down to maintain heap invariant. # - # @param k [Integer] the index at which to start the percolation + # @param [Integer] k the index at which to start the percolation + # + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#128 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:128 def sink(k); end # Exchange the values at the given indexes within the internal array. # - # @param x [Integer] the first index to swap - # @param y [Integer] the second index to swap + # @param [Integer] x the first index to swap + # @param [Integer] y the second index to swap # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#103 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:103 def swap(x, y); end # Percolate up to maintain heap invariant. # - # @param k [Integer] the index at which to start the percolation + # @param [Integer] k the index at which to start the percolation + # + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#147 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:147 def swim(k); end class << self - # @!macro priority_queue_method_from_list + # @!macro priority_queue_method_from_list # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#89 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb:89 def from_list(list, opts = T.unsafe(nil)); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/timeout_queue.rb#15 +# @!visibility private +# @!macro timeout_queue +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/timeout_queue.rb:15 class Concurrent::Collection::TimeoutQueue < ::Thread::Queue; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/timeout_queue.rb#5 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/timeout_queue.rb:5 Concurrent::Collection::TimeoutQueueImplementation = Thread::Queue -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#2 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:2 module Concurrent::Concern; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/deprecation.rb#8 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/deprecation.rb:8 module Concurrent::Concern::Deprecation include ::Concurrent::Concern::Logging extend ::Concurrent::Concern::Logging extend ::Concurrent::Concern::Deprecation - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/deprecation.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/deprecation.rb:12 def deprecated(message, strip = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/deprecation.rb#27 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/deprecation.rb:27 def deprecated_method(old_name, new_name); end end @@ -3211,14 +2817,11 @@ end # Most classes in this library that expose a `#value` getter method do so using the # `Dereferenceable` mixin module. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#11 +# @!macro copy_options +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:11 module Concurrent::Concern::Dereferenceable - # Return the value this object represents after applying the options specified - # by the `#set_deref_options` method. - # - # @return [Object] the current value of the object - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:24 def deref; end # Return the value this object represents after applying the options specified @@ -3226,87 +2829,87 @@ module Concurrent::Concern::Dereferenceable # # @return [Object] the current value of the object # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:21 def value; end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#63 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:63 def apply_deref_options(value); end - # Set the options which define the operations #value performs before - # returning data to the caller (dereferencing). + # @!macro dereferenceable_set_deref_options + # @!visibility private # - # @note Most classes that include this module will call `#set_deref_options` - # from within the constructor, thus allowing these options to be set at - # object creation. - # @option opts - # @option opts - # @option opts - # @param opts [Hash] the options defining dereference behavior. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:54 def ns_set_deref_options(opts); end - # Set the options which define the operations #value performs before - # returning data to the caller (dereferencing). + # @!macro dereferenceable_set_deref_options + # Set the options which define the operations #value performs before + # returning data to the caller (dereferencing). + # + # @note Most classes that include this module will call `#set_deref_options` + # from within the constructor, thus allowing these options to be set at + # object creation. # - # @note Most classes that include this module will call `#set_deref_options` - # from within the constructor, thus allowing these options to be set at - # object creation. - # @option opts - # @option opts - # @option opts - # @param opts [Hash] the options defining dereference behavior. + # @param [Hash] opts the options defining dereference behavior. + # @option opts [String] :dup_on_deref (false) call `#dup` before returning the data + # @option opts [String] :freeze_on_deref (false) call `#freeze` before returning the data + # @option opts [String] :copy_on_deref (nil) call the given `Proc` passing + # the internal value and returning the value returned from the proc # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#48 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:48 def set_deref_options(opts = T.unsafe(nil)); end # Set the internal value of this object # - # @param value [Object] the new value + # @param [Object] value the new value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#31 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/dereferenceable.rb:31 def value=(value); end end # Include where logging is needed # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#9 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:9 module Concurrent::Concern::Logging # Logs through {Concurrent.global_logger}, it can be overridden by setting @logger - # - # @param level [Integer] one of Concurrent::Concern::Logging constants - # @param message [String, nil] when nil block is used to generate the message - # @param progname [String] e.g. a path of an Actor + # @param [Integer] level one of Concurrent::Concern::Logging constants + # @param [String] progname e.g. a path of an Actor + # @param [String, nil] message when nil block is used to generate the message # @yieldreturn [String] a message # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:19 def log(level, progname, message = T.unsafe(nil), &block); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11 +# The same as Logger::Severity but we copy it here to avoid a dependency on the logger gem just for these 7 constants +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:11 Concurrent::Concern::Logging::DEBUG = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:11 Concurrent::Concern::Logging::ERROR = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:11 Concurrent::Concern::Logging::FATAL = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:11 Concurrent::Concern::Logging::INFO = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#12 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:12 Concurrent::Concern::Logging::SEV_LABEL = T.let(T.unsafe(nil), Array) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:11 Concurrent::Concern::Logging::UNKNOWN = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:11 Concurrent::Concern::Logging::WARN = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:10 module Concurrent::Concern::Obligation include ::Concurrent::Concern::Dereferenceable @@ -3314,53 +2917,41 @@ module Concurrent::Concern::Obligation # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#49 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:49 def complete?; end # @example allows Obligation to be risen # rejected_ivar = Ivar.new.fail # raise rejected_ivar # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#126 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:126 def exception(*args); end # Has the obligation been fulfilled? # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#20 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:20 def fulfilled?; end # Is the obligation still awaiting completion of processing? # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:56 def incomplete?; end - # Wait until obligation is complete or the timeout is reached. Will re-raise - # any exceptions raised during processing (but will not raise an exception - # on timeout). - # - # @param timeout [Numeric] the maximum time in seconds to wait. - # @raise [Exception] raises the reason when rejected - # @return [Obligation] self - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#89 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:89 def no_error!(timeout = T.unsafe(nil)); end # Is obligation completion still pending? # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#35 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:35 def pending?; end - # Has the obligation been fulfilled? - # - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#23 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:23 def realized?; end # If an exception was raised during processing this will return the @@ -3369,67 +2960,67 @@ module Concurrent::Concern::Obligation # # @return [Exception] the exception raised during processing or `nil` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#119 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:119 def reason; end # Has the obligation been rejected? # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#28 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:28 def rejected?; end # The current state of the obligation. # # @return [Symbol] the current state # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#110 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:110 def state; end # Is the obligation still unscheduled? # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#42 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:42 def unscheduled?; end # The current value of the obligation. Will be `nil` while the state is # pending or the operation has been rejected. # - # @param timeout [Numeric] the maximum time in seconds to wait. + # @param [Numeric] timeout the maximum time in seconds to wait. # @return [Object] see Dereferenceable#deref # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#65 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:65 def value(timeout = T.unsafe(nil)); end # The current value of the obligation. Will be `nil` while the state is # pending or the operation has been rejected. Will re-raise any exceptions # raised during processing (but will not raise an exception on timeout). # - # @param timeout [Numeric] the maximum time in seconds to wait. - # @raise [Exception] raises the reason when rejected + # @param [Numeric] timeout the maximum time in seconds to wait. # @return [Object] see Dereferenceable#deref + # @raise [Exception] raises the reason when rejected # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#98 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:98 def value!(timeout = T.unsafe(nil)); end # Wait until obligation is complete or the timeout has been reached. # - # @param timeout [Numeric] the maximum time in seconds to wait. + # @param [Numeric] timeout the maximum time in seconds to wait. # @return [Obligation] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#74 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:74 def wait(timeout = T.unsafe(nil)); end # Wait until obligation is complete or the timeout is reached. Will re-raise # any exceptions raised during processing (but will not raise an exception # on timeout). # - # @param timeout [Numeric] the maximum time in seconds to wait. - # @raise [Exception] raises the reason when rejected + # @param [Numeric] timeout the maximum time in seconds to wait. # @return [Obligation] self + # @raise [Exception] raises the reason when rejected # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#86 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:86 def wait!(timeout = T.unsafe(nil)); end protected @@ -3437,44 +3028,63 @@ module Concurrent::Concern::Obligation # Atomic compare and set operation # State is set to `next_state` only if `current state == expected_current`. # - # @param expected_current [Symbol] - # @param next_state [Symbol] + # @param [Symbol] next_state + # @param [Symbol] expected_current + # # @return [Boolean] true is state is changed, false otherwise # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#174 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:174 def compare_and_set_state(next_state, *expected_current); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#145 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:145 def event; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#134 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:134 def get_arguments_from(opts = T.unsafe(nil)); end # Executes the block within mutex if current state is included in expected_states # # @return block value if executed, false otherwise # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#190 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:190 def if_state(*expected_states); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#139 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:139 def init_obligation; end # Am I in the current state? # - # @param expected [Symbol] The state to check against + # @param [Symbol] expected The state to check against # @return [Boolean] true if in the expected state else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#210 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:210 def ns_check_state?(expected); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#215 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:215 def ns_set_state(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#150 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:150 def set_state(success, value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#161 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/obligation.rb:161 def state=(value); end end @@ -3522,133 +3132,142 @@ end # threads at the same time, so it should be synchronized (using either a Mutex # or an AtomicFixum) # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#50 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:50 module Concurrent::Concern::Observable - # Adds an observer to this set. If a block is passed, the observer will be - # created by this method and no other params should be passed. + # @!macro observable_add_observer # - # @param func [Symbol] the function to call on the observer during notification. - # Default is :update - # @param observer [Object] the observer to add - # @return [Object] the added observer + # Adds an observer to this set. If a block is passed, the observer will be + # created by this method and no other params should be passed. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#61 + # @param [Object] observer the observer to add + # @param [Symbol] func the function to call on the observer during notification. + # Default is :update + # @return [Object] the added observer + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:61 def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end - # Return the number of observers associated with this object. + # @!macro observable_count_observers + # + # Return the number of observers associated with this object. # - # @return [Integer] the observers count + # @return [Integer] the observers count # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#101 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:101 def count_observers; end - # Remove `observer` as an observer on this object so that it will no - # longer receive notifications. + # @!macro observable_delete_observer # - # @param observer [Object] the observer to remove - # @return [Object] the deleted observer + # Remove `observer` as an observer on this object so that it will no + # longer receive notifications. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#82 + # @param [Object] observer the observer to remove + # @return [Object] the deleted observer + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:82 def delete_observer(observer); end - # Remove all observers associated with this object. + # @!macro observable_delete_observers # - # @return [Observable] self + # Remove all observers associated with this object. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#91 + # @return [Observable] self + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:91 def delete_observers; end # As `#add_observer` but can be used for chaining. # - # @param func [Symbol] the function to call on the observer during notification. - # @param observer [Object] the observer to add + # @param [Object] observer the observer to add + # @param [Symbol] func the function to call on the observer during notification. # @return [Observable] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#70 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:70 def with_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end protected - # Returns the value of attribute observers. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#107 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:107 def observers; end - # Sets the attribute observers - # - # @param value the value to set the attribute observers to. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#107 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/observable.rb:107 def observers=(_arg0); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#70 +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:70 class Concurrent::ConcurrentUpdateError < ::ThreadError; end # frozen pre-allocated backtrace to speed ConcurrentUpdateError # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#72 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:72 Concurrent::ConcurrentUpdateError::CONC_UP_ERR_BACKTRACE = T.let(T.unsafe(nil), Array) # Raised when errors occur during configuration. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#6 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:6 class Concurrent::ConfigurationError < ::Concurrent::Error; end -# A synchronization object that allows one thread to wait on multiple other threads. -# The thread that will wait creates a `CountDownLatch` and sets the initial value -# (normally equal to the number of other threads). The initiating thread passes the -# latch to the other threads then waits for the other threads by calling the `#wait` -# method. Each of the other threads calls `#count_down` when done with its work. -# When the latch counter reaches zero the waiting thread is unblocked and continues -# with its work. A `CountDownLatch` can be used only once. Its value cannot be reset. +# @!macro count_down_latch +# +# A synchronization object that allows one thread to wait on multiple other threads. +# The thread that will wait creates a `CountDownLatch` and sets the initial value +# (normally equal to the number of other threads). The initiating thread passes the +# latch to the other threads then waits for the other threads by calling the `#wait` +# method. Each of the other threads calls `#count_down` when done with its work. +# When the latch counter reaches zero the waiting thread is unblocked and continues +# with its work. A `CountDownLatch` can be used only once. Its value cannot be reset. # +# @!macro count_down_latch_public_api # @example Waiter and Decrementer # latch = Concurrent::CountDownLatch.new(3) # # waiter = Thread.new do -# latch.wait() -# puts ("Waiter released") +# latch.wait() +# puts ("Waiter released") # end # # decrementer = Thread.new do -# sleep(1) -# latch.count_down -# puts latch.count +# sleep(1) +# latch.count_down +# puts latch.count # -# sleep(1) -# latch.count_down -# puts latch.count +# sleep(1) +# latch.count_down +# puts latch.count # -# sleep(1) -# latch.count_down -# puts latch.count +# sleep(1) +# latch.count_down +# puts latch.count # end # # [waiter, decrementer].each(&:join) # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb#98 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb:98 class Concurrent::CountDownLatch < ::Concurrent::MutexCountDownLatch; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb#56 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb:56 Concurrent::CountDownLatchImplementation = Concurrent::MutexCountDownLatch # A synchronization aid that allows a set of threads to all wait for each # other to reach a common barrier point. -# # @example # barrier = Concurrent::CyclicBarrier.new(3) # jobs = Array.new(3) { |i| -> { sleep i; p done: i } } # process = -> (i) do -# # waiting to start at the same time -# barrier.wait -# # execute job -# jobs[i].call -# # wait for others to finish -# barrier.wait +# # waiting to start at the same time +# barrier.wait +# # execute job +# jobs[i].call +# # wait for others to finish +# barrier.wait # end # threads = 2.times.map do |i| -# Thread.new(i, &process) +# Thread.new(i, &process) # end # # # use main as well @@ -3656,17 +3275,17 @@ Concurrent::CountDownLatchImplementation = Concurrent::MutexCountDownLatch # # # here we can be sure that all jobs are processed # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#27 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:27 class Concurrent::CyclicBarrier < ::Concurrent::Synchronization::LockableObject # Create a new `CyclicBarrier` that waits for `parties` threads # - # @param parties [Fixnum] the number of parties - # @raise [ArgumentError] if `parties` is not an integer or is less than zero - # @return [CyclicBarrier] a new instance of CyclicBarrier + # @param [Fixnum] parties the number of parties # @yield an optional block that will be executed that will be executed after - # the last thread arrives and before the others are released + # the last thread arrives and before the others are released + # + # @raise [ArgumentError] if `parties` is not an integer or is less than zero # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:40 def initialize(parties, &block); end # A barrier can be broken when: @@ -3674,20 +3293,19 @@ class Concurrent::CyclicBarrier < ::Concurrent::Synchronization::LockableObject # - at least one thread timed out on `wait` method # # A broken barrier can be restored using `reset` it's safer to create a new one - # # @return [Boolean] true if the barrier is broken otherwise false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#105 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:105 def broken?; end # @return [Fixnum] the number of threads currently waiting on the barrier # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:54 def number_waiting; end # @return [Fixnum] the number of threads needed to pass the barrier # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#49 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:49 def parties; end # resets the barrier to its initial state @@ -3697,65 +3315,57 @@ class Concurrent::CyclicBarrier < ::Concurrent::Synchronization::LockableObject # # @return [nil] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#95 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:95 def reset; end # Blocks on the barrier until the number of waiting threads is equal to # `parties` or until `timeout` is reached or `reset` is called # If a block has been passed to the constructor, it will be executed once by # the last arrived thread before releasing the others - # - # @param timeout [Fixnum] the number of seconds to wait for the counter or - # `nil` to block indefinitely + # @param [Fixnum] timeout the number of seconds to wait for the counter or + # `nil` to block indefinitely # @return [Boolean] `true` if the `count` reaches zero else false on - # `timeout` or on `reset` or if the barrier is broken + # `timeout` or on `reset` or if the barrier is broken # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#66 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:66 def wait(timeout = T.unsafe(nil)); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#111 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:111 def ns_generation_done(generation, status, continue = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#122 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:122 def ns_initialize(parties, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#117 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:117 def ns_next_generation; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:30 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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb:30 def new(*_arg0); end end end @@ -3782,34 +3392,40 @@ end # `Delay` includes the `Concurrent::Concern::Dereferenceable` mixin to support thread # safety of the reference returned by `#value`. # -# @note The default behavior of `Delay` is to block indefinitely when -# calling either `value` or `wait`, executing the delayed operation on -# the current thread. This makes the `timeout` value completely -# irrelevant. To enable non-blocking behavior, use the `executor` -# constructor option. This will cause the delayed operation to be -# execute on the given executor, allowing the call to timeout. +# @!macro copy_options +# +# @!macro delay_note_regarding_blocking +# @note The default behavior of `Delay` is to block indefinitely when +# calling either `value` or `wait`, executing the delayed operation on +# the current thread. This makes the `timeout` value completely +# irrelevant. To enable non-blocking behavior, use the `executor` +# constructor option. This will cause the delayed operation to be +# execute on the given executor, allowing the call to timeout. +# # @see Concurrent::Concern::Dereferenceable # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#44 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:44 class Concurrent::Delay < ::Concurrent::Synchronization::LockableObject include ::Concurrent::Concern::Dereferenceable include ::Concurrent::Concern::Obligation # Create a new `Delay` in the `:pending` state. # - # @raise [ArgumentError] if no block is given - # @return [Delay] a new instance of Delay + # @!macro executor_and_deref_options + # # @yield the delayed operation to perform # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#62 + # @raise [ArgumentError] if no block is given + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:62 def initialize(opts = T.unsafe(nil), &block); end # Reconfigures the block returning the value if still `#incomplete?` # - # @return [true, false] if success # @yield the delayed operation to perform + # @return [true, false] if success # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#146 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:146 def reconfigure(&block); end # Return the value this object represents after applying the options @@ -3817,16 +3433,12 @@ class Concurrent::Delay < ::Concurrent::Synchronization::LockableObject # raised an exception this method will return nil. The exception object # can be accessed via the `#reason` method. # - # @note The default behavior of `Delay` is to block indefinitely when - # calling either `value` or `wait`, executing the delayed operation on - # the current thread. This makes the `timeout` value completely - # irrelevant. To enable non-blocking behavior, use the `executor` - # constructor option. This will cause the delayed operation to be - # execute on the given executor, allowing the call to timeout. - # @param timeout [Numeric] the maximum number of seconds to wait + # @param [Numeric] timeout the maximum number of seconds to wait # @return [Object] the current value of the object # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#77 + # @!macro delay_note_regarding_blocking + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:77 def value(timeout = T.unsafe(nil)); end # Return the value this object represents after applying the options @@ -3834,58 +3446,53 @@ class Concurrent::Delay < ::Concurrent::Synchronization::LockableObject # raised an exception, this method will raise that exception (even when) # the operation has already been executed). # - # @note The default behavior of `Delay` is to block indefinitely when - # calling either `value` or `wait`, executing the delayed operation on - # the current thread. This makes the `timeout` value completely - # irrelevant. To enable non-blocking behavior, use the `executor` - # constructor option. This will cause the delayed operation to be - # execute on the given executor, allowing the call to timeout. - # @param timeout [Numeric] the maximum number of seconds to wait - # @raise [Exception] when `#rejected?` raises `#reason` + # @param [Numeric] timeout the maximum number of seconds to wait # @return [Object] the current value of the object + # @raise [Exception] when `#rejected?` raises `#reason` + # + # @!macro delay_note_regarding_blocking # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#113 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:113 def value!(timeout = T.unsafe(nil)); end # Return the value this object represents after applying the options # specified by the `#set_deref_options` method. # - # @note The default behavior of `Delay` is to block indefinitely when - # calling either `value` or `wait`, executing the delayed operation on - # the current thread. This makes the `timeout` value completely - # irrelevant. To enable non-blocking behavior, use the `executor` - # constructor option. This will cause the delayed operation to be - # execute on the given executor, allowing the call to timeout. - # @param timeout [Integer] (nil) the maximum number of seconds to wait for + # @param [Integer] timeout (nil) the maximum number of seconds to wait for # the value to be computed. When `nil` the caller will block indefinitely. + # # @return [Object] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#132 + # @!macro delay_note_regarding_blocking + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:132 def wait(timeout = T.unsafe(nil)); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#160 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:160 def ns_initialize(opts, &block); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/delay.rb#173 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/delay.rb:173 def execute_task_once; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#7 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:7 class Concurrent::DependencyCounter - # @return [DependencyCounter] a new instance of DependencyCounter - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#9 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:9 def initialize(count, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#14 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/dataflow.rb:14 def update(time, value, reason); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#3 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:3 class Concurrent::Error < ::StandardError; end # Old school kernel-style event reminiscent of Win32 programming in C++. @@ -3897,18 +3504,19 @@ class Concurrent::Error < ::StandardError; end # New threads calling `#wait` will return immediately. An `Event` may be # `#reset` at any time once it has been set. # +# @see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682655.aspx # @example # event = Concurrent::Event.new # # t1 = Thread.new do -# puts "t1 is waiting" -# event.wait(1) -# puts "event occurred" +# puts "t1 is waiting" +# event.wait(1) +# puts "event occurred" # end # # t2 = Thread.new do -# puts "t2 calling set" -# event.set +# puts "t2 calling set" +# event.set # end # # [t1, t2].each(&:join) @@ -3917,16 +3525,13 @@ class Concurrent::Error < ::StandardError; end # # t1 is waiting # # t2 calling set # # event occurred -# @see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682655.aspx # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#36 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:36 class Concurrent::Event < ::Concurrent::Synchronization::LockableObject # Creates a new `Event` in the unset state. Threads calling `#wait` on the # `Event` will block. # - # @return [Event] a new instance of Event - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:40 def initialize; end # Reset a previously set event back to the `unset` state. @@ -3934,7 +3539,7 @@ class Concurrent::Event < ::Concurrent::Synchronization::LockableObject # # @return [Boolean] should always return `true` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#68 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:68 def reset; end # Trigger the event, setting the state to `set` and releasing all threads @@ -3942,19 +3547,17 @@ class Concurrent::Event < ::Concurrent::Synchronization::LockableObject # # @return [Boolean] should always return `true` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:56 def set; end # Is the object in the set state? # # @return [Boolean] indicating whether or not the `Event` has been set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#48 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:48 def set?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#60 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:60 def try?; end # Wait a given number of seconds for the `Event` to be set by another @@ -3963,117 +3566,58 @@ class Concurrent::Event < ::Concurrent::Synchronization::LockableObject # # @return [Boolean] true if the `Event` was set before timeout else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#83 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:83 def wait(timeout = T.unsafe(nil)); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#104 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:104 def ns_initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/event.rb#96 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/event.rb:96 def ns_set; end end -# A synchronization point at which threads can pair and swap elements within -# pairs. Each thread presents some object on entry to the exchange method, -# matches with a partner thread, and receives its partner's object on return. -# -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. -# This implementation is very simple, using only a single slot for each -# exchanger (unlike more advanced implementations which use an "arena"). -# This approach will work perfectly fine when there are only a few threads -# accessing a single `Exchanger`. Beyond a handful of threads the performance -# will degrade rapidly due to contention on the single slot, but the algorithm -# will remain correct. -# -# @example +# @!macro exchanger # -# exchanger = Concurrent::Exchanger.new -# -# threads = [ -# Thread.new { puts "first: " << exchanger.exchange('foo', 1) }, #=> "first: bar" -# Thread.new { puts "second: " << exchanger.exchange('bar', 1) } #=> "second: foo" -# ] -# threads.each {|t| t.join(2) } -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Exchanger.html java.util.concurrent.Exchanger -# -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#336 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:336 class Concurrent::Exchanger < ::Concurrent::RubyExchanger; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#327 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:327 Concurrent::ExchangerImplementation = Concurrent::RubyExchanger -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#157 +# @!macro executor_service_public_api +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/executor_service.rb:157 module Concurrent::ExecutorService include ::Concurrent::Concern::Logging - # Submit a task to the executor for asynchronous processing. - # - # @param task [Proc] the asynchronous task to perform - # @return [self] returns itself + # @!macro executor_service_method_left_shift # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#166 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/executor_service.rb:166 def <<(task); end - # Does the task queue have a maximum size? + # @!macro executor_service_method_can_overflow_question # # @note Always returns `false` - # @return [Boolean] True if the task queue has a maximum size else false. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#174 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/executor_service.rb:174 def can_overflow?; end - # Submit a task to the executor for asynchronous processing. - # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform + # @!macro executor_service_method_post # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#161 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/executor_service.rb:161 def post(*args, &task); end - # Does this executor guarantee serialization of its operations? + # @!macro executor_service_method_serialized_question # # @note Always returns `false` - # @return [Boolean] True if the executor guarantees that all operations - # will be post in the order they are received and no two operations may - # occur simultaneously. Else false. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#181 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/executor_service.rb:181 def serialized?; end end @@ -4095,172 +3639,137 @@ end # v.value #=> 14 # v.value = 2 # v.value #=> 2 +# # @example # v = FiberLocalVar.new(14) # # Fiber.new do -# v.value #=> 14 -# v.value = 1 -# v.value #=> 1 +# v.value #=> 14 +# v.value = 1 +# v.value #=> 1 # end.resume # # Fiber.new do -# v.value #=> 14 -# v.value = 2 -# v.value #=> 2 +# v.value #=> 14 +# v.value = 2 +# v.value #=> 2 # end.resume # # v.value #=> 14 # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#41 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:41 class Concurrent::FiberLocalVar # Creates a fiber local variable. # - # @param default [Object] the default value when otherwise unset - # @param default_block [Proc] Optional block that gets called to obtain the + # @param [Object] default the default value when otherwise unset + # @param [Proc] default_block Optional block that gets called to obtain the # default value for each fiber - # @return [FiberLocalVar] a new instance of FiberLocalVar # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#49 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:49 def initialize(default = T.unsafe(nil), &default_block); end # Bind the given value to fiber local storage during # execution of the given block. # - # @param value [Object] the value to bind - # @return [Object] the value + # @param [Object] value the value to bind # @yield the operation to be performed with the bound variable + # @return [Object] the value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#86 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:86 def bind(value); end # Returns the value in the current fiber's copy of this fiber-local variable. # # @return [Object] the current value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#68 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:68 def value; end # Sets the current fiber's copy of this fiber-local variable to the specified value. # - # @param value [Object] the value to set + # @param [Object] value the value to set # @return [Object] the new value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#76 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:76 def value=(value); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#101 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:101 def default; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb#42 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/fiber_local_var.rb:42 Concurrent::FiberLocalVar::LOCALS = T.let(T.unsafe(nil), Concurrent::FiberLocals) +# @!visibility private +# @!macro internal_implementation_note # An array-backed storage of indexed variables per fiber. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#166 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:166 class Concurrent::FiberLocals < ::Concurrent::AbstractLocals - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#167 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:167 def locals; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#171 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:171 def locals!; end end -# A thread pool that reuses a fixed number of threads operating off an unbounded queue. -# At any point, at most `num_threads` will be active processing tasks. When all threads are busy new -# tasks `#post` to the thread pool are enqueued until a thread becomes available. -# Should a thread crash for any reason the thread will immediately be removed -# from the pool and replaced. -# -# The API and behavior of this class are based on Java's `FixedThreadPool` -# -# **Thread Pool Options** -# -# Thread pools support several configuration options: +# @!macro fixed_thread_pool # -# * `idletime`: The number of seconds that a thread may be idle before being reclaimed. -# * `name`: The name of the executor (optional). Printed in the executor's `#to_s` output and -# a `-worker-` name is given to its threads if supported by used Ruby -# implementation. `` is uniq for each thread. -# * `max_queue`: The maximum number of tasks that may be waiting in the work queue at -# any one time. When the queue size reaches `max_queue` and no new threads can be created, -# subsequent tasks will be rejected in accordance with the configured `fallback_policy`. -# * `auto_terminate`: When true (default), the threads started will be marked as daemon. -# * `fallback_policy`: The policy defining how rejected tasks are handled. +# A thread pool that reuses a fixed number of threads operating off an unbounded queue. +# At any point, at most `num_threads` will be active processing tasks. When all threads are busy new +# tasks `#post` to the thread pool are enqueued until a thread becomes available. +# Should a thread crash for any reason the thread will immediately be removed +# from the pool and replaced. # -# Three fallback policies are supported: -# -# * `:abort`: Raise a `RejectedExecutionError` exception and discard the task. -# * `:discard`: Discard the task and return false. -# * `:caller_runs`: Execute the task on the calling thread. -# -# **Shutting Down Thread Pools** -# -# Killing a thread pool while tasks are still being processed, either by calling -# the `#kill` method or at application exit, will have unpredictable results. There -# is no way for the thread pool to know what resources are being used by the -# in-progress tasks. When those tasks are killed the impact on those resources -# cannot be predicted. The *best* practice is to explicitly shutdown all thread -# pools using the provided methods: -# -# * Call `#shutdown` to initiate an orderly termination of all in-progress tasks -# * Call `#wait_for_termination` with an appropriate timeout interval an allow -# the orderly shutdown to complete -# * Call `#kill` *only when* the thread pool fails to shutdown in the allotted time -# -# On some runtime platforms (most notably the JVM) the application will not -# exit until all thread pools have been shutdown. To prevent applications from -# "hanging" on exit, all threads can be marked as daemon according to the -# `:auto_terminate` option. -# -# ```ruby -# pool1 = Concurrent::FixedThreadPool.new(5) # threads will be marked as daemon -# pool2 = Concurrent::FixedThreadPool.new(5, auto_terminate: false) # mark threads as non-daemon -# ``` +# The API and behavior of this class are based on Java's `FixedThreadPool` # -# @note Failure to properly shutdown a thread pool can lead to unpredictable results. -# Please read *Shutting Down Thread Pools* for more information. -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html Java Executors class -# @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html Java ExecutorService interface -# @see http://docs.oracle.com/javase/tutorial/essential/concurrency/pools.html Java Tutorials: Thread Pools -# @see https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#setDaemon-boolean- +# @!macro thread_pool_options # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb#199 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb:199 class Concurrent::FixedThreadPool < ::Concurrent::ThreadPoolExecutor - # Create a new thread pool. + # @!macro fixed_thread_pool_method_initialize + # + # Create a new thread pool. + # + # @param [Integer] num_threads the number of threads to allocate + # @param [Hash] opts the options defining pool behavior. + # @option opts [Symbol] :fallback_policy (`:abort`) the fallback policy + # + # @raise [ArgumentError] if `num_threads` is less than or equal to zero + # @raise [ArgumentError] if `fallback_policy` is not a known policy # - # @option opts - # @param num_threads [Integer] the number of threads to allocate - # @param opts [Hash] the options defining pool behavior. - # @raise [ArgumentError] if `num_threads` is less than or equal to zero - # @raise [ArgumentError] if `fallback_policy` is not a known policy - # @return [FixedThreadPool] a new instance of FixedThreadPool - # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executors.html#newFixedThreadPool-int- + # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executors.html#newFixedThreadPool-int- # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb#213 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb:213 def initialize(num_threads, opts = T.unsafe(nil)); end end # {include:file:docs-source/future.md} # +# @!macro copy_options +# +# @see http://ruby-doc.org/stdlib-2.1.1/libdoc/observer/rdoc/Observable.html Ruby Observable module # @see http://clojuredocs.org/clojure_core/clojure.core/future Clojure's future function # @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html java.util.concurrent.Future -# @see http://ruby-doc.org/stdlib-2.1.1/libdoc/observer/rdoc/Observable.html Ruby Observable module # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#21 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:21 class Concurrent::Future < ::Concurrent::IVar # Create a new `Future` in the `:unscheduled` state. # - # @option opts - # @param opts [Hash] a customizable set of options - # @raise [ArgumentError] if no block is given - # @return [Future] a new instance of Future # @yield the asynchronous operation to perform # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#33 + # @!macro executor_and_deref_options + # + # @option opts [object, Array] :args zero or more arguments to be passed the task + # block on execution + # + # @raise [ArgumentError] if no block is given + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:33 def initialize(opts = T.unsafe(nil), &block); end # Attempt to cancel the operation if it has not already processed. @@ -4269,95 +3778,112 @@ class Concurrent::Future < ::Concurrent::IVar # # @return [Boolean] was the operation successfully cancelled. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:99 def cancel; end # Has the operation been successfully cancelled? # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#111 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:111 def cancelled?; end # Execute an `:unscheduled` `Future`. Immediately sets the state to `:pending` and # passes the block to a new thread/thread pool for eventual execution. # Does nothing if the `Future` is in any state other than `:unscheduled`. # - # @example Instance and execute in one line - # future = Concurrent::Future.new{ sleep(1); 42 }.execute - # future.state #=> :pending - # @example Instance and execute in separate steps + # @return [Future] a reference to `self` + # + # @example Instance and execute in separate steps # future = Concurrent::Future.new{ sleep(1); 42 } # future.state #=> :unscheduled # future.execute # future.state #=> :pending - # @return [Future] a reference to `self` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#53 + # @example Instance and execute in one line + # future = Concurrent::Future.new{ sleep(1); 42 }.execute + # future.state #=> :pending + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:53 def execute; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#82 + # @!macro ivar_set_method + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:82 def set(value = T.unsafe(nil), &block); end # Wait the given number of seconds for the operation to complete. # On timeout attempt to cancel the operation. # - # @param timeout [Numeric] the maximum time in seconds to wait. + # @param [Numeric] timeout the maximum time in seconds to wait. # @return [Boolean] true if the operation completed before the timeout # else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#121 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:121 def wait_or_cancel(timeout); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#133 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:133 def ns_initialize(value, opts); end class << self # Create a new `Future` object with the given block, execute it, and return the # `:pending` object. # + # @yield the asynchronous operation to perform + # + # @!macro executor_and_deref_options + # + # @option opts [object, Array] :args zero or more arguments to be passed the task + # block on execution + # + # @raise [ArgumentError] if no block is given + # + # @return [Future] the newly created `Future` in the `:pending` state + # # @example # future = Concurrent::Future.execute{ sleep(1); 42 } # future.state #=> :pending - # @option opts - # @param opts [Hash] a customizable set of options - # @raise [ArgumentError] if no block is given - # @return [Future] the newly created `Future` in the `:pending` state - # @yield the asynchronous operation to perform # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#77 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/future.rb:77 def execute(opts = T.unsafe(nil), &block); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#18 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:18 Concurrent::GLOBAL_FAST_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#30 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:30 Concurrent::GLOBAL_IMMEDIATE_EXECUTOR = T.let(T.unsafe(nil), Concurrent::ImmediateExecutor) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#22 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:22 Concurrent::GLOBAL_IO_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#111 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:111 Concurrent::GLOBAL_LOGGER = T.let(T.unsafe(nil), Concurrent::AtomicReference) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#26 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/configuration.rb:26 Concurrent::GLOBAL_TIMER_SET = T.let(T.unsafe(nil), Concurrent::Delay) -# A thread-safe subclass of Hash. This version locks against the object -# itself for every method call, ensuring only one thread can be reading -# or writing at a time. This includes iteration methods like `#each`, -# which takes the lock repeatedly when reading an item. -# -# @see http://ruby-doc.org/core/Hash.html Ruby standard library `Hash` +# @!macro concurrent_hash # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/hash.rb#49 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/hash.rb:49 class Concurrent::Hash < ::Hash; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/hash.rb#16 +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/hash.rb:16 Concurrent::HashImplementation = Hash # An `IVar` is like a future that you can assign. As a future is a value that @@ -4398,7 +3924,7 @@ Concurrent::HashImplementation = Hash # 2. For recent application: # [DataDrivenFuture in Habanero Java from Rice](http://www.cs.rice.edu/~vs3/hjlib/doc/edu/rice/hj/api/HjDataDrivenFuture.html). # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#48 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:48 class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject include ::Concurrent::Concern::Dereferenceable include ::Concurrent::Concern::Obligation @@ -4406,14 +3932,16 @@ class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject # Create a new `IVar` in the `:pending` state with the (optional) initial value. # - # @option opts - # @option opts - # @option opts - # @param opts [Hash] the options to create a message with - # @param value [Object] the initial value - # @return [IVar] a new instance of IVar + # @param [Object] value the initial value + # @param [Hash] opts the options to create a message with + # @option opts [String] :dup_on_deref (false) call `#dup` before returning + # the data + # @option opts [String] :freeze_on_deref (false) call `#freeze` before + # returning the data + # @option opts [String] :copy_on_deref (nil) call the given `Proc` passing + # the internal value and returning the value returned from the proc # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:62 def initialize(value = T.unsafe(nil), opts = T.unsafe(nil), &block); end # Add an observer on this object that will receive notification on update. @@ -4424,79 +3952,91 @@ class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject # final `value` (or `nil` on rejection), and the final `reason` (or `nil` on # fulfillment). # - # @param func [Symbol] symbol naming the method to call when this + # @param [Object] observer the object that will be notified of changes + # @param [Symbol] func symbol naming the method to call when this # `Observable` has changes` - # @param observer [Object] the object that will be notified of changes - # @raise [ArgumentError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#81 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:81 def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end - # Set the `IVar` to failed due to some error and wake or notify all threads waiting on it. + # @!macro ivar_fail_method + # Set the `IVar` to failed due to some error and wake or notify all threads waiting on it. # - # @param reason [Object] for the failure - # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already - # been set or otherwise completed - # @return [IVar] self + # @param [Object] reason for the failure + # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already + # been set or otherwise completed + # @return [IVar] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#135 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:135 def fail(reason = T.unsafe(nil)); end - # Set the `IVar` to a value and wake or notify all threads waiting on it. + # @!macro ivar_set_method + # Set the `IVar` to a value and wake or notify all threads waiting on it. + # + # @!macro ivar_set_parameters_and_exceptions + # @param [Object] value the value to store in the `IVar` + # @yield A block operation to use for setting the value + # @raise [ArgumentError] if both a value and a block are given + # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already + # been set or otherwise completed # - # @param value [Object] the value to store in the `IVar` - # @raise [ArgumentError] if both a value and a block are given - # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already - # been set or otherwise completed - # @return [IVar] self - # @yield A block operation to use for setting the value + # @return [IVar] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#113 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:113 def set(value = T.unsafe(nil)); end # Attempt to set the `IVar` with the given value or block. Return a # boolean indicating the success or failure of the set operation. # - # @param value [Object] the value to store in the `IVar` - # @raise [ArgumentError] if both a value and a block are given - # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already - # been set or otherwise completed + # @!macro ivar_set_parameters_and_exceptions + # # @return [Boolean] true if the value was set else false - # @yield A block operation to use for setting the value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#145 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:145 def try_set(value = T.unsafe(nil), &block); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#202 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:202 def check_for_block_or_value!(block_given, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#177 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:177 def complete(success, value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#184 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:184 def complete_without_notification(success, value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#190 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:190 def notify_observers(value, reason); end - # @raise [MultipleAssignmentError] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#195 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:195 def ns_complete_without_notification(success, value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#155 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:155 def ns_initialize(value, opts); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#168 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/ivar.rb:168 def safe_execute(task, args = T.unsafe(nil)); end end # Raised when an operation is attempted which is not legal given the # receiver's current state # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#20 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:20 class Concurrent::IllegalOperationError < ::Concurrent::Error; end # An executor service which runs all operations on the current thread, @@ -4510,149 +4050,142 @@ class Concurrent::IllegalOperationError < ::Concurrent::Error; end # # @note Intended for use primarily in testing and debugging. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#17 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:17 class Concurrent::ImmediateExecutor < ::Concurrent::AbstractExecutorService include ::Concurrent::SerialExecutorService # Creates a new executor # - # @return [ImmediateExecutor] a new instance of ImmediateExecutor - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:21 def initialize; end - # Submit a task to the executor for asynchronous processing. - # - # @param task [Proc] the asynchronous task to perform - # @return [self] returns itself + # @!macro executor_service_method_left_shift # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#34 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:34 def <<(task); end - # Begin an orderly shutdown. Tasks already in the queue will be executed, - # 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#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:59 def kill; end - # Submit a task to the executor for asynchronous processing. + # @!macro executor_service_method_post # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#26 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:26 def post(*args, &task); end - # Is the executor running? - # - # @return [Boolean] `true` when running, `false` when shutting down or shutdown + # @!macro executor_service_method_running_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:40 def running?; end - # Begin an orderly shutdown. Tasks already in the queue will be executed, - # but no new tasks will be accepted. Has no additional effect if the - # thread pool is not running. + # @!macro executor_service_method_shutdown # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#55 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:55 def shutdown; end - # Is the executor shutdown? + # @!macro executor_service_method_shutdown_question # - # @return [Boolean] `true` when shutdown, `false` when shutting down or running - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#50 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:50 def shutdown?; end - # Is the executor shuttingdown? - # - # @return [Boolean] `true` when not running and not shutdown, else `false` + # @!macro executor_service_method_shuttingdown_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#45 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:45 def shuttingdown?; end - # Block until executor shutdown is complete or until `timeout` seconds have - # passed. + # @!macro executor_service_method_wait_for_termination # - # @note Does not initiate shutdown or termination. Either `shutdown` or `kill` - # must be called before this method (or on another thread). - # @param timeout [Integer] the maximum number of seconds to wait for shutdown to complete - # @return [Boolean] `true` if shutdown complete or false on `timeout` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/immediate_executor.rb:62 def wait_for_termination(timeout = T.unsafe(nil)); end end # Raised when an attempt is made to violate an immutability guarantee. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#16 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:16 class Concurrent::ImmutabilityError < ::Concurrent::Error; end # A thread-safe, immutable variation of Ruby's standard `Struct`. # # @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct` # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#9 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:9 module Concurrent::ImmutableStruct include ::Concurrent::Synchronization::AbstractStruct - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#51 + # @!macro struct_equality + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:51 def ==(other); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#46 + # @!macro struct_get + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:46 def [](member); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#56 + # @!macro struct_each + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:56 def each(&block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#62 + # @!macro struct_each_pair + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:62 def each_pair(&block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#29 + # @!macro struct_inspect + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:29 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#36 + # @!macro struct_merge + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:36 def merge(other, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#68 + # @!macro struct_select + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:68 def select(&block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#21 + # pkg:gem/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 + # @!macro struct_to_h + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:41 def to_h; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#33 + # pkg:gem/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 + # @!macro struct_values + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:17 def values; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#24 + # @!macro struct_values_at + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:24 def values_at(*indexes); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#76 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:76 def initialize_copy(original); end class << self - # @private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:12 def included(base); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#82 + # @!macro struct_new + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:82 def new(*args, &block); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#92 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/immutable_struct.rb:92 Concurrent::ImmutableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped) # An executor service which runs all operations on a new thread, blocking @@ -4670,190 +4203,187 @@ Concurrent::ImmutableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped) # # @note Intended for use primarily in testing and debugging. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb#19 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb:19 class Concurrent::IndirectImmediateExecutor < ::Concurrent::ImmediateExecutor # Creates a new executor # - # @return [IndirectImmediateExecutor] a new instance of IndirectImmediateExecutor - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb:21 def initialize; end - # Submit a task to the executor for asynchronous processing. - # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform + # @!macro executor_service_method_post # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb#27 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb:27 def post(*args, &task); end end # Raised when an object's methods are called when it has not been # properly initialized. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#24 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:24 class Concurrent::InitializationError < ::Concurrent::Error; end # Raised when a lifecycle method (such as `stop`) is called in an improper # sequence or when the object is in an inappropriate state. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#13 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:13 class Concurrent::LifecycleError < ::Concurrent::Error; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#6 +# @!macro warn.edge +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:6 class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object include ::Enumerable extend ::Concurrent::Synchronization::SafeInitialization - # @param head [Node] - # @return [LockFreeStack] a new instance of LockFreeStack + # @param [Node] head # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#51 + # pkg:gem/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/collection/lock_free_stack.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:37 def __initialize_atomic_fields__; end # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#118 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:118 def clear; end # @return [self] # @yield over the cleared stack - # @yieldparam value [Object] + # @yieldparam [Object] value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#142 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:142 def clear_each(&block); end - # @param head [Node] + # @param [Node] head # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#128 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:128 def clear_if(head); end - # @param head [Node] + # @param [Node] head # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:99 def compare_and_clear(head); end - # @param head [Node] + # @param [Node] head # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#85 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:85 def compare_and_pop(head); end - # @param head [Node] - # @param value [Object] + # @param [Node] head + # @param [Object] value # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#65 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:65 def compare_and_push(head, value); end - # @param head [Node] + # @param [Node] head # @return [self] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#107 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:107 def each(head = T.unsafe(nil)); end - # @param head [Node] + # @param [Node] head # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#58 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:58 def empty?(head = T.unsafe(nil)); end - # @return [String] Short string representation. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#158 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:158 def inspect; end # @return [Node] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#79 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:79 def peek; end # @return [Object] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#90 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:90 def pop; end - # @param value [Object] + # @param [Object] value # @return [self] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#71 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:71 def push(value); end - # @param head [Node] - # @param new_head [Node] + # @param [Node] head + # @param [Node] new_head # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#135 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:135 def replace_if(head, new_head); end # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#154 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:154 def to_s; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 + # pkg:gem/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/collection/lock_free_stack.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:37 def head; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:37 def head=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:37 def swap_head(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:37 def update_head(&block); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#41 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:41 def of1(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#46 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:46 def of2(value1, value2); end end end # The singleton for empty node # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#32 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:32 Concurrent::LockFreeStack::EMPTY = T.let(T.unsafe(nil), Concurrent::LockFreeStack::Node) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:10 class Concurrent::LockFreeStack::Node - # @return [Node] a new instance of Node - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#23 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:23 def initialize(value, next_node); end # @return [Node] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#14 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:14 def next_node; end # @return [Object] + # @!visibility private + # allow to nil-ify to free GC when the entry is no longer relevant, not synchronised # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#17 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:17 def value; end + # @return [Object] + # @!visibility private # allow to nil-ify to free GC when the entry is no longer relevant, not synchronised # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:21 def value=(_arg0); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#28 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb:28 def [](*_arg0); end end end @@ -4861,7 +4391,7 @@ end # Either {FiberLocalVar} or {ThreadLocalVar} depending on whether Mutex (and Monitor) # are held, respectively, per Fiber or per Thread. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb#22 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:22 Concurrent::LockLocalVar = Concurrent::FiberLocalVar # An `MVar` is a synchronized single element container. They are empty or @@ -4886,6 +4416,8 @@ Concurrent::LockLocalVar = Concurrent::FiberLocalVar # Note that unlike the original Haskell paper, our `#take` is blocking. This is how # Haskell and Scala do it today. # +# @!macro copy_options +# # ## See Also # # 1. P. Barth, R. Nikhil, and Arvind. [M-Structures: Extending a parallel, non- strict, functional language with state](http://dl.acm.org/citation.cfm?id=652538). In Proceedings of the 5th @@ -4895,129 +4427,115 @@ Concurrent::LockLocalVar = Concurrent::FiberLocalVar # In Proceedings of the 23rd Symposium on Principles of Programming Languages # (PoPL), 1996. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#38 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:38 class Concurrent::MVar < ::Concurrent::Synchronization::Object include ::Concurrent::Concern::Dereferenceable extend ::Concurrent::Synchronization::SafeInitialization # Create a new `MVar`, either empty or with an initial value. # - # @param opts [Hash] the options controlling how the future will be processed - # @return [MVar] a new instance of MVar + # @param [Hash] opts the options controlling how the future will be processed + # + # @!macro deref_options # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:54 def initialize(value = T.unsafe(nil), opts = T.unsafe(nil)); end # acquires lock on the from an `MVAR`, yields the value to provided block, # and release lock. A timeout can be set to limit the time spent blocked, # in which case it returns `TIMEOUT` if the time is exceeded. - # # @return [Object] the value returned by the block, or `TIMEOUT` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#86 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:86 def borrow(timeout = T.unsafe(nil)); end # Returns if the `MVar` is currently empty. # - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#195 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:195 def empty?; end # Returns if the `MVar` currently contains a value. # - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#200 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:200 def full?; end # Atomically `take`, yield the value to a block for transformation, and then # `put` the transformed value. Returns the pre-transform value. A timeout can # be set to limit the time spent blocked, in which case it returns `TIMEOUT` # if the time is exceeded. - # - # @raise [ArgumentError] # @return [Object] the pre-transform value, or `TIMEOUT` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#123 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:123 def modify(timeout = T.unsafe(nil)); end # Non-blocking version of `modify` that will yield with `EMPTY` if there is no value yet. # - # @raise [ArgumentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#179 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:179 def modify!; end # Put a value into an `MVar`, blocking if there is already a value until # it is empty. A timeout can be set to limit the time spent blocked, in # which case it returns `TIMEOUT` if the time is exceeded. - # # @return [Object] the value that was put, or `TIMEOUT` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#103 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:103 def put(value, timeout = T.unsafe(nil)); end # Non-blocking version of `put` that will overwrite an existing value. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#169 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:169 def set!(value); end # Remove the value from an `MVar`, leaving it empty, and blocking if there # isn't a value. A timeout can be set to limit the time spent blocked, in # which case it returns `TIMEOUT` if the time is exceeded. - # # @return [Object] the value that was taken, or `TIMEOUT` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#66 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:66 def take(timeout = T.unsafe(nil)); end # Non-blocking version of `put`, that returns whether or not it was successful. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#156 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:156 def try_put!(value); end # Non-blocking version of `take`, that returns `EMPTY` instead of blocking. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#142 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:142 def try_take!; end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#206 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:206 def synchronize(&block); end private - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#212 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:212 def unlocked_empty?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#216 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:216 def unlocked_full?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#224 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:224 def wait_for_empty(timeout); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#220 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:220 def wait_for_full(timeout); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#228 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:228 def wait_while(condition, timeout); end end # Unique value that represents that an `MVar` was empty # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#43 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:43 Concurrent::MVar::EMPTY = T.let(T.unsafe(nil), Object) # Unique value that represents that an `MVar` timed out before it was able # to produce a value. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/mvar.rb#47 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mvar.rb:47 Concurrent::MVar::TIMEOUT = T.let(T.unsafe(nil), Object) # `Concurrent::Map` is a hash-like object and should have much better performance @@ -5027,183 +4545,148 @@ Concurrent::MVar::TIMEOUT = T.let(T.unsafe(nil), Object) # does. For most uses it should do fine though, and we recommend you consider # `Concurrent::Map` instead of `Concurrent::Hash` for your concurrency-safe hash needs. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#39 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:39 class Concurrent::Map < ::Concurrent::Collection::MriMapBackend - # Iterates over each key value pair. - # This method is atomic. - # - # @note Atomic methods taking a block do not allow the `self` instance - # to be used within the block. Doing so will cause a deadlock. - # @return [self] - # @yield for each key value pair in the map - # @yieldparam key [Object] - # @yieldparam value [Object] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#279 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:279 def each; end # Iterates over each key. - # This method is atomic. - # - # @note Atomic methods taking a block do not allow the `self` instance - # to be used within the block. Doing so will cause a deadlock. - # @return [self] # @yield for each key in the map # @yieldparam key [Object] + # @return [self] + # @!macro map.atomic_method_with_block # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#255 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:255 def each_key; end # Iterates over each key value pair. - # This method is atomic. - # - # @note Atomic methods taking a block do not allow the `self` instance - # to be used within the block. Doing so will cause a deadlock. - # @return [self] # @yield for each key value pair in the map # @yieldparam key [Object] # @yieldparam value [Object] + # @return [self] + # @!macro map.atomic_method_with_block # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#274 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:274 def each_pair; end # Iterates over each value. - # This method is atomic. - # - # @note Atomic methods taking a block do not allow the `self` instance - # to be used within the block. Doing so will cause a deadlock. - # @return [self] # @yield for each value in the map # @yieldparam value [Object] + # @return [self] + # @!macro map.atomic_method_with_block # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#264 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:264 def each_value; end # Is map empty? - # # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#291 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:291 def empty?; end # Get a value with key, or default_value when key is absent, # or fail when no default_value is given. - # - # @note The "fetch-then-act" methods of `Map` are not atomic. `Map` is intended - # to be use as a concurrency primitive with strong happens-before - # guarantees. It is not intended to be used as a high-level abstraction - # supporting complex operations. All read and write operations are - # thread safe, but no guarantees are made regarding race conditions - # between the fetch operation and yielding to the block. Additionally, - # this method does not support recursion. This is due to internal - # constraints that are very unlikely to change in the near future. - # @param default_value [Object] - # @param key [Object] - # @raise [KeyError] when key is missing and no default_value is provided - # @return [Object] the value or default value + # @param [Object] key + # @param [Object] default_value # @yield default value for a key # @yieldparam key [Object] # @yieldreturn [Object] default value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#183 + # @return [Object] the value or default value + # @raise [KeyError] when key is missing and no default_value is provided + # @!macro map_method_not_atomic + # @note The "fetch-then-act" methods of `Map` are not atomic. `Map` is intended + # to be use as a concurrency primitive with strong happens-before + # guarantees. It is not intended to be used as a high-level abstraction + # supporting complex operations. All read and write operations are + # thread safe, but no guarantees are made regarding race conditions + # between the fetch operation and yielding to the block. Additionally, + # this method does not support recursion. This is due to internal + # constraints that are very unlikely to change in the near future. + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:183 def fetch(key, default_value = T.unsafe(nil)); end # Fetch value with key, or store default value when key is absent, # or fail when no default_value is given. This is a two step operation, # therefore not atomic. The store can overwrite other concurrently # stored value. - # - # @param default_value [Object] - # @param key [Object] - # @return [Object] the value or default value + # @param [Object] key + # @param [Object] default_value # @yield default value for a key # @yieldparam key [Object] # @yieldreturn [Object] default value + # @return [Object] the value or default value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#205 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:205 def fetch_or_store(key, default_value = T.unsafe(nil)); end - # Get a value with key - # - # @param key [Object] - # @return [Object] the value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#162 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:162 def get(key); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#321 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:321 def inspect; end # Find key of a value. - # - # @param value [Object] + # @param [Object] value # @return [Object, nil] key or nil when not found # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#284 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:284 def key(value); end # All keys - # # @return [::Array] keys # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#236 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:236 def keys; end - # @raise [TypeError] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#305 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:305 def marshal_dump; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#313 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:313 def marshal_load(hash); end - # Set a value with key - # - # @param key [Object] - # @param value [Object] - # @return [Object] the new value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#163 + # pkg:gem/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. - # - # @param key [Object] - # @param value [Object] + # @param [Object] key + # @param [Object] value # @return [Object, nil] the previous value when key was present or nil when there was no key # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#215 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:215 def put_if_absent(key, value); end # Is the value stored in the map. Iterates over all values. - # - # @param value [Object] + # @param [Object] value # @return [true, false] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#227 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:227 def value?(value); end # All values - # # @return [::Array] values # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#244 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:244 def values; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#331 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:331 def initialize_copy(other); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#336 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:336 def populate_from(hash); end - # @raise [KeyError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#327 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:327 def raise_fetch_no_key; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#341 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/map.rb:341 def validate_options_hash!(options); end end @@ -5211,7 +4694,7 @@ end # excessive number of times. Often used in conjunction with a restart # policy or strategy. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#29 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:29 class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end # A `Maybe` encapsulates an optional value. A `Maybe` either contains a value @@ -5273,14 +4756,14 @@ class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end # # @example Returning a Maybe from a Function # module MyFileUtils -# def self.consult(path) -# file = File.open(path, 'r') -# Concurrent::Maybe.just(file.read) -# rescue => ex -# return Concurrent::Maybe.nothing(ex) -# ensure -# file.close if file -# end +# def self.consult(path) +# file = File.open(path, 'r') +# Concurrent::Maybe.just(file.read) +# rescue => ex +# return Concurrent::Maybe.nothing(ex) +# ensure +# file.close if file +# end # end # # maybe = MyFileUtils.consult('bogus.file') @@ -5292,9 +4775,10 @@ class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end # maybe.just? #=> true # maybe.nothing? #=> false # maybe.value #=> "# Concurrent Ruby\n[![Gem Version..." +# # @example Using Maybe with a Block # result = Concurrent::Maybe.from do -# Client.find(10) # Client is an ActiveRecord model +# Client.find(10) # Client is an ActiveRecord model # end # # # -- if the record was found @@ -5304,25 +4788,30 @@ class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end # # -- if the record was not found # result.just? #=> false # result.reason #=> ActiveRecord::RecordNotFound +# # @example Using Maybe with the Null Object Pattern # # In a Rails controller... # result = ClientService.new(10).find # returns a Maybe # render json: result.or(NullClient.new) -# @see https://github.com/purescript/purescript-maybe/blob/master/docs/Data.Maybe.md PureScript Data.Maybe +# # @see https://hackage.haskell.org/package/base-4.2.0.1/docs/Data-Maybe.html Haskell Data.Maybe +# @see https://github.com/purescript/purescript-maybe/blob/master/docs/Data.Maybe.md PureScript Data.Maybe # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#104 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:104 class Concurrent::Maybe < ::Concurrent::Synchronization::Object include ::Comparable extend ::Concurrent::Synchronization::SafeInitialization # Create a new `Maybe` with the given attributes. # - # @param just [Object] The value when `Just` else `NONE`. - # @param nothing [Exception, Object] The exception when `Nothing` else `NONE`. + # @param [Object] just The value when `Just` else `NONE`. + # @param [Exception, Object] nothing The exception when `Nothing` else `NONE`. + # # @return [Maybe] The new `Maybe`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#224 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:224 def initialize(just, nothing); end # Comparison operator. @@ -5332,62 +4821,50 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object # 1 if self is `Just` and other is nothing; # `self.just <=> other.just` if both self and other are `Just`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#199 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:199 def <=>(other); end - # Is this `Maybe` a `Just` (successfully fulfilled with a value)? - # - # @return [Boolean] True if `Just` or false if `Nothing`. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#179 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:179 def fulfilled?; end # The value of a `Maybe` when `Just`. Will be `NONE` when `Nothing`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#114 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:114 def just; end # Is this `Maybe` a `Just` (successfully fulfilled with a value)? # # @return [Boolean] True if `Just` or false if `Nothing`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#176 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:176 def just?; end # The reason for the `Maybe` when `Nothing`. Will be `NONE` when `Just`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#117 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:117 def nothing; 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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:184 def nothing?; end # Return either the value of self or the given default value. # # @return [Object] The value of self when `Just`; else the given default. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#210 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:210 def or(other); end - # The reason for the `Maybe` when `Nothing`. Will be `NONE` when `Just`. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#191 + # pkg:gem/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#187 + # pkg:gem/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#189 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:189 def value; end class << self @@ -5399,38 +4876,42 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object # block. If the block raises an exception a new `Nothing` is created with # the reason being set to the raised exception. # - # @param args [Array] Zero or more arguments to pass to the block. - # @raise [ArgumentError] when no block given. - # @return [Maybe] The newly created object. + # @param [Array] args Zero or more arguments to pass to the block. # @yield The block from which to create a new `Maybe`. - # @yieldparam args [Array] Zero or more block arguments passed as + # @yieldparam [Array] args Zero or more block arguments passed as # arguments to the function. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#137 + # @return [Maybe] The newly created object. + # + # @raise [ArgumentError] when no block given. + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:137 def from(*args); end # Create a new `Just` with the given value. # - # @param value [Object] The value to set for the new `Maybe` object. + # @param [Object] value The value to set for the new `Maybe` object. + # # @return [Maybe] The newly created object. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#152 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:152 def just(value); end # Create a new `Nothing` with the given (optional) reason. # - # @param error [Exception] The reason to set for the new `Maybe` object. + # @param [Exception] error The reason to set for the new `Maybe` object. # When given a string a new `StandardError` will be created with the # argument as the message. When no argument is given a new # `StandardError` with an empty message will be created. + # # @return [Maybe] The newly created object. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#164 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:164 def nothing(error = T.unsafe(nil)); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#119 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:119 def new(*args, &block); end end end @@ -5439,40 +4920,32 @@ end # When `Just` the {#nothing} getter will return `NONE`. # When `Nothing` the {#just} getter will return `NONE`. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#111 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/maybe.rb:111 Concurrent::Maybe::NONE = T.let(T.unsafe(nil), Object) # Raised when an attempt is made to modify an immutable object # (such as an `IVar`) after its final state has been set. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#33 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:33 class Concurrent::MultipleAssignmentError < ::Concurrent::Error - # @return [MultipleAssignmentError] a new instance of MultipleAssignmentError - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#36 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:36 def initialize(message = T.unsafe(nil), inspection_data = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#41 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:41 def inspect; end - # Returns the value of attribute inspection_data. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#34 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:34 def inspection_data; end end # Aggregates multiple exceptions. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#58 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:58 class Concurrent::MultipleErrors < ::Concurrent::Error - # @return [MultipleErrors] a new instance of MultipleErrors - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#61 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:61 def initialize(errors, message = T.unsafe(nil)); end - # Returns the value of attribute errors. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:59 def errors; end end @@ -5481,645 +4954,488 @@ end # # @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct` # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:10 module Concurrent::MutableStruct include ::Concurrent::Synchronization::AbstractStruct - # Equality + # @!macro struct_equality # - # @return [Boolean] true if other has the same struct subclass and has - # equal member values (according to `Object#==`) + # Equality # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#128 + # @return [Boolean] true if other has the same struct subclass and has + # equal member values (according to `Object#==`) + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:128 def ==(other); end - # Attribute Reference + # @!macro struct_get + # + # Attribute Reference + # + # @param [Symbol, String, Integer] member the string or symbol name of the member + # for which to obtain the value or the member's index + # + # @return [Object] the value of the given struct member or the member at the given index. # - # @param member [Symbol, String, Integer] the string or symbol name of the member - # for which to obtain the value or the member's index - # @raise [NameError] if the member does not exist - # @raise [IndexError] if the index is out of range. - # @return [Object] the value of the given struct member or the member at the given index. + # @raise [NameError] if the member does not exist + # @raise [IndexError] if the index is out of range. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#118 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:118 def [](member); end - # Attribute Assignment + # @!macro struct_set # - # Sets the value of the given struct member or the member at the given index. + # Attribute Assignment # - # @param member [Symbol, String, Integer] the string or symbol name of the member - # for which to obtain the value or the member's index - # @raise [NameError] if the name does not exist - # @raise [IndexError] if the index is out of range. - # @return [Object] the value of the given struct member or the member at the given index. + # Sets the value of the given struct member or the member at the given index. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#185 + # @param [Symbol, String, Integer] member the string or symbol name of the member + # for which to obtain the value or the member's index + # + # @return [Object] the value of the given struct member or the member at the given index. + # + # @raise [NameError] if the name does not exist + # @raise [IndexError] if the index is out of range. + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:185 def []=(member, value); end - # Yields the value of each struct member in order. If no block is given - # an enumerator is returned. + # @!macro struct_each + # + # Yields the value of each struct member in order. If no block is given + # an enumerator is returned. # - # @yield the operation to be performed on each struct member - # @yieldparam value [Object] each struct value (in order) + # @yield the operation to be performed on each struct member + # @yieldparam [Object] value each struct value (in order) # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:139 def each(&block); end - # Yields the name and value of each struct member in order. If no block is - # given an enumerator is returned. + # @!macro struct_each_pair # - # @yield the operation to be performed on each struct member/value pair - # @yieldparam member [Object] each struct member (in order) - # @yieldparam value [Object] each struct value (in order) + # Yields the name and value of each struct member in order. If no block is + # given an enumerator is returned. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#152 + # @yield the operation to be performed on each struct member/value pair + # @yieldparam [Object] member each struct member (in order) + # @yieldparam [Object] value each struct value (in order) + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:152 def each_pair(&block); end - # Describe the contents of this struct in a string. + # @!macro struct_inspect + # + # Describe the contents of this struct in a string. # - # @return [String] the contents of this struct in a string + # @return [String] the contents of this struct in a string # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#72 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:72 def inspect; end - # Returns a new struct containing the contents of `other` and the contents - # of `self`. If no block is specified, the value for entries with duplicate - # keys will be that of `other`. Otherwise the value for each duplicate key - # is determined by calling the block with the key, its value in `self` and - # its value in `other`. - # - # @param other [Hash] the hash from which to set the new values - # @raise [ArgumentError] of given a member that is not defined in the struct - # @return [Synchronization::AbstractStruct] a new struct with the new values - # @yield an options block for resolving duplicate keys - # @yieldparam member [String, Symbol] the name of the member which is duplicated - # @yieldparam othervalue [Object] the value of the member in `other` - # @yieldparam selfvalue [Object] the value of the member in `self` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#94 + # @!macro struct_merge + # + # Returns a new struct containing the contents of `other` and the contents + # of `self`. If no block is specified, the value for entries with duplicate + # keys will be that of `other`. Otherwise the value for each duplicate key + # is determined by calling the block with the key, its value in `self` and + # its value in `other`. + # + # @param [Hash] other the hash from which to set the new values + # @yield an options block for resolving duplicate keys + # @yieldparam [String, Symbol] member the name of the member which is duplicated + # @yieldparam [Object] selfvalue the value of the member in `self` + # @yieldparam [Object] othervalue the value of the member in `other` + # + # @return [Synchronization::AbstractStruct] a new struct with the new values + # + # @raise [ArgumentError] of given a member that is not defined in the struct + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:94 def merge(other, &block); end - # Yields each member value from the struct to the block and returns an Array - # containing the member values from the struct for which the given block - # returns a true value (equivalent to `Enumerable#select`). + # @!macro struct_select # - # @return [Array] an array containing each value for which the block returns true - # @yield the operation to be performed on each struct member - # @yieldparam value [Object] each struct value (in order) + # Yields each member value from the struct to the block and returns an Array + # containing the member values from the struct for which the given block + # returns a true value (equivalent to `Enumerable#select`). # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#167 - def select(&block); end - - # Returns the values for this struct as an Array. + # @yield the operation to be performed on each struct member + # @yieldparam [Object] value each struct value (in order) # - # @return [Array] the values for this struct + # @return [Array] an array containing each value for which the block returns true # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:167 + def select(&block); end + + # pkg:gem/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. + # @!macro struct_to_h + # + # Returns a hash containing the names and values for the struct’s members. # - # @return [Hash] the names and values for the struct’s members + # @return [Hash] the names and values for the struct’s members # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#103 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:103 def to_h; end - # Describe the contents of this struct in a string. - # - # @return [String] the contents of this struct in a string - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#75 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:75 def to_s; end - # Returns the values for this struct as an Array. + # @!macro struct_values # - # @return [Array] the values for this struct + # Returns the values for this struct as an Array. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#51 + # @return [Array] the values for this struct + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:51 def values; end - # Returns the struct member values for each selector as an Array. + # @!macro struct_values_at + # + # Returns the struct member values for each selector as an Array. # - # A selector may be either an Integer offset or a Range of offsets (as in `Array#values_at`). + # A selector may be either an Integer offset or a Range of offsets (as in `Array#values_at`). # - # @param indexes [Fixnum, Range] the index(es) from which to obatin the values (in order) + # @param [Fixnum, Range] indexes the index(es) from which to obatin the values (in order) # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#63 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:63 def values_at(*indexes); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#202 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:202 def initialize_copy(original); end class << self - # Factory for creating new struct classes. - # - # ``` - # new([class_name] [, member_name]+>) -> StructClass click to toggle source - # new([class_name] [, member_name]+>) {|StructClass| block } -> StructClass - # new(value, ...) -> obj - # StructClass[value, ...] -> obj - # ``` - # - # The first two forms are used to create a new struct subclass `class_name` - # that can contain a value for each member_name . This subclass can be - # used to create instances of the structure like any other Class . - # - # If the `class_name` is omitted an anonymous struct class will be created. - # Otherwise, the name of this struct will appear as a constant in the struct class, - # so it must be unique for all structs under this base class and must start with a - # capital letter. Assigning a struct class to a constant also gives the class - # the name of the constant. + # @!macro struct_new # - # If a block is given it will be evaluated in the context of `StructClass`, passing - # the created class as a parameter. This is the recommended way to customize a struct. - # Subclassing an anonymous struct creates an extra anonymous class that will never be used. - # - # The last two forms create a new instance of a struct subclass. The number of value - # parameters must be less than or equal to the number of attributes defined for the - # struct. Unset parameters default to nil. Passing more parameters than number of attributes - # will raise an `ArgumentError`. - # - # @see http://ruby-doc.org/core/Struct.html#method-c-new Ruby standard library `Struct#new` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#210 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:210 def new(*args, &block); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#220 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/mutable_struct.rb:220 Concurrent::MutableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped) -# A boolean value that can be updated atomically. Reads and writes to an atomic -# boolean and thread-safe and guaranteed to succeed. Reads and writes may block -# briefly but no explicit locking is required. -# -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. -# Performance: -# -# ``` -# Testing with ruby 2.1.2 -# Testing with Concurrent::MutexAtomicBoolean... -# 2.790000 0.000000 2.790000 ( 2.791454) -# Testing with Concurrent::CAtomicBoolean... -# 0.740000 0.000000 0.740000 ( 0.740206) -# -# Testing with jruby 1.9.3 -# Testing with Concurrent::MutexAtomicBoolean... -# 5.240000 2.520000 7.760000 ( 3.683000) -# Testing with Concurrent::JavaAtomicBoolean... -# 3.340000 0.010000 3.350000 ( 0.855000) -# ``` +# @!macro atomic_boolean +# @!visibility private +# @!macro internal_implementation_note # -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicBoolean.html java.util.concurrent.atomic.AtomicBoolean -# -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#8 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:8 class Concurrent::MutexAtomicBoolean extend ::Concurrent::Synchronization::SafeInitialization - # Creates a new `AtomicBoolean` with the given initial value. - # - # @param initial [Boolean] the initial value - # @return [MutexAtomicBoolean] a new instance of MutexAtomicBoolean + # @!macro atomic_boolean_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:12 def initialize(initial = T.unsafe(nil)); end - # Is the current value `false` + # @!macro atomic_boolean_method_false_question # - # @return [Boolean] true if the current value is `false`, else false - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#34 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:34 def false?; end - # Explicitly sets the value to false. - # - # @return [Boolean] true if value has changed, otherwise false + # @!macro atomic_boolean_method_make_false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:44 def make_false; end - # Explicitly sets the value to true. + # @!macro atomic_boolean_method_make_true # - # @return [Boolean] true if value has changed, otherwise false - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#39 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:39 def make_true; end - # Is the current value `true` - # - # @return [Boolean] true if the current value is `true`, else false + # @!macro atomic_boolean_method_true_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:29 def true?; end - # Retrieves the current `Boolean` value. + # @!macro atomic_boolean_method_value_get # - # @return [Boolean] the current value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:19 def value; end - # Explicitly sets the value. - # - # @param value [Boolean] the new value to be set - # @return [Boolean] the current value + # @!macro atomic_boolean_method_value_set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:24 def value=(value); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#51 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:51 def synchronize; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb#62 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb:62 def ns_make_value(value); end end -# A numeric value that can be updated atomically. Reads and writes to an atomic -# fixnum and thread-safe and guaranteed to succeed. Reads and writes may block -# briefly but no explicit locking is required. -# -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. -# Performance: -# -# ``` -# Testing with ruby 2.1.2 -# Testing with Concurrent::MutexAtomicFixnum... -# 3.130000 0.000000 3.130000 ( 3.136505) -# Testing with Concurrent::CAtomicFixnum... -# 0.790000 0.000000 0.790000 ( 0.785550) -# -# Testing with jruby 1.9.3 -# Testing with Concurrent::MutexAtomicFixnum... -# 5.460000 2.460000 7.920000 ( 3.715000) -# Testing with Concurrent::JavaAtomicFixnum... -# 4.520000 0.030000 4.550000 ( 1.187000) -# ``` -# -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicLong.html java.util.concurrent.atomic.AtomicLong +# @!macro atomic_fixnum +# @!visibility private +# @!macro internal_implementation_note # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#9 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:9 class Concurrent::MutexAtomicFixnum extend ::Concurrent::Synchronization::SafeInitialization - # Creates a new `AtomicFixnum` with the given initial value. + # @!macro atomic_fixnum_method_initialize # - # @param initial [Fixnum] the initial value - # @raise [ArgumentError] if the initial value is not a `Fixnum` - # @return [MutexAtomicFixnum] a new instance of MutexAtomicFixnum - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#13 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:13 def initialize(initial = T.unsafe(nil)); end - # Atomically sets the value to the given updated value if the current - # value == the expected value. - # - # @param expect [Fixnum] the expected value - # @param update [Fixnum] the new value - # @return [Boolean] true if the value was updated else false + # @!macro atomic_fixnum_method_compare_and_set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:44 def compare_and_set(expect, update); end - # Decreases the current value by the given amount (defaults to 1). + # @!macro atomic_fixnum_method_decrement # - # @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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:37 def decrement(delta = T.unsafe(nil)); end - # Decreases the current value by the given amount (defaults to 1). - # - # @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#41 + # pkg:gem/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). - # - # @param delta [Fixnum] the amount by which to increase the current value - # @return [Fixnum] the current value after incrementation + # @!macro atomic_fixnum_method_increment # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#30 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:30 def increment(delta = T.unsafe(nil)); end - # Increases the current value by the given amount (defaults to 1). - # - # @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#34 + # pkg:gem/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 - # with the block's result. May retry if the value changes - # during the block's execution. - # - # @return [Object] the new value - # @yield [Object] Calculate a new value for the atomic reference using - # given (old) value - # @yieldparam old_value [Object] the starting value of the atomic reference + # @!macro atomic_fixnum_method_update # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:56 def update; end - # Retrieves the current `Fixnum` value. - # - # @return [Fixnum] the current value + # @!macro atomic_fixnum_method_value_get # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#20 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:20 def value; end - # Explicitly sets the value. + # @!macro atomic_fixnum_method_value_set # - # @param value [Fixnum] the new value to be set - # @raise [ArgumentError] if the new value is not a `Fixnum` - # @return [Fixnum] the current value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#25 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:25 def value=(value); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#65 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:65 def synchronize; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#76 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb:76 def ns_set(value); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#9 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:9 class Concurrent::MutexAtomicReference include ::Concurrent::AtomicDirectUpdate include ::Concurrent::AtomicNumericCompareAndSetWrapper extend ::Concurrent::Synchronization::SafeInitialization - # @param value [Object] The initial value. - # @return [MutexAtomicReference] a new instance of MutexAtomicReference + # @!macro atomic_reference_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#16 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:16 def initialize(value = T.unsafe(nil)); end - # Atomically sets the value to the given updated value if - # the current value == the expected value. + # @!macro atomic_reference_method_compare_and_set # - # that the actual value was not equal to the expected value. - # - # @param new_value [Object] the new value - # @param old_value [Object] the expected value - # @return [Boolean] `true` if successful. A `false` return indicates - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#45 + # pkg:gem/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/mutex_atomic.rb#13 + # pkg:gem/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. - # - # @return [Object] the current value + # @!macro atomic_reference_method_get # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#23 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:23 def get; end - # Atomically sets to the given value and returns the old value. - # - # @param new_value [Object] the new value - # @return [Object] the old value + # @!macro atomic_reference_method_get_and_set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#35 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:35 def get_and_set(new_value); end - # Sets to the given value. - # - # @param new_value [Object] the new value - # @return [Object] the new value + # @!macro atomic_reference_method_set # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:29 def set(new_value); end - # Atomically sets to the given value and returns the old value. - # - # @param new_value [Object] the new value - # @return [Object] the old value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#42 + # pkg:gem/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#26 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:26 def value; end - # Sets to the given value. - # - # @param new_value [Object] the new value - # @return [Object] the new value - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#32 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:32 def value=(new_value); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#59 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb:59 def synchronize; end end -# A synchronization object that allows one thread to wait on multiple other threads. -# The thread that will wait creates a `CountDownLatch` and sets the initial value -# (normally equal to the number of other threads). The initiating thread passes the -# latch to the other threads then waits for the other threads by calling the `#wait` -# method. Each of the other threads calls `#count_down` when done with its work. -# When the latch counter reaches zero the waiting thread is unblocked and continues -# with its work. A `CountDownLatch` can be used only once. Its value cannot be reset. +# @!macro count_down_latch +# @!visibility private +# @!macro internal_implementation_note # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb#9 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb:9 class Concurrent::MutexCountDownLatch < ::Concurrent::Synchronization::LockableObject - # Create a new `CountDownLatch` with the initial `count`. - # - # @param count [new] the initial count - # @raise [ArgumentError] if `count` is not an integer or is less than zero - # @return [MutexCountDownLatch] a new instance of MutexCountDownLatch + # @!macro count_down_latch_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb:12 def initialize(count = T.unsafe(nil)); end - # The current value of the counter. + # @!macro count_down_latch_method_count # - # @return [Fixnum] the current value of the counter - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb#34 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb:34 def count; end - # Signal the latch to decrement the counter. Will signal all blocked threads when - # the `count` reaches zero. + # @!macro count_down_latch_method_count_down # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb#26 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb:26 def count_down; end - # Block on the latch until the counter reaches zero or until `timeout` is reached. - # - # @param timeout [Fixnum] the number of seconds to wait for the counter or `nil` - # to block indefinitely - # @return [Boolean] `true` if the `count` reaches zero else false on `timeout` + # @!macro count_down_latch_method_wait # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb#21 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb:21 def wait(timeout = T.unsafe(nil)); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb:40 def ns_initialize(count); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#9 +# @!macro semaphore +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:9 class Concurrent::MutexSemaphore < ::Concurrent::Synchronization::LockableObject - # @return [MutexSemaphore] a new instance of MutexSemaphore + # @!macro semaphore_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#12 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:12 def initialize(count); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#20 + # @!macro semaphore_method_acquire + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:20 def acquire(permits = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#38 + # @!macro semaphore_method_available_permits + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:38 def available_permits; end - # Acquires and returns all permits that are immediately available. + # @!macro semaphore_method_drain_permits + # + # Acquires and returns all permits that are immediately available. # - # @return [Integer] + # @return [Integer] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#47 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:47 def drain_permits; end # Shrinks the number of available permits by the indicated reduction. # - # @param reduction [Fixnum] Number of permits to remove. + # @param [Fixnum] reduction Number of permits to remove. + # # @raise [ArgumentError] if `reduction` is not an integer or is negative + # # @raise [ArgumentError] if `@free` - `@reduction` is less than zero + # # @return [nil] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#99 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:99 def reduce_permits(reduction); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#77 + # @!macro semaphore_method_release + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:77 def release(permits = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#54 + # @!macro semaphore_method_try_acquire + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:54 def try_acquire(permits = T.unsafe(nil), timeout = T.unsafe(nil)); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#110 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:110 def ns_initialize(count); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#117 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:117 def try_acquire_now(permits); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb#127 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb:127 def try_acquire_timed(permits, timeout); end end # Various classes within allows for +nil+ values to be stored, # so a special +NULL+ token is required to indicate the "nil-ness". +# @!visibility private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/constants.rb#6 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/constants.rb:6 Concurrent::NULL = T.let(T.unsafe(nil), Object) # Suppresses all output when used for logging. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#108 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/concern/logging.rb:108 Concurrent::NULL_LOGGER = T.let(T.unsafe(nil), Proc) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/options.rb#6 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/options.rb:6 module Concurrent::Options class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/options.rb#27 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/options.rb:27 def executor(executor_identifier); end # Get the requested `Executor` based on the values set in the options hash. # - # @option opts - # @param opts [Hash] the options defining the requested executor + # @param [Hash] opts the options defining the requested executor + # @option opts [Executor] :executor when set use the given `Executor` instance. + # Three special values are also supported: `:fast` returns the global fast executor, + # `:io` returns the global io executor, and `:immediate` returns a new + # `ImmediateExecutor` object. + # # @return [Executor, nil] the requested thread pool, or nil when no option specified # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/options.rb#19 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/options.rb:19 def executor_from_options(opts = T.unsafe(nil)); end end end @@ -6173,6 +5489,8 @@ end # # Promises run on the global thread pool. # +# @!macro copy_options +# # ### Examples # # Start by requiring promises @@ -6300,31 +5618,31 @@ end # - `rescue { |reason| ... }` is the same as `then(Proc.new { |reason| ... } )` # - `rescue` is aliased by `catch` and `on_error` # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#190 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:190 class Concurrent::Promise < ::Concurrent::IVar # Initialize a new Promise with the provided options. # - # @option opts - # @option opts - # @option opts - # @option opts - # @param opts [Hash] a customizable set of options + # @!macro executor_and_deref_options + # + # @!macro promise_init_options + # + # @option opts [Promise] :parent the parent `Promise` when building a chain/tree + # @option opts [Proc] :on_fulfill fulfillment handler + # @option opts [Proc] :on_reject rejection handler + # @option opts [object, Array] :args zero or more arguments to be passed + # the task block on execution + # + # @yield The block operation to be performed asynchronously. + # # @raise [ArgumentError] if no block is given - # @return [Promise] a new instance of Promise - # @see http://promises-aplus.github.io/promises-spec/ + # # @see http://wiki.commonjs.org/wiki/Promises/A - # @yield The block operation to be performed asynchronously. + # @see http://promises-aplus.github.io/promises-spec/ # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#210 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:210 def initialize(opts = T.unsafe(nil), &block); end - # Chain onto this promise an action to be undertaken on failure - # (rejection). - # - # @return [Promise] self - # @yield The block to execute - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#364 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:364 def catch(&block); end # Execute an `:unscheduled` `Promise`. Immediately sets the state to `:pending` and @@ -6333,18 +5651,14 @@ class Concurrent::Promise < ::Concurrent::IVar # # @return [Promise] a reference to `self` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#246 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:246 def execute; end - # Set the `IVar` to failed due to some error and wake or notify all threads waiting on it. + # @!macro ivar_fail_method # - # @param reason [Object] for the failure - # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already - # been set or otherwise completed # @raise [Concurrent::PromiseExecutionError] if not the root promise - # @return [IVar] self # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#278 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:278 def fail(reason = T.unsafe(nil)); end # Yield the successful result to the block that returns a promise. If that @@ -6353,105 +5667,125 @@ class Concurrent::Promise < ::Concurrent::IVar # # @example # Promise.execute { 1 }.flat_map { |v| Promise.execute { v + 2 } }.value! #=> 3 + # # @return [Promise] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#375 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:375 def flat_map(&block); end - # Chain onto this promise an action to be undertaken on failure - # (rejection). - # - # @return [Promise] self - # @yield The block to execute - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#365 + # pkg:gem/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 # (fulfillment). # - # @raise [ArgumentError] - # @return [Promise] self # @yield The block to execute # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#349 + # @return [Promise] self + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:349 def on_success(&block); end # Chain onto this promise an action to be undertaken on failure # (rejection). # - # @return [Promise] self # @yield The block to execute # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#360 + # @return [Promise] self + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:360 def rescue(&block); end - # Set the `IVar` to a value and wake or notify all threads waiting on it. + # @!macro ivar_set_method # - # @param value [Object] the value to store in the `IVar` - # @raise [ArgumentError] if both a value and a block are given - # @raise [Concurrent::MultipleAssignmentError] if the `IVar` has already - # been set or otherwise completed # @raise [Concurrent::PromiseExecutionError] if not the root promise - # @return [IVar] self - # @yield A block operation to use for setting the value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#262 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:262 def set(value = T.unsafe(nil), &block); end # Chain a new promise off the current promise. # - # @overload then - # @overload then - # @raise [ArgumentError] # @return [Promise] the new promise # @yield The block operation to be performed asynchronously. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#314 + # @overload then(rescuer, executor, &block) + # @param [Proc] rescuer An optional rescue block to be executed if the + # promise is rejected. + # @param [ThreadPool] executor An optional thread pool executor to be used + # in the new Promise + # @overload then(rescuer, executor: executor, &block) + # @param [Proc] rescuer An optional rescue block to be executed if the + # promise is rejected. + # @param [ThreadPool] executor An optional thread pool executor to be used + # in the new Promise + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:314 def then(*args, &block); end # Builds a promise that produces the result of self and others in an Array # and fails if any of them fails. # - # @overload zip - # @overload zip + # @overload zip(*promises) + # @param [Array] others + # + # @overload zip(*promises, opts) + # @param [Array] others + # @param [Hash] opts the configuration options + # @option opts [Executor] :executor (ImmediateExecutor.new) when set use the given `Executor` instance. + # @option opts [Boolean] :execute (true) execute promise before returning + # # @return [Promise] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#440 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:440 def zip(*others); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#551 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:551 def complete(success, value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#545 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:545 def notify_child(child); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#481 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:481 def ns_initialize(value, opts); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#533 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:533 def on_fulfill(result); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#539 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:539 def on_reject(reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#562 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:562 def realize(task); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#528 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:528 def root?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#520 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:520 def set_pending; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#570 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:570 def set_state!(success, value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#576 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:576 def synchronized_set_state!(success, value, reason); end class << self @@ -6463,21 +5797,9 @@ class Concurrent::Promise < ::Concurrent::IVar # `true` or executing the composite's `#rescue` handlers if the predicate # returns false. # + # @!macro promise_self_aggregate # - # The returned promise will not yet have been executed. Additional `#then` - # and `#rescue` handlers may still be provided. Once the returned promise - # is execute the aggregate promises will be also be executed (if they have - # not been executed already). The results of the aggregate promises will - # be checked upon completion. The necessary `#then` and `#rescue` blocks - # on the aggregating promise will then be executed as appropriate. If the - # `#rescue` handlers are executed the raises exception will be - # `Concurrent::PromiseExecutionError`. - # - # @param promises [Array] Zero or more promises to aggregate - # @return [Promise] an unscheduled (not executed) promise that aggregates - # the promises given as arguments - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#505 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:505 def aggregate(method, *promises); end # Aggregates a collection of promises and executes the `then` condition @@ -6486,9 +5808,22 @@ class Concurrent::Promise < ::Concurrent::IVar # fail. Upon execution will execute any of the aggregate promises that # were not already executed. # - # @return [Boolean] + # @!macro promise_self_aggregate + # + # The returned promise will not yet have been executed. Additional `#then` + # and `#rescue` handlers may still be provided. Once the returned promise + # is execute the aggregate promises will be also be executed (if they have + # not been executed already). The results of the aggregate promises will + # be checked upon completion. The necessary `#then` and `#rescue` blocks + # on the aggregating promise will then be executed as appropriate. If the + # `#rescue` handlers are executed the raises exception will be + # `Concurrent::PromiseExecutionError`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#464 + # @param [Array] promises Zero or more promises to aggregate + # @return [Promise] an unscheduled (not executed) promise that aggregates + # the promises given as arguments + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:464 def all?(*promises); end # Aggregates a collection of promises and executes the `then` condition @@ -6497,84 +5832,80 @@ class Concurrent::Promise < ::Concurrent::IVar # fail. Upon execution will execute any of the aggregate promises that # were not already executed. # + # @!macro promise_self_aggregate # - # The returned promise will not yet have been executed. Additional `#then` - # and `#rescue` handlers may still be provided. Once the returned promise - # is execute the aggregate promises will be also be executed (if they have - # not been executed already). The results of the aggregate promises will - # be checked upon completion. The necessary `#then` and `#rescue` blocks - # on the aggregating promise will then be executed as appropriate. If the - # `#rescue` handlers are executed the raises exception will be - # `Concurrent::PromiseExecutionError`. - # - # @param promises [Array] Zero or more promises to aggregate - # @return [Promise] an unscheduled (not executed) promise that aggregates - # the promises given as arguments - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#475 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:475 def any?(*promises); end # Create a new `Promise` object with the given block, execute it, and return the # `:pending` object. # + # @!macro executor_and_deref_options + # + # @!macro promise_init_options + # + # @return [Promise] the newly created `Promise` in the `:pending` state + # + # @raise [ArgumentError] if no block is given + # # @example # promise = Concurrent::Promise.execute{ sleep(1); 42 } # promise.state #=> :pending - # @option opts - # @option opts - # @option opts - # @option opts - # @param opts [Hash] a customizable set of options - # @raise [ArgumentError] if no block is given - # @return [Promise] the newly created `Promise` in the `:pending` state # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#296 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:296 def execute(opts = T.unsafe(nil), &block); end # Create a new `Promise` and fulfill it immediately. # - # @option opts - # @option opts - # @option opts - # @option opts - # @param opts [Hash] a customizable set of options + # @!macro executor_and_deref_options + # + # @!macro promise_init_options + # # @raise [ArgumentError] if no block is given + # # @return [Promise] the newly created `Promise` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#224 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:224 def fulfill(value, opts = T.unsafe(nil)); end # Create a new `Promise` and reject it immediately. # - # @option opts - # @option opts - # @option opts - # @option opts - # @param opts [Hash] a customizable set of options + # @!macro executor_and_deref_options + # + # @!macro promise_init_options + # # @raise [ArgumentError] if no block is given + # # @return [Promise] the newly created `Promise` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#237 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:237 def reject(reason, opts = T.unsafe(nil)); end # Builds a promise that produces the result of promises in an Array # and fails if any of them fails. # - # @overload zip - # @overload zip + # @overload zip(*promises) + # @param [Array] promises + # + # @overload zip(*promises, opts) + # @param [Array] promises + # @param [Hash] opts the configuration options + # @option opts [Executor] :executor (ImmediateExecutor.new) when set use the given `Executor` instance. + # @option opts [Boolean] :execute (true) execute promise before returning + # # @return [Promise] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#409 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:409 def zip(*promises); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promise.rb:11 class Concurrent::PromiseExecutionError < ::StandardError; end # {include:file:docs-source/promises-main.md} # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#13 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:13 module Concurrent::Promises extend ::Concurrent::Promises::FactoryMethods::Configuration extend ::Concurrent::Promises::FactoryMethods @@ -6582,478 +5913,456 @@ end # @abstract # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2047 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2047 class Concurrent::Promises::AbstractAnyPromise < ::Concurrent::Promises::BlockedPromise; end # Common ancestor of {Event} and {Future} classes, many shared methods are defined here. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#513 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:513 class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization::Object include ::Concurrent::Promises::InternalStates extend ::Concurrent::Synchronization::SafeInitialization - # @return [AbstractEventFuture] a new instance of AbstractEventFuture - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#522 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:522 def initialize(promise, default_executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:515 def __initialize_atomic_fields__; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#738 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:738 def add_callback_clear_delayed_node(node); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#733 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:733 def add_callback_notify_blocked(promise, index); end # For inspection. - # + # @!visibility private # @return [Array] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#702 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:702 def blocks; end # For inspection. + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#710 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:710 def callbacks; end - # Shortcut of {#chain_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #chain_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#596 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:596 def chain(*args, &task); end # Chains the task to be executed asynchronously on executor after it is resolved. # - # @overload a_future.chain_on - # @overload an_event.chain_on - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. The task is executed on it, default executor remains unchanged. + # @!macro promises.param.executor + # @!macro promises.param.args # @return [Future] - # @yieldreturn will become result of the returned Future. - # Its returned value becomes {Future#value} fulfilling it, - # raised exception becomes {Future#reason} rejecting it. + # @!macro promise.param.task-future # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#614 + # @overload an_event.chain_on(executor, *args, &task) + # @yield [*args] to the task. + # @overload a_future.chain_on(executor, *args, &task) + # @yield [fulfilled, value, reason, *args] to the task. + # @yieldparam [true, false] fulfilled + # @yieldparam [Object] value + # @yieldparam [Object] reason + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:614 def chain_on(executor, *args, &task); end # Resolves the resolvable when receiver is resolved. # - # @param resolvable [Resolvable] + # @param [Resolvable] resolvable # @return [self] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#629 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:629 def chain_resolvable(resolvable); end # Returns default executor. - # # @return [Executor] default executor # @see #with_default_executor - # @see FactoryMethods#any_fulfilled_future_on # @see FactoryMethods#future_on # @see FactoryMethods#resolvable_future + # @see FactoryMethods#any_fulfilled_future_on # @see similar # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#590 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:590 def default_executor; end - # @return [String] Short string representation. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#623 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:623 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:515 def internal_state; end - # Shortcut of {#on_resolution_using} with default `:io` executor supplied. - # + # @!macro promises.shortcut.using # @return [self] - # @see #on_resolution_using # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#637 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:637 def on_resolution(*args, &callback); end # Stores the callback to be executed synchronously on resolving thread after it is # resolved. # - # @overload a_future.on_resolution! - # @overload an_event.on_resolution! - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). + # @!macro promises.param.args + # @!macro promise.param.callback # @return [self] - # @yieldreturn is forgotten. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#655 + # @overload an_event.on_resolution!(*args, &callback) + # @yield [*args] to the callback. + # @overload a_future.on_resolution!(*args, &callback) + # @yield [fulfilled, value, reason, *args] to the callback. + # @yieldparam [true, false] fulfilled + # @yieldparam [Object] value + # @yieldparam [Object] reason + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:655 def on_resolution!(*args, &callback); end # Stores the callback to be executed asynchronously on executor after it is resolved. # - # @overload a_future.on_resolution_using - # @overload an_event.on_resolution_using - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. The task is executed on it, default executor remains unchanged. + # @!macro promises.param.executor + # @!macro promises.param.args + # @!macro promise.param.callback # @return [self] - # @yieldreturn is forgotten. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#673 + # @overload an_event.on_resolution_using(executor, *args, &callback) + # @yield [*args] to the callback. + # @overload a_future.on_resolution_using(executor, *args, &callback) + # @yield [fulfilled, value, reason, *args] to the callback. + # @yieldparam [true, false] fulfilled + # @yieldparam [Object] value + # @yieldparam [Object] reason + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:673 def on_resolution_using(executor, *args, &callback); end # Is it in pending state? - # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#549 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:549 def pending?; end # For inspection. + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#716 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:716 def promise; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#688 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:688 def resolve_with(state, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end # Is it in resolved state? - # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#555 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:555 def resolved?; end # Returns its state. + # @return [Symbol] # - # @overload a_future.state # @overload an_event.state - # @return [Symbol] + # @return [:pending, :resolved] + # @overload a_future.state + # Both :fulfilled, :rejected implies :resolved. + # @return [:pending, :fulfilled, :rejected] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#543 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:543 def state; end - # Resolves the resolvable when receiver is resolved. - # - # @param resolvable [Resolvable] - # @return [self] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#633 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:633 def tangle(resolvable); end # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#619 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:619 def to_s; end # Propagates touch. Requests all the delayed futures, which it depends on, to be # executed. This method is called by any other method requiring resolved state, like {#wait}. - # # @return [self] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#562 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:562 def touch; end # For inspection. + # @!visibility private # - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#722 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:722 def touched?; end - # Wait (block the Thread) until receiver is {#resolved?}. - # Calls {Concurrent::AbstractEventFuture#touch}. + # @!macro promises.method.wait + # Wait (block the Thread) until receiver is {#resolved?}. + # @!macro promises.touches # - # @note This function potentially blocks current thread until the Future is resolved. - # Be careful it can deadlock. Try to chain instead. - # @param timeout [Numeric] the maximum time in second to wait. - # @return [self, true, false] self implies timeout was not used, true implies timeout was used - # and it was resolved, false implies it was not resolved within timeout. + # @!macro promises.warn.blocks + # @!macro promises.param.timeout + # @return [self, true, false] self implies timeout was not used, true implies timeout was used + # and it was resolved, false implies it was not resolved within timeout. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#578 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:578 def wait(timeout = T.unsafe(nil)); end # For inspection. + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#728 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:728 def waiting_threads; end - # Crates new object with same class with the executor set as its new default executor. - # Any futures depending on it will use the new default executor. - # + # @!macro promises.method.with_default_executor + # Crates new object with same class with the executor set as its new default executor. + # Any futures depending on it will use the new default executor. + # @!macro promises.shortcut.event-future # @abstract - # @raise [NotImplementedError] # @return [AbstractEventFuture] - # @see Event#with_default_executor - # @see Future#with_default_executor # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#683 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:683 def with_default_executor(executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#743 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:743 def with_hidden_resolvable; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#750 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:750 def add_callback(method, *args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#812 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:812 def async_callback_on_resolution(state, executor, args, callback); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#796 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:796 def call_callback(method, state, args); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#800 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:800 def call_callbacks(state); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#763 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:763 def callback_clear_delayed_node(state, node); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#818 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:818 def callback_notify_blocked(state, promise, index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 + # pkg:gem/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/promises.rb#515 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:515 def internal_state=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:515 def swap_internal_state(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:515 def update_internal_state(&block); end # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#768 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:768 def wait_until_resolved(timeout); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#808 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:808 def with_async(executor, *args, &block); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1796 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1796 class Concurrent::Promises::AbstractFlatPromise < ::Concurrent::Promises::BlockedPromise - # @return [AbstractFlatPromise] a new instance of AbstractFlatPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1798 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1798 def initialize(delayed_because, blockers_count, event_or_future); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1808 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1808 def touch; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1828 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1828 def add_delayed_of(future); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1820 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1820 def on_resolvable(resolved_future, index); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1824 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1824 def resolvable?(countdown, future, index); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1816 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1816 def touched?; end end # @abstract # @private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1549 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1549 class Concurrent::Promises::AbstractPromise < ::Concurrent::Synchronization::Object include ::Concurrent::Promises::InternalStates extend ::Concurrent::Synchronization::SafeInitialization - # @return [AbstractPromise] a new instance of AbstractPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1553 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1553 def initialize(future); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1564 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1564 def default_executor; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1581 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1581 def delayed_because; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1562 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1562 def event; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1558 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1558 def future; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1579 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1579 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1568 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1568 def state; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1575 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1575 def to_s; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1572 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1572 def touch; end private # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1592 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1592 def evaluate_to(*args, block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1587 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1587 def resolve_with(new_state, raise_on_reassign = T.unsafe(nil)); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2084 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2084 class Concurrent::Promises::AnyFulfilledFuturePromise < ::Concurrent::Promises::AnyResolvedFuturePromise private - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2088 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2088 def resolvable?(countdown, event_or_future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2050 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2050 class Concurrent::Promises::AnyResolvedEventPromise < ::Concurrent::Promises::AbstractAnyPromise - # @return [AnyResolvedEventPromise] a new instance of AnyResolvedEventPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2054 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2054 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2062 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2062 def on_resolvable(resolved_future, index); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2058 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2058 def resolvable?(countdown, future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2067 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2067 class Concurrent::Promises::AnyResolvedFuturePromise < ::Concurrent::Promises::AbstractAnyPromise - # @return [AnyResolvedFuturePromise] a new instance of AnyResolvedFuturePromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2071 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2071 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2079 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2079 def on_resolvable(resolved_future, index); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2075 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2075 def resolvable?(countdown, future, index); end end # @abstract # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1619 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1619 class Concurrent::Promises::BlockedPromise < ::Concurrent::Promises::InnerPromise - # @return [BlockedPromise] a new instance of BlockedPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1661 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1661 def initialize(delayed, blockers_count, future); end # for inspection only # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1683 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1683 def blocked_by; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1674 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1674 def delayed_because; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1667 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1667 def on_blocker_resolution(future, index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1678 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1678 def touch; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1691 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1691 def clear_and_propagate_touch(stack_or_element = T.unsafe(nil)); end - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1710 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1710 def on_resolvable(resolved_future, index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1706 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1706 def process_on_blocker_resolution(future, index); end - # @return [true, false] if resolvable + # @return [true,false] if resolvable # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1702 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1702 def resolvable?(countdown, future, index); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1652 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1652 def add_delayed(delayed1, delayed2); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1645 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1645 def new_blocked_by(blockers, *args, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1623 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1623 def new_blocked_by1(blocker, *args, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1630 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1630 def new_blocked_by2(blocker1, blocker2, *args, &block); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1621 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1621 def new(*args, &block); end end end # @abstract # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1716 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1716 class Concurrent::Promises::BlockedTaskPromise < ::Concurrent::Promises::BlockedPromise - # @raise [ArgumentError] - # @return [BlockedTaskPromise] a new instance of BlockedTaskPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1717 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1717 def initialize(delayed, blockers_count, default_executor, executor, args, &task); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1725 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1725 def executor; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1766 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1766 class Concurrent::Promises::ChainPromise < ::Concurrent::Promises::BlockedTaskPromise private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1769 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1769 def on_resolvable(resolved_future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2095 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2095 class Concurrent::Promises::DelayPromise < ::Concurrent::Promises::InnerPromise - # @return [DelayPromise] a new instance of DelayPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2097 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2097 def initialize(default_executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2108 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2108 def delayed_because; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2104 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2104 def touch; end end @@ -7061,17 +6370,9 @@ end # pending or resolved. It should be always resolved. Use {Future} to communicate rejections and # cancellation. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#826 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:826 class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture - # Creates a new event or a future which will be resolved when receiver and other are. - # Returns an event if receiver and other are events, otherwise returns a future. - # If just one of the parties is Future then the result - # of the returned future is equal to the result of the supplied future. If both are futures - # then the result is as described in {FactoryMethods#zip_futures_on}. - # - # @return [Future, Event] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#847 + # pkg:gem/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` @@ -7079,7 +6380,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#853 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:853 def any(event_or_future); end # Creates new event dependent on receiver which will not evaluate until touched, see {#touch}. @@ -7087,447 +6388,388 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#863 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:863 def delay; end - # Creates new event dependent on receiver scheduled to execute on/in intended_time. - # In time is interpreted from the moment the receiver is resolved, therefore it inserts - # delay into the chain. + # @!macro promise.method.schedule + # Creates new event dependent on receiver scheduled to execute on/in intended_time. + # In time is interpreted from the moment the receiver is resolved, therefore it inserts + # delay into the chain. # - # @param intended_time [Numeric, Time] `Numeric` means to run in `intended_time` seconds. - # `Time` means to run on `intended_time`. + # @!macro promises.param.intended_time # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#875 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:875 def schedule(intended_time); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#828 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:828 def then(*args, &task); end # Returns self, since this is event - # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#893 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:893 def to_event; end # Converts event to a future. The future is fulfilled when the event is resolved, the future may never fail. # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#885 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:885 def to_future; end - # Crates new object with same class with the executor set as its new default executor. - # Any futures depending on it will use the new default executor. - # + # @!macro promises.method.with_default_executor # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#899 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:899 def with_default_executor(executor); end - # Creates a new event or a future which will be resolved when receiver and other are. - # Returns an event if receiver and other are events, otherwise returns a future. - # If just one of the parties is Future then the result - # of the returned future is equal to the result of the supplied future. If both are futures - # then the result is as described in {FactoryMethods#zip_futures_on}. + # @!macro promises.method.zip + # Creates a new event or a future which will be resolved when receiver and other are. + # Returns an event if receiver and other are events, otherwise returns a future. + # If just one of the parties is Future then the result + # of the returned future is equal to the result of the supplied future. If both are futures + # then the result is as described in {FactoryMethods#zip_futures_on}. # # @return [Future, Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#839 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:839 def zip(other); end - # Creates a new event which will be resolved when the first of receiver, `event_or_future` - # resolves. - # - # @return [Event] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#857 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:857 def |(event_or_future); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#910 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:910 def callback_on_resolution(state, args, callback); end - # @raise [Concurrent::MultipleAssignmentError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#905 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:905 def rejected_resolution(raise_on_reassign, state); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1972 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1972 class Concurrent::Promises::EventWrapperPromise < ::Concurrent::Promises::BlockedPromise - # @return [EventWrapperPromise] a new instance of EventWrapperPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1973 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1973 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1979 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1979 def on_resolvable(resolved_future, index); end end # Container of all {Future}, {Event} factory methods. They are never constructed directly with # new. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#46 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:46 module Concurrent::Promises::FactoryMethods include ::Concurrent::Promises::FactoryMethods::Configuration extend ::Concurrent::ReInclude extend ::Concurrent::Promises::FactoryMethods::Configuration extend ::Concurrent::Promises::FactoryMethods - # Shortcut of {#any_resolved_future_on} with default `:io` executor supplied. - # - # @return [Future] - # @see #any_resolved_future_on - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#282 + # pkg:gem/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. - # + # @!macro promises.shortcut.on # @return [Event] - # @see #any_event_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#319 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:319 def any_event(*futures_and_or_events); end # Creates a new event which becomes resolved after the first futures_and_or_events resolves. - # If resolved it does not propagate {Concurrent::AbstractEventFuture#touch}, leaving delayed - # futures un-executed if they are not required any more. + # @!macro promises.any-touch # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param futures_and_or_events [AbstractEventFuture] + # @!macro promises.param.default_executor + # @param [AbstractEventFuture] futures_and_or_events # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#329 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:329 def any_event_on(default_executor, *futures_and_or_events); end - # Shortcut of {#any_fulfilled_future_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #any_fulfilled_future_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#300 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:300 def any_fulfilled_future(*futures_and_or_events); end # Creates a new future which is resolved after the first futures_and_or_events is fulfilled. # Its result equals the result of the first resolved future or if all futures_and_or_events reject, # it has reason of the last rejected future. - # If resolved it does not propagate {Concurrent::AbstractEventFuture#touch}, leaving delayed - # futures un-executed if they are not required any more. - # If event is supplied, which does not have value and can be only resolved, it's - # represented as `:fulfilled` with value `nil`. - # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param futures_and_or_events [AbstractEventFuture] + # @!macro promises.any-touch + # @!macro promises.event-conversion + # + # @!macro promises.param.default_executor + # @param [AbstractEventFuture] futures_and_or_events # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#313 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:313 def any_fulfilled_future_on(default_executor, *futures_and_or_events); end - # Shortcut of {#any_resolved_future_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #any_resolved_future_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#278 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:278 def any_resolved_future(*futures_and_or_events); end # Creates a new future which is resolved after the first futures_and_or_events is resolved. # Its result equals the result of the first resolved future. - # If resolved it does not propagate {Concurrent::AbstractEventFuture#touch}, leaving delayed - # futures un-executed if they are not required any more. - # If event is supplied, which does not have value and can be only resolved, it's - # represented as `:fulfilled` with value `nil`. - # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param futures_and_or_events [AbstractEventFuture] + # @!macro promises.any-touch + # If resolved it does not propagate {Concurrent::AbstractEventFuture#touch}, leaving delayed + # futures un-executed if they are not required any more. + # @!macro promises.event-conversion + # + # @!macro promises.param.default_executor + # @param [AbstractEventFuture] futures_and_or_events # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#294 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:294 def any_resolved_future_on(default_executor, *futures_and_or_events); end - # Shortcut of {#delay_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future, Event] - # @see #delay_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#190 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:190 def delay(*args, &task); end # Creates a new event or future which is resolved only after it is touched, # see {Concurrent::AbstractEventFuture#touch}. # - # @overload delay_on - # @overload delay_on - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#207 + # @!macro promises.param.default_executor + # @overload delay_on(default_executor, *args, &task) + # If task is provided it returns a {Future} representing the result of the task. + # @!macro promises.param.args + # @yield [*args] to the task. + # @!macro promise.param.task-future + # @return [Future] + # @overload delay_on(default_executor) + # If no task is provided, it returns an {Event} + # @return [Event] + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:207 def delay_on(default_executor, *args, &task); end # Creates a resolved future which will be fulfilled with the given value. # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param value [Object] + # @!macro promises.param.default_executor + # @param [Object] value # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#127 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:127 def fulfilled_future(value, default_executor = T.unsafe(nil)); end - # Shortcut of {#future_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #future_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#94 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:94 def future(*args, &task); end # Constructs a new Future which will be resolved after block is evaluated on default executor. # Evaluation begins immediately. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @return [Future] + # @!macro promises.param.default_executor + # @!macro promises.param.args # @yield [*args] to the task. - # @yieldreturn will become result of the returned Future. - # Its returned value becomes {Future#value} fulfilling it, - # raised exception becomes {Future#reason} rejecting it. + # @!macro promise.param.task-future + # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#106 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:106 def future_on(default_executor, *args, &task); end # General constructor. Behaves differently based on the argument's type. It's provided for convenience # but it's better to be explicit. # - # @overload make_future - # @overload make_future - # @overload make_future - # @overload make_future - # @overload make_future - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @return [Event, Future] # @see rejected_future, resolved_event, fulfilled_future + # @!macro promises.param.default_executor + # @return [Event, Future] + # + # @overload make_future(nil, default_executor = self.default_executor) + # @param [nil] nil + # @return [Event] resolved event. + # + # @overload make_future(a_future, default_executor = self.default_executor) + # @param [Future] a_future + # @return [Future] a future which will be resolved when a_future is. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#174 + # @overload make_future(an_event, default_executor = self.default_executor) + # @param [Event] an_event + # @return [Event] an event which will be resolved when an_event is. + # + # @overload make_future(exception, default_executor = self.default_executor) + # @param [Exception] exception + # @return [Future] a rejected future with the exception as its reason. + # + # @overload make_future(value, default_executor = self.default_executor) + # @param [Object] value when none of the above overloads fits + # @return [Future] a fulfilled future with the value. + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:174 def make_future(argument = T.unsafe(nil), default_executor = T.unsafe(nil)); end # Creates a resolved future which will be rejected with the given reason. # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param reason [Object] + # @!macro promises.param.default_executor + # @param [Object] reason # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#136 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:136 def rejected_future(reason, default_executor = T.unsafe(nil)); end - # Shortcut of {#resolvable_event_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [ResolvableEvent] - # @see #resolvable_event_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#63 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:63 def resolvable_event; end # Creates a resolvable event, user is responsible for resolving the event once # by calling {Promises::ResolvableEvent#resolve}. # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. + # @!macro promises.param.default_executor # @return [ResolvableEvent] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#72 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:72 def resolvable_event_on(default_executor = T.unsafe(nil)); end - # Shortcut of {#resolvable_future_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [ResolvableFuture] - # @see #resolvable_future_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#78 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:78 def resolvable_future; end # Creates resolvable future, user is responsible for resolving the future once by # {Promises::ResolvableFuture#resolve}, {Promises::ResolvableFuture#fulfill}, # or {Promises::ResolvableFuture#reject} # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. + # @!macro promises.param.default_executor # @return [ResolvableFuture] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#88 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:88 def resolvable_future_on(default_executor = T.unsafe(nil)); end # Creates resolved event. # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. + # @!macro promises.param.default_executor # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#144 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:144 def resolved_event(default_executor = T.unsafe(nil)); end # Creates a resolved future with will be either fulfilled with the given value or rejected with # the given reason. # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param fulfilled [true, false] - # @param reason [Object] - # @param value [Object] + # @param [true, false] fulfilled + # @param [Object] value + # @param [Object] reason + # @!macro promises.param.default_executor # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#118 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:118 def resolved_future(fulfilled, value, reason, default_executor = T.unsafe(nil)); end - # Shortcut of {#schedule_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future, Event] - # @see #schedule_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#214 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:214 def schedule(intended_time, *args, &task); end # Creates a new event or future which is resolved in intended_time. # - # @overload schedule_on - # @overload schedule_on - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param intended_time [Numeric, Time] `Numeric` means to run in `intended_time` seconds. - # `Time` means to run on `intended_time`. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#233 + # @!macro promises.param.default_executor + # @!macro promises.param.intended_time + # @param [Numeric, Time] intended_time `Numeric` means to run in `intended_time` seconds. + # `Time` means to run on `intended_time`. + # @overload schedule_on(default_executor, intended_time, *args, &task) + # If task is provided it returns a {Future} representing the result of the task. + # @!macro promises.param.args + # @yield [*args] to the task. + # @!macro promise.param.task-future + # @return [Future] + # @overload schedule_on(default_executor, intended_time) + # If no task is provided, it returns an {Event} + # @return [Event] + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:233 def schedule_on(default_executor, intended_time, *args, &task); end - # Shortcut of {#zip_futures_on} with default `:io` executor supplied. - # - # @return [Future] - # @see #zip_futures_on - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#258 + # pkg:gem/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. - # + # @!macro promises.shortcut.on # @return [Event] - # @see #zip_events_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#262 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:262 def zip_events(*futures_and_or_events); end # Creates a new event which is resolved after all futures_and_or_events are resolved. # (Future is resolved when fulfilled or rejected.) # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param futures_and_or_events [AbstractEventFuture] + # @!macro promises.param.default_executor + # @param [AbstractEventFuture] futures_and_or_events # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#272 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:272 def zip_events_on(default_executor, *futures_and_or_events); end - # Shortcut of {#zip_futures_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #zip_futures_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#240 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:240 def zip_futures(*futures_and_or_events); end # Creates a new future which is resolved after all futures_and_or_events are resolved. # Its value is an array of zipped future values. Its reason is an array of reasons for rejection. # If there is an error it rejects. - # If event is supplied, which does not have value and can be only resolved, it's - # represented as `:fulfilled` with value `nil`. + # @!macro promises.event-conversion + # If event is supplied, which does not have value and can be only resolved, it's + # represented as `:fulfilled` with value `nil`. # - # @param default_executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. Default executor propagates to chained futures unless overridden with - # executor parameter or changed with {AbstractEventFuture#with_default_executor}. - # @param futures_and_or_events [AbstractEventFuture] + # @!macro promises.param.default_executor + # @param [AbstractEventFuture] futures_and_or_events # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#254 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:254 def zip_futures_on(default_executor, *futures_and_or_events); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#50 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:50 module Concurrent::Promises::FactoryMethods::Configuration # @return [Executor, :io, :fast] the executor which is used when none is supplied # to a factory method. The method can be overridden in the receivers of # `include FactoryMethod` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:54 def default_executor; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1840 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1840 class Concurrent::Promises::FlatEventPromise < ::Concurrent::Promises::AbstractFlatPromise - # @return [FlatEventPromise] a new instance of FlatEventPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1844 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1844 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1848 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1848 def process_on_blocker_resolution(future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1873 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1873 class Concurrent::Promises::FlatFuturePromise < ::Concurrent::Promises::AbstractFlatPromise - # @raise [ArgumentError] - # @return [FlatFuturePromise] a new instance of FlatFuturePromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1877 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1877 def initialize(delayed, blockers_count, levels, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1884 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1884 def process_on_blocker_resolution(future, index); end end # Represents a value which will become available in future. May reject with a reason instead, # e.g. when the tasks raises an exception. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#917 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:917 class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture - # Creates a new event or a future which will be resolved when receiver and other are. - # Returns an event if receiver and other are events, otherwise returns a future. - # If just one of the parties is Future then the result - # of the returned future is equal to the result of the supplied future. If both are futures - # then the result is as described in {FactoryMethods#zip_futures_on}. - # - # @return [Future] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1078 + # pkg:gem/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` @@ -7536,10 +6778,12 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1085 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1085 def any(event_or_future); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1215 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1215 def apply(args, block); end # Creates new future dependent on receiver which will not evaluate until touched, see {#touch}. @@ -7547,7 +6791,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1095 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1095 def delay; end # Allows rejected Future to be risen with `raise` method. @@ -7559,16 +6803,10 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # @raise [Concurrent::Error] when raising not rejected future # @return [Exception] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1013 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1013 def exception(*args); end - # Creates new future which will have result of the future returned by receiver. If receiver - # rejects it will have its rejection. - # - # @param level [Integer] how many levels of futures should flatten - # @return [Future] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1124 + # pkg:gem/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. @@ -7576,154 +6814,130 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1130 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1130 def flat_event; end # Creates new future which will have result of the future returned by receiver. If receiver # rejects it will have its rejection. # - # @param level [Integer] how many levels of futures should flatten + # @param [Integer] level how many levels of futures should flatten # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1120 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1120 def flat_future(level = T.unsafe(nil)); end # Is it in fulfilled state? - # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#921 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:921 def fulfilled?; end - # @return [String] Short string representation. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1243 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1243 def inspect; end - # Shortcut of {#on_fulfillment_using} with default `:io` executor supplied. - # + # @!macro promises.shortcut.using # @return [self] - # @see #on_fulfillment_using # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1136 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1136 def on_fulfillment(*args, &callback); end # Stores the callback to be executed synchronously on resolving thread after it is # fulfilled. Does nothing on rejection. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). + # @!macro promises.param.args + # @!macro promise.param.callback # @return [self] # @yield [value, *args] to the callback. - # @yieldreturn is forgotten. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1147 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1147 def on_fulfillment!(*args, &callback); end # Stores the callback to be executed asynchronously on executor after it is # fulfilled. Does nothing on rejection. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. The task is executed on it, default executor remains unchanged. + # @!macro promises.param.executor + # @!macro promises.param.args + # @!macro promise.param.callback # @return [self] # @yield [value, *args] to the callback. - # @yieldreturn is forgotten. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1159 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1159 def on_fulfillment_using(executor, *args, &callback); end - # Shortcut of {#on_rejection_using} with default `:io` executor supplied. - # + # @!macro promises.shortcut.using # @return [self] - # @see #on_rejection_using # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1165 def on_rejection(*args, &callback); end # Stores the callback to be executed synchronously on resolving thread after it is # rejected. Does nothing on fulfillment. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). + # @!macro promises.param.args + # @!macro promise.param.callback # @return [self] # @yield [reason, *args] to the callback. - # @yieldreturn is forgotten. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1176 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1176 def on_rejection!(*args, &callback); end # Stores the callback to be executed asynchronously on executor after it is # rejected. Does nothing on fulfillment. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. The task is executed on it, default executor remains unchanged. + # @!macro promises.param.executor + # @!macro promises.param.args + # @!macro promise.param.callback # @return [self] # @yield [reason, *args] to the callback. - # @yieldreturn is forgotten. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1188 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1188 def on_rejection_using(executor, *args, &callback); end # Returns reason of future's rejection. - # Calls {Concurrent::AbstractEventFuture#touch}. - # - # @note This function potentially blocks current thread until the Future is resolved. - # Be careful it can deadlock. Try to chain instead. - # @note Make sure returned `nil` is not confused with timeout, no value when rejected, - # no reason when fulfilled, etc. - # Use more exact methods if needed, like {#wait}, {#value!}, {#result}, etc. - # @param timeout [Numeric] the maximum time in second to wait. - # @param timeout_value [Object] a value returned by the method when it times out + # @!macro promises.touches + # + # @!macro promises.warn.blocks + # @!macro promises.warn.nil + # @!macro promises.param.timeout + # @!macro promises.param.timeout_value # @return [Object, timeout_value] the reason, or timeout_value on timeout, or nil on fulfillment. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#966 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:966 def reason(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end # Is it in rejected state? - # # @return [Boolean] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#928 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:928 def rejected?; end - # Shortcut of {#rescue_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #rescue_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1052 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1052 def rescue(*args, &task); end # Chains the task to be executed asynchronously on executor after it rejects. Does not run # the task if it fulfills. It will resolve though, triggering any dependent futures. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. The task is executed on it, default executor remains unchanged. + # @!macro promises.param.executor + # @!macro promises.param.args + # @!macro promise.param.task-future # @return [Future] # @yield [reason, *args] to the task. - # @yieldreturn will become result of the returned Future. - # Its returned value becomes {Future#value} fulfilling it, - # raised exception becomes {Future#reason} rejecting it. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1064 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1064 def rescue_on(executor, *args, &task); end # Returns triplet fulfilled?, value, reason. - # Calls {Concurrent::AbstractEventFuture#touch}. + # @!macro promises.touches # - # @note This function potentially blocks current thread until the Future is resolved. - # Be careful it can deadlock. Try to chain instead. - # @param timeout [Numeric] the maximum time in second to wait. + # @!macro promises.warn.blocks + # @!macro promises.param.timeout # @return [Array(Boolean, Object, Object), nil] triplet of fulfilled?, value, reason, or nil # on timeout. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#981 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:981 def result(timeout = T.unsafe(nil)); end # Allows to use futures as green threads. The receiver has to evaluate to a future which @@ -7731,690 +6945,596 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture # values is returned which becomes result of the returned future. Any encountered exception # will become reason of the returned future. # - # @example - # body = lambda do |v| - # v += 1 - # v < 5 ? Promises.future(v, &body) : v - # end - # Promises.future(0, &body).run.value! # => 5 - # @param run_test [#call(value)] an object which when called returns either Future to keep running with + # @return [Future] + # @param [#call(value)] run_test + # an object which when called returns either Future to keep running with # or nil, then the run completes with the value. # The run_test can be used to extract the Future from deeper structure, # or to distinguish Future which is a resulting value from a future # which is suppose to continue running. - # @return [Future] + # @example + # body = lambda do |v| + # v += 1 + # v < 5 ? Promises.future(v, &body) : v + # end + # Promises.future(0, &body).run.value! # => 5 # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1210 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1210 def run(run_test = T.unsafe(nil)); end - # Creates new event dependent on receiver scheduled to execute on/in intended_time. - # In time is interpreted from the moment the receiver is resolved, therefore it inserts - # delay into the chain. - # - # @param intended_time [Numeric, Time] `Numeric` means to run in `intended_time` seconds. - # `Time` means to run on `intended_time`. + # @!macro promise.method.schedule # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1102 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1102 def schedule(intended_time); end - # Shortcut of {#then_on} with default `:io` executor supplied. - # + # @!macro promises.shortcut.on # @return [Future] - # @see #then_on # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1034 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1034 def then(*args, &task); end # Chains the task to be executed asynchronously on executor after it fulfills. Does not run # the task if it rejects. It will resolve though, triggering any dependent futures. # - # @param args [Object] arguments which are passed to the task when it's executed. - # (It might be prepended with other arguments, see the @yield section). - # @param executor [Executor, :io, :fast] Instance of an executor or a name of the - # global executor. The task is executed on it, default executor remains unchanged. + # @!macro promises.param.executor + # @!macro promises.param.args + # @!macro promise.param.task-future # @return [Future] # @yield [value, *args] to the task. - # @yieldreturn will become result of the returned Future. - # Its returned value becomes {Future#value} fulfilling it, - # raised exception becomes {Future#reason} rejecting it. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1046 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1046 def then_on(executor, *args, &task); end # Converts future to event which is resolved when future is resolved by fulfillment or rejection. # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1222 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1222 def to_event; end # Returns self, since this is a future - # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1230 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1230 def to_future; end # @return [String] Short string representation. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1235 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1235 def to_s; end - # Return value of the future. - # Calls {Concurrent::AbstractEventFuture#touch}. + # @!macro promises.method.value + # Return value of the future. + # @!macro promises.touches # - # @note This function potentially blocks current thread until the Future is resolved. - # Be careful it can deadlock. Try to chain instead. - # @note Make sure returned `nil` is not confused with timeout, no value when rejected, - # no reason when fulfilled, etc. - # Use more exact methods if needed, like {#wait}, {#value!}, {#result}, etc. - # @param timeout [Numeric] the maximum time in second to wait. - # @param timeout_value [Object] a value returned by the method when it times out + # @!macro promises.warn.blocks + # @!macro promises.warn.nil + # @!macro promises.param.timeout + # @!macro promises.param.timeout_value + # @param [Object] timeout_value a value returned by the method when it times out # @return [Object, nil, timeout_value] the value of the Future when fulfilled, # timeout_value on timeout, # nil on rejection. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#950 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:950 def value(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end - # Return value of the future. - # Calls {Concurrent::AbstractEventFuture#touch}. - # - # @note This function potentially blocks current thread until the Future is resolved. - # Be careful it can deadlock. Try to chain instead. - # @note Make sure returned `nil` is not confused with timeout, no value when rejected, - # no reason when fulfilled, etc. - # Use more exact methods if needed, like {#wait}, {#value!}, {#result}, etc. - # @param timeout [Numeric] the maximum time in second to wait. - # @param timeout_value [Object] a value returned by the method when it times out - # @raise [Exception] {#reason} on rejection + # @!macro promises.method.value # @return [Object, nil, timeout_value] the value of the Future when fulfilled, # or nil on rejection, # or timeout_value on timeout. + # @raise [Exception] {#reason} on rejection # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#997 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:997 def value!(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end - # Wait (block the Thread) until receiver is {#resolved?}. - # Calls {Concurrent::AbstractEventFuture#touch}. - # - # @note This function potentially blocks current thread until the Future is resolved. - # Be careful it can deadlock. Try to chain instead. - # @param timeout [Numeric] the maximum time in second to wait. + # @!macro promises.method.wait # @raise [Exception] {#reason} on rejection - # @return [self, true, false] self implies timeout was not used, true implies timeout was used - # and it was resolved, false implies it was not resolved within timeout. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#987 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:987 def wait!(timeout = T.unsafe(nil)); end - # Crates new object with same class with the executor set as its new default executor. - # Any futures depending on it will use the new default executor. - # + # @!macro promises.method.with_default_executor # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1111 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1111 def with_default_executor(executor); end - # Creates a new event or a future which will be resolved when receiver and other are. - # Returns an event if receiver and other are events, otherwise returns a future. - # If just one of the parties is Future then the result - # of the returned future is equal to the result of the supplied future. If both are futures - # then the result is as described in {FactoryMethods#zip_futures_on}. - # + # @!macro promises.method.zip # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1070 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1070 def zip(other); end - # Creates a new event which will be resolved when the first of receiver, `event_or_future` - # resolves. Returning future will have value nil if event_or_future is event and resolves - # first. - # - # @return [Future] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1089 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1089 def |(event_or_future); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1272 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1272 def async_callback_on_fulfillment(state, executor, args, callback); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1278 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1278 def async_callback_on_rejection(state, executor, args, callback); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1284 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1284 def callback_on_fulfillment(state, args, callback); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1288 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1288 def callback_on_rejection(state, args, callback); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1292 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1292 def callback_on_resolution(state, args, callback); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1251 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1251 def rejected_resolution(raise_on_reassign, state); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1247 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1247 def run_test(v); end - # @raise [self] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1266 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1266 def wait_until_resolved!(timeout = T.unsafe(nil)); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1984 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1984 class Concurrent::Promises::FutureWrapperPromise < ::Concurrent::Promises::BlockedPromise - # @return [FutureWrapperPromise] a new instance of FutureWrapperPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1985 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1985 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1991 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1991 def on_resolvable(resolved_future, index); end end # will be immediately resolved # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1783 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1783 class Concurrent::Promises::ImmediateEventPromise < ::Concurrent::Promises::InnerPromise - # @return [ImmediateEventPromise] a new instance of ImmediateEventPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1784 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1784 def initialize(default_executor); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1789 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1789 class Concurrent::Promises::ImmediateFuturePromise < ::Concurrent::Promises::InnerPromise - # @return [ImmediateFuturePromise] a new instance of ImmediateFuturePromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1790 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1790 def initialize(default_executor, fulfilled, value, reason); end end # @abstract # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1615 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1615 class Concurrent::Promises::InnerPromise < ::Concurrent::Promises::AbstractPromise; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#338 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:338 module Concurrent::Promises::InternalStates; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#397 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:397 class Concurrent::Promises::InternalStates::Fulfilled < ::Concurrent::Promises::InternalStates::ResolvedWithResult - # @return [Fulfilled] a new instance of Fulfilled - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#399 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:399 def initialize(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#407 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:407 def apply(args, block); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#403 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:403 def fulfilled?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#415 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:415 def reason; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#419 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:419 def to_sym; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#411 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:411 def value; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#425 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:425 class Concurrent::Promises::InternalStates::FulfilledArray < ::Concurrent::Promises::InternalStates::Fulfilled - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#426 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:426 def apply(args, block); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#488 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:488 Concurrent::Promises::InternalStates::PENDING = T.let(T.unsafe(nil), Concurrent::Promises::InternalStates::Pending) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#459 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:459 class Concurrent::Promises::InternalStates::PartiallyRejected < ::Concurrent::Promises::InternalStates::ResolvedWithResult - # @return [PartiallyRejected] a new instance of PartiallyRejected - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#460 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:460 def initialize(value, reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#482 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:482 def apply(args, block); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#466 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:466 def fulfilled?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#478 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:478 def reason; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#470 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:470 def to_sym; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#474 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:474 def value; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#351 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:351 class Concurrent::Promises::InternalStates::Pending < ::Concurrent::Promises::InternalStates::State - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#352 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:352 def resolved?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#356 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:356 def to_sym; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#490 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:490 Concurrent::Promises::InternalStates::RESERVED = T.let(T.unsafe(nil), Concurrent::Promises::InternalStates::Reserved) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#492 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:492 Concurrent::Promises::InternalStates::RESOLVED = T.let(T.unsafe(nil), Concurrent::Promises::InternalStates::Fulfilled) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#432 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:432 class Concurrent::Promises::InternalStates::Rejected < ::Concurrent::Promises::InternalStates::ResolvedWithResult - # @return [Rejected] a new instance of Rejected - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#433 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:433 def initialize(reason); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#453 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:453 def apply(args, block); end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#437 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:437 def fulfilled?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#445 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:445 def reason; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#449 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:449 def to_sym; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#441 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:441 def value; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#362 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:362 class Concurrent::Promises::InternalStates::Reserved < ::Concurrent::Promises::InternalStates::Pending; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#366 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:366 class Concurrent::Promises::InternalStates::ResolvedWithResult < ::Concurrent::Promises::InternalStates::State - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#391 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:391 def apply; end - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#379 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:379 def fulfilled?; end - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#387 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:387 def reason; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#367 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:367 def resolved?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#375 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:375 def result; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#371 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:371 def to_sym; end - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#383 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:383 def value; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#340 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:340 class Concurrent::Promises::InternalStates::State - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#341 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:341 def resolved?; end - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#345 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:345 def to_sym; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1748 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1748 class Concurrent::Promises::RescuePromise < ::Concurrent::Promises::BlockedTaskPromise - # @return [RescuePromise] a new instance of RescuePromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1751 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1751 def initialize(delayed, blockers_count, default_executor, executor, args, &task); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1755 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1755 def on_resolvable(resolved_future, index); end end # Marker module of Future, Event resolved manually. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1299 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1299 module Concurrent::Promises::Resolvable include ::Concurrent::Promises::InternalStates end # A Event which can be resolved by user. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1304 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1304 class Concurrent::Promises::ResolvableEvent < ::Concurrent::Promises::Event include ::Concurrent::Promises::Resolvable # Makes the event resolved, which triggers all dependent futures. # - # @param raise_on_reassign [Boolean] should method raise exception if already resolved - # @param reserved [true, false] Set to true if the resolvable is {#reserve}d by you, - # marks resolution of reserved resolvable events and futures explicitly. - # Advanced feature, ignore unless you use {Resolvable#reserve} from edge. - # @return [self, false] false is returned when raise_on_reassign is false and the receiver - # is already resolved. + # @!macro promise.param.raise_on_reassign + # @!macro promise.param.reserved + # @param [true, false] reserved + # Set to true if the resolvable is {#reserve}d by you, + # marks resolution of reserved resolvable events and futures explicitly. + # Advanced feature, ignore unless you use {Resolvable#reserve} from edge. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1324 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1324 def resolve(raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end # Behaves as {AbstractEventFuture#wait} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [true, false] If it times out and the argument is true it will also resolve the event. + # @param [true, false] resolve_on_timeout + # If it times out and the argument is true it will also resolve the event. # @return [self, true, false] # @see AbstractEventFuture#wait # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1342 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1342 def wait(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Creates new event wrapping receiver, effectively hiding the resolve method. # # @return [Event] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1331 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1331 def with_hidden_resolvable; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1600 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1600 class Concurrent::Promises::ResolvableEventPromise < ::Concurrent::Promises::AbstractPromise - # @return [ResolvableEventPromise] a new instance of ResolvableEventPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1601 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1601 def initialize(default_executor); end end # A Future which can be resolved by user. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1354 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1354 class Concurrent::Promises::ResolvableFuture < ::Concurrent::Promises::Future include ::Concurrent::Promises::Resolvable # Evaluates the block and sets its result as future's value fulfilling, if the block raises # an exception the future rejects with it. # - # @return [self] # @yield [*args] to the block. # @yieldreturn [Object] value + # @return [self] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1395 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1395 def evaluate_to(*args, &block); end # Evaluates the block and sets its result as future's value fulfilling, if the block raises # an exception the future rejects with it. # - # @raise [Exception] also raise reason on rejection. - # @return [self] # @yield [*args] to the block. # @yieldreturn [Object] value + # @return [self] + # @raise [Exception] also raise reason on rejection. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1406 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1406 def evaluate_to!(*args, &block); end # Makes the future fulfilled with `value`, # which triggers all dependent futures. # - # @param raise_on_reassign [Boolean] should method raise exception if already resolved - # @param reserved [true, false] Set to true if the resolvable is {#reserve}d by you, - # marks resolution of reserved resolvable events and futures explicitly. - # Advanced feature, ignore unless you use {Resolvable#reserve} from edge. - # @param value [Object] - # @return [self, false] false is returned when raise_on_reassign is false and the receiver - # is already resolved. + # @param [Object] value + # @!macro promise.param.raise_on_reassign + # @!macro promise.param.reserved # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1375 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1375 def fulfill(value, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end # Behaves as {Future#reason} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [::Array(true, Object, nil), ::Array(false, nil, Exception), nil] If it times out and the argument is not nil it will also resolve the future - # to the provided resolution. + # @!macro promises.resolvable.resolve_on_timeout # @return [Exception, timeout_value, nil] # @see Future#reason # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1503 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1503 def reason(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Makes the future rejected with `reason`, # which triggers all dependent futures. # - # @param raise_on_reassign [Boolean] should method raise exception if already resolved - # @param reason [Object] - # @param reserved [true, false] Set to true if the resolvable is {#reserve}d by you, - # marks resolution of reserved resolvable events and futures explicitly. - # Advanced feature, ignore unless you use {Resolvable#reserve} from edge. - # @return [self, false] false is returned when raise_on_reassign is false and the receiver - # is already resolved. + # @param [Object] reason + # @!macro promise.param.raise_on_reassign + # @!macro promise.param.reserved # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1385 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1385 def reject(reason, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end # Makes the future resolved with result of triplet `fulfilled?`, `value`, `reason`, # which triggers all dependent futures. # - # @param fulfilled [true, false] - # @param raise_on_reassign [Boolean] should method raise exception if already resolved - # @param reason [Object] - # @param reserved [true, false] Set to true if the resolvable is {#reserve}d by you, - # marks resolution of reserved resolvable events and futures explicitly. - # Advanced feature, ignore unless you use {Resolvable#reserve} from edge. - # @param value [Object] - # @return [self, false] false is returned when raise_on_reassign is false and the receiver - # is already resolved. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1365 + # @param [true, false] fulfilled + # @param [Object] value + # @param [Object] reason + # @!macro promise.param.raise_on_reassign + # @!macro promise.param.reserved + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1365 def resolve(fulfilled = T.unsafe(nil), value = T.unsafe(nil), reason = T.unsafe(nil), raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end # Behaves as {Future#result} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [::Array(true, Object, nil), ::Array(false, nil, Exception), nil] If it times out and the argument is not nil it will also resolve the future - # to the provided resolution. + # @!macro promises.resolvable.resolve_on_timeout # @return [::Array(Boolean, Object, Exception), nil] # @see Future#result # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1524 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1524 def result(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Behaves as {Future#value} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [::Array(true, Object, nil), ::Array(false, nil, Exception), nil] If it times out and the argument is not nil it will also resolve the future - # to the provided resolution. + # @!macro promises.resolvable.resolve_on_timeout # @return [Object, timeout_value, nil] # @see Future#value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1459 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1459 def value(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Behaves as {Future#value!} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [::Array(true, Object, nil), ::Array(false, nil, Exception), nil] If it times out and the argument is not nil it will also resolve the future - # to the provided resolution. - # @raise [Exception] {#reason} on rejection + # @!macro promises.resolvable.resolve_on_timeout # @return [Object, timeout_value, nil] + # @raise [Exception] {#reason} on rejection # @see Future#value! # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1481 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1481 def value!(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Behaves as {AbstractEventFuture#wait} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [::Array(true, Object, nil), ::Array(false, nil, Exception), nil] If it times out and the argument is not nil it will also resolve the future - # to the provided resolution. + # @!macro promises.resolvable.resolve_on_timeout # @return [self, true, false] # @see AbstractEventFuture#wait # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1421 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1421 def wait(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Behaves as {Future#wait!} but has one additional optional argument # resolve_on_timeout. # - # @param resolve_on_timeout [::Array(true, Object, nil), ::Array(false, nil, Exception), nil] If it times out and the argument is not nil it will also resolve the future - # to the provided resolution. - # @raise [Exception] {#reason} on rejection + # @!macro promises.resolvable.resolve_on_timeout # @return [self, true, false] + # @raise [Exception] {#reason} on rejection # @see Future#wait! # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1438 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1438 def wait!(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end # Creates new future wrapping receiver, effectively hiding the resolve method and similar. # # @return [Future] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1542 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1542 def with_hidden_resolvable; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1606 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1606 class Concurrent::Promises::ResolvableFuturePromise < ::Concurrent::Promises::AbstractPromise - # @return [ResolvableFuturePromise] a new instance of ResolvableFuturePromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1607 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1607 def initialize(default_executor); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1611 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1611 def evaluate_to(*args, block); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1909 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1909 class Concurrent::Promises::RunFuturePromise < ::Concurrent::Promises::AbstractFlatPromise - # @return [RunFuturePromise] a new instance of RunFuturePromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1913 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1913 def initialize(delayed, blockers_count, default_executor, run_test); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1918 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1918 def process_on_blocker_resolution(future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2114 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2114 class Concurrent::Promises::ScheduledPromise < ::Concurrent::Promises::InnerPromise - # @return [ScheduledPromise] a new instance of ScheduledPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2125 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2125 def initialize(default_executor, intended_time); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2119 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2119 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2115 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2115 def intended_time; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1730 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1730 class Concurrent::Promises::ThenPromise < ::Concurrent::Promises::BlockedTaskPromise - # @return [ThenPromise] a new instance of ThenPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1733 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1733 def initialize(delayed, blockers_count, default_executor, executor, args, &task); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1737 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1737 def on_resolvable(resolved_future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1940 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1940 class Concurrent::Promises::ZipEventEventPromise < ::Concurrent::Promises::BlockedPromise - # @return [ZipEventEventPromise] a new instance of ZipEventEventPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1941 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1941 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1947 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1947 def on_resolvable(resolved_future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2031 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2031 class Concurrent::Promises::ZipEventsPromise < ::Concurrent::Promises::BlockedPromise - # @return [ZipEventsPromise] a new instance of ZipEventsPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2035 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2035 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2041 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2041 def on_resolvable(resolved_future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1952 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1952 class Concurrent::Promises::ZipFutureEventPromise < ::Concurrent::Promises::BlockedPromise - # @return [ZipFutureEventPromise] a new instance of ZipFutureEventPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1953 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1953 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1967 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1967 def on_resolvable(resolved_future, index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1960 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1960 def process_on_blocker_resolution(future, index); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1996 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:1996 class Concurrent::Promises::ZipFuturesPromise < ::Concurrent::Promises::BlockedPromise - # @return [ZipFuturesPromise] a new instance of ZipFuturesPromise - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2000 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2000 def initialize(delayed, blockers_count, default_executor); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2013 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2013 def on_resolvable(resolved_future, index); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#2007 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/promises.rb:2007 def process_on_blocker_resolution(future, index); end end @@ -8424,24 +7544,24 @@ end # # @example # module A -# def a -# :a -# end +# def a +# :a +# end # end # # module B1 # end # # class C1 -# include B1 +# include B1 # end # # module B2 -# extend Concurrent::ReInclude +# extend Concurrent::ReInclude # end # # class C2 -# include B2 +# include B2 # end # # B1.send :include, A @@ -8450,15 +7570,23 @@ end # C1.new.respond_to? :a # => false # C2.new.respond_to? :a # => true # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/re_include.rb#36 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/re_include.rb:36 module Concurrent::ReInclude - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/re_include.rb#44 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/re_include.rb:44 def extended(base); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/re_include.rb#50 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/re_include.rb:50 def include(*modules); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/re_include.rb#38 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/re_include.rb:38 def included(base); end end @@ -8478,135 +7606,153 @@ end # lock = Concurrent::ReadWriteLock.new # lock.with_read_lock { data.retrieve } # lock.with_write_lock { data.modify! } +# # @note Do **not** try to acquire the write lock while already holding a read lock # **or** try to acquire the write lock while you already have it. # This will lead to deadlock +# # @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReentrantReadWriteLock.html java.util.concurrent.ReentrantReadWriteLock # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#31 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:31 class Concurrent::ReadWriteLock < ::Concurrent::Synchronization::Object extend ::Concurrent::Synchronization::SafeInitialization # Create a new `ReadWriteLock` in the unlocked state. # - # @return [ReadWriteLock] a new instance of ReadWriteLock - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:59 def initialize; end # Acquire a read lock. If a write lock has been acquired will block until # it is released. Will not block if other read locks have been acquired. # + # @return [Boolean] true if the lock is successfully acquired + # # @raise [Concurrent::ResourceLimitError] if the maximum number of readers # is exceeded. - # @return [Boolean] true if the lock is successfully acquired # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#111 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:111 def acquire_read_lock; end # Acquire a write lock. Will block and wait for all active readers and writers. # + # @return [Boolean] true if the lock is successfully acquired + # # @raise [Concurrent::ResourceLimitError] if the maximum number of writers # is exceeded. - # @return [Boolean] true if the lock is successfully acquired # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#160 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:160 def acquire_write_lock; end # Queries whether any threads are waiting to acquire the read or write lock. # # @return [Boolean] true if any threads are waiting for a lock else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#214 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:214 def has_waiters?; end # Release a previously acquired read lock. # # @return [Boolean] true if the lock is successfully released # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#140 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:140 def release_read_lock; end # Release a previously acquired write lock. # # @return [Boolean] true if the lock is successfully released # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#196 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:196 def release_write_lock; end # Execute a block operation within a read lock. # + # @yield the task to be performed within the lock. + # + # @return [Object] the result of the block operation. + # # @raise [ArgumentError] when no block is given. # @raise [Concurrent::ResourceLimitError] if the maximum number of readers # is exceeded. - # @return [Object] the result of the block operation. - # @yield the task to be performed within the lock. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#75 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:75 def with_read_lock; end # Execute a block operation within a write lock. # + # @yield the task to be performed within the lock. + # + # @return [Object] the result of the block operation. + # # @raise [ArgumentError] when no block is given. # @raise [Concurrent::ResourceLimitError] if the maximum number of readers # is exceeded. - # @return [Object] the result of the block operation. - # @yield the task to be performed within the lock. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#94 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:94 def with_write_lock; end # Queries if the write lock is held by any thread. # # @return [Boolean] true if the write lock is held else false` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#207 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:207 def write_locked?; end private - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#246 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:246 def max_readers?(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#251 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:251 def max_writers?(c = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#221 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:221 def running_readers(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#226 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:226 def running_readers?(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#231 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:231 def running_writer?(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#241 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:241 def waiting_writer?(c = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#236 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:236 def waiting_writers(c = T.unsafe(nil)); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#40 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:40 Concurrent::ReadWriteLock::MAX_READERS = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#43 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:43 Concurrent::ReadWriteLock::MAX_WRITERS = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#37 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:37 Concurrent::ReadWriteLock::RUNNING_WRITER = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb#34 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb:34 Concurrent::ReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer) # Re-entrant read-write lock implementation @@ -8632,8 +7778,6 @@ Concurrent::ReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer) # necessary to release them in the same order they were acquired. In other words, # the following code is legal: # -# This implementation was inspired by `java.util.concurrent.ReentrantReadWriteLock`. -# # @example # lock = Concurrent::ReentrantReadWriteLock.new # lock.acquire_write_lock @@ -8644,54 +7788,58 @@ Concurrent::ReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer) # lock.release_read_lock # # Now the current thread is not holding either a read or write lock, so # # another thread could potentially acquire a write lock. +# +# This implementation was inspired by `java.util.concurrent.ReentrantReadWriteLock`. +# # @example # lock = Concurrent::ReentrantReadWriteLock.new # lock.with_read_lock { data.retrieve } # lock.with_write_lock { data.modify! } +# # @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReentrantReadWriteLock.html java.util.concurrent.ReentrantReadWriteLock # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#53 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:53 class Concurrent::ReentrantReadWriteLock < ::Concurrent::Synchronization::Object extend ::Concurrent::Synchronization::SafeInitialization # Create a new `ReentrantReadWriteLock` in the unlocked state. # - # @return [ReentrantReadWriteLock] a new instance of ReentrantReadWriteLock - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#109 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:109 def initialize; end # Acquire a read lock. If a write lock is held by another thread, will block # until it is released. # + # @return [Boolean] true if the lock is successfully acquired + # # @raise [Concurrent::ResourceLimitError] if the maximum number of readers # is exceeded. - # @return [Boolean] true if the lock is successfully acquired # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#162 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:162 def acquire_read_lock; end # Acquire a write lock. Will block and wait for all active readers and writers. # + # @return [Boolean] true if the lock is successfully acquired + # # @raise [Concurrent::ResourceLimitError] if the maximum number of writers # is exceeded. - # @return [Boolean] true if the lock is successfully acquired # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#257 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:257 def acquire_write_lock; end # Release a previously acquired read lock. # # @return [Boolean] true if the lock is successfully released # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#236 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:236 def release_read_lock; end # Release a previously acquired write lock. # # @return [Boolean] true if the lock is successfully released # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#329 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:329 def release_write_lock; end # Try to acquire a read lock and return true if we succeed. If it cannot be @@ -8699,7 +7847,7 @@ class Concurrent::ReentrantReadWriteLock < ::Concurrent::Synchronization::Object # # @return [Boolean] true if the lock is successfully acquired # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#215 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:215 def try_read_lock; end # Try to acquire a write lock and return true if we succeed. If it cannot be @@ -8707,570 +7855,505 @@ class Concurrent::ReentrantReadWriteLock < ::Concurrent::Synchronization::Object # # @return [Boolean] true if the lock is successfully acquired # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#310 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:310 def try_write_lock; end # Execute a block operation within a read lock. # + # @yield the task to be performed within the lock. + # + # @return [Object] the result of the block operation. + # # @raise [ArgumentError] when no block is given. # @raise [Concurrent::ResourceLimitError] if the maximum number of readers # is exceeded. - # @return [Object] the result of the block operation. - # @yield the task to be performed within the lock. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#126 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:126 def with_read_lock; end # Execute a block operation within a write lock. # + # @yield the task to be performed within the lock. + # + # @return [Object] the result of the block operation. + # # @raise [ArgumentError] when no block is given. # @raise [Concurrent::ResourceLimitError] if the maximum number of readers # is exceeded. - # @return [Object] the result of the block operation. - # @yield the task to be performed within the lock. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#145 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:145 def with_write_lock; end private - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#370 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:370 def max_readers?(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#375 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:375 def max_writers?(c = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#345 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:345 def running_readers(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#350 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:350 def running_readers?(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#355 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:355 def running_writer?(c = T.unsafe(nil)); end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#365 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:365 def waiting_or_running_writer?(c = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#360 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:360 def waiting_writers(c = T.unsafe(nil)); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#94 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:94 Concurrent::ReentrantReadWriteLock::MAX_READERS = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#96 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:96 Concurrent::ReentrantReadWriteLock::MAX_WRITERS = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#84 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:84 Concurrent::ReentrantReadWriteLock::READER_BITS = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#102 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:102 Concurrent::ReentrantReadWriteLock::READ_LOCK_MASK = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#92 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:92 Concurrent::ReentrantReadWriteLock::RUNNING_WRITER = T.let(T.unsafe(nil), Integer) # Used with @Counter: +# @!visibility private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#90 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:90 Concurrent::ReentrantReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#86 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:86 Concurrent::ReentrantReadWriteLock::WRITER_BITS = T.let(T.unsafe(nil), Integer) # Used with @HeldCount: +# @!visibility private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#100 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:100 Concurrent::ReentrantReadWriteLock::WRITE_LOCK_HELD = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb#104 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb:104 Concurrent::ReentrantReadWriteLock::WRITE_LOCK_MASK = T.let(T.unsafe(nil), Integer) # Raised by an `Executor` when it is unable to process a given task, # possibly because of a reject policy or other internal error. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#48 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:48 class Concurrent::RejectedExecutionError < ::Concurrent::Error; end # Raised when any finite resource, such as a lock counter, exceeds its # maximum limit/threshold. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#52 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:52 class Concurrent::ResourceLimitError < ::Concurrent::Error; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#129 +# @!macro internal_implementation_note +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:129 class Concurrent::RubyExchanger < ::Concurrent::AbstractExchanger extend ::Concurrent::Synchronization::SafeInitialization - # @return [RubyExchanger] a new instance of RubyExchanger - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#159 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:159 def initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:165 def __initialize_atomic_fields__; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:165 def compare_and_set_slot(expected, value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:165 def slot; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:165 def slot=(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:165 def swap_slot(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:165 def update_slot(&block); end private - # Waits for another thread to arrive at this exchange point (unless the - # current thread is interrupted), and then transfers the given object to - # it, receiving its object in return. The timeout value indicates the - # approximate number of seconds the method should block while waiting - # for the exchange. When the timeout value is `nil` the method will - # block indefinitely. + # @!macro exchanger_method_do_exchange # - # @param timeout [Numeric, nil] in seconds, `nil` blocks indefinitely - # @param value [Object] the value to exchange with another thread # @return [Object, CANCEL] the value exchanged by the other thread; {CANCEL} on timeout # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#170 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:170 def do_exchange(value, timeout); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#138 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:138 class Concurrent::RubyExchanger::Node < ::Concurrent::Synchronization::Object extend ::Concurrent::Synchronization::SafeInitialization - # @return [Node] a new instance of Node - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#142 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:142 def initialize(item); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:139 def __initialize_atomic_fields__; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:153 def item; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#149 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:149 def latch; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:139 def swap_value(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:139 def update_value(&block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:139 def value; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/exchanger.rb:139 def value=(value); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#8 +# @!macro abstract_executor_service_public_api +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:8 class Concurrent::RubyExecutorService < ::Concurrent::AbstractExecutorService - # @return [RubyExecutorService] a new instance of RubyExecutorService - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:11 def initialize(*args, &block); end - # Begin an immediate shutdown. In-progress tasks will be allowed to - # complete but enqueued tasks will be dismissed and 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/ruby_executor_service.rb#42 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:42 def kill; end - # Submit a task to the executor for asynchronous processing. - # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#17 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:17 def post(*args, &task); end - # Begin an orderly shutdown. Tasks already in the queue will be executed, - # 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/ruby_executor_service.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:33 def shutdown; end - # Block until executor shutdown is complete or until `timeout` seconds have - # passed. - # - # @note Does not initiate shutdown or termination. Either `shutdown` or `kill` - # must be called before this method (or on another thread). - # @param timeout [Integer] the maximum number of seconds to wait for shutdown to complete - # @return [Boolean] `true` if shutdown complete or false on `timeout` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#52 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:52 def wait_for_termination(timeout = T.unsafe(nil)); end private - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#70 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:70 def ns_running?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#78 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:78 def ns_shutdown?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#66 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:66 def ns_shutdown_execution; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#74 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:74 def ns_shuttingdown?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#58 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:58 def stop_event; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb:62 def stopped_event; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb#9 +# @!macro single_thread_executor +# @!macro abstract_executor_service_public_api +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb:9 class Concurrent::RubySingleThreadExecutor < ::Concurrent::RubyThreadPoolExecutor include ::Concurrent::SerialExecutorService - # @return [RubySingleThreadExecutor] a new instance of RubySingleThreadExecutor + # @!macro single_thread_executor_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb#13 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb:13 def initialize(opts = T.unsafe(nil)); end end -# **Thread Pool Options** -# -# Thread pools support several configuration options: -# -# * `idletime`: The number of seconds that a thread may be idle before being reclaimed. -# * `name`: The name of the executor (optional). Printed in the executor's `#to_s` output and -# a `-worker-` name is given to its threads if supported by used Ruby -# implementation. `` is uniq for each thread. -# * `max_queue`: The maximum number of tasks that may be waiting in the work queue at -# any one time. When the queue size reaches `max_queue` and no new threads can be created, -# subsequent tasks will be rejected in accordance with the configured `fallback_policy`. -# * `auto_terminate`: When true (default), the threads started will be marked as daemon. -# * `fallback_policy`: The policy defining how rejected tasks are handled. -# -# Three fallback policies are supported: -# -# * `:abort`: Raise a `RejectedExecutionError` exception and discard the task. -# * `:discard`: Discard the task and return false. -# * `:caller_runs`: Execute the task on the calling thread. -# -# **Shutting Down Thread Pools** -# -# Killing a thread pool while tasks are still being processed, either by calling -# the `#kill` method or at application exit, will have unpredictable results. There -# is no way for the thread pool to know what resources are being used by the -# in-progress tasks. When those tasks are killed the impact on those resources -# cannot be predicted. The *best* practice is to explicitly shutdown all thread -# pools using the provided methods: -# -# * Call `#shutdown` to initiate an orderly termination of all in-progress tasks -# * Call `#wait_for_termination` with an appropriate timeout interval an allow -# the orderly shutdown to complete -# * Call `#kill` *only when* the thread pool fails to shutdown in the allotted time -# -# On some runtime platforms (most notably the JVM) the application will not -# exit until all thread pools have been shutdown. To prevent applications from -# "hanging" on exit, all threads can be marked as daemon according to the -# `:auto_terminate` option. -# -# ```ruby -# pool1 = Concurrent::FixedThreadPool.new(5) # threads will be marked as daemon -# pool2 = Concurrent::FixedThreadPool.new(5, auto_terminate: false) # mark threads as non-daemon -# ``` -# -# @note Failure to properly shutdown a thread pool can lead to unpredictable results. -# Please read *Shutting Down Thread Pools* for more information. -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html Java Executors class -# @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html Java ExecutorService interface -# @see http://docs.oracle.com/javase/tutorial/essential/concurrency/pools.html Java Tutorials: Thread Pools -# @see https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#setDaemon-boolean- +# @!macro thread_pool_executor +# @!macro thread_pool_options +# @!visibility private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#13 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:13 class Concurrent::RubyThreadPoolExecutor < ::Concurrent::RubyExecutorService - # @return [RubyThreadPoolExecutor] a new instance of RubyThreadPoolExecutor + # @!macro thread_pool_executor_method_initialize # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#47 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:47 def initialize(opts = T.unsafe(nil)); end - # The number of threads that are actively executing tasks. + # @!macro thread_pool_executor_method_active_count # - # @return [Integer] The number of threads that are actively executing tasks. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#67 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:67 def active_count; end - # Does the task queue have a maximum size? - # - # @return [Boolean] True if the task queue has a maximum size else false. + # @!macro executor_service_method_can_overflow_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#74 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:74 def can_overflow?; end - # The number of tasks that have been completed by the pool since construction. + # @!macro thread_pool_executor_attr_reader_completed_task_count # - # @return [Integer] The number of tasks that have been completed by the pool since construction. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:62 def completed_task_count; end - # The number of seconds that a thread may be idle before being reclaimed. - # - # @return [Integer] The number of seconds that a thread may be idle before being reclaimed. + # @!macro thread_pool_executor_attr_reader_idletime # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#38 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:38 def idletime; end - # The largest number of threads that have been created in the pool since construction. + # @!macro thread_pool_executor_attr_reader_largest_length # - # @return [Integer] The largest number of threads that have been created in the pool since construction. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#52 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:52 def largest_length; end - # The number of threads currently in the pool. - # - # @return [Integer] The number of threads currently in the pool. + # @!macro thread_pool_executor_attr_reader_length # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#79 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:79 def length; end - # The maximum number of threads that may be created in the pool. + # @!macro thread_pool_executor_attr_reader_max_length # - # @return [Integer] The maximum number of threads that may be created in the pool. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#32 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:32 def max_length; end - # The maximum number of tasks that may be waiting in the work queue at any one time. - # When the queue size reaches `max_queue` subsequent tasks will be rejected in - # accordance with the configured `fallback_policy`. - # - # @return [Integer] The maximum number of tasks that may be waiting in the work queue at any one time. - # When the queue size reaches `max_queue` subsequent tasks will be rejected in - # accordance with the configured `fallback_policy`. + # @!macro thread_pool_executor_attr_reader_max_queue # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#41 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:41 def max_queue; end - # The minimum number of threads that may be retained in the pool. + # @!macro thread_pool_executor_attr_reader_min_length # - # @return [Integer] The minimum number of threads that may be retained in the pool. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#35 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:35 def min_length; end - # Prune the thread pool of unneeded threads - # - # What is being pruned is controlled by the min_threads and idletime - # parameters passed at pool creation time + # @!macro thread_pool_executor_method_prune_pool # - # This is a no-op on all pool implementations as they prune themselves - # automatically, and has been deprecated. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#139 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:139 def prune_pool; end # removes the worker if it can be pruned # # @return [true, false] if the worker was pruned # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#104 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:104 def prune_worker(worker); end - # The number of tasks in the queue awaiting execution. + # @!macro thread_pool_executor_attr_reader_queue_length # - # @return [Integer] The number of tasks in the queue awaiting execution. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#84 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:84 def queue_length; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#124 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:124 def ready_worker(worker, last_message); end - # Number of tasks that may be enqueued before reaching `max_queue` and rejecting - # new tasks. A value of -1 indicates that the queue may grow without bound. + # @!macro thread_pool_executor_attr_reader_remaining_capacity # - # @return [Integer] Number of tasks that may be enqueued before reaching `max_queue` and rejecting - # new tasks. A value of -1 indicates that the queue may grow without bound. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#89 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:89 def remaining_capacity; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#116 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:116 def remove_worker(worker); end - # The number of tasks that have been scheduled for execution on the pool since construction. - # - # @return [Integer] The number of tasks that have been scheduled for execution on the pool since construction. + # @!macro thread_pool_executor_attr_reader_scheduled_task_count # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#57 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:57 def scheduled_task_count; end - # Whether or not a value of 0 for :max_queue option means the queue must perform direct hand-off or rather unbounded queue. - # - # @return [true, false] + # @!macro thread_pool_executor_attr_reader_synchronous # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:44 def synchronous; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#129 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:129 def worker_died(worker); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#134 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:134 def worker_task_completed; end private # creates new worker which has to receive work to do after it's added - # # @return [nil, Worker] nil of max capacity is reached # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#257 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:257 def ns_add_busy_worker; end # tries to assign task to a worker, tries to get one from @ready or to create new one - # # @return [true, false] if task is assigned to a worker # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#217 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:217 def ns_assign_worker(*args, &task); end # tries to enqueue task - # # @return [true, false] if enqueued # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#235 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:235 def ns_enqueue(*args, &task); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#178 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:178 def ns_execute(*args, &task); end - # @raise [ArgumentError] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#146 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:146 def ns_initialize(opts); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#205 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:205 def ns_kill_execution; end - # @return [Boolean] + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#173 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:173 def ns_limited_queue?; end # @return [Integer] number of excess idle workers which can be removed without - # going below min_length, or all workers if not running + # going below min_length, or all workers if not running # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#305 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:305 def ns_prunable_capacity; end # handle ready worker, giving it new job or assigning back to @ready # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#269 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:269 def ns_ready_worker(worker, last_message, success = T.unsafe(nil)); end # removes a worker which is not tracked in @ready # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#287 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:287 def ns_remove_busy_worker(worker); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#294 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:294 def ns_remove_ready_worker(worker); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#314 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:314 def ns_reset_if_forked; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#190 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:190 def ns_shutdown_execution; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#247 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:247 def ns_worker_died(worker); end end -# Default maximum number of threads that will be created in the pool. +# @!macro thread_pool_executor_constant_default_max_pool_size # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#17 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:17 Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_POOL_SIZE = T.let(T.unsafe(nil), Integer) -# Default maximum number of tasks that may be added to the task queue. +# @!macro thread_pool_executor_constant_default_max_queue_size # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#23 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:23 Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_QUEUE_SIZE = T.let(T.unsafe(nil), Integer) -# Default minimum number of threads that will be retained in the pool. +# @!macro thread_pool_executor_constant_default_min_pool_size # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#20 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:20 Concurrent::RubyThreadPoolExecutor::DEFAULT_MIN_POOL_SIZE = T.let(T.unsafe(nil), Integer) -# Default value of the :synchronous option. +# @!macro thread_pool_executor_constant_default_synchronous # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#29 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:29 Concurrent::RubyThreadPoolExecutor::DEFAULT_SYNCHRONOUS = T.let(T.unsafe(nil), FalseClass) -# Default maximum number of seconds a thread in the pool may remain idle -# before being reclaimed. +# @!macro thread_pool_executor_constant_default_thread_timeout # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#26 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:26 Concurrent::RubyThreadPoolExecutor::DEFAULT_THREAD_IDLETIMEOUT = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#328 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:328 class Concurrent::RubyThreadPoolExecutor::Worker include ::Concurrent::Concern::Logging - # @return [Worker] a new instance of Worker - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#331 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:331 def initialize(pool, id); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#342 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:342 def <<(message); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#350 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350 def kill; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#346 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:346 def stop; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#356 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:356 def create_worker(queue, pool, idletime); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#381 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:381 def run_task(pool, task, args); end end @@ -9279,16 +8362,14 @@ end # value - filled by the callable result if it has been executed without errors, nil otherwise # reason - the error risen by the callable if it has been executed with errors, nil otherwise # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb#9 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:9 class Concurrent::SafeTaskExecutor < ::Concurrent::Synchronization::LockableObject - # @return [SafeTaskExecutor] a new instance of SafeTaskExecutor - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:11 def initialize(task, opts = T.unsafe(nil)); end # @return [Array] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:18 def execute(*args); end end @@ -9336,6 +8417,8 @@ end # module from the Ruby standard library. With one exception `ScheduledTask` # behaves identically to [Future](Observable) with regard to these modules. # +# @!macro copy_options +# # @example Basic usage # # require 'concurrent/scheduled_task' @@ -9343,21 +8426,21 @@ end # require 'open-uri' # # class Ticker -# def get_year_end_closing(symbol, year, api_key) -# uri = "https://www.alphavantage.co/query?function=TIME_SERIES_MONTHLY&symbol=#{symbol}&apikey=#{api_key}&datatype=csv" -# data = [] -# csv = URI.parse(uri).read -# if csv.include?('call frequency') -# return :rate_limit_exceeded -# end -# CSV.parse(csv, headers: true) do |row| -# data << row['close'].to_f if row['timestamp'].include?(year.to_s) -# end -# year_end = data.first -# year_end -# rescue => e -# p e -# end +# def get_year_end_closing(symbol, year, api_key) +# uri = "https://www.alphavantage.co/query?function=TIME_SERIES_MONTHLY&symbol=#{symbol}&apikey=#{api_key}&datatype=csv" +# data = [] +# csv = URI.parse(uri).read +# if csv.include?('call frequency') +# return :rate_limit_exceeded +# end +# CSV.parse(csv, headers: true) do |row| +# data << row['close'].to_f if row['timestamp'].include?(year.to_s) +# end +# year_end = data.first +# year_end +# rescue => e +# p e +# end # end # # api_key = ENV['ALPHAVANTAGE_KEY'] @@ -9369,26 +8452,29 @@ end # price.pending? #=> true # price.value(0) #=> nil (does not block) # -# sleep(1) # do other stuff +# sleep(1) # do other stuff # # price.value #=> 63.65 (after blocking if necessary) # price.state #=> :fulfilled # price.fulfilled? #=> true # price.value #=> 63.65 -# @example Failed task execution # -# task = Concurrent::ScheduledTask.execute(2){ raise StandardError.new('Call me maybe?') } -# task.pending? #=> true +# @example Successful task execution +# +# task = Concurrent::ScheduledTask.new(2){ 'What does the fox say?' } +# task.state #=> :unscheduled +# task.execute +# task.state #=> pending # # # wait for it... # sleep(3) # # task.unscheduled? #=> false # task.pending? #=> false -# task.fulfilled? #=> false -# task.rejected? #=> true -# task.value #=> nil -# task.reason #=> # +# task.fulfilled? #=> true +# task.rejected? #=> false +# task.value #=> 'What does the fox say?' +# # @example One line creation and execution # # task = Concurrent::ScheduledTask.new(2){ 'What does the fox say?' }.execute @@ -9396,27 +8482,28 @@ end # # task = Concurrent::ScheduledTask.execute(2){ 'What do you get when you multiply 6 by 9?' } # task.state #=> pending -# @example Successful task execution # -# task = Concurrent::ScheduledTask.new(2){ 'What does the fox say?' } -# task.state #=> :unscheduled -# task.execute -# task.state #=> pending +# @example Failed task execution +# +# task = Concurrent::ScheduledTask.execute(2){ raise StandardError.new('Call me maybe?') } +# task.pending? #=> true # # # wait for it... # sleep(3) # # task.unscheduled? #=> false # task.pending? #=> false -# task.fulfilled? #=> true -# task.rejected? #=> false -# task.value #=> 'What does the fox say?' +# task.fulfilled? #=> false +# task.rejected? #=> true +# task.value #=> nil +# task.reason #=> # +# # @example Task execution with observation # # observer = Class.new{ -# def update(time, value, reason) -# puts "The task completed at #{time} with value '#{value}'" -# end +# def update(time, value, reason) +# puts "The task completed at #{time} with value '#{value}'" +# end # }.new # # task = Concurrent::ScheduledTask.new(2){ 'What does the fox say?' } @@ -9428,28 +8515,37 @@ end # sleep(3) # # #>> The task completed at 2013-11-07 12:26:09 -0500 with value 'What does the fox say?' +# +# @!macro monotonic_clock_warning +# # @see Concurrent.timer # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#158 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:158 class Concurrent::ScheduledTask < ::Concurrent::IVar include ::Comparable # Schedule a task for execution at a specified future time. # - # @option opts - # @param delay [Float] the number of seconds to wait for before executing the task - # @param opts [Hash] a customizable set of options + # @param [Float] delay the number of seconds to wait for before executing the task + # + # @yield the task to be performed + # + # @!macro executor_and_deref_options + # + # @option opts [object, Array] :args zero or more arguments to be passed the task + # block on execution + # # @raise [ArgumentError] When no block is given # @raise [ArgumentError] When given a time that is in the past - # @return [ScheduledTask] a new instance of ScheduledTask - # @yield the task to be performed # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#178 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:178 def initialize(delay, opts = T.unsafe(nil), &task); end # Comparator which orders by schedule time. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#213 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:213 def <=>(other); end # Cancel this task and prevent it from executing. A task can only be @@ -9457,14 +8553,14 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar # # @return [Boolean] true if successfully cancelled else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#235 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:235 def cancel; end # Has the task been cancelled? # # @return [Boolean] true if the task is in the given state else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#220 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:220 def cancelled?; end # Execute an `:unscheduled` `ScheduledTask`. Immediately sets the state to `:pending` @@ -9473,41 +8569,46 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar # # @return [ScheduledTask] a reference to `self` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#273 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:273 def execute; end # The executor on which to execute the task. + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#163 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:163 def executor; end # The `delay` value given at instantiation. # # @return [Float] the initial delay. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#199 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:199 def initial_delay; end # Execute the task. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#297 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:297 def process_task; end # In the task execution in progress? # # @return [Boolean] true if the task is in the given state else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#227 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:227 def processing?; end # Reschedule the task using the given delay and the current time. # A task can only be reset while it is `:pending`. # - # @param delay [Float] the number of seconds to wait for before executing the task - # @raise [ArgumentError] When given a time that is in the past + # @param [Float] delay the number of seconds to wait for before executing the task + # # @return [Boolean] true if successfully rescheduled else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#262 + # @raise [ArgumentError] When given a time that is in the past + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:262 def reschedule(delay); end # Reschedule the task using the original delay and the current time. @@ -9515,88 +8616,101 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar # # @return [Boolean] true if successfully rescheduled else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#250 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:250 def reset; end # The monotonic time at which the the task is scheduled to be executed. # # @return [Float] the schedule time or nil if `unscheduled` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#206 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:206 def schedule_time; end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301 + # pkg:gem/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. # A task can only be reset while it is `:pending`. # - # @param delay [Float] the number of seconds to wait for before executing the task + # @param [Float] delay the number of seconds to wait for before executing the task + # # @return [Boolean] true if successfully rescheduled else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#326 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:326 def ns_reschedule(delay); end # Schedule the task using the given delay and the current time. # - # @param delay [Float] the number of seconds to wait for before executing the task + # @param [Float] delay the number of seconds to wait for before executing the task + # # @return [Boolean] true if successfully rescheduled else false # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#312 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:312 def ns_schedule(delay); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:301 def set(value = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:301 def try_set(value = T.unsafe(nil), &block); end class << self # Create a new `ScheduledTask` object with the given block, execute it, and return the # `:pending` object. # - # @param delay [Float] the number of seconds to wait for before executing the task - # @raise [ArgumentError] if no block is given + # @param [Float] delay the number of seconds to wait for before executing the task + # + # @!macro executor_and_deref_options + # # @return [ScheduledTask] the newly created `ScheduledTask` in the `:pending` state # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#290 + # @raise [ArgumentError] if no block is given + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/scheduled_task.rb:290 def execute(delay, opts = T.unsafe(nil), &task); end end end -# A counting semaphore. Conceptually, a semaphore maintains a set of -# permits. Each {#acquire} blocks if necessary until a permit is -# available, and then takes it. Each {#release} adds a permit, potentially -# releasing a blocking acquirer. -# However, no actual permit objects are used; the Semaphore just keeps a -# count of the number available and acts accordingly. -# Alternatively, permits may be acquired within a block, and automatically -# released after the block finishes executing. +# @!macro semaphore +# +# A counting semaphore. Conceptually, a semaphore maintains a set of +# permits. Each {#acquire} blocks if necessary until a permit is +# available, and then takes it. Each {#release} adds a permit, potentially +# releasing a blocking acquirer. +# However, no actual permit objects are used; the Semaphore just keeps a +# count of the number available and acts accordingly. +# Alternatively, permits may be acquired within a block, and automatically +# released after the block finishes executing. # +# @!macro semaphore_public_api # @example # semaphore = Concurrent::Semaphore.new(2) # # t1 = Thread.new do -# semaphore.acquire -# puts "Thread 1 acquired semaphore" +# semaphore.acquire +# puts "Thread 1 acquired semaphore" # end # # t2 = Thread.new do -# semaphore.acquire -# puts "Thread 2 acquired semaphore" +# semaphore.acquire +# puts "Thread 2 acquired semaphore" # end # # t3 = Thread.new do -# semaphore.acquire -# puts "Thread 3 acquired semaphore" +# semaphore.acquire +# puts "Thread 3 acquired semaphore" # end # # t4 = Thread.new do -# sleep(2) -# puts "Thread 4 releasing semaphore" -# semaphore.release +# sleep(2) +# puts "Thread 4 releasing semaphore" +# semaphore.release # end # # [t1, t2, t3, t4].each(&:join) @@ -9606,12 +8720,13 @@ end # # Thread 2 acquired semaphore # # Thread 4 releasing semaphore # # Thread 1 acquired semaphore +# # @example # semaphore = Concurrent::Semaphore.new(1) # # puts semaphore.available_permits # semaphore.acquire do -# puts semaphore.available_permits +# puts semaphore.available_permits # end # puts semaphore.available_permits # @@ -9620,10 +8735,13 @@ end # # 0 # # 1 # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/semaphore.rb#161 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/semaphore.rb:161 class Concurrent::Semaphore < ::Concurrent::MutexSemaphore; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/semaphore.rb#96 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/semaphore.rb:96 Concurrent::SemaphoreImplementation = Concurrent::MutexSemaphore # Indicates that the including `ExecutorService` guarantees @@ -9635,7 +8753,7 @@ Concurrent::SemaphoreImplementation = Concurrent::MutexSemaphore # # @example # class Foo -# include Concurrent::SerialExecutor +# include Concurrent::SerialExecutor # end # # foo = Foo.new @@ -9644,132 +8762,106 @@ Concurrent::SemaphoreImplementation = Concurrent::MutexSemaphore # foo.is_a? Concurrent::SerialExecutor #=> true # foo.serialized? #=> true # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb#24 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb:24 module Concurrent::SerialExecutorService include ::Concurrent::Concern::Logging include ::Concurrent::ExecutorService - # Does this executor guarantee serialization of its operations? + # @!macro executor_service_method_serialized_question # # @note Always returns `true` - # @return [Boolean] True if the executor guarantees that all operations - # will be post in the order they are received and no two operations may - # occur simultaneously. Else false. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb#30 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb:30 def serialized?; end end # Ensures passed jobs in a serialized order never running at the same time. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#8 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:8 class Concurrent::SerializedExecution < ::Concurrent::Synchronization::LockableObject include ::Concurrent::Concern::Logging - # @return [SerializedExecution] a new instance of SerializedExecution - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:11 def initialize; end # Submit a task to the executor for asynchronous processing. # - # @param args [Array] zero or more arguments to be passed to the task - # @param executor [Executor] to be used for this job - # @raise [ArgumentError] if no task is given + # @param [Executor] executor to be used for this job + # + # @param [Array] args zero or more arguments to be passed to the task + # + # @yield the asynchronous task to perform + # # @return [Boolean] `true` if the task is queued, `false` if the executor # is not running - # @yield the asynchronous task to perform # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#34 + # @raise [ArgumentError] if no task is given + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:34 def post(executor, *args, &task); end # As {#post} but allows to submit multiple tasks at once, it's guaranteed that they will not # be interleaved by other tasks. # - # @param posts [Array, Proc)>] array of triplets where + # @param [Array, Proc)>] posts array of triplets where # first is a {ExecutorService}, second is array of args for task, third is a task (Proc) # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:44 def posts(posts); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#75 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:75 def call_job(job); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#70 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:70 def ns_initialize; end # ensures next job is executed if any is stashed # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#95 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:95 def work(job); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:16 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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:17 def call; end - # 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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution.rb:16 def new(*_arg0); end end end @@ -9777,48 +8869,32 @@ end # A wrapper/delegator for any `ExecutorService` that # guarantees serialized execution of tasks. # -# @see Concurrent::SerializedExecution # @see [SimpleDelegator](http://www.ruby-doc.org/stdlib-2.1.2/libdoc/delegate/rdoc/SimpleDelegator.html) +# @see Concurrent::SerializedExecution # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb#12 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb:12 class Concurrent::SerializedExecutionDelegator < ::SimpleDelegator include ::Concurrent::Concern::Logging include ::Concurrent::ExecutorService include ::Concurrent::SerialExecutorService - # @return [SerializedExecutionDelegator] a new instance of SerializedExecutionDelegator - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb#15 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb:15 def initialize(executor); end - # Submit a task to the executor for asynchronous processing. - # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform + # @!macro executor_service_method_post # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb#22 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb:22 def post(*args, &task); end end -# A thread-safe subclass of Set. This version locks against the object -# itself for every method call, ensuring only one thread can be reading -# or writing at a time. This includes iteration methods like `#each`. +# @!macro concurrent_set # -# @note `a += b` is **not** a **thread-safe** operation on -# `Concurrent::Set`. It reads Set `a`, then it creates new `Concurrent::Set` -# which is union of `a` and `b`, then it writes the union to `a`. -# The read and write are independent operations they do not form a single atomic -# operation therefore when two `+=` operations are executed concurrently updates -# may be lost. Use `#merge` instead. -# @see http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html Ruby standard library `Set` -# -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#61 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:61 class Concurrent::Set < ::Concurrent::CRubySet; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#23 +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/set.rb:23 Concurrent::SetImplementation = Concurrent::CRubySet # An thread-safe, write-once variation of Ruby's standard `Struct`. @@ -9826,179 +8902,92 @@ Concurrent::SetImplementation = Concurrent::CRubySet # or any time thereafter. Attempting to assign a value to a member # that has already been set will result in a `Concurrent::ImmutabilityError`. # -# @see http://en.wikipedia.org/wiki/Final_(Java) Java `final` keyword # @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct` +# @see http://en.wikipedia.org/wiki/Final_(Java) Java `final` keyword # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#14 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:14 module Concurrent::SettableStruct include ::Concurrent::Synchronization::AbstractStruct - # Equality + # @!macro struct_equality # - # @return [Boolean] true if other has the same struct subclass and has - # equal member values (according to `Object#==`) - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#50 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:50 def ==(other); end - # Attribute Reference - # - # @param member [Symbol, String, Integer] the string or symbol name of the member - # for which to obtain the value or the member's index - # @raise [NameError] if the member does not exist - # @raise [IndexError] if the index is out of range. - # @return [Object] the value of the given struct member or the member at the given index. + # @!macro struct_get # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#45 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:45 def [](member); end - # Attribute Assignment + # @!macro struct_set # - # Sets the value of the given struct member or the member at the given index. - # - # @param member [Symbol, String, Integer] the string or symbol name of the member - # for which to obtain the value or the member's index - # @raise [NameError] if the name does not exist - # @raise [IndexError] if the index is out of range. # @raise [Concurrent::ImmutabilityError] if the given member has already been set - # @return [Object] the value of the given struct member or the member at the given index. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#75 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:75 def []=(member, value); end - # Yields the value of each struct member in order. If no block is given - # an enumerator is returned. - # - # @yield the operation to be performed on each struct member - # @yieldparam value [Object] each struct value (in order) + # @!macro struct_each # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#55 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:55 def each(&block); end - # Yields the name and value of each struct member in order. If no block is - # given an enumerator is returned. + # @!macro struct_each_pair # - # @yield the operation to be performed on each struct member/value pair - # @yieldparam member [Object] each struct member (in order) - # @yieldparam value [Object] each struct value (in order) - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#61 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:61 def each_pair(&block); end - # Describe the contents of this struct in a string. - # - # @return [String] the contents of this struct in a string + # @!macro struct_inspect # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:29 def inspect; end - # Returns a new struct containing the contents of `other` and the contents - # of `self`. If no block is specified, the value for entries with duplicate - # keys will be that of `other`. Otherwise the value for each duplicate key - # is determined by calling the block with the key, its value in `self` and - # its value in `other`. - # - # @param other [Hash] the hash from which to set the new values - # @raise [ArgumentError] of given a member that is not defined in the struct - # @return [Synchronization::AbstractStruct] a new struct with the new values - # @yield an options block for resolving duplicate keys - # @yieldparam member [String, Symbol] the name of the member which is duplicated - # @yieldparam othervalue [Object] the value of the member in `other` - # @yieldparam selfvalue [Object] the value of the member in `self` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#35 + # @!macro struct_merge + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:35 def merge(other, &block); end - # Yields each member value from the struct to the block and returns an Array - # containing the member values from the struct for which the given block - # returns a true value (equivalent to `Enumerable#select`). - # - # @return [Array] an array containing each value for which the block returns true - # @yield the operation to be performed on each struct member - # @yieldparam value [Object] each struct value (in order) + # @!macro struct_select # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#67 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:67 def select(&block); end - # Returns the values for this struct as an Array. - # - # @return [Array] the values for this struct - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#21 + # pkg:gem/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. + # @!macro struct_to_h # - # @return [Hash] the names and values for the struct’s members - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:40 def to_h; end - # Describe the contents of this struct in a string. - # - # @return [String] the contents of this struct in a string - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#32 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:32 def to_s; end - # Returns the values for this struct as an Array. - # - # @return [Array] the values for this struct + # @!macro struct_values # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:18 def values; end - # Returns the struct member values for each selector as an Array. + # @!macro struct_values_at # - # A selector may be either an Integer offset or a Range of offsets (as in `Array#values_at`). - # - # @param indexes [Fixnum, Range] the index(es) from which to obatin the values (in order) - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:24 def values_at(*indexes); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#97 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:97 def initialize_copy(original); end class << self - # Factory for creating new struct classes. - # - # ``` - # new([class_name] [, member_name]+>) -> StructClass click to toggle source - # new([class_name] [, member_name]+>) {|StructClass| block } -> StructClass - # new(value, ...) -> obj - # StructClass[value, ...] -> obj - # ``` + # @!macro struct_new # - # The first two forms are used to create a new struct subclass `class_name` - # that can contain a value for each member_name . This subclass can be - # used to create instances of the structure like any other Class . - # - # If the `class_name` is omitted an anonymous struct class will be created. - # Otherwise, the name of this struct will appear as a constant in the struct class, - # so it must be unique for all structs under this base class and must start with a - # capital letter. Assigning a struct class to a constant also gives the class - # the name of the constant. - # - # If a block is given it will be evaluated in the context of `StructClass`, passing - # the created class as a parameter. This is the recommended way to customize a struct. - # Subclassing an anonymous struct creates an extra anonymous class that will never be used. - # - # The last two forms create a new instance of a struct subclass. The number of value - # parameters must be less than or equal to the number of attributes defined for the - # struct. Unset parameters default to nil. Passing more parameters than number of attributes - # will raise an `ArgumentError`. - # - # @see http://ruby-doc.org/core/Struct.html#method-c-new Ruby standard library `Struct#new` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#105 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:105 def new(*args, &block); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#115 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/settable_struct.rb:115 Concurrent::SettableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped) # An executor service in which every operation spawns a new, @@ -10014,454 +9003,417 @@ Concurrent::SettableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped) # # @note Intended for use primarily in testing and debugging. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#21 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:21 class Concurrent::SimpleExecutorService < ::Concurrent::RubyExecutorService - # Submit a task to the executor for asynchronous processing. + # @!macro executor_service_method_left_shift # - # @param task [Proc] the asynchronous task to perform - # @return [self] returns itself - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#56 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:56 def <<(task); end - # Begin an immediate shutdown. In-progress tasks will be allowed to - # complete but enqueued tasks will be dismissed and no new tasks - # will be accepted. Has no additional effect if the thread pool is - # not running. + # @!macro executor_service_method_kill # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#84 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:84 def kill; end - # Submit a task to the executor for asynchronous processing. - # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform + # @!macro executor_service_method_post # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#40 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:40 def post(*args, &task); end - # Is the executor running? - # - # @return [Boolean] `true` when running, `false` when shutting down or shutdown + # @!macro executor_service_method_running_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:62 def running?; end - # Begin an orderly shutdown. Tasks already in the queue will be executed, - # but no new tasks will be accepted. Has no additional effect if the - # thread pool is not running. + # @!macro executor_service_method_shutdown # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#77 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:77 def shutdown; end - # Is the executor shutdown? + # @!macro executor_service_method_shutdown_question # - # @return [Boolean] `true` when shutdown, `false` when shutting down or running - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#72 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:72 def shutdown?; end - # Is the executor shuttingdown? - # - # @return [Boolean] `true` when not running and not shutdown, else `false` + # @!macro executor_service_method_shuttingdown_question # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#67 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:67 def shuttingdown?; end - # Block until executor shutdown is complete or until `timeout` seconds have - # passed. + # @!macro executor_service_method_wait_for_termination # - # @note Does not initiate shutdown or termination. Either `shutdown` or `kill` - # must be called before this method (or on another thread). - # @param timeout [Integer] the maximum number of seconds to wait for shutdown to complete - # @return [Boolean] `true` if shutdown complete or false on `timeout` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#91 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:91 def wait_for_termination(timeout = T.unsafe(nil)); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#97 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:97 def ns_initialize(*args); end class << self - # Submit a task to the executor for asynchronous processing. - # - # @param task [Proc] the asynchronous task to perform - # @return [self] returns itself + # @!macro executor_service_method_left_shift # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#34 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:34 def <<(task); end - # Submit a task to the executor for asynchronous processing. + # @!macro executor_service_method_post # - # @param args [Array] zero or more arguments to be passed to the task - # @raise [ArgumentError] if no task is given - # @return [Boolean] `true` if the task is queued, `false` if the executor - # is not running - # @yield the asynchronous task to perform - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb:24 def post(*args); end end end -# A thread pool with a single thread an unlimited queue. Should the thread -# die for any reason it will be removed and replaced, thus ensuring that -# the executor will always remain viable and available to process jobs. +# @!macro single_thread_executor +# +# A thread pool with a single thread an unlimited queue. Should the thread +# die for any reason it will be removed and replaced, thus ensuring that +# the executor will always remain viable and available to process jobs. # -# A common pattern for background processing is to create a single thread -# on which an infinite loop is run. The thread's loop blocks on an input -# source (perhaps blocking I/O or a queue) and processes each input as it -# is received. This pattern has several issues. The thread itself is highly -# susceptible to errors during processing. Also, the thread itself must be -# constantly monitored and restarted should it die. `SingleThreadExecutor` -# encapsulates all these behaviors. The task processor is highly resilient -# to errors from within tasks. Also, should the thread die it will -# automatically be restarted. +# A common pattern for background processing is to create a single thread +# on which an infinite loop is run. The thread's loop blocks on an input +# source (perhaps blocking I/O or a queue) and processes each input as it +# is received. This pattern has several issues. The thread itself is highly +# susceptible to errors during processing. Also, the thread itself must be +# constantly monitored and restarted should it die. `SingleThreadExecutor` +# encapsulates all these behaviors. The task processor is highly resilient +# to errors from within tasks. Also, should the thread die it will +# automatically be restarted. # -# The API and behavior of this class are based on Java's `SingleThreadExecutor`. +# The API and behavior of this class are based on Java's `SingleThreadExecutor`. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb#37 +# @!macro abstract_executor_service_public_api +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb:37 class Concurrent::SingleThreadExecutor < ::Concurrent::RubySingleThreadExecutor; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb:10 Concurrent::SingleThreadExecutorImplementation = Concurrent::RubySingleThreadExecutor -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb#2 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb:2 module Concurrent::Synchronization class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/full_memory_barrier.rb#7 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/full_memory_barrier.rb:7 def full_memory_barrier; end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#9 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb:9 class Concurrent::Synchronization::AbstractLockableObject < ::Concurrent::Synchronization::Object protected - # Broadcast to all waiting threads. + # @!macro synchronization_object_method_ns_broadcast # - # @note only to be used inside synchronized block - # @note to provide direct access to this method in a descendant add method - # ``` - # def broadcast - # synchronize { ns_broadcast } - # end - # ``` - # @raise [NotImplementedError] - # @return [self] + # Broadcast to all waiting threads. + # @return [self] + # @note only to be used inside synchronized block + # @note to provide direct access to this method in a descendant add method + # ``` + # def broadcast + # synchronize { ns_broadcast } + # end + # ``` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#96 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb:96 def ns_broadcast; end - # Signal one waiting thread. + # @!macro synchronization_object_method_ns_signal # - # @note only to be used inside synchronized block - # @note to provide direct access to this method in a descendant add method - # ``` - # def signal - # synchronize { ns_signal } - # end - # ``` - # @raise [NotImplementedError] - # @return [self] + # Signal one waiting thread. + # @return [self] + # @note only to be used inside synchronized block + # @note to provide direct access to this method in a descendant add method + # ``` + # def signal + # synchronize { ns_signal } + # end + # ``` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#81 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb:81 def ns_signal; end - # Wait until another thread calls #signal or #broadcast, - # spurious wake-ups can happen. + # @!macro synchronization_object_method_ns_wait # - # @note only to be used inside synchronized block - # @note to provide direct access to this method in a descendant add method - # ``` - # def wait(timeout = nil) - # synchronize { ns_wait(timeout) } - # end - # ``` - # @param timeout [Numeric, nil] in seconds, `nil` means no timeout - # @raise [NotImplementedError] - # @return [self] + # Wait until another thread calls #signal or #broadcast, + # spurious wake-ups can happen. + # + # @param [Numeric, nil] timeout in seconds, `nil` means no timeout + # @return [self] + # @note only to be used inside synchronized block + # @note to provide direct access to this method in a descendant add method + # ``` + # def wait(timeout = nil) + # synchronize { ns_wait(timeout) } + # end + # ``` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#66 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb:66 def ns_wait(timeout = T.unsafe(nil)); end - # Wait until condition is met or timeout passes, - # protects against spurious wake-ups. - # - # @note only to be used inside synchronized block - # @note to provide direct access to this method in a descendant add method - # ``` - # def wait_until(timeout = nil, &condition) - # synchronize { ns_wait_until(timeout, &condition) } - # end - # ``` - # @param timeout [Numeric, nil] in seconds, `nil` means no timeout - # @return [true, false] if condition met - # @yield condition to be met - # @yieldreturn [true, false] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#37 + # @!macro synchronization_object_method_ns_wait_until + # + # Wait until condition is met or timeout passes, + # protects against spurious wake-ups. + # @param [Numeric, nil] timeout in seconds, `nil` means no timeout + # @yield condition to be met + # @yieldreturn [true, false] + # @return [true, false] if condition met + # @note only to be used inside synchronized block + # @note to provide direct access to this method in a descendant add method + # ``` + # def wait_until(timeout = nil, &condition) + # synchronize { ns_wait_until(timeout, &condition) } + # end + # ``` + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb:37 def ns_wait_until(timeout = T.unsafe(nil), &condition); end - # @note can by made public in descendants if required by `public :synchronize` - # @raise [NotImplementedError] - # @yield runs the block synchronized against this object, - # equivalent of java's `synchronize(this) {}` + # @!macro synchronization_object_method_synchronize + # + # @yield runs the block synchronized against this object, + # equivalent of java's `synchronize(this) {}` + # @note can by made public in descendants if required by `public :synchronize` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb:18 def synchronize; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb#6 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb:6 class Concurrent::Synchronization::AbstractObject - # @return [AbstractObject] a new instance of AbstractObject - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb#7 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb:7 def initialize; end + # @!visibility private # @abstract - # @raise [NotImplementedError] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb#13 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb:13 def full_memory_barrier; end class << self - # @raise [NotImplementedError] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb#17 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb:17 def attr_volatile(*names); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#6 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:6 module Concurrent::Synchronization::AbstractStruct - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#9 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:9 def initialize(*values); end - # Returns the number of struct members. + # @!macro struct_length + # + # Returns the number of struct members. # - # @return [Fixnum] the number of struct members + # @return [Fixnum] the number of struct members # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:19 def length; end - # Returns the struct members as an array of symbols. + # @!macro struct_members # - # @return [Array] the struct members as an array of symbols + # Returns the struct members as an array of symbols. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#29 + # @return [Array] the struct members as an array of symbols + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:29 def members; end - # Returns the number of struct members. - # - # @return [Fixnum] the number of struct members - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#22 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:22 def size; end protected - # Yields the value of each struct member in order. If no block is given - # an enumerator is returned. + # @!macro struct_each # - # @yield the operation to be performed on each struct member - # @yieldparam value [Object] each struct value (in order) + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#82 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:82 def ns_each; end - # Yields the name and value of each struct member in order. If no block is - # given an enumerator is returned. + # @!macro struct_each_pair # - # @yield the operation to be performed on each struct member/value pair - # @yieldparam member [Object] each struct member (in order) - # @yieldparam value [Object] each struct value (in order) + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#89 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:89 def ns_each_pair; end - # Equality + # @!macro struct_equality # - # @return [Boolean] true if other has the same struct subclass and has - # equal member values (according to `Object#==`) + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#75 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:75 def ns_equality(other); end - # Attribute Reference + # @!macro struct_get # - # @param member [Symbol, String, Integer] the string or symbol name of the member - # for which to obtain the value or the member's index - # @raise [NameError] if the member does not exist - # @raise [IndexError] if the index is out of range. - # @return [Object] the value of the given struct member or the member at the given index. + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:59 def ns_get(member); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#119 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:119 def ns_initialize_copy; end - # Describe the contents of this struct in a string. + # @!macro struct_inspect # - # @return [String] the contents of this struct in a string + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#105 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:105 def ns_inspect; end - # Returns a new struct containing the contents of `other` and the contents - # of `self`. If no block is specified, the value for entries with duplicate - # keys will be that of `other`. Otherwise the value for each duplicate key - # is determined by calling the block with the key, its value in `self` and - # its value in `other`. - # - # @param other [Hash] the hash from which to set the new values - # @raise [ArgumentError] of given a member that is not defined in the struct - # @return [Synchronization::AbstractStruct] a new struct with the new values - # @yield an options block for resolving duplicate keys - # @yieldparam member [String, Symbol] the name of the member which is duplicated - # @yieldparam othervalue [Object] the value of the member in `other` - # @yieldparam selfvalue [Object] the value of the member in `self` - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#114 + # @!macro struct_merge + # + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:114 def ns_merge(other, &block); end - # Yields each member value from the struct to the block and returns an Array - # containing the member values from the struct for which the given block - # returns a true value (equivalent to `Enumerable#select`). + # @!macro struct_select # - # @return [Array] an array containing each value for which the block returns true - # @yield the operation to be performed on each struct member - # @yieldparam value [Object] each struct value (in order) + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#98 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:98 def ns_select; end - # Returns a hash containing the names and values for the struct’s members. + # @!macro struct_to_h # - # @return [Hash] the names and values for the struct’s members + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#52 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:52 def ns_to_h; end - # Returns the values for this struct as an Array. + # @!macro struct_values # - # @return [Array] the values for this struct + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#38 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:38 def ns_values; end - # Returns the struct member values for each selector as an Array. + # @!macro struct_values_at # - # A selector may be either an Integer offset or a Range of offsets (as in `Array#values_at`). + # @!visibility private # - # @param indexes [Fixnum, Range] the index(es) from which to obatin the values (in order) - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#45 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:45 def ns_values_at(indexes); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#130 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:130 def pr_underscore(clazz); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#141 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb:141 def define_struct_class(parent, base, name, members, &block); end end end +# @!visibility private # TODO (pitr-ch 04-Dec-2016): should be in edge # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#8 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:8 class Concurrent::Synchronization::Condition < ::Concurrent::Synchronization::LockableObject - # @return [Condition] a new instance of Condition - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:18 def initialize(lock); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#47 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:47 def broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#51 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:51 def ns_broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#43 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:43 def ns_signal; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#27 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:27 def ns_wait(timeout = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#35 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:35 def ns_wait_until(timeout = T.unsafe(nil), &condition); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#39 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:39 def signal; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#23 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:23 def wait(timeout = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#31 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:31 def wait_until(timeout = T.unsafe(nil), &condition); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#15 + # pkg:gem/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/condition.rb#16 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:16 def new(*args, &block); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#8 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:8 module Concurrent::Synchronization::ConditionSignalling protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#16 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:16 def ns_broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:11 def ns_signal; end end +# @!visibility private # TODO (pitr-ch 04-Dec-2016): should be in edge # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#8 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:8 class Concurrent::Synchronization::Lock < ::Concurrent::Synchronization::LockableObject - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#31 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:31 def broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#35 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:35 def ns_broadcast; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:29 def ns_signal; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#17 + # pkg:gem/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/lock.rb#23 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:25 def signal; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:11 def synchronize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#13 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:13 def wait(timeout = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lock.rb:19 def wait_until(timeout = T.unsafe(nil), &condition); end end -# Safe synchronization under any Ruby implementation. +# Safe synchronization under any Ruby implementation. # It provides methods like {#synchronize}, {#wait}, {#signal} and {#broadcast}. # Provides a single layer which can improve its implementation over time without changes needed to # the classes using it. Use {Synchronization::Object} not this abstract class. @@ -10486,62 +9438,67 @@ end # end # end # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb#50 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb:50 class Concurrent::Synchronization::LockableObject < ::Concurrent::Synchronization::MutexLockableObject - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#57 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/condition.rb:57 def new_condition; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb#11 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb:11 Concurrent::Synchronization::LockableObjectImplementation = Concurrent::Synchronization::MutexLockableObject -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#60 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:60 class Concurrent::Synchronization::MonitorLockableObject < ::Concurrent::Synchronization::AbstractLockableObject include ::Concurrent::Synchronization::ConditionSignalling extend ::Concurrent::Synchronization::SafeInitialization - # @return [MonitorLockableObject] a new instance of MonitorLockableObject - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#65 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:65 def initialize; end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#83 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:83 def ns_wait(timeout = T.unsafe(nil)); end - # TODO may be a problem with lock.synchronize { lock.wait } - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#79 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:79 def synchronize; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#71 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:71 def initialize_copy(other); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#25 +# @!visibility private +# @!macro internal_implementation_note +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:25 class Concurrent::Synchronization::MutexLockableObject < ::Concurrent::Synchronization::AbstractLockableObject include ::Concurrent::Synchronization::ConditionSignalling extend ::Concurrent::Synchronization::SafeInitialization - # @return [MutexLockableObject] a new instance of MutexLockableObject - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#30 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:30 def initialize; end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#52 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:52 def ns_wait(timeout = T.unsafe(nil)); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:44 def synchronize; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#36 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:36 def initialize_copy(other); end end @@ -10549,34 +9506,33 @@ end # - final instance variables see {Object.safe_initialization!} # - volatile instance variables see {Object.attr_volatile} # - volatile instance variables see {Object.attr_atomic} +# @!visibility private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#15 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:15 class Concurrent::Synchronization::Object < ::Concurrent::Synchronization::AbstractObject include ::Concurrent::Synchronization::Volatile extend ::Concurrent::Synchronization::Volatile::ClassMethods # Has to be called by children. # - # @return [Object] a new instance of Object - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#28 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:28 def initialize; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#146 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:146 def __initialize_atomic_fields__; end class << self # @return [true, false] is the attribute with name atomic? # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#125 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:125 def atomic_attribute?(name); end - # @param inherited [true, false] should inherited volatile with CAS fields be returned? + # @param [true, false] inherited should inherited volatile with CAS fields be returned? # @return [::Array] Returns defined volatile with CAS fields on this class. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#119 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:119 def atomic_attributes(inherited = T.unsafe(nil)); end # Creates methods for reading and writing to a instance variable with @@ -10585,37 +9541,53 @@ class Concurrent::Synchronization::Object < ::Concurrent::Synchronization::Abstr # This method generates following methods: `value`, `value=(new_value) #=> new_value`, # `swap_value(new_value) #=> old_value`, # `compare_and_set_value(expected, value) #=> true || false`, `update_value(&block)`. - # - # @param names [::Array] of the instance variables to be volatile with CAS. + # @param [::Array] names of the instance variables to be volatile with CAS. # @return [::Array] names of defined method names. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#84 + # @!macro attr_atomic + # @!method $1 + # @return [Object] The $1. + # @!method $1=(new_$1) + # Set the $1. + # @return [Object] new_$1. + # @!method swap_$1(new_$1) + # Set the $1 to new_$1 and return the old $1. + # @return [Object] old $1 + # @!method compare_and_set_$1(expected_$1, new_$1) + # Sets the $1 to new_$1 if the current $1 is expected_$1 + # @return [true, false] + # @!method update_$1(&block) + # Updates the $1 using the block. + # @yield [Object] Calculate a new $1 using given (old) $1 + # @yieldparam [Object] old $1 + # @return [Object] new $1 + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:84 def attr_atomic(*names); end # For testing purposes, quite slow. Injects assert code to new method which will raise if class instance contains # any instance variables with CamelCase names and isn't {.safe_initialization?}. - # # @raise when offend found # @return [true] # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#45 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:45 def ensure_safe_initialization_when_final_fields_are_present; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:33 def safe_initialization!; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:37 def safe_initialization?; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#131 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/object.rb:131 def define_initialize_atomic_fields; end end end +# @!visibility private +# @!macro internal_implementation_note +# # By extending this module, a class and all its children are marked to be constructed safely. Meaning that # all writes (ivar initializations) are made visible to all readers of newly constructed object. It ensures # same behaviour as Java's final fields. @@ -10625,60 +9597,60 @@ end # # @example # class AClass < Concurrent::Synchronization::Object -# extend Concurrent::Synchronization::SafeInitialization +# extend Concurrent::Synchronization::SafeInitialization # -# def initialize -# @AFinalValue = 'value' # published safely, #foo will never return nil -# end +# def initialize +# @AFinalValue = 'value' # published safely, #foo will never return nil +# end # -# def foo -# @AFinalValue -# end +# def foo +# @AFinalValue +# end # end # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#28 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb:28 module Concurrent::Synchronization::SafeInitialization - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb:29 def new(*args, &block); end end # Volatile adds the attr_volatile class method when included. # +# @example +# class Foo +# include Concurrent::Synchronization::Volatile +# +# attr_volatile :bar +# +# def initialize +# self.bar = 1 +# end +# end +# # foo = Foo.new # foo.bar # => 1 # foo.bar = 2 # => 2 # -# @example -# class Foo -# include Concurrent::Synchronization::Volatile -# -# attr_volatile :bar -# -# def initialize -# self.bar = 1 -# end -# end +# @!visibility private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/volatile.rb#28 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/volatile.rb:28 module Concurrent::Synchronization::Volatile mixes_in_class_methods ::Concurrent::Synchronization::Volatile::ClassMethods - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/volatile.rb#33 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/volatile.rb:33 def full_memory_barrier; end class << self - # @private - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/volatile.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/volatile.rb:29 def included(base); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/volatile.rb#37 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/volatile.rb:37 module Concurrent::Synchronization::Volatile::ClassMethods - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/volatile.rb#39 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/synchronization/volatile.rb:39 def attr_volatile(*names); end end @@ -10697,88 +9669,62 @@ end # This class is currently being considered for inclusion into stdlib, via # https://bugs.ruby-lang.org/issues/8556 # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb#21 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb:21 class Concurrent::SynchronizedDelegator < ::SimpleDelegator - # @return [SynchronizedDelegator] a new instance of SynchronizedDelegator - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb#31 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb:31 def initialize(obj); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb#36 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb:36 def method_missing(method, *args, &block); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb#22 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb:22 def setup; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb#27 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb:27 def teardown; end end # A `TVar` is a transactional variable - a single-element container that # is used as part of a transaction - see `Concurrent::atomically`. # +# @!macro thread_safe_variable_comparison # -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. # {include:file:docs-source/tvar.md} # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#12 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:12 class Concurrent::TVar < ::Concurrent::Synchronization::Object extend ::Concurrent::Synchronization::SafeInitialization # Create a new `TVar` with an initial value. # - # @return [TVar] a new instance of TVar - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#16 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:16 def initialize(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#46 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:46 def unsafe_lock; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#36 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:36 def unsafe_value; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#41 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:41 def unsafe_value=(value); end # Get the value of a `TVar`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#22 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:22 def value; end # Set the value of a `TVar`. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:29 def value=(value); end end @@ -10795,238 +9741,180 @@ end # * Ruby's built-in thread-local variables leak forever the value set on each thread (unless set to nil explicitly). # `ThreadLocalVar` automatically removes the mapping for each thread once the `ThreadLocalVar` instance is GC'd. # -# -# ## Thread-safe Variable Classes -# -# Each of the thread-safe variable classes is designed to solve a different -# problem. In general: -# -# * *{Concurrent::Agent}:* Shared, mutable variable providing independent, -# uncoordinated, *asynchronous* change of individual values. Best used when -# the value will undergo frequent, complex updates. Suitable when the result -# of an update does not need to be known immediately. -# * *{Concurrent::Atom}:* Shared, mutable variable providing independent, -# uncoordinated, *synchronous* change of individual values. Best used when -# the value will undergo frequent reads but only occasional, though complex, -# updates. Suitable when the result of an update must be known immediately. -# * *{Concurrent::AtomicReference}:* A simple object reference that can be updated -# atomically. Updates are synchronous but fast. Best used when updates a -# simple set operations. Not suitable when updates are complex. -# {Concurrent::AtomicBoolean} and {Concurrent::AtomicFixnum} are similar -# but optimized for the given data type. -# * *{Concurrent::Exchanger}:* Shared, stateless synchronization point. Used -# when two or more threads need to exchange data. The threads will pair then -# block on each other until the exchange is complete. -# * *{Concurrent::MVar}:* Shared synchronization point. Used when one thread -# must give a value to another, which must take the value. The threads will -# block on each other until the exchange is complete. -# * *{Concurrent::ThreadLocalVar}:* Shared, mutable, isolated variable which -# holds a different value for each thread which has access. Often used as -# an instance variable in objects which must maintain different state -# for different threads. -# * *{Concurrent::TVar}:* Shared, mutable variables which provide -# *coordinated*, *synchronous*, change of *many* stated. Used when multiple -# value must change together, in an all-or-nothing transaction. +# @!macro thread_safe_variable_comparison # # @example # v = ThreadLocalVar.new(14) # v.value #=> 14 # v.value = 2 # v.value #=> 2 +# # @example # v = ThreadLocalVar.new(14) # # t1 = Thread.new do -# v.value #=> 14 -# v.value = 1 -# v.value #=> 1 +# v.value #=> 14 +# v.value = 1 +# v.value #=> 1 # end # # t2 = Thread.new do -# v.value #=> 14 -# v.value = 2 -# v.value #=> 2 +# v.value #=> 14 +# v.value = 2 +# v.value #=> 2 # end # # v.value #=> 14 # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#43 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:43 class Concurrent::ThreadLocalVar # Creates a thread local variable. # - # @param default [Object] the default value when otherwise unset - # @param default_block [Proc] Optional block that gets called to obtain the + # @param [Object] default the default value when otherwise unset + # @param [Proc] default_block Optional block that gets called to obtain the # default value for each thread - # @return [ThreadLocalVar] a new instance of ThreadLocalVar # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#51 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:51 def initialize(default = T.unsafe(nil), &default_block); end # Bind the given value to thread local storage during # execution of the given block. # - # @param value [Object] the value to bind - # @return [Object] the value + # @param [Object] value the value to bind # @yield the operation to be performed with the bound variable + # @return [Object] the value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#88 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:88 def bind(value); end # Returns the value in the current thread's copy of this thread-local variable. # # @return [Object] the current value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#70 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:70 def value; end # Sets the current thread's copy of this thread-local variable to the specified value. # - # @param value [Object] the value to set + # @param [Object] value the value to set # @return [Object] the new value # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#78 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:78 def value=(value); end protected - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#103 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:103 def default; end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb#44 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb:44 Concurrent::ThreadLocalVar::LOCALS = T.let(T.unsafe(nil), Concurrent::ThreadLocals) +# @!visibility private +# @!macro internal_implementation_note # An array-backed storage of indexed variables per thread. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#141 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:141 class Concurrent::ThreadLocals < ::Concurrent::AbstractLocals - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#142 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:142 def locals; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/locals.rb#146 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/atomic/locals.rb:146 def locals!; end end -# An abstraction composed of one or more threads and a task queue. Tasks -# (blocks or `proc` objects) are submitted to the pool and added to the queue. -# The threads in the pool remove the tasks and execute them in the order -# they were received. -# -# A `ThreadPoolExecutor` will automatically adjust the pool size according -# to the bounds set by `min-threads` and `max-threads`. When a new task is -# submitted and fewer than `min-threads` threads are running, a new thread -# is created to handle the request, even if other worker threads are idle. -# If there are more than `min-threads` but less than `max-threads` threads -# running, a new thread will be created only if the queue is full. -# -# Threads that are idle for too long will be garbage collected, down to the -# configured minimum options. Should a thread crash it, too, will be garbage collected. -# -# `ThreadPoolExecutor` is based on the Java class of the same name. From -# the official Java documentation; -# -# > Thread pools address two different problems: they usually provide -# > improved performance when executing large numbers of asynchronous tasks, -# > due to reduced per-task invocation overhead, and they provide a means -# > of bounding and managing the resources, including threads, consumed -# > when executing a collection of tasks. Each ThreadPoolExecutor also -# > maintains some basic statistics, such as the number of completed tasks. -# > -# > To be useful across a wide range of contexts, this class provides many -# > adjustable parameters and extensibility hooks. However, programmers are -# > urged to use the more convenient Executors factory methods -# > [CachedThreadPool] (unbounded thread pool, with automatic thread reclamation), -# > [FixedThreadPool] (fixed size thread pool) and [SingleThreadExecutor] (single -# > background thread), that preconfigure settings for the most common usage -# > scenarios. -# -# **Thread Pool Options** -# -# Thread pools support several configuration options: -# -# * `idletime`: The number of seconds that a thread may be idle before being reclaimed. -# * `name`: The name of the executor (optional). Printed in the executor's `#to_s` output and -# a `-worker-` name is given to its threads if supported by used Ruby -# implementation. `` is uniq for each thread. -# * `max_queue`: The maximum number of tasks that may be waiting in the work queue at -# any one time. When the queue size reaches `max_queue` and no new threads can be created, -# subsequent tasks will be rejected in accordance with the configured `fallback_policy`. -# * `auto_terminate`: When true (default), the threads started will be marked as daemon. -# * `fallback_policy`: The policy defining how rejected tasks are handled. -# -# Three fallback policies are supported: -# -# * `:abort`: Raise a `RejectedExecutionError` exception and discard the task. -# * `:discard`: Discard the task and return false. -# * `:caller_runs`: Execute the task on the calling thread. -# -# **Shutting Down Thread Pools** -# -# Killing a thread pool while tasks are still being processed, either by calling -# the `#kill` method or at application exit, will have unpredictable results. There -# is no way for the thread pool to know what resources are being used by the -# in-progress tasks. When those tasks are killed the impact on those resources -# cannot be predicted. The *best* practice is to explicitly shutdown all thread -# pools using the provided methods: -# -# * Call `#shutdown` to initiate an orderly termination of all in-progress tasks -# * Call `#wait_for_termination` with an appropriate timeout interval an allow -# the orderly shutdown to complete -# * Call `#kill` *only when* the thread pool fails to shutdown in the allotted time -# -# On some runtime platforms (most notably the JVM) the application will not -# exit until all thread pools have been shutdown. To prevent applications from -# "hanging" on exit, all threads can be marked as daemon according to the -# `:auto_terminate` option. +# @!macro thread_pool_executor # -# ```ruby -# pool1 = Concurrent::FixedThreadPool.new(5) # threads will be marked as daemon -# pool2 = Concurrent::FixedThreadPool.new(5, auto_terminate: false) # mark threads as non-daemon -# ``` +# An abstraction composed of one or more threads and a task queue. Tasks +# (blocks or `proc` objects) are submitted to the pool and added to the queue. +# The threads in the pool remove the tasks and execute them in the order +# they were received. +# +# A `ThreadPoolExecutor` will automatically adjust the pool size according +# to the bounds set by `min-threads` and `max-threads`. When a new task is +# submitted and fewer than `min-threads` threads are running, a new thread +# is created to handle the request, even if other worker threads are idle. +# If there are more than `min-threads` but less than `max-threads` threads +# running, a new thread will be created only if the queue is full. +# +# Threads that are idle for too long will be garbage collected, down to the +# configured minimum options. Should a thread crash it, too, will be garbage collected. +# +# `ThreadPoolExecutor` is based on the Java class of the same name. From +# the official Java documentation; +# +# > Thread pools address two different problems: they usually provide +# > improved performance when executing large numbers of asynchronous tasks, +# > due to reduced per-task invocation overhead, and they provide a means +# > of bounding and managing the resources, including threads, consumed +# > when executing a collection of tasks. Each ThreadPoolExecutor also +# > maintains some basic statistics, such as the number of completed tasks. +# > +# > To be useful across a wide range of contexts, this class provides many +# > adjustable parameters and extensibility hooks. However, programmers are +# > urged to use the more convenient Executors factory methods +# > [CachedThreadPool] (unbounded thread pool, with automatic thread reclamation), +# > [FixedThreadPool] (fixed size thread pool) and [SingleThreadExecutor] (single +# > background thread), that preconfigure settings for the most common usage +# > scenarios. +# +# @!macro thread_pool_options # -# @note Failure to properly shutdown a thread pool can lead to unpredictable results. -# Please read *Shutting Down Thread Pools* for more information. -# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html Java Executors class -# @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html Java ExecutorService interface -# @see http://docs.oracle.com/javase/tutorial/essential/concurrency/pools.html Java Tutorials: Thread Pools -# @see https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#setDaemon-boolean- +# @!macro thread_pool_executor_public_api # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb#56 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb:56 class Concurrent::ThreadPoolExecutor < ::Concurrent::RubyThreadPoolExecutor; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb:10 Concurrent::ThreadPoolExecutorImplementation = Concurrent::RubyThreadPoolExecutor -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util.rb#4 +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util.rb:4 module Concurrent::ThreadSafe; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util.rb#7 +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util.rb:7 module Concurrent::ThreadSafe::Util class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#16 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb:16 def make_synchronized_on_cruby(klass); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#41 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb:41 def make_synchronized_on_truffleruby(klass); end end end # TODO (pitr-ch 15-Oct-2016): migrate to Utility::ProcessorCounter # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util.rb#13 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util.rb:13 Concurrent::ThreadSafe::Util::CPU_COUNT = T.let(T.unsafe(nil), Integer) # TODO (pitr-ch 15-Oct-2016): migrate to Utility::NativeInteger # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util.rb#10 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util.rb:10 Concurrent::ThreadSafe::Util::FIXNUM_BIT_SIZE = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util.rb#11 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/thread_safe/util.rb:11 Concurrent::ThreadSafe::Util::MAX_INT = T.let(T.unsafe(nil), Integer) # Raised when an operation times out. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/errors.rb#55 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/errors.rb:55 class Concurrent::TimeoutError < ::Concurrent::Error; end # Executes a collection of tasks, each after a given delay. A master task @@ -11036,15 +9924,21 @@ class Concurrent::TimeoutError < ::Concurrent::Error; end # # @see Concurrent::ScheduledTask # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#19 +# @!macro monotonic_clock_warning +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:19 class Concurrent::TimerSet < ::Concurrent::RubyExecutorService # Create a new set of timed tasks. # - # @option opts - # @param opts [Hash] the options used to specify the executor on which to perform actions - # @return [TimerSet] a new instance of TimerSet + # @!macro executor_options + # + # @param [Hash] opts the options used to specify the executor on which to perform actions + # @option opts [Executor] :executor when set use the given `Executor` instance. + # Three special values are also supported: `:task` returns the global task pool, + # `:operation` returns the global operation pool, and `:immediate` returns a new + # `ImmediateExecutor` object. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#30 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:30 def initialize(opts = T.unsafe(nil)); end # Begin an immediate shutdown. In-progress tasks will be allowed to @@ -11052,45 +9946,53 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService # will be accepted. Has no additional effect if the thread pool is # not running. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#62 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:62 def kill; end # Post a task to be execute run after a given delay (in seconds). If the # delay is less than 1/100th of a second the task will be immediately post # to the executor. # - # @param args [Array] the arguments passed to the task on execution. - # @param delay [Float] the number of seconds to wait for before executing the task. - # @raise [ArgumentError] if the intended execution time is not in the future. - # @raise [ArgumentError] if no block is given. + # @param [Float] delay the number of seconds to wait for before executing the task. + # @param [Array] args the arguments passed to the task on execution. + # + # @yield the task to be performed. + # # @return [Concurrent::ScheduledTask, false] IVar representing the task if the post # is successful; false after shutdown. - # @yield the task to be performed. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#48 + # @raise [ArgumentError] if the intended execution time is not in the future. + # @raise [ArgumentError] if no block is given. + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:48 def post(delay, *args, &task); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#67 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:67 def <<(task); end # Initialize the object. # - # @param opts [Hash] the options to create the object with. + # @param [Hash] opts the options to create the object with. + # @!visibility private # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#75 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:75 def ns_initialize(opts); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#95 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:95 def ns_post_task(task); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#132 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:132 def ns_reset_if_forked; end # `ExecutorService` callback called during shutdown. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#123 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:123 def ns_shutdown_execution; end # Post the task to the internal queue. @@ -11099,7 +10001,9 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService # only. It is not intended to be used directly. Post a task # by using the `SchedulesTask#execute` method. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#90 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:90 def post_task(task); end # Run a loop and execute tasks in the scheduled order and at the approximate @@ -11107,7 +10011,9 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService # garbage collection can occur. If there are no ready tasks it will sleep # for up to 60 seconds waiting for the next scheduled task. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#146 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:146 def process_tasks; end # Remove the given task from the queue. @@ -11116,7 +10022,9 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService # only. It is not intended to be used directly. Cancel a task # by using the `ScheduledTask#cancel` method. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#116 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/executor/timer_set.rb:116 def remove_task(task); end end @@ -11170,6 +10078,8 @@ end # with three arguments: time of execution, the result of the block (or nil on # failure), and any raised exceptions (or nil on success). # +# @!macro copy_options +# # @example Basic usage # task = Concurrent::TimerTask.new{ puts 'Boom!' } # task.execute @@ -11180,26 +10090,46 @@ end # #=> 'Boom!' # # task.shutdown #=> true +# # @example Configuring `:execution_interval` # task = Concurrent::TimerTask.new(execution_interval: 5) do -# puts 'Boom!' -# end +# puts 'Boom!' +# end # # task.execution_interval #=> 5 +# +# @example Immediate execution with `:run_now` +# task = Concurrent::TimerTask.new(run_now: true){ puts 'Boom!' } +# task.execute +# +# #=> 'Boom!' +# # @example Configuring `:interval_type` with either :fixed_delay or :fixed_rate, default is :fixed_delay # task = Concurrent::TimerTask.new(execution_interval: 5, interval_type: :fixed_rate) do -# puts 'Boom!' -# end +# puts 'Boom!' +# end # task.interval_type #=> :fixed_rate +# +# @example Last `#value` and `Dereferenceable` mixin +# task = Concurrent::TimerTask.new( +# dup_on_deref: true, +# execution_interval: 5 +# ){ Time.now } +# +# task.execute +# Time.now #=> 2013-11-07 18:06:50 -0500 +# sleep(10) +# task.value #=> 2013-11-07 18:06:55 -0500 +# # @example Controlling execution from within the block # timer_task = Concurrent::TimerTask.new(execution_interval: 1) do |task| -# task.execution_interval.to_i.times{ print 'Boom! ' } -# print "\n" -# task.execution_interval += 1 -# if task.execution_interval > 5 -# puts 'Stopping...' -# task.shutdown -# end +# task.execution_interval.to_i.times{ print 'Boom! ' } +# print "\n" +# task.execution_interval += 1 +# if task.execution_interval > 5 +# puts 'Stopping...' +# task.shutdown +# end # end # # timer_task.execute @@ -11209,30 +10139,16 @@ end # #=> Boom! Boom! Boom! Boom! # #=> Boom! Boom! Boom! Boom! Boom! # #=> Stopping... -# @example Immediate execution with `:run_now` -# task = Concurrent::TimerTask.new(run_now: true){ puts 'Boom!' } -# task.execute -# -# #=> 'Boom!' -# @example Last `#value` and `Dereferenceable` mixin -# task = Concurrent::TimerTask.new( -# dup_on_deref: true, -# execution_interval: 5 -# ){ Time.now } # -# task.execute -# Time.now #=> 2013-11-07 18:06:50 -0500 -# sleep(10) -# task.value #=> 2013-11-07 18:06:55 -0500 # @example Observation # class TaskObserver -# def update(time, result, ex) -# if result -# print "(#{time}) Execution successfully returned #{result}\n" -# else -# print "(#{time}) Execution failed with error #{ex}\n" -# end -# end +# def update(time, result, ex) +# if result +# print "(#{time}) Execution successfully returned #{result}\n" +# else +# print "(#{time}) Execution failed with error #{ex}\n" +# end +# end # end # # task = Concurrent::TimerTask.new(execution_interval: 1){ 42 } @@ -11262,244 +10178,246 @@ end # #=> (2013-10-13 19:09:38 -0400) Execution failed with error StandardError # #=> (2013-10-13 19:09:39 -0400) Execution failed with error StandardError # task.shutdown -# @see http://docs.oracle.com/javase/7/docs/api/java/util/TimerTask.html +# # @see http://ruby-doc.org/stdlib-2.0/libdoc/observer/rdoc/Observable.html +# @see http://docs.oracle.com/javase/7/docs/api/java/util/TimerTask.html # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#166 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:166 class Concurrent::TimerTask < ::Concurrent::RubyExecutorService include ::Concurrent::Concern::Dereferenceable include ::Concurrent::Concern::Observable # Create a new TimerTask with the given task and configuration. # - # @option opts - # @option opts - # @option opts - # @param opts [Hash] the options defining task execution. - # @raise ArgumentError when no block is given. - # @return [TimerTask] the new `TimerTask` - # @yield to the block after :execution_interval seconds have passed since - # the last yield - # @yieldparam task a reference to the `TimerTask` instance so that the - # block can control its own lifecycle. Necessary since `self` will - # refer to the execution context of the block rather than the running - # `TimerTask`. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#210 + # @!macro timer_task_initialize + # @param [Hash] opts the options defining task execution. + # @option opts [Float] :execution_interval number of seconds between + # task executions (default: EXECUTION_INTERVAL) + # @option opts [Boolean] :run_now Whether to run the task immediately + # upon instantiation or to wait until the first # execution_interval + # has passed (default: false) + # @options opts [Symbol] :interval_type method to calculate the interval + # between executions, can be either :fixed_rate or :fixed_delay. + # (default: :fixed_delay) + # @option opts [Executor] executor, default is `global_io_executor` + # + # @!macro deref_options + # + # @raise ArgumentError when no block is given. + # + # @yield to the block after :execution_interval seconds have passed since + # the last yield + # @yieldparam task a reference to the `TimerTask` instance so that the + # block can control its own lifecycle. Necessary since `self` will + # refer to the execution context of the block rather than the running + # `TimerTask`. + # + # @return [TimerTask] the new `TimerTask` + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:210 def initialize(opts = T.unsafe(nil), &task); end # Execute a previously created `TimerTask`. # - # @example Instance and execute in one line - # task = Concurrent::TimerTask.new(execution_interval: 10){ print "Hello World\n" }.execute - # task.running? #=> true + # @return [TimerTask] a reference to `self` + # # @example Instance and execute in separate steps # task = Concurrent::TimerTask.new(execution_interval: 10){ print "Hello World\n" } # task.running? #=> false # task.execute # task.running? #=> true - # @return [TimerTask] a reference to `self` # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#236 + # @example Instance and execute in one line + # task = Concurrent::TimerTask.new(execution_interval: 10){ print "Hello World\n" }.execute + # task.running? #=> true + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:236 def execute; end + # @!attribute [rw] execution_interval # @return [Fixnum] Number of seconds after the task completes before the # task is performed again. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#261 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:261 def execution_interval; end + # @!attribute [rw] execution_interval # @return [Fixnum] Number of seconds after the task completes before the # task is performed again. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#268 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:268 def execution_interval=(value); end + # @!attribute [r] interval_type # @return [Symbol] method to calculate the interval between executions # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#278 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:278 def interval_type; end # Is the executor running? # # @return [Boolean] `true` when running, `false` when shutting down or shutdown # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#219 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:219 def running?; end + # @!attribute [rw] timeout_interval # @return [Fixnum] Number of seconds the task can run before it is # considered to have failed. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#283 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:283 def timeout_interval; end + # @!attribute [rw] timeout_interval # @return [Fixnum] Number of seconds the task can run before it is # considered to have failed. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#290 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:290 def timeout_interval=(value); end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#294 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:294 def <<(task); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#357 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:357 def calculate_next_interval(start_time); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#339 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:339 def execute_task(completion, age_when_scheduled); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#298 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:298 def ns_initialize(opts, &task); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#327 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:327 def ns_kill_execution; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#321 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:321 def ns_shutdown_execution; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#294 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:294 def post(*args, &task); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#333 + # @!visibility private + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:333 def schedule_next_task(interval = T.unsafe(nil)); end class << self # Create and execute a new `TimerTask`. # + # @!macro timer_task_initialize + # # @example # task = Concurrent::TimerTask.execute(execution_interval: 10){ print "Hello World\n" } # task.running? #=> true - # @option opts - # @option opts - # @option opts - # @param opts [Hash] the options defining task execution. - # @raise ArgumentError when no block is given. - # @return [TimerTask] the new `TimerTask` - # @yield to the block after :execution_interval seconds have passed since - # the last yield - # @yieldparam task a reference to the `TimerTask` instance so that the - # block can control its own lifecycle. Necessary since `self` will - # refer to the execution context of the block rather than the running - # `TimerTask`. - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#254 + # + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:254 def execute(opts = T.unsafe(nil), &task); end end end # Default `:interval_type` # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#182 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:182 Concurrent::TimerTask::DEFAULT_INTERVAL_TYPE = T.let(T.unsafe(nil), Symbol) # Default `:execution_interval` in seconds. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#171 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:171 Concurrent::TimerTask::EXECUTION_INTERVAL = T.let(T.unsafe(nil), Integer) # Maintain the interval between the end of one execution and the start of the next execution. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#174 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:174 Concurrent::TimerTask::FIXED_DELAY = T.let(T.unsafe(nil), Symbol) # Maintain the interval between the start of one execution and the start of the next. # If execution time exceeds the interval, the next execution will start immediately # after the previous execution finishes. Executions will not run concurrently. # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#179 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/timer_task.rb:179 Concurrent::TimerTask::FIXED_RATE = T.let(T.unsafe(nil), Symbol) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#153 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:153 class Concurrent::Transaction - # @return [Transaction] a new instance of Transaction - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#162 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:162 def initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#192 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:192 def abort; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#196 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:196 def commit; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#177 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:177 def open(tvar); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#166 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:166 def read(tvar); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#206 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:206 def unlock; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#171 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:171 def write(tvar, value); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#212 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:212 def current; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#216 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:216 def current=(transaction); end end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#155 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:155 Concurrent::Transaction::ABORTED = T.let(T.unsafe(nil), Object) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#159 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:159 class Concurrent::Transaction::AbortError < ::StandardError; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#160 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:160 class Concurrent::Transaction::LeaveError < ::StandardError; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 def value=(_); end class << self - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 def [](*_arg0); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 def inspect; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 def keyword_init?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 def members; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tvar.rb:157 def new(*_arg0); end end end @@ -11515,237 +10433,211 @@ end # tuple.compare_and_set(0, :foo, :bar) #=> true | strong CAS # tuple.cas(0, :foo, :baz) #=> false | strong CAS # tuple.get(0) #=> :bar | volatile read -# @see http://ruby-doc.org/core-2.2.2/Enumerable.html Enumerable -# @see http://www.erlang.org/doc/reference_manual/data_types.html#id70396 Erlang Tuple +# # @see https://en.wikipedia.org/wiki/Tuple Tuple entry at Wikipedia +# @see http://www.erlang.org/doc/reference_manual/data_types.html#id70396 Erlang Tuple +# @see http://ruby-doc.org/core-2.2.2/Enumerable.html Enumerable # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#20 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:20 class Concurrent::Tuple include ::Enumerable # Create a new tuple of the given size. # - # @param size [Integer] the number of elements in the tuple - # @return [Tuple] a new instance of Tuple + # @param [Integer] size the number of elements in the tuple # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#29 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:29 def initialize(size); end - # Set the value at the given index to the new value if and only if the current - # value matches the given old value. - # - # @param i [Integer] the index for the element to set - # @param new_value [Object] the value to set at the given index - # @param old_value [Object] the value to compare against the current value - # @return [Boolean] true if the value at the given element was set else false - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#73 + # pkg:gem/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 # value matches the given old value. # - # @param i [Integer] the index for the element to set - # @param new_value [Object] the value to set at the given index - # @param old_value [Object] the value to compare against the current value + # @param [Integer] i the index for the element to set + # @param [Object] old_value the value to compare against the current value + # @param [Object] new_value 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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:69 def compare_and_set(i, old_value, new_value); end # Calls the given block once for each element in self, passing that element as a parameter. # - # @yieldparam ref [Object] the `Concurrent::AtomicReference` object at the current index + # @yieldparam [Object] ref the `Concurrent::AtomicReference` object at the current index # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#78 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:78 def each; end # Get the value of the element at the given index. # - # @param i [Integer] the index from which to retrieve the value + # @param [Integer] i 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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:43 def get(i); end # Set the element at the given index to the given value # - # @param i [Integer] the index for the element to set - # @param value [Object] the value to set at the given index + # @param [Integer] i the index for the element to set + # @param [Object] value 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 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:55 def set(i, value); end # The (fixed) size of the tuple. # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:24 def size; end - # Get the value of the element at the given index. - # - # @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#47 + # pkg:gem/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 - # - # @param i [Integer] the index for the element to set - # @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#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/tuple.rb:59 def volatile_set(i, value); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#3 +# @!visibility private +# @!visibility private +# @!visibility private +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:3 module Concurrent::Utility; end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#6 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:6 module Concurrent::Utility::EngineDetector - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#7 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:7 def on_cruby?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:11 def on_jruby?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#27 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:27 def on_linux?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#23 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:23 def on_osx?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#15 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:15 def on_truffleruby?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:19 def on_windows?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/engine.rb#31 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/engine.rb:31 def ruby_version(version = T.unsafe(nil), comparison, major, minor, patch); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#9 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:9 module Concurrent::Utility::NativeExtensionLoader - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:11 def allow_c_extensions?; end - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#15 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:15 def c_extensions_loaded?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#19 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:19 def load_native_extensions; end private - # @return [Boolean] - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#50 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:50 def java_extensions_loaded?; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#38 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:38 def load_error_path(error); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#46 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:46 def set_c_extensions_loaded; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#54 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:54 def set_java_extensions_loaded; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb#58 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb:58 def try_load_c_extension(path); end end # @private # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#5 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:5 module Concurrent::Utility::NativeInteger extend ::Concurrent::Utility::NativeInteger - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#24 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:24 def ensure_integer(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#31 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:31 def ensure_integer_and_bounds(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#17 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:17 def ensure_lower_bound(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#37 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:37 def ensure_positive(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#44 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:44 def ensure_positive_and_no_zero(value); end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#10 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:10 def ensure_upper_bound(value); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#8 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:8 Concurrent::Utility::NativeInteger::MAX_VALUE = T.let(T.unsafe(nil), Integer) # http://stackoverflow.com/questions/535721/ruby-max-integer # -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/native_integer.rb#7 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/native_integer.rb:7 Concurrent::Utility::NativeInteger::MIN_VALUE = T.let(T.unsafe(nil), Integer) -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#10 +# @!visibility private +# +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:10 class Concurrent::Utility::ProcessorCounter - # @return [ProcessorCounter] a new instance of ProcessorCounter - # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#11 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:11 def initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#26 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:26 def available_processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#41 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:41 def cpu_quota; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#45 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:45 def cpu_shares; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#22 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:22 def physical_processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#18 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:18 def processor_count; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#104 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:104 def compute_cpu_quota; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#124 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:124 def compute_cpu_shares; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#59 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:59 def compute_physical_processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#51 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:51 def compute_processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#99 + # pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/utility/processor_counter.rb:99 def run(command); end end -# source://concurrent-ruby//lib/concurrent-ruby/concurrent/version.rb#2 +# pkg:gem/concurrent-ruby#lib/concurrent-ruby/concurrent/version.rb:2 Concurrent::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/constant_resolver@0.3.0.rbi b/sorbet/rbi/gems/constant_resolver@0.3.0.rbi index a80924e..0728882 100644 --- a/sorbet/rbi/gems/constant_resolver@0.3.0.rbi +++ b/sorbet/rbi/gems/constant_resolver@0.3.0.rbi @@ -16,35 +16,35 @@ # have no way of inferring the file it is defined in. You could argue though that inheritance means that another # constant with the same name exists in the inheriting class, and this view is sufficient for all our use cases. # -# source://constant_resolver//lib/constant_resolver/version.rb#3 +# pkg:gem/constant_resolver#lib/constant_resolver/version.rb:3 class ConstantResolver + # @param root_path [String] The root path of the application to analyze + # @param load_paths [Array] The autoload paths of the application. + # @param exclude [Array] Paths to exclude to scan for constants. + # @param inflector [Object] Any object that implements a `camelize` function. + # # @example usage in a Rails app # config = Rails.application.config # load_paths = (config.eager_load_paths + config.autoload_paths + config.autoload_once_paths) - # .map { |p| Pathname.new(p).relative_path_from(Rails.root).to_s } + # .map { |p| Pathname.new(p).relative_path_from(Rails.root).to_s } # ConstantResolver.new( - # root_path: Rails.root.to_s, - # load_paths: load_paths + # root_path: Rails.root.to_s, + # load_paths: load_paths # ) - # @param exclude [Array] Paths to exclude to scan for constants. - # @param inflector [Object] Any object that implements a `camelize` function. - # @param load_paths [Array] The autoload paths of the application. - # @param root_path [String] The root path of the application to analyze - # @return [ConstantResolver] a new instance of ConstantResolver # - # source://constant_resolver//lib/constant_resolver.rb#46 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:46 def initialize(root_path:, load_paths:, exclude: T.unsafe(nil), inflector: T.unsafe(nil)); end # @api private # - # source://constant_resolver//lib/constant_resolver.rb#122 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:122 def config; end # Maps constant names to file paths. # # @return [Hash] # - # source://constant_resolver//lib/constant_resolver.rb#78 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:78 def file_map; end # Resolve a constant via its name. @@ -55,46 +55,44 @@ class ConstantResolver # used, e.g. ["Apps", "Models"] for `Apps::Models`. Defaults to [] which means top level. # @return [ConstantResolver::ConstantContext] # - # source://constant_resolver//lib/constant_resolver.rb#63 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:63 def resolve(const_name, current_namespace_path: T.unsafe(nil)); end private - # @return [Boolean] - # - # source://constant_resolver//lib/constant_resolver.rb#131 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:131 def allowed?(path); end - # source://constant_resolver//lib/constant_resolver.rb#144 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:144 def ambiguous_constant_message(const_name, paths); end - # source://constant_resolver//lib/constant_resolver.rb#135 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:135 def coerce_load_paths(load_paths); end - # source://constant_resolver//lib/constant_resolver.rb#151 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:151 def glob_path(path); end - # source://constant_resolver//lib/constant_resolver.rb#155 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:155 def resolve_constant(const_name, current_namespace_path, original_name: T.unsafe(nil)); end - # source://constant_resolver//lib/constant_resolver.rb#168 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:168 def resolve_traversing_namespace_path(const_name, current_namespace_path); end end -# source://constant_resolver//lib/constant_resolver.rb#19 +# pkg:gem/constant_resolver#lib/constant_resolver.rb:19 class ConstantResolver::ConstantContext < ::Struct; end -# source://constant_resolver//lib/constant_resolver.rb#21 +# pkg:gem/constant_resolver#lib/constant_resolver.rb:21 class ConstantResolver::DefaultInflector - # source://constant_resolver//lib/constant_resolver.rb#22 + # pkg:gem/constant_resolver#lib/constant_resolver.rb:22 def camelize(string); end end -# source://constant_resolver//lib/constant_resolver.rb#18 +# pkg:gem/constant_resolver#lib/constant_resolver.rb:18 class ConstantResolver::Error < ::StandardError; end -# source://constant_resolver//lib/constant_resolver.rb#16 +# pkg:gem/constant_resolver#lib/constant_resolver.rb:16 ConstantResolver::RUBY_FILES_GLOB = T.let(T.unsafe(nil), String) -# source://constant_resolver//lib/constant_resolver/version.rb#4 +# pkg:gem/constant_resolver#lib/constant_resolver/version.rb:4 ConstantResolver::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/crass@1.0.6.rbi b/sorbet/rbi/gems/crass@1.0.6.rbi index 0979e2f..ef7740f 100644 --- a/sorbet/rbi/gems/crass@1.0.6.rbi +++ b/sorbet/rbi/gems/crass@1.0.6.rbi @@ -7,14 +7,14 @@ # A CSS parser based on the CSS Syntax Module Level 3 spec. # -# source://crass//lib/crass/token-scanner.rb#3 +# pkg:gem/crass#lib/crass/token-scanner.rb:3 module Crass class << self # Parses _input_ as a CSS stylesheet and returns a parse tree. # # See {Tokenizer#initialize} for _options_. # - # source://crass//lib/crass.rb#10 + # pkg:gem/crass#lib/crass.rb:10 def parse(input, options = T.unsafe(nil)); end # Parses _input_ as a string of CSS properties (such as the contents of an @@ -22,7 +22,7 @@ module Crass # # See {Tokenizer#initialize} for _options_. # - # source://crass//lib/crass.rb#18 + # pkg:gem/crass#lib/crass.rb:18 def parse_properties(input, options = T.unsafe(nil)); end end end @@ -31,23 +31,21 @@ end # # 5. http://dev.w3.org/csswg/css-syntax/#parsing # -# source://crass//lib/crass/parser.rb#10 +# pkg:gem/crass#lib/crass/parser.rb:10 class Crass::Parser # Initializes a parser based on the given _input_, which may be a CSS string # or an array of tokens. # # See {Tokenizer#initialize} for _options_. # - # @return [Parser] a new instance of Parser - # - # source://crass//lib/crass/parser.rb#126 + # pkg:gem/crass#lib/crass/parser.rb:126 def initialize(input, options = T.unsafe(nil)); end # Consumes an at-rule and returns it. # # 5.4.2. http://dev.w3.org/csswg/css-syntax-3/#consume-at-rule # - # source://crass//lib/crass/parser.rb#137 + # pkg:gem/crass#lib/crass/parser.rb:137 def consume_at_rule(input = T.unsafe(nil)); end # Consumes a component value and returns it, or `nil` if there are no more @@ -55,14 +53,14 @@ class Crass::Parser # # 5.4.6. http://dev.w3.org/csswg/css-syntax-3/#consume-a-component-value # - # source://crass//lib/crass/parser.rb#184 + # pkg:gem/crass#lib/crass/parser.rb:184 def consume_component_value(input = T.unsafe(nil)); end # Consumes a declaration and returns it, or `nil` on parse error. # # 5.4.5. http://dev.w3.org/csswg/css-syntax-3/#consume-a-declaration # - # source://crass//lib/crass/parser.rb#209 + # pkg:gem/crass#lib/crass/parser.rb:209 def consume_declaration(input = T.unsafe(nil)); end # Consumes a list of declarations and returns them. @@ -77,14 +75,14 @@ class Crass::Parser # # 5.4.4. http://dev.w3.org/csswg/css-syntax/#consume-a-list-of-declarations # - # source://crass//lib/crass/parser.rb#276 + # pkg:gem/crass#lib/crass/parser.rb:276 def consume_declarations(input = T.unsafe(nil), options = T.unsafe(nil)); end # Consumes a function and returns it. # # 5.4.8. http://dev.w3.org/csswg/css-syntax-3/#consume-a-function # - # source://crass//lib/crass/parser.rb#326 + # pkg:gem/crass#lib/crass/parser.rb:326 def consume_function(input = T.unsafe(nil)); end # Consumes a qualified rule and returns it, or `nil` if a parse error @@ -92,14 +90,14 @@ class Crass::Parser # # 5.4.3. http://dev.w3.org/csswg/css-syntax-3/#consume-a-qualified-rule # - # source://crass//lib/crass/parser.rb#357 + # pkg:gem/crass#lib/crass/parser.rb:357 def consume_qualified_rule(input = T.unsafe(nil)); end # Consumes a list of rules and returns them. # # 5.4.1. http://dev.w3.org/csswg/css-syntax/#consume-a-list-of-rules # - # source://crass//lib/crass/parser.rb#398 + # pkg:gem/crass#lib/crass/parser.rb:398 def consume_rules(flags = T.unsafe(nil)); end # Consumes and returns a simple block associated with the current input @@ -107,12 +105,12 @@ class Crass::Parser # # 5.4.7. http://dev.w3.org/csswg/css-syntax/#consume-a-simple-block # - # source://crass//lib/crass/parser.rb#434 + # pkg:gem/crass#lib/crass/parser.rb:434 def consume_simple_block(input = T.unsafe(nil)); end # Creates and returns a new parse node with the given _properties_. # - # source://crass//lib/crass/parser.rb#458 + # pkg:gem/crass#lib/crass/parser.rb:458 def create_node(type, properties = T.unsafe(nil)); end # Parses the given _input_ tokens into a selector node and returns it. @@ -120,34 +118,34 @@ class Crass::Parser # Doesn't bother splitting the selector list into individual selectors or # validating them. Feel free to do that yourself! It'll be fun! # - # source://crass//lib/crass/parser.rb#466 + # pkg:gem/crass#lib/crass/parser.rb:466 def create_selector(input); end # Creates a `:style_rule` node from the given qualified _rule_, and returns # it. # - # source://crass//lib/crass/parser.rb#474 + # pkg:gem/crass#lib/crass/parser.rb:474 def create_style_rule(rule); end # Parses a single component value and returns it. # # 5.3.7. http://dev.w3.org/csswg/css-syntax-3/#parse-a-component-value # - # source://crass//lib/crass/parser.rb#483 + # pkg:gem/crass#lib/crass/parser.rb:483 def parse_component_value(input = T.unsafe(nil)); end # Parses a list of component values and returns an array of parsed tokens. # # 5.3.8. http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-component-values # - # source://crass//lib/crass/parser.rb#510 + # pkg:gem/crass#lib/crass/parser.rb:510 def parse_component_values(input = T.unsafe(nil)); end # Parses a single declaration and returns it. # # 5.3.5. http://dev.w3.org/csswg/css-syntax/#parse-a-declaration # - # source://crass//lib/crass/parser.rb#524 + # pkg:gem/crass#lib/crass/parser.rb:524 def parse_declaration(input = T.unsafe(nil)); end # Parses a list of declarations and returns them. @@ -156,31 +154,31 @@ class Crass::Parser # # 5.3.6. http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-declarations # - # source://crass//lib/crass/parser.rb#552 + # pkg:gem/crass#lib/crass/parser.rb:552 def parse_declarations(input = T.unsafe(nil), options = T.unsafe(nil)); end # Parses a list of declarations and returns an array of `:property` nodes # (and any non-declaration nodes that were in the input). This is useful for # parsing the contents of an HTML element's `style` attribute. # - # source://crass//lib/crass/parser.rb#560 + # pkg:gem/crass#lib/crass/parser.rb:560 def parse_properties(input = T.unsafe(nil)); end # Parses a single rule and returns it. # # 5.3.4. http://dev.w3.org/csswg/css-syntax-3/#parse-a-rule # - # source://crass//lib/crass/parser.rb#586 + # pkg:gem/crass#lib/crass/parser.rb:586 def parse_rule(input = T.unsafe(nil)); end # Returns the unescaped value of a selector name or property declaration. # - # source://crass//lib/crass/parser.rb#615 + # pkg:gem/crass#lib/crass/parser.rb:615 def parse_value(nodes); end # {TokenScanner} wrapping the tokens generated from this parser's input. # - # source://crass//lib/crass/parser.rb#120 + # pkg:gem/crass#lib/crass/parser.rb:120 def tokens; end class << self @@ -191,7 +189,7 @@ class Crass::Parser # # 5.3.6. http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-declarations # - # source://crass//lib/crass/parser.rb#25 + # pkg:gem/crass#lib/crass/parser.rb:25 def parse_properties(input, options = T.unsafe(nil)); end # Parses CSS rules (such as the content of a `@media` block) and returns a @@ -202,7 +200,7 @@ class Crass::Parser # # 5.3.3. http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-rules # - # source://crass//lib/crass/parser.rb#36 + # pkg:gem/crass#lib/crass/parser.rb:36 def parse_rules(input, options = T.unsafe(nil)); end # Parses a CSS stylesheet and returns a parse tree. @@ -211,7 +209,7 @@ class Crass::Parser # # 5.3.2. http://dev.w3.org/csswg/css-syntax/#parse-a-stylesheet # - # source://crass//lib/crass/parser.rb#54 + # pkg:gem/crass#lib/crass/parser.rb:54 def parse_stylesheet(input, options = T.unsafe(nil)); end # Converts a node or array of nodes into a CSS string based on their @@ -221,180 +219,168 @@ class Crass::Parser # # * **:exclude_comments** - When `true`, comments will be excluded. # - # source://crass//lib/crass/parser.rb#74 + # pkg:gem/crass#lib/crass/parser.rb:74 def stringify(nodes, options = T.unsafe(nil)); end end end -# source://crass//lib/crass/parser.rb#11 +# pkg:gem/crass#lib/crass/parser.rb:11 Crass::Parser::BLOCK_END_TOKENS = T.let(T.unsafe(nil), Hash) # Similar to a StringScanner, but with extra functionality needed to tokenize # CSS while preserving the original text. # -# source://crass//lib/crass/scanner.rb#8 +# pkg:gem/crass#lib/crass/scanner.rb:8 class Crass::Scanner # Creates a Scanner instance for the given _input_ string or IO instance. # - # @return [Scanner] a new instance of Scanner - # - # source://crass//lib/crass/scanner.rb#25 + # pkg:gem/crass#lib/crass/scanner.rb:25 def initialize(input); end # Consumes the next character and returns it, advancing the pointer, or # an empty string if the end of the string has been reached. # - # source://crass//lib/crass/scanner.rb#34 + # pkg:gem/crass#lib/crass/scanner.rb:34 def consume; end # Consumes the rest of the string and returns it, advancing the pointer to # the end of the string. Returns an empty string is the end of the string # has already been reached. # - # source://crass//lib/crass/scanner.rb#46 + # pkg:gem/crass#lib/crass/scanner.rb:46 def consume_rest; end # Current character, or `nil` if the scanner hasn't yet consumed a # character, or is at the end of the string. # - # source://crass//lib/crass/scanner.rb#11 + # pkg:gem/crass#lib/crass/scanner.rb:11 def current; end # Returns `true` if the end of the string has been reached, `false` # otherwise. # - # @return [Boolean] - # - # source://crass//lib/crass/scanner.rb#57 + # pkg:gem/crass#lib/crass/scanner.rb:57 def eos?; end # Sets the marker to the position of the next character that will be # consumed. # - # source://crass//lib/crass/scanner.rb#63 + # pkg:gem/crass#lib/crass/scanner.rb:63 def mark; end # Returns the substring between {#marker} and {#pos}, without altering the # pointer. # - # source://crass//lib/crass/scanner.rb#69 + # pkg:gem/crass#lib/crass/scanner.rb:69 def marked; end # Current marker position. Use {#marked} to get the substring between # {#marker} and {#pos}. # - # source://crass//lib/crass/scanner.rb#15 + # pkg:gem/crass#lib/crass/scanner.rb:15 def marker; end # Current marker position. Use {#marked} to get the substring between # {#marker} and {#pos}. # - # source://crass//lib/crass/scanner.rb#15 + # pkg:gem/crass#lib/crass/scanner.rb:15 def marker=(_arg0); end # Returns up to _length_ characters starting at the current position, but # doesn't consume them. The number of characters returned may be less than # _length_ if the end of the string is reached. # - # source://crass//lib/crass/scanner.rb#80 + # pkg:gem/crass#lib/crass/scanner.rb:80 def peek(length = T.unsafe(nil)); end # Position of the next character that will be consumed. This is a character # position, not a byte position, so it accounts for multi-byte characters. # - # source://crass//lib/crass/scanner.rb#19 + # pkg:gem/crass#lib/crass/scanner.rb:19 def pos; end # Position of the next character that will be consumed. This is a character # position, not a byte position, so it accounts for multi-byte characters. # - # source://crass//lib/crass/scanner.rb#19 + # pkg:gem/crass#lib/crass/scanner.rb:19 def pos=(_arg0); end # Moves the pointer back one character without changing the value of # {#current}. The next call to {#consume} will re-consume the current # character. # - # source://crass//lib/crass/scanner.rb#87 + # pkg:gem/crass#lib/crass/scanner.rb:87 def reconsume; end # Resets the pointer to the beginning of the string. # - # source://crass//lib/crass/scanner.rb#93 + # pkg:gem/crass#lib/crass/scanner.rb:93 def reset; end # Tries to match _pattern_ at the current position. If it matches, the # matched substring will be returned and the pointer will be advanced. # Otherwise, `nil` will be returned. # - # source://crass//lib/crass/scanner.rb#103 + # pkg:gem/crass#lib/crass/scanner.rb:103 def scan(pattern); end # Scans the string until the _pattern_ is matched. Returns the substring up # to and including the end of the match, and advances the pointer. If there # is no match, `nil` is returned and the pointer is not advanced. # - # source://crass//lib/crass/scanner.rb#115 + # pkg:gem/crass#lib/crass/scanner.rb:115 def scan_until(pattern); end # String being scanned. # - # source://crass//lib/crass/scanner.rb#22 + # pkg:gem/crass#lib/crass/scanner.rb:22 def string; end end # Like {Scanner}, but for tokens! # -# source://crass//lib/crass/token-scanner.rb#6 +# pkg:gem/crass#lib/crass/token-scanner.rb:6 class Crass::TokenScanner - # @return [TokenScanner] a new instance of TokenScanner - # - # source://crass//lib/crass/token-scanner.rb#9 + # pkg:gem/crass#lib/crass/token-scanner.rb:9 def initialize(tokens); end # Executes the given block, collects all tokens that are consumed during its # execution, and returns them. # - # source://crass//lib/crass/token-scanner.rb#16 + # pkg:gem/crass#lib/crass/token-scanner.rb:16 def collect; end # Consumes the next token and returns it, advancing the pointer. Returns # `nil` if there is no next token. # - # source://crass//lib/crass/token-scanner.rb#24 + # pkg:gem/crass#lib/crass/token-scanner.rb:24 def consume; end - # Returns the value of attribute current. - # - # source://crass//lib/crass/token-scanner.rb#7 + # pkg:gem/crass#lib/crass/token-scanner.rb:7 def current; end # Returns the next token without consuming it, or `nil` if there is no next # token. # - # source://crass//lib/crass/token-scanner.rb#32 + # pkg:gem/crass#lib/crass/token-scanner.rb:32 def peek; end - # Returns the value of attribute pos. - # - # source://crass//lib/crass/token-scanner.rb#7 + # pkg:gem/crass#lib/crass/token-scanner.rb:7 def pos; end # Reconsumes the current token, moving the pointer back one position. # # http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/#reconsume-the-current-input-token # - # source://crass//lib/crass/token-scanner.rb#39 + # pkg:gem/crass#lib/crass/token-scanner.rb:39 def reconsume; end # Resets the pointer to the first token in the list. # - # source://crass//lib/crass/token-scanner.rb#44 + # pkg:gem/crass#lib/crass/token-scanner.rb:44 def reset; end - # Returns the value of attribute tokens. - # - # source://crass//lib/crass/token-scanner.rb#7 + # pkg:gem/crass#lib/crass/token-scanner.rb:7 def tokens; end end @@ -402,7 +388,7 @@ end # # 4. http://dev.w3.org/csswg/css-syntax/#tokenization # -# source://crass//lib/crass/tokenizer.rb#9 +# pkg:gem/crass#lib/crass/tokenizer.rb:9 class Crass::Tokenizer # Initializes a new Tokenizer. # @@ -415,30 +401,28 @@ class Crass::Tokenizer # such as the IE "*" hack will be preserved even though they violate # CSS 3 syntax rules. # - # @return [Tokenizer] a new instance of Tokenizer - # - # source://crass//lib/crass/tokenizer.rb#62 + # pkg:gem/crass#lib/crass/tokenizer.rb:62 def initialize(input, options = T.unsafe(nil)); end # Consumes a token and returns the token that was consumed. # # 4.3.1. http://dev.w3.org/csswg/css-syntax/#consume-a-token # - # source://crass//lib/crass/tokenizer.rb#70 + # pkg:gem/crass#lib/crass/tokenizer.rb:70 def consume; end # Consumes the remnants of a bad URL and returns the consumed text. # # 4.3.15. http://dev.w3.org/csswg/css-syntax/#consume-the-remnants-of-a-bad-url # - # source://crass//lib/crass/tokenizer.rb#275 + # pkg:gem/crass#lib/crass/tokenizer.rb:275 def consume_bad_url; end # Consumes comments and returns them, or `nil` if no comments were consumed. # # 4.3.2. http://dev.w3.org/csswg/css-syntax/#consume-comments # - # source://crass//lib/crass/tokenizer.rb#301 + # pkg:gem/crass#lib/crass/tokenizer.rb:301 def consume_comments; end # Consumes an escaped code point and returns its unescaped value. @@ -449,21 +433,21 @@ class Crass::Tokenizer # # 4.3.8. http://dev.w3.org/csswg/css-syntax/#consume-an-escaped-code-point # - # source://crass//lib/crass/tokenizer.rb#326 + # pkg:gem/crass#lib/crass/tokenizer.rb:326 def consume_escaped; end # Consumes an ident-like token and returns it. # # 4.3.4. http://dev.w3.org/csswg/css-syntax/#consume-an-ident-like-token # - # source://crass//lib/crass/tokenizer.rb#350 + # pkg:gem/crass#lib/crass/tokenizer.rb:350 def consume_ident; end # Consumes a name and returns it. # # 4.3.12. http://dev.w3.org/csswg/css-syntax/#consume-a-name # - # source://crass//lib/crass/tokenizer.rb#375 + # pkg:gem/crass#lib/crass/tokenizer.rb:375 def consume_name; end # Consumes a number and returns a 3-element array containing the number's @@ -472,14 +456,14 @@ class Crass::Tokenizer # # 4.3.13. http://dev.w3.org/csswg/css-syntax/#consume-a-number # - # source://crass//lib/crass/tokenizer.rb#407 + # pkg:gem/crass#lib/crass/tokenizer.rb:407 def consume_number; end # Consumes a numeric token and returns it. # # 4.3.3. http://dev.w3.org/csswg/css-syntax/#consume-a-numeric-token # - # source://crass//lib/crass/tokenizer.rb#430 + # pkg:gem/crass#lib/crass/tokenizer.rb:430 def consume_numeric; end # Consumes a string token that ends at the given character, and returns the @@ -487,7 +471,7 @@ class Crass::Tokenizer # # 4.3.5. http://dev.w3.org/csswg/css-syntax/#consume-a-string-token # - # source://crass//lib/crass/tokenizer.rb#469 + # pkg:gem/crass#lib/crass/tokenizer.rb:469 def consume_string(ending = T.unsafe(nil)); end # Consumes a Unicode range token and returns it. Assumes the initial "u+" or @@ -495,7 +479,7 @@ class Crass::Tokenizer # # 4.3.7. http://dev.w3.org/csswg/css-syntax/#consume-a-unicode-range-token # - # source://crass//lib/crass/tokenizer.rb#510 + # pkg:gem/crass#lib/crass/tokenizer.rb:510 def consume_unicode_range; end # Consumes a URL token and returns it. Assumes the original "url(" has @@ -503,26 +487,26 @@ class Crass::Tokenizer # # 4.3.6. http://dev.w3.org/csswg/css-syntax/#consume-a-url-token # - # source://crass//lib/crass/tokenizer.rb#542 + # pkg:gem/crass#lib/crass/tokenizer.rb:542 def consume_url; end # Converts a valid CSS number string into a number and returns the number. # # 4.3.14. http://dev.w3.org/csswg/css-syntax/#convert-a-string-to-a-number # - # source://crass//lib/crass/tokenizer.rb#590 + # pkg:gem/crass#lib/crass/tokenizer.rb:590 def convert_string_to_number(str); end # Creates and returns a new token with the given _properties_. # - # source://crass//lib/crass/tokenizer.rb#616 + # pkg:gem/crass#lib/crass/tokenizer.rb:616 def create_token(type, properties = T.unsafe(nil)); end # Preprocesses _input_ to prepare it for the tokenizer. # # 3.3. http://dev.w3.org/csswg/css-syntax/#input-preprocessing # - # source://crass//lib/crass/tokenizer.rb#627 + # pkg:gem/crass#lib/crass/tokenizer.rb:627 def preprocess(input); end # Returns `true` if the given three-character _text_ would start an @@ -531,9 +515,7 @@ class Crass::Tokenizer # # 4.3.10. http://dev.w3.org/csswg/css-syntax/#would-start-an-identifier # - # @return [Boolean] - # - # source://crass//lib/crass/tokenizer.rb#642 + # pkg:gem/crass#lib/crass/tokenizer.rb:642 def start_identifier?(text = T.unsafe(nil)); end # Returns `true` if the given three-character _text_ would start a number. @@ -542,14 +524,12 @@ class Crass::Tokenizer # # 4.3.11. http://dev.w3.org/csswg/css-syntax/#starts-with-a-number # - # @return [Boolean] - # - # source://crass//lib/crass/tokenizer.rb#666 + # pkg:gem/crass#lib/crass/tokenizer.rb:666 def start_number?(text = T.unsafe(nil)); end # Tokenizes the input stream and returns an array of tokens. # - # source://crass//lib/crass/tokenizer.rb#685 + # pkg:gem/crass#lib/crass/tokenizer.rb:685 def tokenize; end # Returns `true` if the given two-character _text_ is the beginning of a @@ -558,9 +538,7 @@ class Crass::Tokenizer # # 4.3.9. http://dev.w3.org/csswg/css-syntax/#starts-with-a-valid-escape # - # @return [Boolean] - # - # source://crass//lib/crass/tokenizer.rb#702 + # pkg:gem/crass#lib/crass/tokenizer.rb:702 def valid_escape?(text = T.unsafe(nil)); end class << self @@ -569,55 +547,55 @@ class Crass::Tokenizer # # See {#initialize} for _options_. # - # source://crass//lib/crass/tokenizer.rb#45 + # pkg:gem/crass#lib/crass/tokenizer.rb:45 def tokenize(input, options = T.unsafe(nil)); end end end -# source://crass//lib/crass/tokenizer.rb#10 +# pkg:gem/crass#lib/crass/tokenizer.rb:10 Crass::Tokenizer::RE_COMMENT_CLOSE = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#11 +# pkg:gem/crass#lib/crass/tokenizer.rb:11 Crass::Tokenizer::RE_DIGIT = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#12 +# pkg:gem/crass#lib/crass/tokenizer.rb:12 Crass::Tokenizer::RE_ESCAPE = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#13 +# pkg:gem/crass#lib/crass/tokenizer.rb:13 Crass::Tokenizer::RE_HEX = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#14 +# pkg:gem/crass#lib/crass/tokenizer.rb:14 Crass::Tokenizer::RE_NAME = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#15 +# pkg:gem/crass#lib/crass/tokenizer.rb:15 Crass::Tokenizer::RE_NAME_START = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#16 +# pkg:gem/crass#lib/crass/tokenizer.rb:16 Crass::Tokenizer::RE_NON_PRINTABLE = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#17 +# pkg:gem/crass#lib/crass/tokenizer.rb:17 Crass::Tokenizer::RE_NUMBER_DECIMAL = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#18 +# pkg:gem/crass#lib/crass/tokenizer.rb:18 Crass::Tokenizer::RE_NUMBER_EXPONENT = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#19 +# pkg:gem/crass#lib/crass/tokenizer.rb:19 Crass::Tokenizer::RE_NUMBER_SIGN = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#21 +# pkg:gem/crass#lib/crass/tokenizer.rb:21 Crass::Tokenizer::RE_NUMBER_STR = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#33 +# pkg:gem/crass#lib/crass/tokenizer.rb:33 Crass::Tokenizer::RE_QUOTED_URL_START = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#35 +# pkg:gem/crass#lib/crass/tokenizer.rb:35 Crass::Tokenizer::RE_UNICODE_RANGE_END = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#34 +# pkg:gem/crass#lib/crass/tokenizer.rb:34 Crass::Tokenizer::RE_UNICODE_RANGE_START = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#36 +# pkg:gem/crass#lib/crass/tokenizer.rb:36 Crass::Tokenizer::RE_WHITESPACE = T.let(T.unsafe(nil), Regexp) -# source://crass//lib/crass/tokenizer.rb#37 +# pkg:gem/crass#lib/crass/tokenizer.rb:37 Crass::Tokenizer::RE_WHITESPACE_ANCHORED = T.let(T.unsafe(nil), Regexp) diff --git a/sorbet/rbi/gems/date@3.5.1.rbi b/sorbet/rbi/gems/date@3.5.1.rbi index 794e846..2135e86 100644 --- a/sorbet/rbi/gems/date@3.5.1.rbi +++ b/sorbet/rbi/gems/date@3.5.1.rbi @@ -5,83 +5,83 @@ # Please instead update this file by running `bin/tapioca gem date`. -# source://date//lib/date.rb#6 +# pkg:gem/date#lib/date.rb:4 class Date include ::Comparable - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def initialize(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def +(other); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def -(other); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def <<(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def <=>(other); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def ===(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def >>(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def ajd; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def amjd; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def asctime; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def ctime; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def cwday; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def cweek; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def cwyear; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def day; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def day_fraction; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def deconstruct_keys(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def downto(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def england; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def eql?(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def friday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def gregorian; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def gregorian?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def hash; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def httpdate; end # call-seq: @@ -89,315 +89,303 @@ class Date # # Returns +false+ # - # @return [Boolean] - # - # source://date//lib/date.rb#13 + # pkg:gem/date#lib/date.rb:13 def infinite?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def inspect; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def iso8601; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def italy; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def jd; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def jisx0301; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def julian; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def julian?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def ld; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def leap?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def marshal_dump; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def marshal_load(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def mday; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def mjd; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def mon; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def monday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def month; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def new_start(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def next; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def next_day(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def next_month(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def next_year(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def prev_day(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def prev_month(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def prev_year(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def rfc2822; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def rfc3339; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def rfc822; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def saturday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def start; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def step(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def strftime(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def succ; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def sunday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def thursday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def to_date; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def to_datetime; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def to_s; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def to_time(form = T.unsafe(nil)); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def tuesday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def upto(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def wday; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def wednesday?; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def xmlschema; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def yday; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def year; end private - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def hour; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def initialize_copy(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def min; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def minute; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def sec; end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def second; end class << self - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _httpdate(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _iso8601(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _jisx0301(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _load(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _parse(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _rfc2822(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _rfc3339(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _rfc822(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _strptime(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def _xmlschema(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def civil(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def commercial(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def gregorian_leap?(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def httpdate(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def iso8601(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def jd(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def jisx0301(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def julian_leap?(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def leap?(_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def ordinal(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def parse(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def rfc2822(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def rfc3339(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def rfc822(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def strptime(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def today(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def valid_civil?(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def valid_commercial?(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def valid_date?(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def valid_jd?(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def valid_ordinal?(*_arg0); end - # source://date//lib/date.rb#4 + # pkg:gem/date#lib/date.rb:4 def xmlschema(*_arg0); end end end -# source://date//lib/date.rb#17 +# pkg:gem/date#lib/date.rb:17 class Date::Infinity < ::Numeric - # @return [Infinity] a new instance of Infinity - # - # source://date//lib/date.rb#19 + # pkg:gem/date#lib/date.rb:19 def initialize(d = T.unsafe(nil)); end - # source://date//lib/date.rb#33 + # pkg:gem/date#lib/date.rb:33 def +@; end - # source://date//lib/date.rb#32 + # pkg:gem/date#lib/date.rb:32 def -@; end - # source://date//lib/date.rb#35 + # pkg:gem/date#lib/date.rb:35 def <=>(other); end - # source://date//lib/date.rb#30 + # pkg:gem/date#lib/date.rb:30 def abs; end - # source://date//lib/date.rb#51 + # pkg:gem/date#lib/date.rb:51 def coerce(other); end - # @return [Boolean] - # - # source://date//lib/date.rb#26 + # pkg:gem/date#lib/date.rb:26 def finite?; end - # @return [Boolean] - # - # source://date//lib/date.rb#27 + # pkg:gem/date#lib/date.rb:27 def infinite?; end - # @return [Boolean] - # - # source://date//lib/date.rb#28 + # pkg:gem/date#lib/date.rb:28 def nan?; end - # source://date//lib/date.rb#59 + # pkg:gem/date#lib/date.rb:59 def to_f; end - # @return [Boolean] - # - # source://date//lib/date.rb#25 + # pkg:gem/date#lib/date.rb:25 def zero?; end protected - # source://date//lib/date.rb#21 + # pkg:gem/date#lib/date.rb:21 def d; end end -# source://date//lib/date.rb#7 +# pkg:gem/date#lib/date.rb:7 Date::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/drb@2.2.3.rbi b/sorbet/rbi/gems/drb@2.2.3.rbi index 7bd8c98..a8dd54b 100644 --- a/sorbet/rbi/gems/drb@2.2.3.rbi +++ b/sorbet/rbi/gems/drb@2.2.3.rbi @@ -291,7 +291,7 @@ # 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 +# pkg:gem/drb#lib/drb/eq.rb:2 module DRb private @@ -300,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#1882 + # pkg:gem/drb#lib/drb/drb.rb:1882 def config; end # Get the 'current' server. @@ -314,16 +314,14 @@ module DRb # If the above rule fails to find a server, a DRbServerNotFound # error is raised. # - # @raise [DRbServerNotFound] - # - # source://drb//lib/drb/drb.rb#1839 + # pkg:gem/drb#lib/drb/drb.rb:1839 def current_server; end # Retrieves the server with the given +uri+. # # See also regist_server and remove_server. # - # source://drb//lib/drb/drb.rb#1984 + # pkg:gem/drb#lib/drb/drb.rb:1984 def fetch_server(uri); end # Get the front object of the current server. @@ -331,21 +329,19 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1893 + # pkg:gem/drb#lib/drb/drb.rb:1893 def front; end # Is +uri+ the URI for the current local server? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1872 + # pkg:gem/drb#lib/drb/drb.rb:1872 def here?(uri); end # Set the default ACL to +acl+. # # See DRb::DRbServer.default_acl. # - # source://drb//lib/drb/drb.rb#1938 + # pkg:gem/drb#lib/drb/drb.rb:1938 def install_acl(acl); end # Set the default id conversion object. @@ -355,24 +351,24 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb//lib/drb/drb.rb#1930 + # pkg:gem/drb#lib/drb/drb.rb:1930 def install_id_conv(idconv); end - # source://drb//lib/drb/drb.rb#1944 + # pkg:gem/drb#lib/drb/drb.rb:1944 def mutex; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb//lib/drb/drb.rb#1826 + # pkg:gem/drb#lib/drb/drb.rb:1826 def primary_server; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb//lib/drb/drb.rb#1826 + # pkg:gem/drb#lib/drb/drb.rb:1826 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -388,12 +384,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb//lib/drb/drb.rb#1962 + # pkg:gem/drb#lib/drb/drb.rb:1962 def regist_server(server); end # Removes +server+ from the list of registered servers. # - # source://drb//lib/drb/drb.rb#1971 + # pkg:gem/drb#lib/drb/drb.rb:1971 def remove_server(server); end # Start a dRuby server locally. @@ -412,7 +408,7 @@ module DRb # # See DRbServer::new. # - # source://drb//lib/drb/drb.rb#1818 + # pkg:gem/drb#lib/drb/drb.rb:1818 def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end # Stop the local dRuby server. @@ -420,14 +416,14 @@ module DRb # This operates on the primary server. If there is no primary # server currently running, it is a noop. # - # source://drb//lib/drb/drb.rb#1851 + # pkg:gem/drb#lib/drb/drb.rb:1851 def stop_service; end # Get the thread of the primary server. # # This returns nil if there is no primary server. See #primary_server. # - # source://drb//lib/drb/drb.rb#1919 + # pkg:gem/drb#lib/drb/drb.rb:1919 def thread; end # Get a reference id for an object using the current server. @@ -435,7 +431,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1910 + # pkg:gem/drb#lib/drb/drb.rb:1910 def to_id(obj); end # Convert a reference into an object using the current server. @@ -443,14 +439,14 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1902 + # pkg:gem/drb#lib/drb/drb.rb:1902 def to_obj(ref); end # Get the URI defining the local dRuby space. # # This is the URI of the current server. See #current_server. # - # source://drb//lib/drb/drb.rb#1860 + # pkg:gem/drb#lib/drb/drb.rb:1860 def uri; end class << self @@ -459,7 +455,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#1887 + # pkg:gem/drb#lib/drb/drb.rb:1887 def config; end # Get the 'current' server. @@ -473,16 +469,14 @@ module DRb # If the above rule fails to find a server, a DRbServerNotFound # error is raised. # - # @raise [DRbServerNotFound] - # - # source://drb//lib/drb/drb.rb#1845 + # pkg:gem/drb#lib/drb/drb.rb:1845 def current_server; end # Retrieves the server with the given +uri+. # # See also regist_server and remove_server. # - # source://drb//lib/drb/drb.rb#1987 + # pkg:gem/drb#lib/drb/drb.rb:1987 def fetch_server(uri); end # Get the front object of the current server. @@ -490,21 +484,19 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1896 + # pkg:gem/drb#lib/drb/drb.rb:1896 def front; end # Is +uri+ the URI for the current local server? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1876 + # pkg:gem/drb#lib/drb/drb.rb:1876 def here?(uri); end # Set the default ACL to +acl+. # # See DRb::DRbServer.default_acl. # - # source://drb//lib/drb/drb.rb#1941 + # pkg:gem/drb#lib/drb/drb.rb:1941 def install_acl(acl); end # Set the default id conversion object. @@ -514,24 +506,20 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb//lib/drb/drb.rb#1933 + # pkg:gem/drb#lib/drb/drb.rb:1933 def install_id_conv(idconv); end - # source://drb//lib/drb/drb.rb#1947 + # pkg:gem/drb#lib/drb/drb.rb:1947 def mutex; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb//lib/drb/drb.rb#1827 + # pkg:gem/drb#lib/drb/drb.rb:1827 def primary_server; end - # The primary local dRuby server. - # - # This is the server created by the #start_service call. - # - # source://drb//lib/drb/drb.rb#1827 + # pkg:gem/drb#lib/drb/drb.rb:1827 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -547,12 +535,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb//lib/drb/drb.rb#1968 + # pkg:gem/drb#lib/drb/drb.rb:1968 def regist_server(server); end # Removes +server+ from the list of registered servers. # - # source://drb//lib/drb/drb.rb#1979 + # pkg:gem/drb#lib/drb/drb.rb:1979 def remove_server(server); end # Start a dRuby server locally. @@ -571,7 +559,7 @@ module DRb # # See DRbServer::new. # - # source://drb//lib/drb/drb.rb#1821 + # pkg:gem/drb#lib/drb/drb.rb:1821 def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end # Stop the local dRuby server. @@ -579,14 +567,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#1855 + # pkg:gem/drb#lib/drb/drb.rb:1855 def stop_service; end # Get the thread of the primary server. # # This returns nil if there is no primary server. See #primary_server. # - # source://drb//lib/drb/drb.rb#1922 + # pkg:gem/drb#lib/drb/drb.rb:1922 def thread; end # Get a reference id for an object using the current server. @@ -594,7 +582,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1913 + # pkg:gem/drb#lib/drb/drb.rb:1913 def to_id(obj); end # Convert a reference into an object using the current server. @@ -602,23 +590,22 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1914 + # pkg:gem/drb#lib/drb/drb.rb:1914 def to_obj(ref); end # Get the URI defining the local dRuby space. # # This is the URI of the current server. See #current_server. # - # source://drb//lib/drb/drb.rb#1869 + # pkg:gem/drb#lib/drb/drb.rb:1869 def uri; end end end -# # This is an internal singleton instance. This must not be used # by users. # -# source://drb//lib/drb/drb.rb#382 +# pkg:gem/drb#lib/drb/drb.rb:382 DRb::DRB_OBJECT_SPACE = T.let(T.unsafe(nil), DRb::DRbObjectSpace) # An Array wrapper that can be sent to another server via DRb. @@ -626,21 +613,19 @@ DRb::DRB_OBJECT_SPACE = T.let(T.unsafe(nil), DRb::DRbObjectSpace) # All entries in the array will be dumped or be references that point to # the local server. # -# source://drb//lib/drb/drb.rb#546 +# pkg:gem/drb#lib/drb/drb.rb:546 class DRb::DRbArray # Creates a new DRbArray that either dumps or wraps all the items in the # Array +ary+ so they can be loaded by a remote DRb server. # - # @return [DRbArray] a new instance of DRbArray - # - # source://drb//lib/drb/drb.rb#551 + # pkg:gem/drb#lib/drb/drb.rb:551 def initialize(ary); end - # source://drb//lib/drb/drb.rb#570 + # pkg:gem/drb#lib/drb/drb.rb:570 def _dump(lv); end class << self - # source://drb//lib/drb/drb.rb#566 + # pkg:gem/drb#lib/drb/drb.rb:566 def _load(s); end end end @@ -655,35 +640,31 @@ end # This class is used internally by DRbObject. The user does # not normally need to deal with it directly. # -# source://drb//lib/drb/drb.rb#1284 +# pkg:gem/drb#lib/drb/drb.rb:1284 class DRb::DRbConn - # @return [DRbConn] a new instance of DRbConn - # - # source://drb//lib/drb/drb.rb#1345 + # pkg:gem/drb#lib/drb/drb.rb:1345 def initialize(remote_uri); end - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1361 + # pkg:gem/drb#lib/drb/drb.rb:1361 def alive?; end - # source://drb//lib/drb/drb.rb#1356 + # pkg:gem/drb#lib/drb/drb.rb:1356 def close; end - # source://drb//lib/drb/drb.rb#1351 + # pkg:gem/drb#lib/drb/drb.rb:1351 def send_message(ref, msg_id, arg, block); end - # source://drb//lib/drb/drb.rb#1349 + # pkg:gem/drb#lib/drb/drb.rb:1349 def uri; end class << self - # source://drb//lib/drb/drb.rb#1287 + # pkg:gem/drb#lib/drb/drb.rb:1287 def make_pool; end - # source://drb//lib/drb/drb.rb#1325 + # pkg:gem/drb#lib/drb/drb.rb:1325 def open(remote_uri); end - # source://drb//lib/drb/drb.rb#1320 + # pkg:gem/drb#lib/drb/drb.rb:1320 def stop_pool; end end end @@ -698,14 +679,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#393 +# pkg:gem/drb#lib/drb/drb.rb:393 class DRb::DRbIdConv # Convert an object into a reference id. # # This implementation returns the object's __id__ in the local # object space. # - # source://drb//lib/drb/drb.rb#407 + # pkg:gem/drb#lib/drb/drb.rb:407 def to_id(obj); end # Convert an object reference id to an object. @@ -713,7 +694,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#399 + # pkg:gem/drb#lib/drb/drb.rb:399 def to_obj(ref); end end @@ -727,42 +708,41 @@ end # The user does not have to directly deal with this object in # normal use. # -# source://drb//lib/drb/drb.rb#584 +# pkg:gem/drb#lib/drb/drb.rb:584 class DRb::DRbMessage - # @return [DRbMessage] a new instance of DRbMessage - # - # source://drb//lib/drb/drb.rb#585 + # pkg:gem/drb#lib/drb/drb.rb:585 def initialize(config); end - # source://drb//lib/drb/drb.rb#590 + # pkg:gem/drb#lib/drb/drb.rb:590 def dump(obj, error = T.unsafe(nil)); end - # @raise [DRbConnError] - # - # source://drb//lib/drb/drb.rb#607 + # pkg:gem/drb#lib/drb/drb.rb:607 def load(soc); end - # source://drb//lib/drb/drb.rb#667 + # pkg:gem/drb#lib/drb/drb.rb:667 def recv_reply(stream); end - # @raise [DRbConnError] - # - # source://drb//lib/drb/drb.rb#647 + # pkg:gem/drb#lib/drb/drb.rb:647 def recv_request(stream); end - # source://drb//lib/drb/drb.rb#661 + # pkg:gem/drb#lib/drb/drb.rb:661 def send_reply(stream, succ, result); end - # source://drb//lib/drb/drb.rb#633 + # pkg:gem/drb#lib/drb/drb.rb:633 def send_request(stream, ref, msg_id, arg, b); end private - # source://drb//lib/drb/drb.rb#674 + # pkg:gem/drb#lib/drb/drb.rb:674 def make_proxy(obj, error = T.unsafe(nil)); end end -# source://drb//lib/drb/eq.rb#3 +# Object wrapping a reference to a remote drb object. +# +# Method calls on this object are relayed to the remote +# object that this object is a stub for. +# +# pkg:gem/drb#lib/drb/eq.rb:3 class DRb::DRbObject # Create a new remote object stub. # @@ -770,51 +750,47 @@ class DRb::DRbObject # this is +nil+. +uri+ is the URI of the remote object that this # will be a stub for. # - # @return [DRbObject] a new instance of DRbObject - # - # source://drb//lib/drb/drb.rb#1117 + # pkg:gem/drb#lib/drb/drb.rb:1117 def initialize(obj, uri = T.unsafe(nil)); end - # source://drb//lib/drb/eq.rb#4 + # pkg:gem/drb#lib/drb/eq.rb:4 def ==(other); end # Get the reference of the object, if local. # - # source://drb//lib/drb/drb.rb#1143 + # pkg:gem/drb#lib/drb/drb.rb:1143 def __drbref; end # Get the URI of the remote object. # - # source://drb//lib/drb/drb.rb#1138 + # pkg:gem/drb#lib/drb/drb.rb:1138 def __drburi; end # Marshall this object. # # The URI and ref of the object are marshalled. # - # source://drb//lib/drb/drb.rb#1108 + # pkg:gem/drb#lib/drb/drb.rb:1108 def _dump(lv); end - # source://drb//lib/drb/eq.rb#13 + # pkg:gem/drb#lib/drb/eq.rb:13 def eql?(other); end - # source://drb//lib/drb/eq.rb#9 + # pkg:gem/drb#lib/drb/eq.rb:9 def hash; end - # source://drb//lib/drb/drb.rb#1163 + # pkg:gem/drb#lib/drb/drb.rb:1163 def method_missing(msg_id, *a, **_arg2, &b); end - # source://drb//lib/drb/drb.rb#1215 + # pkg:gem/drb#lib/drb/drb.rb:1215 def pretty_print(q); end - # source://drb//lib/drb/drb.rb#1219 + # pkg:gem/drb#lib/drb/drb.rb:1219 def pretty_print_cycle(q); end # Routes respond_to? to the referenced remote object. # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1151 + # pkg:gem/drb#lib/drb/drb.rb:1151 def respond_to?(msg_id, priv = T.unsafe(nil)); end class << self @@ -824,46 +800,44 @@ 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#1079 + # pkg:gem/drb#lib/drb/drb.rb:1079 def _load(s); end # Creates a DRb::DRbObject given the reference information to the remote # host +uri+ and object +ref+. # - # source://drb//lib/drb/drb.rb#1093 + # pkg:gem/drb#lib/drb/drb.rb:1093 def new_with(uri, ref); end # Create a new DRbObject from a URI alone. # - # source://drb//lib/drb/drb.rb#1101 + # pkg:gem/drb#lib/drb/drb.rb:1101 def new_with_uri(uri); end # Returns a modified backtrace from +result+ with the +uri+ where each call # in the backtrace came from. # - # source://drb//lib/drb/drb.rb#1201 + # pkg:gem/drb#lib/drb/drb.rb:1201 def prepare_backtrace(uri, result); end # Given the +uri+ of another host executes the block provided. # - # source://drb//lib/drb/drb.rb#1188 + # pkg:gem/drb#lib/drb/drb.rb:1188 def with_friend(uri); end end end -# source://drb//lib/drb/drb.rb#351 +# pkg:gem/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 + # pkg:gem/drb#lib/drb/drb.rb:357 def initialize; end - # source://drb//lib/drb/drb.rb#362 + # pkg:gem/drb#lib/drb/drb.rb:362 def to_id(obj); end - # source://drb//lib/drb/drb.rb#369 + # pkg:gem/drb#lib/drb/drb.rb:369 def to_obj(ref); end end @@ -934,16 +908,16 @@ end # and HTTP0 in sample/http0.rb and sample/http0serv.rb in the full # drb distribution. # -# source://drb//lib/drb/drb.rb#749 +# pkg:gem/drb#lib/drb/drb.rb:749 module DRb::DRbProtocol private # Add a new protocol to the DRbProtocol module. # - # source://drb//lib/drb/drb.rb#752 + # pkg:gem/drb#lib/drb/drb.rb:752 def add_protocol(prot); end - # source://drb//lib/drb/drb.rb#830 + # pkg:gem/drb#lib/drb/drb.rb:830 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -954,9 +928,7 @@ module DRb::DRbProtocol # URI, then a DRbBadURI error is raised. If a protocol accepts the # URI, but an error occurs in opening it, a DRbConnError is raised. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#764 + # pkg:gem/drb#lib/drb/drb.rb:764 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -969,9 +941,7 @@ module DRb::DRbProtocol # accepts the URI, but an error occurs in opening it, the underlying # error is passed on to the caller. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#792 + # pkg:gem/drb#lib/drb/drb.rb:792 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -981,18 +951,16 @@ module DRb::DRbProtocol # URI by raising a DRbBadScheme error. If no protocol recognises the # URI, then a DRbBadURI error is raised. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#813 + # pkg:gem/drb#lib/drb/drb.rb:813 def uri_option(uri, config, first = T.unsafe(nil)); end class << self # Add a new protocol to the DRbProtocol module. # - # source://drb//lib/drb/drb.rb#755 + # pkg:gem/drb#lib/drb/drb.rb:755 def add_protocol(prot); end - # source://drb//lib/drb/drb.rb#835 + # pkg:gem/drb#lib/drb/drb.rb:835 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -1003,9 +971,7 @@ module DRb::DRbProtocol # URI, then a DRbBadURI error is raised. If a protocol accepts the # URI, but an error occurs in opening it, a DRbConnError is raised. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#781 + # pkg:gem/drb#lib/drb/drb.rb:781 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -1018,9 +984,7 @@ module DRb::DRbProtocol # accepts the URI, but an error occurs in opening it, the underlying # error is passed on to the caller. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#805 + # pkg:gem/drb#lib/drb/drb.rb:805 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -1030,27 +994,23 @@ module DRb::DRbProtocol # URI by raising a DRbBadScheme error. If no protocol recognises the # URI, then a DRbBadURI error is raised. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#828 + # pkg:gem/drb#lib/drb/drb.rb:828 def uri_option(uri, config, first = T.unsafe(nil)); end end end # An exception wrapping an error object # -# source://drb//lib/drb/drb.rb#459 +# pkg:gem/drb#lib/drb/drb.rb:459 class DRb::DRbRemoteError < ::DRb::DRbError # Creates a new remote error that wraps the Exception +error+ # - # @return [DRbRemoteError] a new instance of DRbRemoteError - # - # source://drb//lib/drb/drb.rb#462 + # pkg:gem/drb#lib/drb/drb.rb:462 def initialize(error); end # the class of the error, as a string. # - # source://drb//lib/drb/drb.rb#469 + # pkg:gem/drb#lib/drb/drb.rb:469 def reason; end end @@ -1066,7 +1026,7 @@ end # Unless multiple servers are being used, the local DRbServer is normally # started by calling DRb.start_service. # -# source://drb//lib/drb/drb.rb#1378 +# pkg:gem/drb#lib/drb/drb.rb:1378 class DRb::DRbServer # Create a new DRbServer instance. # @@ -1111,16 +1071,12 @@ class DRb::DRbServer # # The server will immediately start running in its own thread. # - # @return [DRbServer] a new instance of DRbServer - # - # source://drb//lib/drb/drb.rb#1479 + # pkg:gem/drb#lib/drb/drb.rb:1479 def initialize(uri = T.unsafe(nil), front = T.unsafe(nil), config_or_acl = T.unsafe(nil)); end # Is this server alive? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1534 + # pkg:gem/drb#lib/drb/drb.rb:1534 def alive?; end # Check that a method is callable via dRuby. @@ -1132,14 +1088,12 @@ class DRb::DRbServer # SecurityError is thrown. If the method is private or undefined, # a NameError is thrown. # - # @raise [ArgumentError] - # - # source://drb//lib/drb/drb.rb#1622 + # pkg:gem/drb#lib/drb/drb.rb:1622 def check_insecure_method(obj, msg_id); end # The configuration of this DRbServer # - # source://drb//lib/drb/drb.rb#1521 + # pkg:gem/drb#lib/drb/drb.rb:1521 def config; end # The front object of the DRbServer. @@ -1147,19 +1101,17 @@ class DRb::DRbServer # This object receives remote method calls made on the server's # URI alone, with an object id. # - # source://drb//lib/drb/drb.rb#1518 + # pkg:gem/drb#lib/drb/drb.rb:1518 def front; end # Is +uri+ the URI for this server? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1539 + # pkg:gem/drb#lib/drb/drb.rb:1539 def here?(uri); end # Stop this server. # - # source://drb//lib/drb/drb.rb#1544 + # pkg:gem/drb#lib/drb/drb.rb:1544 def stop_service; end # The main thread of this DRbServer. @@ -1168,36 +1120,36 @@ class DRb::DRbServer # from clients, not that handles each client's request-response # session. # - # source://drb//lib/drb/drb.rb#1512 + # pkg:gem/drb#lib/drb/drb.rb:1512 def thread; end # Convert a local object to a dRuby reference. # - # source://drb//lib/drb/drb.rb#1561 + # pkg:gem/drb#lib/drb/drb.rb:1561 def to_id(obj); end # Convert a dRuby reference to the local object it refers to. # - # source://drb//lib/drb/drb.rb#1554 + # pkg:gem/drb#lib/drb/drb.rb:1554 def to_obj(ref); end # The URI of this DRbServer. # - # source://drb//lib/drb/drb.rb#1505 + # pkg:gem/drb#lib/drb/drb.rb:1505 def uri; end # Get whether the server is in verbose mode. # # In verbose mode, failed calls are logged to stdout. # - # source://drb//lib/drb/drb.rb#1531 + # pkg:gem/drb#lib/drb/drb.rb:1531 def verbose; end # Set whether to operate in verbose mode. # # In verbose mode, failed calls are logged to stdout. # - # source://drb//lib/drb/drb.rb#1526 + # pkg:gem/drb#lib/drb/drb.rb:1526 def verbose=(v); end private @@ -1205,17 +1157,15 @@ class DRb::DRbServer # Coerce an object to a string, providing our own representation if # to_s is not defined for the object. # - # source://drb//lib/drb/drb.rb#1608 + # pkg:gem/drb#lib/drb/drb.rb:1608 def any_to_s(obj); end - # source://drb//lib/drb/drb.rb#1746 + # pkg:gem/drb#lib/drb/drb.rb:1746 def error_print(exception); end # Has a method been included in the list of insecure methods? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1602 + # pkg:gem/drb#lib/drb/drb.rb:1602 def insecure_method?(msg_id); end # The main loop performed by a DRbServer's internal thread. @@ -1226,15 +1176,15 @@ class DRb::DRbServer # returning responses, until the client closes the connection # or a local method call fails. # - # source://drb//lib/drb/drb.rb#1764 + # pkg:gem/drb#lib/drb/drb.rb:1764 def main_loop; end # Starts the DRb main loop in a new thread. # - # source://drb//lib/drb/drb.rb#1583 + # pkg:gem/drb#lib/drb/drb.rb:1583 def run; end - # source://drb//lib/drb/drb.rb#1568 + # pkg:gem/drb#lib/drb/drb.rb:1568 def shutdown; end class << self @@ -1242,75 +1192,73 @@ class DRb::DRbServer # # See also DRb::ACL and #new() # - # source://drb//lib/drb/drb.rb#1403 + # pkg:gem/drb#lib/drb/drb.rb:1403 def default_acl(acl); end # Set the default value for the :argc_limit option. # # See #new(). The initial default value is 256. # - # source://drb//lib/drb/drb.rb#1389 + # pkg:gem/drb#lib/drb/drb.rb:1389 def default_argc_limit(argc); end # Set the default value for the :id_conv option. # # See #new(). The initial default value is a DRbIdConv instance. # - # source://drb//lib/drb/drb.rb#1410 + # pkg:gem/drb#lib/drb/drb.rb:1410 def default_id_conv(idconv); end # Set the default value for the :load_limit option. # # See #new(). The initial default value is 25 MB. # - # source://drb//lib/drb/drb.rb#1396 + # pkg:gem/drb#lib/drb/drb.rb:1396 def default_load_limit(sz); end - # source://drb//lib/drb/drb.rb#1426 + # pkg:gem/drb#lib/drb/drb.rb:1426 def make_config(hash = T.unsafe(nil)); end # Get the default value of the :verbose option. # - # source://drb//lib/drb/drb.rb#1422 + # pkg:gem/drb#lib/drb/drb.rb:1422 def verbose; end # Set the default value of the :verbose option. # # See #new(). The initial default value is false. # - # source://drb//lib/drb/drb.rb#1417 + # pkg:gem/drb#lib/drb/drb.rb:1417 def verbose=(on); end end end -# source://drb//lib/drb/drb.rb#1652 +# pkg:gem/drb#lib/drb/drb.rb:1652 class DRb::DRbServer::InvokeMethod - # @return [InvokeMethod] a new instance of InvokeMethod - # - # source://drb//lib/drb/drb.rb#1653 + # pkg:gem/drb#lib/drb/drb.rb:1653 def initialize(drb_server, client); end - # source://drb//lib/drb/drb.rb#1658 + # pkg:gem/drb#lib/drb/drb.rb:1658 def perform; end private - # source://drb//lib/drb/drb.rb#1704 + # pkg:gem/drb#lib/drb/drb.rb:1704 def block_yield(x); end - # source://drb//lib/drb/drb.rb#1695 + # pkg:gem/drb#lib/drb/drb.rb:1695 def check_insecure_method; end - # source://drb//lib/drb/drb.rb#1687 + # pkg:gem/drb#lib/drb/drb.rb:1687 def init_with_client; end - # source://drb//lib/drb/drb.rb#1711 + # pkg:gem/drb#lib/drb/drb.rb:1711 def perform_with_block; end - # source://drb//lib/drb/drb.rb#1731 + # pkg:gem/drb#lib/drb/drb.rb:1731 def perform_without_block; end - # source://drb//lib/drb/drb.rb#1699 + # pkg:gem/drb#lib/drb/drb.rb:1699 def setup_message; end end @@ -1319,7 +1267,7 @@ end # The DRb TCP protocol URI looks like: # druby://:?. The option is optional. # -# source://drb//lib/drb/drb.rb#843 +# pkg:gem/drb#lib/drb/drb.rb:843 class DRb::DRbTCPSocket # Create a new DRbTCPSocket instance. # @@ -1327,23 +1275,19 @@ class DRb::DRbTCPSocket # +soc+ is the tcp socket we are bound to. +config+ is our # configuration. # - # @return [DRbTCPSocket] a new instance of DRbTCPSocket - # - # source://drb//lib/drb/drb.rb#931 + # pkg:gem/drb#lib/drb/drb.rb:931 def initialize(uri, soc, config = T.unsafe(nil)); end # On the server side, for an instance returned by #open_server, # accept a client connection and return a new instance to handle # the server's side of this client-server session. # - # source://drb//lib/drb/drb.rb#999 + # pkg:gem/drb#lib/drb/drb.rb:999 def accept; end # Check to see if this connection is alive. # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1029 + # pkg:gem/drb#lib/drb/drb.rb:1029 def alive?; end # Close the connection. @@ -1353,65 +1297,65 @@ class DRb::DRbTCPSocket # returned by #open or by #accept, then it closes this particular # client-server session. # - # source://drb//lib/drb/drb.rb#981 + # pkg:gem/drb#lib/drb/drb.rb:981 def close; end # Get the address of our TCP peer (the other end of the socket # we are bound to. # - # source://drb//lib/drb/drb.rb#946 + # pkg:gem/drb#lib/drb/drb.rb:946 def peeraddr; end # On the client side, receive a reply from the server. # - # source://drb//lib/drb/drb.rb#969 + # pkg:gem/drb#lib/drb/drb.rb:969 def recv_reply; end # On the server side, receive a request from the client. # - # source://drb//lib/drb/drb.rb#959 + # pkg:gem/drb#lib/drb/drb.rb:959 def recv_request; end # On the server side, send a reply to the client. # - # source://drb//lib/drb/drb.rb#964 + # pkg:gem/drb#lib/drb/drb.rb:964 def send_reply(succ, result); end # On the client side, send a request to the server. # - # source://drb//lib/drb/drb.rb#954 + # pkg:gem/drb#lib/drb/drb.rb:954 def send_request(ref, msg_id, arg, b); end - # source://drb//lib/drb/drb.rb#1038 + # pkg:gem/drb#lib/drb/drb.rb:1038 def set_sockopt(soc); end # Graceful shutdown # - # source://drb//lib/drb/drb.rb#1024 + # pkg:gem/drb#lib/drb/drb.rb:1024 def shutdown; end # Get the socket. # - # source://drb//lib/drb/drb.rb#951 + # pkg:gem/drb#lib/drb/drb.rb:951 def stream; end # Get the URI that we are connected to. # - # source://drb//lib/drb/drb.rb#942 + # pkg:gem/drb#lib/drb/drb.rb:942 def uri; end private - # source://drb//lib/drb/drb.rb#1014 + # pkg:gem/drb#lib/drb/drb.rb:1014 def accept_or_shutdown; end - # source://drb//lib/drb/drb.rb#990 + # pkg:gem/drb#lib/drb/drb.rb:990 def close_shutdown_pipe; end class << self # Returns the hostname of this server # - # source://drb//lib/drb/drb.rb#873 + # pkg:gem/drb#lib/drb/drb.rb:873 def getservername; end # Open a client connection to +uri+ (DRb URI string) using configuration @@ -1421,28 +1365,28 @@ class DRb::DRbTCPSocket # recognized protocol. See DRb::DRbServer.new for information on built-in # URI protocols. # - # source://drb//lib/drb/drb.rb#866 + # pkg:gem/drb#lib/drb/drb.rb:866 def open(uri, config); end # Open a server listening for connections at +uri+ using # configuration +config+. # - # source://drb//lib/drb/drb.rb#904 + # pkg:gem/drb#lib/drb/drb.rb:904 def open_server(uri, config); end # For the families available for +host+, returns a TCPServer on +port+. # If +port+ is 0 the first available port is used. IPv4 servers are # preferred over IPv6 servers. # - # source://drb//lib/drb/drb.rb#889 + # pkg:gem/drb#lib/drb/drb.rb:889 def open_server_inaddr_any(host, port); end - # source://drb//lib/drb/drb.rb#846 + # pkg:gem/drb#lib/drb/drb.rb:846 def parse_uri(uri); end # Parse +uri+ into a [uri, option] pair. # - # source://drb//lib/drb/drb.rb#921 + # pkg:gem/drb#lib/drb/drb.rb:921 def uri_option(uri, config); end end end @@ -1452,69 +1396,63 @@ end # DRb UNIX socket URIs look like drbunix:?. The # option is optional. # -# source://drb//lib/drb/unix.rb#15 +# pkg:gem/drb#lib/drb/unix.rb:15 class DRb::DRbUNIXSocket < ::DRb::DRbTCPSocket - # @return [DRbUNIXSocket] a new instance of DRbUNIXSocket - # - # source://drb//lib/drb/unix.rb#62 + # pkg:gem/drb#lib/drb/unix.rb:62 def initialize(uri, soc, config = T.unsafe(nil), server_mode = T.unsafe(nil)); end - # source://drb//lib/drb/unix.rb#105 + # pkg:gem/drb#lib/drb/unix.rb:105 def accept; end - # source://drb//lib/drb/unix.rb#95 + # pkg:gem/drb#lib/drb/unix.rb:95 def close; end - # source://drb//lib/drb/unix.rb#111 + # pkg:gem/drb#lib/drb/unix.rb:111 def set_sockopt(soc); end class << self - # source://drb//lib/drb/unix.rb#28 + # pkg:gem/drb#lib/drb/unix.rb:28 def open(uri, config); end - # source://drb//lib/drb/unix.rb#34 + # pkg:gem/drb#lib/drb/unix.rb:34 def open_server(uri, config); end # :stopdoc: # - # source://drb//lib/drb/unix.rb#17 + # pkg:gem/drb#lib/drb/unix.rb:17 def parse_uri(uri); end - # source://drb//lib/drb/unix.rb#72 + # pkg:gem/drb#lib/drb/unix.rb:72 def temp_server; end - # source://drb//lib/drb/unix.rb#57 + # pkg:gem/drb#lib/drb/unix.rb:57 def uri_option(uri, config); end end end # import from tempfile.rb # -# source://drb//lib/drb/unix.rb#70 +# pkg:gem/drb#lib/drb/unix.rb:70 DRb::DRbUNIXSocket::Max_try = T.let(T.unsafe(nil), Integer) -# source://drb//lib/drb/drb.rb#1049 +# pkg:gem/drb#lib/drb/drb.rb:1049 class DRb::DRbURIOption - # @return [DRbURIOption] a new instance of DRbURIOption - # - # source://drb//lib/drb/drb.rb#1050 + # pkg:gem/drb#lib/drb/drb.rb:1050 def initialize(option); end - # source://drb//lib/drb/drb.rb#1056 + # pkg:gem/drb#lib/drb/drb.rb:1056 def ==(other); end - # source://drb//lib/drb/drb.rb#1065 + # pkg:gem/drb#lib/drb/drb.rb:1065 def eql?(other); end - # source://drb//lib/drb/drb.rb#1061 + # pkg:gem/drb#lib/drb/drb.rb:1061 def hash; end - # Returns the value of attribute option. - # - # source://drb//lib/drb/drb.rb#1053 + # pkg:gem/drb#lib/drb/drb.rb:1053 def option; end - # source://drb//lib/drb/drb.rb#1054 + # pkg:gem/drb#lib/drb/drb.rb:1054 def to_s; end end @@ -1525,11 +1463,9 @@ end # and a reference to the object is returned, rather than the # object being marshalled and moved into the client space. # -# source://drb//lib/drb/drb.rb#418 +# pkg:gem/drb#lib/drb/drb.rb:418 module DRb::DRbUndumped - # @raise [TypeError] - # - # source://drb//lib/drb/drb.rb#419 + # pkg:gem/drb#lib/drb/drb.rb:419 def _dump(dummy); end end @@ -1547,7 +1483,7 @@ end # +name+ attribute. The marshalled object is held in the +buf+ # attribute. # -# source://drb//lib/drb/drb.rb#485 +# pkg:gem/drb#lib/drb/drb.rb:485 class DRb::DRbUnknown # Create a new DRbUnknown object. # @@ -1556,22 +1492,20 @@ class DRb::DRbUnknown # when the unmarshalling failed. It is used to determine the # name of the unmarshalled object. # - # @return [DRbUnknown] a new instance of DRbUnknown - # - # source://drb//lib/drb/drb.rb#493 + # pkg:gem/drb#lib/drb/drb.rb:493 def initialize(err, buf); end - # source://drb//lib/drb/drb.rb#522 + # pkg:gem/drb#lib/drb/drb.rb:522 def _dump(lv); end # Buffer contained the marshalled, unknown object. # - # source://drb//lib/drb/drb.rb#512 + # pkg:gem/drb#lib/drb/drb.rb:512 def buf; end # Create a DRbUnknownError exception containing this object. # - # source://drb//lib/drb/drb.rb#536 + # pkg:gem/drb#lib/drb/drb.rb:536 def exception; end # The name of the unknown thing. @@ -1579,7 +1513,7 @@ class DRb::DRbUnknown # Class name for unknown objects; variable name for unknown # constants. # - # source://drb//lib/drb/drb.rb#509 + # pkg:gem/drb#lib/drb/drb.rb:509 def name; end # Attempt to load the wrapped marshalled object again. @@ -1588,74 +1522,68 @@ class DRb::DRbUnknown # will be unmarshalled and returned. Otherwise, a new # but identical DRbUnknown object will be returned. # - # source://drb//lib/drb/drb.rb#531 + # pkg:gem/drb#lib/drb/drb.rb:531 def reload; end class << self - # source://drb//lib/drb/drb.rb#514 + # pkg:gem/drb#lib/drb/drb.rb:514 def _load(s); end end end # An exception wrapping a DRb::DRbUnknown object # -# source://drb//lib/drb/drb.rb#438 +# pkg:gem/drb#lib/drb/drb.rb:438 class DRb::DRbUnknownError < ::DRb::DRbError # Create a new DRbUnknownError for the DRb::DRbUnknown object +unknown+ # - # @return [DRbUnknownError] a new instance of DRbUnknownError - # - # source://drb//lib/drb/drb.rb#441 + # pkg:gem/drb#lib/drb/drb.rb:441 def initialize(unknown); end - # source://drb//lib/drb/drb.rb#453 + # pkg:gem/drb#lib/drb/drb.rb:453 def _dump(lv); end # Get the wrapped DRb::DRbUnknown object. # - # source://drb//lib/drb/drb.rb#447 + # pkg:gem/drb#lib/drb/drb.rb:447 def unknown; end class << self - # source://drb//lib/drb/drb.rb#449 + # pkg:gem/drb#lib/drb/drb.rb:449 def _load(s); end end end -# source://drb//lib/drb/drb.rb#1227 +# pkg:gem/drb#lib/drb/drb.rb:1227 class DRb::ThreadObject include ::MonitorMixin - # @return [ThreadObject] a new instance of ThreadObject - # - # source://drb//lib/drb/drb.rb#1230 + # pkg:gem/drb#lib/drb/drb.rb:1230 def initialize(&blk); end - # source://drb//lib/drb/drb.rb#1265 + # pkg:gem/drb#lib/drb/drb.rb:1265 def _execute; end - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1241 + # pkg:gem/drb#lib/drb/drb.rb:1241 def alive?; end - # source://drb//lib/drb/drb.rb#1245 + # pkg:gem/drb#lib/drb/drb.rb:1245 def kill; end - # source://drb//lib/drb/drb.rb#1250 + # pkg:gem/drb#lib/drb/drb.rb:1250 def method_missing(msg, *arg, &blk); end end -# source://drb//lib/drb/version.rb#2 +# pkg:gem/drb#lib/drb/version.rb:2 DRb::VERSION = T.let(T.unsafe(nil), String) -# source://drb//lib/drb/drb.rb#1993 +# pkg:gem/drb#lib/drb/drb.rb:1993 DRbIdConv = DRb::DRbIdConv # :stopdoc: # -# source://drb//lib/drb/drb.rb#1991 +# pkg:gem/drb#lib/drb/drb.rb:1991 DRbObject = DRb::DRbObject -# source://drb//lib/drb/drb.rb#1992 +# pkg:gem/drb#lib/drb/drb.rb:1992 DRbUndumped = DRb::DRbUndumped diff --git a/sorbet/rbi/gems/erb@6.0.2.rbi b/sorbet/rbi/gems/erb@6.0.2.rbi index fd8779a..117ad71 100644 --- a/sorbet/rbi/gems/erb@6.0.2.rbi +++ b/sorbet/rbi/gems/erb@6.0.2.rbi @@ -5,7 +5,749 @@ # Please instead update this file by running `bin/tapioca gem erb`. -# source://erb//lib/erb/version.rb#2 +# :markup: markdown +# +# Class **ERB** (the name stands for **Embedded Ruby**) +# is an easy-to-use, but also very powerful, [template processor][template processor]. +# +# ## Usage +# +# Before you can use \ERB, you must first require it +# (examples on this page assume that this has been done): +# +# ``` +# require 'erb' +# ``` +# +# ## In Brief +# +# Here's how \ERB works: +# +# - You can create a *template*: a plain-text string that includes specially formatted *tags*.. +# - You can create an \ERB object to store the template. +# - You can call instance method ERB#result to get the *result*. +# +# \ERB supports tags of three kinds: +# +# - [Expression tags][expression tags]: +# each begins with `'<%='`, ends with `'%>'`; contains a Ruby expression; +# in the result, the value of the expression replaces the entire tag: +# +# template = 'The magic word is <%= magic_word %>.' +# erb = ERB.new(template) +# magic_word = 'xyzzy' +# erb.result(binding) # => "The magic word is xyzzy." +# +# The above call to #result passes argument `binding`, +# which contains the binding of variable `magic_word` to its string value `'xyzzy'`. +# +# The below call to #result need not pass a binding, +# because its expression `Date::DAYNAMES` is globally defined. +# +# ERB.new('Today is <%= Date::DAYNAMES[Date.today.wday] %>.').result # => "Today is Monday." +# +# - [Execution tags][execution tags]: +# each begins with `'<%'`, ends with `'%>'`; contains Ruby code to be executed: +# +# template = '<% File.write("t.txt", "Some stuff.") %>' +# ERB.new(template).result +# File.read('t.txt') # => "Some stuff." +# +# - [Comment tags][comment tags]: +# each begins with `'<%#'`, ends with `'%>'`; contains comment text; +# in the result, the entire tag is omitted. +# +# template = 'Some stuff;<%# Note to self: figure out what the stuff is. %> more stuff.' +# ERB.new(template).result # => "Some stuff; more stuff." +# +# ## Some Simple Examples +# +# Here's a simple example of \ERB in action: +# +# ``` +# template = 'The time is <%= Time.now %>.' +# erb = ERB.new(template) +# erb.result +# # => "The time is 2025-09-09 10:49:26 -0500." +# ``` +# +# Details: +# +# 1. A plain-text string is assigned to variable `template`. +# Its embedded [expression tag][expression tags] `'<%= Time.now %>'` includes a Ruby expression, `Time.now`. +# 2. The string is put into a new \ERB object, and stored in variable `erb`. +# 4. Method call `erb.result` generates a string that contains the run-time value of `Time.now`, +# as computed at the time of the call. +# +# The +# \ERB object may be re-used: +# +# ``` +# erb.result +# # => "The time is 2025-09-09 10:49:33 -0500." +# ``` +# +# Another example: +# +# ``` +# template = 'The magic word is <%= magic_word %>.' +# erb = ERB.new(template) +# magic_word = 'abracadabra' +# erb.result(binding) +# # => "The magic word is abracadabra." +# ``` +# +# Details: +# +# 1. As before, a plain-text string is assigned to variable `template`. +# Its embedded [expression tag][expression tags] `'<%= magic_word %>'` has a variable *name*, `magic_word`. +# 2. The string is put into a new \ERB object, and stored in variable `erb`; +# note that `magic_word` need not be defined before the \ERB object is created. +# 3. `magic_word = 'abracadabra'` assigns a value to variable `magic_word`. +# 4. Method call `erb.result(binding)` generates a string +# that contains the *value* of `magic_word`. +# +# As before, the \ERB object may be re-used: +# +# ``` +# magic_word = 'xyzzy' +# erb.result(binding) +# # => "The magic word is xyzzy." +# ``` +# +# ## Bindings +# +# A call to method #result, which produces the formatted result string, +# requires a [Binding object][binding object] as its argument. +# +# The binding object provides the bindings for expressions in [expression tags][expression tags]. +# +# There are three ways to provide the required binding: +# +# - [Default binding][default binding]. +# - [Local binding][local binding]. +# - [Augmented binding][augmented binding] +# +# ### Default Binding +# +# When you pass no `binding` argument to method #result, +# the method uses its default binding: the one returned by method #new_toplevel. +# This binding has the bindings defined by Ruby itself, +# which are those for Ruby's constants and variables. +# +# That binding is sufficient for an expression tag that refers only to Ruby's constants and variables; +# these expression tags refer only to Ruby's global constant `RUBY_COPYRIGHT` and global variable `$0`: +# +# ``` +# template = <