diff --git a/Gemfile b/Gemfile
index 48a5fccb..d9e13fda 100644
--- a/Gemfile
+++ b/Gemfile
@@ -17,9 +17,9 @@ group :development, :test do
gem "rubocop-shopify", require: false
gem "rubocop-sorbet", require: false
gem "simplecov", require: false
- gem "sorbet", "~> 0.5.12414", require: false
+ gem "sorbet", ">= 0.6.12698", require: false
gem "sqlite3", require: false
- gem "tapioca", "~> 0.16.11", require: false
+ gem "tapioca", ">= 0.17.8", require: false
gem "vcr", require: false
gem "webmock", require: false
end
diff --git a/Gemfile.lock b/Gemfile.lock
index 3a15a11b..525e48da 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -126,12 +126,15 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
- rbi (0.3.6)
+ rbi (0.3.9)
prism (~> 1.0)
rbs (>= 3.4.4)
- rbs (3.9.4)
+ rbs (4.0.0.dev.5)
logger
+ prism (>= 1.3.0)
+ tsort
regexp_parser (2.10.0)
+ require-hooks (0.2.3)
rexml (3.4.2)
rubocop (1.77.0)
json (~> 2.3)
@@ -171,35 +174,38 @@ GEM
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
- sorbet (0.5.12414)
- sorbet-static (= 0.5.12414)
- sorbet-runtime (0.5.12414)
- sorbet-static (0.5.12414-universal-darwin)
- sorbet-static (0.5.12414-x86_64-linux)
- sorbet-static-and-runtime (0.5.12414)
- sorbet (= 0.5.12414)
- sorbet-runtime (= 0.5.12414)
- spoom (1.6.3)
+ sorbet (0.6.12984)
+ sorbet-static (= 0.6.12984)
+ sorbet-runtime (0.6.12984)
+ sorbet-static (0.6.12984-universal-darwin)
+ sorbet-static (0.6.12984-x86_64-linux)
+ sorbet-static-and-runtime (0.6.12984)
+ sorbet (= 0.6.12984)
+ sorbet-runtime (= 0.6.12984)
+ spoom (1.7.11)
erubi (>= 1.10.0)
prism (>= 0.28.0)
rbi (>= 0.3.3)
+ rbs (>= 4.0.0.dev.4)
rexml (>= 3.2.6)
sorbet-static-and-runtime (>= 0.5.10187)
thor (>= 0.19.2)
sqlite3 (2.9.0-arm64-darwin)
sqlite3 (2.9.0-x86_64-linux-gnu)
- tapioca (0.16.11)
+ tapioca (0.17.10)
benchmark
bundler (>= 2.2.25)
netrc (>= 0.11.0)
parallel (>= 1.21.0)
- rbi (~> 0.2)
+ rbi (>= 0.3.7)
+ require-hooks (>= 0.2.2)
sorbet-static-and-runtime (>= 0.5.11087)
- spoom (>= 1.2.0)
+ spoom (>= 1.7.9)
thor (>= 1.2.0)
yard-sorbet
thor (1.4.0)
traces (0.18.2)
+ tsort (0.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (3.1.4)
@@ -233,9 +239,9 @@ DEPENDENCIES
rubocop-shopify
rubocop-sorbet
simplecov
- sorbet (~> 0.5.12414)
+ sorbet (>= 0.6.12698)
sqlite3
- tapioca (~> 0.16.11)
+ tapioca (>= 0.17.8)
vcr
webmock
diff --git a/lib/roast/cog/registry.rb b/lib/roast/cog/registry.rb
index 54c0a9bb..a01dab9d 100644
--- a/lib/roast/cog/registry.rb
+++ b/lib/roast/cog/registry.rb
@@ -51,13 +51,13 @@ def initialize
#
#: (singleton(Roast::Cog)) -> void
def use(cog_class)
- reg = create_registration(cog_class)
- cogs[reg.first] = reg.second
+ name, klass = create_registration(cog_class)
+ cogs[name] = klass
end
private
- #: (singleton(Roast::Cog)) -> Array(Symbol, singleton(Cog))
+ #: (singleton(Roast::Cog)) -> [Symbol, singleton(Cog)]
def create_registration(cog_class)
cog_class_name = cog_class.name
raise CouldNotDeriveCogNameError if cog_class_name.nil?
diff --git a/sorbet/rbi/gems/activesupport@8.0.2.rbi b/sorbet/rbi/gems/activesupport@8.0.2.rbi
index 7617af3f..f88a7980 100644
--- a/sorbet/rbi/gems/activesupport@8.0.2.rbi
+++ b/sorbet/rbi/gems/activesupport@8.0.2.rbi
@@ -327,7 +327,7 @@ class ActiveSupport::BacktraceCleaner
# Returns the backtrace after all filters and silencers have been run
# against it. Filters run first, then silencers.
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#45
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#57
def filter(backtrace, kind = T.unsafe(nil)); end
# Removes all filters, but leaves in the silencers. Useful if you suddenly
@@ -621,7 +621,7 @@ class ActiveSupport::BroadcastLogger
# source://activesupport//lib/active_support/broadcast_logger.rb#156
def local_level=(level); end
- # source://activesupport//lib/active_support/broadcast_logger.rb#116
+ # source://activesupport//lib/active_support/broadcast_logger.rb#119
def log(*_arg0, **_arg1, &_arg2); end
# Returns the value of attribute progname.
@@ -636,13 +636,13 @@ class ActiveSupport::BroadcastLogger
# source://activesupport//lib/active_support/broadcast_logger.rb#80
def progname=(_arg0); end
- # source://activesupport//lib/active_support/broadcast_logger.rb#151
+ # source://activesupport//lib/active_support/broadcast_logger.rb#154
def sev_threshold=(level); end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/broadcast_logger.rb#75
def silencer; end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/broadcast_logger.rb#75
def silencer=(val); end
# Remove a logger from the broadcast. When a logger is removed, messages sent to
@@ -692,10 +692,10 @@ class ActiveSupport::BroadcastLogger
def respond_to_missing?(method, include_all); end
class << self
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/broadcast_logger.rb#75
def silencer; end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/broadcast_logger.rb#75
def silencer=(val); end
end
end
@@ -1274,19 +1274,19 @@ ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Int
class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store
include ::ActiveSupport::Cache::Strategy::LocalCache
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#85
+ # source://activesupport//lib/active_support/cache/null_store.rb#25
def cleanup(options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#79
+ # source://activesupport//lib/active_support/cache/null_store.rb#22
def clear(options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#104
+ # source://activesupport//lib/active_support/cache/null_store.rb#31
def decrement(name, amount = T.unsafe(nil), **options); end
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#91
+ # source://activesupport//lib/active_support/cache/null_store.rb#34
def delete_matched(matcher, options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#97
+ # source://activesupport//lib/active_support/cache/null_store.rb#28
def increment(name, amount = T.unsafe(nil), **options); end
# source://activesupport//lib/active_support/cache/null_store.rb#37
@@ -1294,19 +1294,19 @@ class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store
private
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198
+ # source://activesupport//lib/active_support/cache/null_store.rb#57
def delete_entry(key, **_arg1); end
# source://activesupport//lib/active_support/cache/null_store.rb#42
def read_entry(key, **s); end
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#146
+ # source://activesupport//lib/active_support/cache/null_store.rb#46
def read_serialized_entry(key, raw: T.unsafe(nil), **options); end
# source://activesupport//lib/active_support/cache/null_store.rb#49
def write_entry(key, entry, **_arg2); end
- # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189
+ # source://activesupport//lib/active_support/cache/null_store.rb#53
def write_serialized_entry(key, payload, **_arg2); end
class << self
@@ -1859,7 +1859,7 @@ class ActiveSupport::Cache::Store
# Returns the value of attribute silence.
#
- # source://activesupport//lib/active_support/cache.rb#192
+ # source://activesupport//lib/active_support/cache.rb#193
def silence?; end
# Writes the value to the cache with the key. The value must be supported
@@ -2979,41 +2979,62 @@ class ActiveSupport::Callbacks::Filters::Environment < ::Struct
# Returns the value of attribute halted
#
# @return [Object] the current value of halted
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#162
def halted; end
# Sets the attribute halted
#
# @param value [Object] the value to set the attribute halted to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#162
def halted=(_); end
# Returns the value of attribute target
#
# @return [Object] the current value of target
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#162
def target; end
# Sets the attribute target
#
# @param value [Object] the value to set the attribute target to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#162
def target=(_); end
# Returns the value of attribute value
#
# @return [Object] the current value of value
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#162
def value; end
# Sets the attribute value
#
# @param value [Object] the value to set the attribute value to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#162
def value=(_); end
class << self
+ # source://activesupport//lib/active_support/callbacks.rb#162
def [](*_arg0); end
+
+ # source://activesupport//lib/active_support/callbacks.rb#162
def inspect; end
+
+ # source://activesupport//lib/active_support/callbacks.rb#162
def keyword_init?; end
+
+ # source://activesupport//lib/active_support/callbacks.rb#162
def members; end
+
+ # source://activesupport//lib/active_support/callbacks.rb#162
def new(*_arg0); end
end
end
@@ -3521,7 +3542,7 @@ module ActiveSupport::CoreExt::ERBUtil
# puts html_escape('is a > 0 & a < 10?')
# # => is a > 0 & a < 10?
#
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#25
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#28
def h(s); end
# A utility method for escaping HTML tag characters.
@@ -3530,13 +3551,13 @@ module ActiveSupport::CoreExt::ERBUtil
# puts html_escape('is a > 0 & a < 10?')
# # => is a > 0 & a < 10?
#
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#25
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#10
def html_escape(s); end
# HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer.
# This method is not for public consumption! Seriously!
#
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#10
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#18
def unwrapped_html_escape(s); end
end
@@ -3546,13 +3567,13 @@ module ActiveSupport::CoreExt::ERBUtilPrivate
private
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#25
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#33
def h(s); end
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#25
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#33
def html_escape(s); end
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#10
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#33
def unwrapped_html_escape(s); end
end
@@ -3648,39 +3669,39 @@ class ActiveSupport::CurrentAttributes
# @return [CurrentAttributes] a new instance of CurrentAttributes
#
- # source://activesupport//lib/active_support/current_attributes.rb#199
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def initialize; end
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/current_attributes.rb#93
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/current_attributes.rb#94
def _reset_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/current_attributes.rb#94
def _run_reset_callbacks(&block); end
# Returns the value of attribute attributes.
#
- # source://activesupport//lib/active_support/current_attributes.rb#197
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def attributes; end
# Sets the attribute attributes
#
# @param value the value to set the attribute attributes to.
#
- # source://activesupport//lib/active_support/current_attributes.rb#197
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def attributes=(_arg0); end
- # source://activesupport//lib/active_support/current_attributes.rb#195
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def defaults; end
- # source://activesupport//lib/active_support/current_attributes.rb#195
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def defaults?; end
# Reset all attributes. Should be called before and after actions, when used as a per-request singleton.
#
- # source://activesupport//lib/active_support/current_attributes.rb#218
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def reset; end
# Expose one or more attributes within a block. Old values are returned after the block concludes.
@@ -3694,30 +3715,30 @@ class ActiveSupport::CurrentAttributes
# end
# end
#
- # source://activesupport//lib/active_support/current_attributes.rb#213
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def set(attributes, &block); end
private
- # source://activesupport//lib/active_support/current_attributes.rb#225
+ # source://activesupport//lib/active_support/current_attributes.rb#187
def resolve_defaults; end
class << self
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/current_attributes.rb#93
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/current_attributes.rb#93
def __callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/current_attributes.rb#94
def _reset_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/current_attributes.rb#94
def _reset_callbacks=(value); end
# Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone.
#
- # source://activesupport//lib/active_support/current_attributes.rb#149
+ # source://activesupport//lib/active_support/current_attributes.rb#152
def after_reset(*methods, &block); end
# Declares one or more attributes that will be given both class and instance accessor methods.
@@ -3776,16 +3797,16 @@ class ActiveSupport::CurrentAttributes
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/current_attributes.rb#93
def __class_attr___callbacks; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/current_attributes.rb#93
def __class_attr___callbacks=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/current_attributes.rb#195
def __class_attr_defaults; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/current_attributes.rb#195
def __class_attr_defaults=(new_value); end
# source://activesupport//lib/active_support/current_attributes.rb#170
@@ -4697,6 +4718,7 @@ class ActiveSupport::DescendantsTracker::WeakSet < ::ObjectSpace::WeakMap
# source://activesupport//lib/active_support/descendants_tracker.rb#23
def <<(object); end
+ # source://activesupport//lib/active_support/descendants_tracker.rb#21
def to_a; end
end
@@ -4785,7 +4807,7 @@ class ActiveSupport::Duration
# Calculates a new Time or Date that is as far in the future
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#436
+ # source://activesupport//lib/active_support/duration.rb#440
def after(time = T.unsafe(nil)); end
# Calculates a new Time or Date that is as far in the past
@@ -4800,7 +4822,7 @@ class ActiveSupport::Duration
# Calculates a new Time or Date that is as far in the past
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#444
+ # source://activesupport//lib/active_support/duration.rb#448
def before(time = T.unsafe(nil)); end
# source://activesupport//lib/active_support/duration.rb#245
@@ -4820,7 +4842,7 @@ class ActiveSupport::Duration
# Calculates a new Time or Date that is as far in the future
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#436
+ # source://activesupport//lib/active_support/duration.rb#439
def from_now(time = T.unsafe(nil)); end
# source://activesupport//lib/active_support/duration.rb#430
@@ -4875,7 +4897,7 @@ class ActiveSupport::Duration
# Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision
# date and time arithmetic.
#
- # source://activesupport//lib/active_support/duration.rb#377
+ # source://activesupport//lib/active_support/duration.rb#380
def in_seconds; end
# Returns the amount of weeks a duration covers as a float
@@ -4916,7 +4938,7 @@ class ActiveSupport::Duration
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#330
+ # source://activesupport//lib/active_support/duration.rb#333
def kind_of?(klass); end
# source://activesupport//lib/active_support/duration.rb#224
@@ -4977,7 +4999,7 @@ class ActiveSupport::Duration
# Calculates a new Time or Date that is as far in the past
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#444
+ # source://activesupport//lib/active_support/duration.rb#447
def until(time = T.unsafe(nil)); end
# Returns the value of attribute value.
@@ -5320,7 +5342,7 @@ end
# source://activesupport//lib/active_support/core_ext/enumerable.rb#25
ActiveSupport::EnumerableCoreExt::SoleItemExpectedError = Enumerable::SoleItemExpectedError
-# source://activesupport//lib/active_support/environment_inquirer.rb#7
+# source://activesupport//lib/active_support/environment_inquirer.rb#9
class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer
# @raise [ArgumentError]
# @return [EnvironmentInquirer] a new instance of EnvironmentInquirer
@@ -5328,7 +5350,7 @@ class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer
# source://activesupport//lib/active_support/environment_inquirer.rb#15
def initialize(env); end
- # source://activesupport//lib/active_support/environment_inquirer.rb#29
+ # source://activesupport//lib/active_support/environment_inquirer.rb#28
def development?; end
# Returns true if we're in the development or test environment.
@@ -5338,10 +5360,10 @@ class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer
# source://activesupport//lib/active_support/environment_inquirer.rb#36
def local?; end
- # source://activesupport//lib/active_support/environment_inquirer.rb#29
+ # source://activesupport//lib/active_support/environment_inquirer.rb#28
def production?; end
- # source://activesupport//lib/active_support/environment_inquirer.rb#29
+ # source://activesupport//lib/active_support/environment_inquirer.rb#28
def test?; end
end
@@ -5716,19 +5738,19 @@ class ActiveSupport::ExecutionWrapper
extend ::ActiveSupport::Callbacks::ClassMethods
extend ::ActiveSupport::DescendantsTracker
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/execution_wrapper.rb#8
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/execution_wrapper.rb#15
def _complete_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/execution_wrapper.rb#14
def _run_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/execution_wrapper.rb#15
def _run_complete_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/execution_wrapper.rb#14
def _run_run_callbacks(&block); end
# source://activesupport//lib/active_support/execution_wrapper.rb#141
@@ -5754,22 +5776,22 @@ class ActiveSupport::ExecutionWrapper
def hook_state; end
class << self
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/execution_wrapper.rb#8
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/execution_wrapper.rb#8
def __callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/execution_wrapper.rb#15
def _complete_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/execution_wrapper.rb#15
def _complete_callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/execution_wrapper.rb#14
def _run_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/execution_wrapper.rb#14
def _run_callbacks=(value); end
# @return [Boolean]
@@ -5821,17 +5843,17 @@ class ActiveSupport::ExecutionWrapper
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/execution_wrapper.rb#8
def __class_attr___callbacks; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/execution_wrapper.rb#8
def __class_attr___callbacks=(new_value); end
end
end
# source://activesupport//lib/active_support/execution_wrapper.rb#32
class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct
- # source://activesupport//lib/active_support/execution_wrapper.rb#33
+ # source://activesupport//lib/active_support/execution_wrapper.rb#39
def after(target); end
# source://activesupport//lib/active_support/execution_wrapper.rb#33
@@ -5840,19 +5862,32 @@ class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct
# Returns the value of attribute hook
#
# @return [Object] the current value of hook
+ #
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def hook; end
# Sets the attribute hook
#
# @param value [Object] the value to set the attribute hook to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def hook=(_); end
class << self
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def [](*_arg0); end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def inspect; end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def keyword_init?; end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def members; end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#32
def new(*_arg0); end
end
end
@@ -5868,19 +5903,32 @@ class ActiveSupport::ExecutionWrapper::RunHook < ::Struct
# Returns the value of attribute hook
#
# @return [Object] the current value of hook
+ #
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def hook; end
# Sets the attribute hook
#
# @param value [Object] the value to set the attribute hook to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def hook=(_); end
class << self
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def [](*_arg0); end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def inspect; end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def keyword_init?; end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def members; end
+
+ # source://activesupport//lib/active_support/execution_wrapper.rb#25
def new(*_arg0); end
end
end
@@ -6235,7 +6283,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#156
def has_key?(key); end
# Checks the hash for a key matching the argument passed in:
@@ -6247,7 +6295,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#155
def include?(key); end
# Checks the hash for a key matching the argument passed in:
@@ -6271,7 +6319,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#157
def member?(key); end
# This method has the same semantics of +update+, except it does not
@@ -6310,13 +6358,16 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
# hash_2['key'] = 12
# hash_1.update(hash_2) { |key, old, new| old + new } # => {"key"=>22}
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#132
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#143
def merge!(*other_hashes, &block); end
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#66
def nested_under_indifferent_access; end
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#90
def regular_update(*_arg0); end
+
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#89
def regular_writer(_arg0, _arg1); end
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#328
@@ -6361,7 +6412,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
#
# This value can be later fetched using either +:key+ or 'key' .
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#98
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#102
def store(key, value); end
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#318
@@ -6372,7 +6423,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#376
def to_hash; end
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#318
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#319
def to_options; end
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#321
@@ -6439,12 +6490,12 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
# hash['a'] = nil
# hash.reverse_merge(a: 0, b: 1) # => {"a"=>nil, "b"=>1}
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#283
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#286
def with_defaults(other_hash); end
# Same semantics as +reverse_merge+ but modifies the receiver in-place.
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#289
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#292
def with_defaults!(other_hash); end
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#62
@@ -6455,7 +6506,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
# hash.except(:a, "b") # => {c: 10}.with_indifferent_access
# hash # => { a: "x", b: "y", c: 10 }.with_indifferent_access
#
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#311
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#314
def without(*keys); end
private
@@ -7179,6 +7230,7 @@ class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions
private
+ # source://activesupport//lib/active_support/ordered_options.rb#123
def own_key?(_arg0); end
end
@@ -7267,7 +7319,7 @@ module ActiveSupport::JSON
# ActiveSupport::JSON.encode({ key: "<>&" }, escape_html_entities: false)
# # => "{\"key\":\"<>&\"}"
#
- # source://activesupport//lib/active_support/json/encoding.rb#40
+ # source://activesupport//lib/active_support/json/encoding.rb#43
def dump(value, options = T.unsafe(nil)); end
# Dumps objects in JSON (JavaScript Object Notation).
@@ -7303,7 +7355,7 @@ module ActiveSupport::JSON
# ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}")
# => {"team" => "rails", "players" => "36"}
#
- # source://activesupport//lib/active_support/json/decoding.rb#22
+ # source://activesupport//lib/active_support/json/decoding.rb#31
def load(json); end
# Returns the class of the error that will be raised when there is an
@@ -7613,19 +7665,19 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber
# source://activesupport//lib/active_support/log_subscriber.rb#83
def colorize_logging=(val); end
- # source://activesupport//lib/active_support/log_subscriber.rb#163
+ # source://activesupport//lib/active_support/log_subscriber.rb#162
def debug(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#163
+ # source://activesupport//lib/active_support/log_subscriber.rb#162
def error(progname = T.unsafe(nil), &block); end
# source://activesupport//lib/active_support/log_subscriber.rb#158
def event_levels=(_arg0); end
- # source://activesupport//lib/active_support/log_subscriber.rb#163
+ # source://activesupport//lib/active_support/log_subscriber.rb#162
def fatal(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#163
+ # source://activesupport//lib/active_support/log_subscriber.rb#162
def info(progname = T.unsafe(nil), &block); end
# source://activesupport//lib/active_support/log_subscriber.rb#138
@@ -7639,10 +7691,10 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber
# source://activesupport//lib/active_support/log_subscriber.rb#142
def silenced?(event); end
- # source://activesupport//lib/active_support/log_subscriber.rb#163
+ # source://activesupport//lib/active_support/log_subscriber.rb#162
def unknown(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#163
+ # source://activesupport//lib/active_support/log_subscriber.rb#162
def warn(progname = T.unsafe(nil), &block); end
private
@@ -7699,10 +7751,10 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/log_subscriber.rb#84
def __class_attr_log_levels; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/log_subscriber.rb#84
def __class_attr_log_levels=(new_value); end
# source://activesupport//lib/active_support/log_subscriber.rb#117
@@ -7760,10 +7812,10 @@ class ActiveSupport::Logger < ::Logger
# source://activesupport//lib/active_support/logger.rb#33
def initialize(*args, **kwargs); end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/logger.rb#9
def silencer; end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/logger.rb#9
def silencer=(val); end
class << self
@@ -7785,10 +7837,10 @@ class ActiveSupport::Logger < ::Logger
# source://activesupport//lib/active_support/logger.rb#47
def normalize_sources(sources); end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/logger.rb#9
def silencer; end
- # source://activesupport//lib/active_support/logger_silence.rb#12
+ # source://activesupport//lib/active_support/logger.rb#9
def silencer=(val); end
end
end
@@ -7987,7 +8039,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec
#
# @return [MessageEncryptor] a new instance of MessageEncryptor
#
- # source://activesupport//lib/active_support/messages/rotator.rb#6
+ # source://activesupport//lib/active_support/message_encryptor.rb#183
def initialize(*args, on_rotation: T.unsafe(nil), **options); end
# source://activesupport//lib/active_support/message_encryptor.rb#256
@@ -8047,7 +8099,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec
# source://activesupport//lib/active_support/message_encryptor.rb#264
def inspect; end
- # source://activesupport//lib/active_support/messages/rotator.rb#28
+ # source://activesupport//lib/active_support/message_encryptor.rb#260
def read_message(message, on_rotation: T.unsafe(nil), **options); end
private
@@ -8059,7 +8111,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec
# Returns the value of attribute aead_mode.
#
- # source://activesupport//lib/active_support/message_encryptor.rb#371
+ # source://activesupport//lib/active_support/message_encryptor.rb#372
def aead_mode?; end
# source://activesupport//lib/active_support/message_encryptor.rb#295
@@ -8300,7 +8352,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
# @raise [ArgumentError]
# @return [MessageVerifier] a new instance of MessageVerifier
#
- # source://activesupport//lib/active_support/messages/rotator.rb#6
+ # source://activesupport//lib/active_support/message_verifier.rb#167
def initialize(*args, on_rotation: T.unsafe(nil), **options); end
# source://activesupport//lib/active_support/message_verifier.rb#310
@@ -8347,7 +8399,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
# source://activesupport//lib/active_support/message_verifier.rb#318
def inspect; end
- # source://activesupport//lib/active_support/messages/rotator.rb#28
+ # source://activesupport//lib/active_support/message_verifier.rb#314
def read_message(message, on_rotation: T.unsafe(nil), **options); end
# Checks if a signed message could have been generated by signing an object
@@ -8535,10 +8587,10 @@ class ActiveSupport::Messages::Codec
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/messages/codec.rb#12
def __class_attr_default_serializer; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/messages/codec.rb#12
def __class_attr_default_serializer=(new_value); end
end
end
@@ -9001,7 +9053,7 @@ class ActiveSupport::Multibyte::Chars
# "ÉL QUE SE ENTERÓ".mb_chars.titleize.to_s # => "Él Que Se Enteró"
# "日本語".mb_chars.titleize.to_s # => "日本語"
#
- # source://activesupport//lib/active_support/multibyte/chars.rb#126
+ # source://activesupport//lib/active_support/multibyte/chars.rb#129
def titlecase; end
# Capitalizes the first letter of every word, when possible.
@@ -9014,12 +9066,12 @@ class ActiveSupport::Multibyte::Chars
# Returns the value of attribute wrapped_string.
#
- # source://activesupport//lib/active_support/multibyte/chars.rb#49
+ # source://activesupport//lib/active_support/multibyte/chars.rb#50
def to_s; end
# Returns the value of attribute wrapped_string.
#
- # source://activesupport//lib/active_support/multibyte/chars.rb#49
+ # source://activesupport//lib/active_support/multibyte/chars.rb#51
def to_str; end
# Returns the value of attribute wrapped_string.
@@ -10383,16 +10435,16 @@ class ActiveSupport::NumberHelper::NumberConverter
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_converter.rb#14
def __class_attr_namespace; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_converter.rb#14
def __class_attr_namespace=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_converter.rb#17
def __class_attr_validate_float; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_converter.rb#17
def __class_attr_validate_float=(new_value); end
end
end
@@ -10416,10 +10468,10 @@ class ActiveSupport::NumberHelper::NumberToCurrencyConverter < ::ActiveSupport::
class << self
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#8
def __class_attr_namespace; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#8
def __class_attr_namespace=(new_value); end
end
end
@@ -10440,10 +10492,10 @@ class ActiveSupport::NumberHelper::NumberToDelimitedConverter < ::ActiveSupport:
class << self
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#8
def __class_attr_validate_float; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#8
def __class_attr_validate_float=(new_value); end
end
end
@@ -10473,16 +10525,16 @@ class ActiveSupport::NumberHelper::NumberToHumanConverter < ::ActiveSupport::Num
class << self
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#12
def __class_attr_namespace; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#12
def __class_attr_namespace=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#13
def __class_attr_validate_float; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#13
def __class_attr_validate_float=(new_value); end
end
end
@@ -10523,16 +10575,16 @@ class ActiveSupport::NumberHelper::NumberToHumanSizeConverter < ::ActiveSupport:
class << self
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#10
def __class_attr_namespace; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#10
def __class_attr_namespace=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#11
def __class_attr_validate_float; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#11
def __class_attr_validate_float=(new_value); end
end
end
@@ -10548,10 +10600,10 @@ class ActiveSupport::NumberHelper::NumberToPercentageConverter < ::ActiveSupport
class << self
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#8
def __class_attr_namespace; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#8
def __class_attr_namespace=(new_value); end
end
end
@@ -10606,16 +10658,16 @@ class ActiveSupport::NumberHelper::NumberToRoundedConverter < ::ActiveSupport::N
class << self
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#8
def __class_attr_namespace; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#8
def __class_attr_namespace=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#9
def __class_attr_validate_float; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#9
def __class_attr_validate_float=(new_value); end
end
end
@@ -10757,6 +10809,8 @@ class ActiveSupport::OrderedOptions < ::Hash
protected
# preserve the original #[] method
+ #
+ # source://activesupport//lib/active_support/ordered_options.rb#34
def _get(_arg0); end
private
@@ -10795,16 +10849,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper
# source://activesupport//lib/active_support/reloader.rb#99
def initialize; end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/reloader.rb#31
def _class_unload_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/reloader.rb#29
def _prepare_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/reloader.rb#31
def _run_class_unload_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/reloader.rb#29
def _run_prepare_callbacks(&block); end
# source://activesupport//lib/active_support/reloader.rb#85
@@ -10846,16 +10900,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper
def run!; end
class << self
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/reloader.rb#31
def _class_unload_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/reloader.rb#31
def _class_unload_callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/reloader.rb#29
def _prepare_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/reloader.rb#29
def _prepare_callbacks=(value); end
# Registers a callback that will run immediately after the classes are unloaded.
@@ -10915,22 +10969,22 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/reloader.rb#29
def __class_attr___callbacks; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/reloader.rb#29
def __class_attr___callbacks=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/reloader.rb#85
def __class_attr_check; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/reloader.rb#85
def __class_attr_check=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/reloader.rb#84
def __class_attr_executor; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/reloader.rb#84
def __class_attr_executor=(new_value); end
end
end
@@ -11058,7 +11112,7 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#112
def +(other); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#80
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#86
def <<(value); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38
@@ -11070,22 +11124,22 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#88
def bytesplice(*args, value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def capitalize(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def capitalize!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def chomp(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def chomp!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def chop(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def chop!(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#59
@@ -11094,57 +11148,57 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#80
def concat(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def delete(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def delete!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def delete_prefix(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def delete_prefix!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def delete_suffix(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def delete_suffix!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def downcase(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def downcase!(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#146
def encode_with(coder); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#167
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166
def gsub(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#178
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166
def gsub!(*args, &block); end
# Returns the value of attribute html_safe.
#
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#134
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#135
def html_safe?; end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#92
def insert(index, value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def lstrip(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def lstrip!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def next(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def next!(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#96
@@ -11153,16 +11207,16 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#100
def replace(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def reverse(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def reverse!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def rstrip(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def rstrip!(*args); end
# @raise [SafeConcatError]
@@ -11170,46 +11224,46 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#65
def safe_concat(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def scrub(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def scrub!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#49
def slice(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#51
def slice!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def squeeze(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def squeeze!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def strip(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def strip!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#167
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166
def sub(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#178
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#166
def sub!(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def succ(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def succ!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def swapcase(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def swapcase!(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#142
@@ -11218,28 +11272,28 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#138
def to_s; end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def tr(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def tr!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def tr_s(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def tr_s!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def unicode_normalize(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def unicode_normalize!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def upcase(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#152
def upcase!(*args); end
private
@@ -11253,6 +11307,7 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#75
def initialize_copy(other); end
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#28
def original_concat(*_arg0); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#205
@@ -11345,7 +11400,7 @@ module ActiveSupport::SecurityUtils
class << self
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/security_utils.rb#11
+ # source://activesupport//lib/active_support/security_utils.rb#25
def fixed_length_secure_compare(a, b); end
# Secure string comparison for strings of variable length.
@@ -11355,7 +11410,7 @@ module ActiveSupport::SecurityUtils
# the secret length. This should be considered when using secure_compare
# to compare weak, short secrets to user input.
#
- # source://activesupport//lib/active_support/security_utils.rb#33
+ # source://activesupport//lib/active_support/security_utils.rb#36
def secure_compare(a, b); end
end
end
@@ -11422,16 +11477,16 @@ end
class ActiveSupport::Subscriber
# @return [Subscriber] a new instance of Subscriber
#
- # source://activesupport//lib/active_support/subscriber.rb#131
+ # source://activesupport//lib/active_support/subscriber.rb#70
def initialize; end
- # source://activesupport//lib/active_support/subscriber.rb#136
+ # source://activesupport//lib/active_support/subscriber.rb#70
def call(event); end
- # source://activesupport//lib/active_support/subscriber.rb#129
+ # source://activesupport//lib/active_support/subscriber.rb#70
def patterns; end
- # source://activesupport//lib/active_support/subscriber.rb#141
+ # source://activesupport//lib/active_support/subscriber.rb#70
def publish_event(event); end
class << self
@@ -11544,7 +11599,7 @@ module ActiveSupport::TaggedLogging
# source://activesupport//lib/active_support/tagged_logging.rb#117
def logger(*args, **kwargs); end
- # source://lumberjack/1.2.10/lib/lumberjack/tagged_logging.rb#15
+ # source://activesupport//lib/active_support/tagged_logging.rb#121
def new(logger); end
end
end
@@ -11642,98 +11697,98 @@ class ActiveSupport::TestCase < ::Minitest::Test
extend ::ActiveSupport::Testing::SetupAndTeardown::ClassMethods
extend ::ActiveSupport::Testing::Declarative
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/test_case.rb#145
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/test_case.rb#145
def _run_setup_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#912
+ # source://activesupport//lib/active_support/test_case.rb#145
def _run_teardown_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/test_case.rb#145
def _setup_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#924
+ # source://activesupport//lib/active_support/test_case.rb#145
def _teardown_callbacks; end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#731
+ # source://activesupport//lib/active_support/test_case.rb#241
def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#660
+ # source://activesupport//lib/active_support/test_case.rb#164
def assert_not_empty(obj, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#671
+ # source://activesupport//lib/active_support/test_case.rb#175
def assert_not_equal(exp, act, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#683
+ # source://activesupport//lib/active_support/test_case.rb#186
def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#695
+ # source://activesupport//lib/active_support/test_case.rb#197
def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#702
+ # source://activesupport//lib/active_support/test_case.rb#208
def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#713
+ # source://activesupport//lib/active_support/test_case.rb#219
def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#723
+ # source://activesupport//lib/active_support/test_case.rb#230
def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#741
+ # source://activesupport//lib/active_support/test_case.rb#252
def assert_not_nil(obj, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#776
+ # source://activesupport//lib/active_support/test_case.rb#263
def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#799
+ # source://activesupport//lib/active_support/test_case.rb#274
def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#808
+ # source://activesupport//lib/active_support/test_case.rb#285
def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
- # source://minitest/5.25.5/lib/minitest/assertions.rb#817
+ # source://activesupport//lib/active_support/test_case.rb#296
def assert_not_same(exp, act, msg = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
+ # source://activesupport//lib/active_support/test_case.rb#152
def file_fixture_path; end
- # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
+ # source://activesupport//lib/active_support/test_case.rb#152
def file_fixture_path?; end
# source://activesupport//lib/active_support/test_case.rb#300
def inspect; end
- # source://minitest/5.25.5/lib/minitest.rb#376
+ # source://activesupport//lib/active_support/test_case.rb#142
def method_name; end
class << self
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/test_case.rb#145
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#69
+ # source://activesupport//lib/active_support/test_case.rb#145
def __callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/test_case.rb#145
def _setup_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/test_case.rb#145
def _setup_callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#916
+ # source://activesupport//lib/active_support/test_case.rb#145
def _teardown_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#920
+ # source://activesupport//lib/active_support/test_case.rb#145
def _teardown_callbacks=(value); end
- # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
+ # source://activesupport//lib/active_support/test_case.rb#152
def file_fixture_path; end
- # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
+ # source://activesupport//lib/active_support/test_case.rb#152
def file_fixture_path=(value); end
- # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
+ # source://activesupport//lib/active_support/test_case.rb#152
def file_fixture_path?; end
# Parallelizes the test suite.
@@ -11832,16 +11887,16 @@ class ActiveSupport::TestCase < ::Minitest::Test
private
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/test_case.rb#145
def __class_attr___callbacks; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/test_case.rb#145
def __class_attr___callbacks=(new_value); end
- # source://activesupport//lib/active_support/class_attribute.rb#15
+ # source://activesupport//lib/active_support/test_case.rb#152
def __class_attr_file_fixture_path; end
- # source://activesupport//lib/active_support/class_attribute.rb#17
+ # source://activesupport//lib/active_support/test_case.rb#152
def __class_attr_file_fixture_path=(new_value); end
end
end
@@ -12028,7 +12083,7 @@ module ActiveSupport::Testing::Assertions
# perform_service(param: 'exception')
# end
#
- # source://activesupport//lib/active_support/testing/assertions.rb#34
+ # source://activesupport//lib/active_support/testing/assertions.rb#39
def assert_raise(*exp, match: T.unsafe(nil), &block); end
# Asserts that a block raises one of +exp+. This is an enhancement of the
@@ -12246,68 +12301,99 @@ class ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector::Report <
# Returns the value of attribute context
#
# @return [Object] the current value of context
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def context; end
# Sets the attribute context
#
# @param value [Object] the value to set the attribute context to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def context=(_); end
# Returns the value of attribute error
#
# @return [Object] the current value of error
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def error; end
# Sets the attribute error
#
# @param value [Object] the value to set the attribute error to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def error=(_); end
# Returns the value of attribute handled
#
# @return [Object] the current value of handled
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def handled; end
# Sets the attribute handled
#
# @param value [Object] the value to set the attribute handled to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def handled=(_); end
# Returns the value of attribute handled
#
# @return [Object] the current value of handled
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#12
def handled?; end
# Returns the value of attribute severity
#
# @return [Object] the current value of severity
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def severity; end
# Sets the attribute severity
#
# @param value [Object] the value to set the attribute severity to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def severity=(_); end
# Returns the value of attribute source
#
# @return [Object] the current value of source
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def source; end
# Sets the attribute source
#
# @param value [Object] the value to set the attribute source to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def source=(_); end
class << self
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def [](*_arg0); end
+
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def inspect; end
+
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def keyword_init?; end
+
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def members; end
+
+ # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10
def new(*_arg0); end
end
end
@@ -12432,19 +12518,32 @@ class ActiveSupport::Testing::Parallelization::PrerecordResultClass < ::Struct
# Returns the value of attribute name
#
# @return [Object] the current value of name
+ #
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def name; end
# Sets the attribute name
#
# @param value [Object] the value to set the attribute name to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def name=(_); end
class << self
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def [](*_arg0); end
+
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def inspect; end
+
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def keyword_init?; end
+
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def members; end
+
+ # source://activesupport//lib/active_support/testing/parallelization/server.rb#9
def new(*_arg0); end
end
end
@@ -12680,41 +12779,62 @@ class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct
# Returns the value of attribute method_name
#
# @return [Object] the current value of method_name
+ #
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def method_name; end
# Sets the attribute method_name
#
# @param value [Object] the value to set the attribute method_name to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def method_name=(_); end
# Returns the value of attribute object
#
# @return [Object] the current value of object
+ #
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def object; end
# Sets the attribute object
#
# @param value [Object] the value to set the attribute object to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def object=(_); end
# Returns the value of attribute original_method
#
# @return [Object] the current value of original_method
+ #
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def original_method; end
# Sets the attribute original_method
#
# @param value [Object] the value to set the attribute original_method to.
# @return [Object] the newly set value
+ #
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def original_method=(_); end
class << self
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def [](*_arg0); end
+
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def inspect; end
+
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def keyword_init?; end
+
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def members; end
+
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#10
def new(*_arg0); end
end
end
@@ -12887,7 +13007,7 @@ module ActiveSupport::Testing::TimeHelpers
#
# Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00
#
- # source://activesupport//lib/active_support/testing/time_helpers.rb#231
+ # source://activesupport//lib/active_support/testing/time_helpers.rb#239
def unfreeze_time; end
private
@@ -13035,6 +13155,7 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#430
def advance(options); end
+ # source://activesupport//lib/active_support/time_with_zone.rb#235
def after?(_arg0); end
# Subtracts an interval of time from the current object's time and returns
@@ -13074,6 +13195,7 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#166
def as_json(options = T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/time_with_zone.rb#234
def before?(_arg0); end
# Returns true if the current object's time is within the specified
@@ -13114,10 +13236,10 @@ class ActiveSupport::TimeWithZone
# Returns a Time instance of the simultaneous time in the UTC timezone.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#63
+ # source://activesupport//lib/active_support/time_with_zone.rb#66
def comparable_time; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def day; end
# Returns true if the current time is within Daylight Savings \Time for the
@@ -13166,17 +13288,17 @@ class ActiveSupport::TimeWithZone
# Returns a Time instance of the simultaneous time in the UTC timezone.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#63
+ # source://activesupport//lib/active_support/time_with_zone.rb#67
def getgm; end
# Returns a Time instance of the simultaneous time in the system timezone.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#83
+ # source://activesupport//lib/active_support/time_with_zone.rb#86
def getlocal(utc_offset = T.unsafe(nil)); end
# Returns a Time instance of the simultaneous time in the UTC timezone.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#63
+ # source://activesupport//lib/active_support/time_with_zone.rb#68
def getutc; end
# Returns true if the current time zone is set to UTC.
@@ -13188,28 +13310,28 @@ class ActiveSupport::TimeWithZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#105
+ # source://activesupport//lib/active_support/time_with_zone.rb#108
def gmt?; end
# Returns the offset from current time to UTC time in seconds.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#111
+ # source://activesupport//lib/active_support/time_with_zone.rb#114
def gmt_offset; end
# Returns a Time instance of the simultaneous time in the UTC timezone.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#63
+ # source://activesupport//lib/active_support/time_with_zone.rb#69
def gmtime; end
# Returns the offset from current time to UTC time in seconds.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#111
+ # source://activesupport//lib/active_support/time_with_zone.rb#115
def gmtoff; end
# source://activesupport//lib/active_support/time_with_zone.rb#278
def hash; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def hour; end
# Returns a string of the object's date and time in the format used by
@@ -13237,7 +13359,7 @@ class ActiveSupport::TimeWithZone
# now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00
# now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00
#
- # source://activesupport//lib/active_support/time_with_zone.rb#298
+ # source://activesupport//lib/active_support/time_with_zone.rb#316
def in(other); end
# Returns the simultaneous time in Time.zone , or the specified zone.
@@ -13271,7 +13393,7 @@ class ActiveSupport::TimeWithZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#94
+ # source://activesupport//lib/active_support/time_with_zone.rb#97
def isdst; end
# Returns a string of the object's date and time in the ISO 8601 standard
@@ -13279,14 +13401,14 @@ class ActiveSupport::TimeWithZone
#
# Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00"
#
- # source://activesupport//lib/active_support/time_with_zone.rb#148
+ # source://activesupport//lib/active_support/time_with_zone.rb#151
def iso8601(fraction_digits = T.unsafe(nil)); end
# Say we're a Time to thwart type checking.
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#509
+ # source://activesupport//lib/active_support/time_with_zone.rb#512
def kind_of?(klass); end
# Returns a Time instance of the simultaneous time in the system timezone.
@@ -13300,7 +13422,7 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#533
def marshal_load(variables); end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def mday; end
# Send the missing method to +time+ instance, and wrap result in a new
@@ -13309,13 +13431,13 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#553
def method_missing(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def min; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def mon; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def month; end
# Returns true if the current object's time falls within
@@ -13323,10 +13445,10 @@ class ActiveSupport::TimeWithZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#256
+ # source://activesupport//lib/active_support/time_with_zone.rb#259
def next_day?; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def nsec; end
# Returns true if the current object's time is in the past.
@@ -13351,7 +13473,7 @@ class ActiveSupport::TimeWithZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#263
+ # source://activesupport//lib/active_support/time_with_zone.rb#266
def prev_day?; end
# respond_to_missing? is not called in some cases, such as when type conversion is
@@ -13375,7 +13497,7 @@ class ActiveSupport::TimeWithZone
#
# Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00"
#
- # source://activesupport//lib/active_support/time_with_zone.rb#148
+ # source://activesupport//lib/active_support/time_with_zone.rb#152
def rfc3339(fraction_digits = T.unsafe(nil)); end
# Returns a string of the object's date and time in the RFC 2822 standard
@@ -13383,10 +13505,10 @@ class ActiveSupport::TimeWithZone
#
# Time.zone.now.rfc2822 # => "Tue, 01 Jan 2013 04:51:39 +0000"
#
- # source://activesupport//lib/active_support/time_with_zone.rb#194
+ # source://activesupport//lib/active_support/time_with_zone.rb#197
def rfc822; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def sec; end
# Adds an interval of time to the current object's time and returns that
@@ -13406,7 +13528,7 @@ class ActiveSupport::TimeWithZone
# now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00
# now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00
#
- # source://activesupport//lib/active_support/time_with_zone.rb#298
+ # source://activesupport//lib/active_support/time_with_zone.rb#315
def since(other); end
# Replaces %Z directive with +zone before passing to Time#strftime,
@@ -13434,7 +13556,7 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#453
def to_a; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def to_date; end
# Returns an instance of DateTime with the timezone's UTC offset
@@ -13462,7 +13584,7 @@ class ActiveSupport::TimeWithZone
# * :db - format outputs time in UTC :db time. See Time#to_fs(:db).
# * Any key in +Time::DATE_FORMATS+ can be used. See active_support/core_ext/time/conversions.rb.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#212
+ # source://activesupport//lib/active_support/time_with_zone.rb#221
def to_formatted_s(format = T.unsafe(nil)); end
# Returns a string of the object's date and time.
@@ -13526,10 +13648,10 @@ class ActiveSupport::TimeWithZone
#
# Time.zone.now.to_i # => 1417709320
#
- # source://activesupport//lib/active_support/time_with_zone.rb#469
+ # source://activesupport//lib/active_support/time_with_zone.rb#472
def tv_sec; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def usec; end
# Returns a Time instance of the simultaneous time in the UTC timezone.
@@ -13554,7 +13676,7 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#111
def utc_offset; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def wday; end
# Returns a string of the object's date and time in the ISO 8601 standard
@@ -13565,10 +13687,10 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#148
def xmlschema(fraction_digits = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def yday; end
- # source://activesupport//lib/active_support/time_with_zone.rb#442
+ # source://activesupport//lib/active_support/time_with_zone.rb#441
def year; end
# Returns true if the current object's time falls within
@@ -13912,6 +14034,7 @@ class ActiveSupport::TimeZone
# source://activesupport//lib/active_support/values/time_zone.rb#260
def country_zones(country_code); end
+ # source://activesupport//lib/active_support/values/time_zone.rb#211
def create(*_arg0); end
# source://activesupport//lib/active_support/values/time_zone.rb#207
@@ -14253,6 +14376,16 @@ class Array
# source://activesupport//lib/active_support/core_ext/object/json.rb#164
def as_json(options = T.unsafe(nil)); end
+ # An array is blank if it's empty:
+ #
+ # [].blank? # => true
+ # [1,2,3].blank? # => false
+ #
+ # @return [true, false]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#102
+ def blank?; end
+
# Removes all blank elements from the +Array+ in place and returns self.
# Uses Object#blank? for determining if an item is blank.
#
@@ -14470,7 +14603,7 @@ class Array
# Blog.none.to_fs(:db) # => "null"
# [1,2].to_fs # => "[1, 2]"
#
- # source://activesupport//lib/active_support/core_ext/array/conversions.rb#94
+ # source://activesupport//lib/active_support/core_ext/array/conversions.rb#106
def to_formatted_s(format = T.unsafe(nil)); end
# Extends Array#to_s to convert a collection of elements into a
@@ -14640,7 +14773,7 @@ class Array
# Note: This is an optimization of Enumerable#excluding that uses Array#-
# instead of Array#reject for performance reasons.
#
- # source://activesupport//lib/active_support/core_ext/array/access.rb#47
+ # source://activesupport//lib/active_support/core_ext/array/access.rb#50
def without(*elements); end
class << self
@@ -14701,9 +14834,6 @@ class BigDecimal < ::Numeric
#
# source://activesupport//lib/active_support/core_ext/object/json.rb#134
def as_json(options = T.unsafe(nil)); end
-
- # source://activesupport//lib/active_support/core_ext/big_decimal/conversions.rb#8
- def to_s(format = T.unsafe(nil)); end
end
# source://activesupport//lib/active_support/core_ext/class/attribute.rb#6
@@ -14804,15 +14934,15 @@ class Date
include ::DateAndTime::Zones
include ::DateAndTime::Calculations
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#90
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#98
def +(other); end
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#100
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#108
def -(other); end
# Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there.
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#160
def <=>(other); end
# Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with
@@ -14846,32 +14976,32 @@ class Date
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#72
def at_beginning_of_day; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#85
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#88
def at_end_of_day; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#80
def at_midday; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#82
def at_middle_of_day; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#71
def at_midnight; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#81
def at_noon; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
@@ -14893,6 +15023,12 @@ class Date
# source://activesupport//lib/active_support/core_ext/date/calculations.rb#152
def compare_with_coercion(other); end
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#159
+ def compare_without_coercion(_arg0); end
+
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#66
+ def default_inspect; end
+
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59)
#
# source://activesupport//lib/active_support/core_ext/date/calculations.rb#85
@@ -14901,17 +15037,17 @@ class Date
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
# and then adds the specified number of seconds
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#61
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#64
def in(seconds); end
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005"
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#63
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#67
def inspect; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#78
def midday; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
@@ -14921,20 +15057,26 @@ class Date
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#70
def midnight; end
# source://activesupport//lib/active_support/core_ext/date/calculations.rb#100
def minus_with_duration(other); end
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#107
+ def minus_without_duration(_arg0); end
+
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#79
def noon; end
# source://activesupport//lib/active_support/core_ext/date/calculations.rb#90
def plus_with_duration(other); end
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#97
+ def plus_without_duration(_arg0); end
+
# 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
@@ -14972,7 +15114,7 @@ class Date
# Date::DATE_FORMATS[:month_and_year] = '%B %Y'
# Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") }
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#49
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#60
def to_formatted_s(format = T.unsafe(nil)); end
# Convert to a formatted string. See DATE_FORMATS for predefined formats.
@@ -15019,7 +15161,7 @@ class Date
#
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#83
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#69
def to_time(form = T.unsafe(nil)); end
# Returns a string which represents the time in used time zone as DateTime
@@ -15028,7 +15170,7 @@ class Date
# date = Date.new(2015, 05, 23) # => Sat, 23 May 2015
# date.xmlschema # => "2015-05-23T00:00:00+04:00"
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#95
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#88
def xmlschema; end
class << self
@@ -15134,7 +15276,7 @@ module DateAndTime::Calculations
# now = DateTime.current # => Thu, 18 Jun 2015 15:23:13 +0000
# now.beginning_of_month # => Mon, 01 Jun 2015 00:00:00 +0000
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#125
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#128
def at_beginning_of_month; end
# Returns a new date/time at the start of the quarter.
@@ -15147,7 +15289,7 @@ module DateAndTime::Calculations
# now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000
# now.beginning_of_quarter # => Wed, 01 Jul 2015 00:00:00 +0000
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#139
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#143
def at_beginning_of_quarter; end
# Returns a new date/time representing the start of this week on the given day.
@@ -15155,7 +15297,7 @@ module DateAndTime::Calculations
# +Date.beginning_of_week+ or +config.beginning_of_week+ when set.
# +DateTime+ objects have their time set to 0:00.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#267
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#271
def at_beginning_of_week(start_day = T.unsafe(nil)); end
# Returns a new date/time at the beginning of the year.
@@ -15168,13 +15310,13 @@ module DateAndTime::Calculations
# now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000
# now.beginning_of_year # => Thu, 01 Jan 2015 00:00:00 +0000
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#179
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#182
def at_beginning_of_year; end
# Returns a new date/time representing the end of the month.
# DateTime objects will have a time set to 23:59:59.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#296
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#300
def at_end_of_month; end
# Returns a new date/time at the end of the quarter.
@@ -15187,7 +15329,7 @@ module DateAndTime::Calculations
# now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000
# now.end_of_quarter # => Wed, 30 Sep 2015 23:59:59 +0000
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#154
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#158
def at_end_of_quarter; end
# Returns a new date/time representing the end of this week on the given day.
@@ -15195,13 +15337,13 @@ module DateAndTime::Calculations
# +Date.beginning_of_week+ or +config.beginning_of_week+ when set.
# DateTime objects have their time set to 23:59:59.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#283
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#286
def at_end_of_week(start_day = T.unsafe(nil)); end
# Returns a new date/time representing the end of the year.
# DateTime objects will have a time set to 23:59:59.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#304
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#307
def at_end_of_year; end
# Returns true if the date/time falls before date_or_time .
@@ -15322,7 +15464,7 @@ module DateAndTime::Calculations
# Short-hand for months_ago(3) .
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#245
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#248
def last_quarter; end
# Returns a new date/time representing the given day in the previous week.
@@ -15330,12 +15472,12 @@ module DateAndTime::Calculations
# +Date.beginning_of_week+ or +config.beginning_of_week+ when set.
# DateTime objects have their time set to 0:00 unless +same_time+ is true.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#223
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#227
def last_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end
# Returns a new date/time representing the previous weekday.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#230
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#237
def last_weekday; end
# Short-hand for years_ago(1) .
@@ -15363,7 +15505,7 @@ module DateAndTime::Calculations
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#35
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#38
def next_day?; end
# Returns a new date/time representing the next occurrence of the specified day of week.
@@ -15430,7 +15572,7 @@ module DateAndTime::Calculations
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#41
+ # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#44
def prev_day?; end
# Returns a new date/time representing the previous occurrence of the specified day of week.
@@ -15563,7 +15705,7 @@ module DateAndTime::Compatibility
# is in turn included in several places. This will all go away in
# Rails 8.0 anyway.
#
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#24
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#15
def preserve_timezone; end
# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#15
@@ -15635,52 +15777,52 @@ class DateTime < ::Date
# Returns a new DateTime representing the start of the day (0:00).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#127
def at_beginning_of_day; end
# Returns a new DateTime representing the start of the hour (hh:00:00).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#146
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#149
def at_beginning_of_hour; end
# Returns a new DateTime representing the start of the minute (hh:mm:00).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#158
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#161
def at_beginning_of_minute; end
# Returns a new DateTime representing the end of the day (23:59:59).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#143
def at_end_of_day; end
# Returns a new DateTime representing the end of the hour (hh:59:59).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#152
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#155
def at_end_of_hour; end
# Returns a new DateTime representing the end of the minute (hh:mm:59).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#164
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#167
def at_end_of_minute; end
# Returns a new DateTime representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#135
def at_midday; end
# Returns a new DateTime representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#137
def at_middle_of_day; end
# Returns a new DateTime representing the start of the day (0:00).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
def at_midnight; end
# Returns a new DateTime representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#136
def at_noon; end
# Returns a new DateTime representing the start of the day (0:00).
@@ -15715,6 +15857,9 @@ class DateTime < ::Date
# source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#51
def change(options); end
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#59
+ def default_inspect; end
+
# Returns a new DateTime representing the end of the day (23:59:59).
#
# source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140
@@ -15745,12 +15890,12 @@ class DateTime < ::Date
# DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
# DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#192
def getgm; end
# Returns a Time instance of the simultaneous time in the system timezone.
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#170
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#178
def getlocal(utc_offset = T.unsafe(nil)); end
# Returns a Time instance of the simultaneous time in the UTC timezone.
@@ -15758,7 +15903,7 @@ class DateTime < ::Date
# DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
# DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#193
def getutc; end
# Returns a Time instance of the simultaneous time in the UTC timezone.
@@ -15766,19 +15911,19 @@ class DateTime < ::Date
# DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
# DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#194
def gmtime; end
# Returns a new DateTime representing the time a number of seconds since the
# instance time. Do not use this method in combination with x.months, use
# months_since instead!
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#116
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#119
def in(seconds); end
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000".
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#56
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#60
def inspect; end
# Returns a Time instance of the simultaneous time in the system timezone.
@@ -15788,7 +15933,7 @@ class DateTime < ::Date
# Returns a new DateTime representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#133
def midday; end
# Returns a new DateTime representing the middle of the day (12:00)
@@ -15798,12 +15943,12 @@ class DateTime < ::Date
# Returns a new DateTime representing the start of the day (0:00).
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#125
def midnight; end
# Returns a new DateTime representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#134
def noon; end
# Returns the fraction of a second as nanoseconds
@@ -15879,7 +16024,7 @@ class DateTime < ::Date
# Time::DATE_FORMATS[:month_and_year] = '%B %Y'
# Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") }
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#35
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#42
def to_formatted_s(format = T.unsafe(nil)); end
# Convert to a formatted string. See Time::DATE_FORMATS for predefined formats.
@@ -15975,15 +16120,7 @@ class Delegator < ::BasicObject
include ::ActiveSupport::Tryable
end
-module ERB::Escape
- private
-
- def html_escape(_arg0); end
-
- class << self
- def html_escape(_arg0); end
- end
-end
+module ERB::Escape; end
# source://activesupport//lib/active_support/core_ext/erb/util.rb#39
module ERB::Util
@@ -16074,12 +16211,6 @@ module ERB::Util
def xml_name_escape(name); end
class << self
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#25
- def h(s); end
-
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#25
- def html_escape(s); end
-
# A utility method for escaping HTML without affecting existing escaped entities.
#
# html_escape_once('1 < 2 & 3')
@@ -16088,7 +16219,7 @@ module ERB::Util
# html_escape_once('<< Accept & Checkout')
# # => "<< Accept & Checkout"
#
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#63
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#67
def html_escape_once(s); end
# A utility method for escaping HTML entities in JSON strings. Specifically, the
@@ -16147,7 +16278,7 @@ module ERB::Util
# JSON gem, do not provide this kind of protection by default; also some gems
# might override +to_json+ to bypass Active Support's encoder).
#
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#124
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#134
def json_escape(s); end
# Tokenizes a line of ERB. This is really just for error reporting and
@@ -16166,7 +16297,7 @@ module ERB::Util
#
# It follows the requirements of the specification: https://www.w3.org/TR/REC-xml/#NT-Name
#
- # source://activesupport//lib/active_support/core_ext/erb/util.rb#142
+ # source://activesupport//lib/active_support/core_ext/erb/util.rb#157
def xml_name_escape(name); end
end
end
@@ -16366,7 +16497,7 @@ module Enumerable
# {foo: 1, bar: 2, baz: 3}.excluding :bar
# # => {foo: 1, baz: 3}
#
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#132
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#136
def without(*elements); end
end
@@ -16466,6 +16597,16 @@ class Hash
# source://activesupport//lib/active_support/core_ext/hash/keys.rb#48
def assert_valid_keys(*valid_keys); end
+ # A hash is blank if it's empty:
+ #
+ # {}.blank? # => true
+ # { key: 'value' }.blank? # => false
+ #
+ # @return [true, false]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#116
+ def blank?; end
+
# Hash#reject has its own definition, so this needs one too.
#
# source://activesupport//lib/active_support/core_ext/enumerable.rb#222
@@ -16616,7 +16757,7 @@ class Hash
# { a: b }.with_indifferent_access['a'] # calls b.nested_under_indifferent_access
# # => {"b"=>1}
#
- # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#9
+ # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#23
def nested_under_indifferent_access; end
# @return [Boolean]
@@ -16645,7 +16786,7 @@ class Hash
# Destructive +reverse_merge+.
#
- # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20
+ # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#23
def reverse_update(other_hash); end
# Replaces the hash with only the given keys.
@@ -16699,13 +16840,13 @@ class Hash
# hash.symbolize_keys
# # => {:name=>"Rob", :age=>"28"}
#
- # source://activesupport//lib/active_support/core_ext/hash/keys.rb#27
+ # source://activesupport//lib/active_support/core_ext/hash/keys.rb#30
def to_options; end
# Destructively converts all keys to symbols, as long as they respond
# to +to_sym+. Same as +symbolize_keys+, but modifies +self+.
#
- # source://activesupport//lib/active_support/core_ext/hash/keys.rb#34
+ # source://activesupport//lib/active_support/core_ext/hash/keys.rb#37
def to_options!; end
# Returns a string representation of the receiver suitable for use as a URL
@@ -16722,7 +16863,7 @@ class Hash
# The string pairs "key=value" that conform the query string
# are sorted lexicographically in ascending order.
#
- # source://activesupport//lib/active_support/core_ext/object/to_query.rb#75
+ # source://activesupport//lib/active_support/core_ext/object/to_query.rb#86
def to_param(namespace = T.unsafe(nil)); end
# Returns a string representation of the receiver suitable for use as a URL
@@ -16819,12 +16960,12 @@ class Hash
# This is particularly useful for initializing an options hash
# with default values.
#
- # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#14
+ # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#17
def with_defaults(other_hash); end
# Destructive +reverse_merge+.
#
- # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20
+ # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#24
def with_defaults!(other_hash); end
# Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver:
@@ -16991,16 +17132,7 @@ IO::Buffer::PAGE_SIZE = T.let(T.unsafe(nil), Integer)
IO::Buffer::PRIVATE = T.let(T.unsafe(nil), Integer)
IO::Buffer::READONLY = T.let(T.unsafe(nil), Integer)
IO::Buffer::SHARED = T.let(T.unsafe(nil), Integer)
-
-class IO::ConsoleMode
- def echo=(_arg0); end
- def raw(*_arg0); end
- def raw!(*_arg0); end
-
- private
-
- def initialize_copy(_arg0); end
-end
+class IO::ConsoleMode; end
class IO::EAGAINWaitReadable < ::Errno::EAGAIN
include ::IO::WaitReadable
@@ -17188,7 +17320,7 @@ class Module
# Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red]
# Person.class_variable_get("@@hair_styles") # => [:long, :short]
#
- # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#208
+ # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#213
def cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end
# Defines a class attribute and creates a class and instance reader methods.
@@ -17240,7 +17372,7 @@ class Module
#
# @raise [TypeError]
#
- # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#55
+ # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#75
def cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
# Defines a class attribute and creates a class and instance writer methods to
@@ -17290,7 +17422,7 @@ class Module
#
# @raise [TypeError]
#
- # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#121
+ # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#140
def cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
# Returns a copy of module or class if it's anonymous. If it's
@@ -17807,7 +17939,7 @@ class Numeric
#
# 2.bytes # => 2
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#15
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#18
def byte; end
# Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes
@@ -17821,7 +17953,7 @@ class Numeric
#
# 2.exabytes # => 2_305_843_009_213_693_952
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#63
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#66
def exabyte; end
# Returns the number of bytes equivalent to the exabytes provided.
@@ -17835,7 +17967,7 @@ class Numeric
#
# 2.gigabytes # => 2_147_483_648
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#39
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#42
def gigabyte; end
# Returns the number of bytes equivalent to the gigabytes provided.
@@ -17854,7 +17986,7 @@ class Numeric
#
# 2.kilobytes # => 2048
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#23
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#26
def kilobyte; end
# Returns the number of bytes equivalent to the kilobytes provided.
@@ -17868,7 +18000,7 @@ class Numeric
#
# 2.megabytes # => 2_097_152
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#31
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#34
def megabyte; end
# Returns the number of bytes equivalent to the megabytes provided.
@@ -17882,7 +18014,7 @@ class Numeric
#
# 2.petabytes # => 2_251_799_813_685_248
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#55
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#58
def petabyte; end
# Returns the number of bytes equivalent to the petabytes provided.
@@ -17901,7 +18033,7 @@ class Numeric
#
# 2.terabytes # => 2_199_023_255_552
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#47
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#50
def terabyte; end
# Returns the number of bytes equivalent to the terabytes provided.
@@ -17915,7 +18047,7 @@ class Numeric
#
# 2.zettabytes # => 2_361_183_241_434_822_606_848
#
- # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#71
+ # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#74
def zettabyte; end
# Returns the number of bytes equivalent to the zettabytes provided.
@@ -18308,7 +18440,7 @@ class String
#
# See ActiveSupport::Inflector.camelize.
#
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#111
def camelcase(first_letter = T.unsafe(nil)); end
# By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize
@@ -18400,6 +18532,9 @@ class String
# source://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
+ def ends_with?(*_arg0); end
+
# The inverse of String#include? . Returns true if the string
# does not include the other string.
#
@@ -18746,6 +18881,9 @@ class String
# source://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
+ def starts_with?(*_arg0); end
+
# Strips indentation in heredocs.
#
# For example in
@@ -18794,7 +18932,7 @@ class String
#
# See ActiveSupport::Inflector.titleize.
#
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#129
def titlecase(keep_id_suffix: T.unsafe(nil)); end
# Capitalizes all the words and replaces some characters in the string to create
@@ -18979,6 +19117,14 @@ class Symbol
# source://activesupport//lib/active_support/core_ext/object/json.rb#105
def as_json(options = T.unsafe(nil)); end
+ # A Symbol is blank if it's empty:
+ #
+ # :''.blank? # => true
+ # :symbol.blank? # => false
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#128
+ def blank?; end
+
# @return [Boolean]
#
# source://activesupport//lib/active_support/core_ext/object/blank.rb#130
@@ -18999,20 +19145,20 @@ class Time
include ::DateAndTime::Zones
include ::DateAndTime::Calculations
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#297
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#305
def +(other); end
# Time#- can also be used to determine the number of seconds between two Time instances.
# We're layering on additional behavior so that ActiveSupport::TimeWithZone instances
# are coerced into values that Time#- will recognize
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#320
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#315
def -(other); end
# Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances
# can be chronologically compared with a Time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#329
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#345
def <=>(other); end
# Duck-types as a Time-like class. See Object#acts_like?.
@@ -19051,52 +19197,52 @@ class Time
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#243
def at_beginning_of_day; end
# Returns a new Time representing the start of the hour (x:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#267
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#270
def at_beginning_of_hour; end
# Returns a new Time representing the start of the minute (x:xx:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#283
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#286
def at_beginning_of_minute; end
# Returns a new Time representing the end of the day, 23:59:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#256
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#264
def at_end_of_day; end
# Returns a new Time representing the end of the hour, x:59:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#273
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#280
def at_end_of_hour; end
# Returns a new Time representing the end of the minute, x:xx:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#289
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#295
def at_end_of_minute; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#251
def at_midday; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#253
def at_middle_of_day; end
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#242
def at_midnight; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#252
def at_noon; end
# Returns a new Time representing the start of the day (0:00)
@@ -19147,6 +19293,9 @@ class Time
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#329
def compare_with_coercion(other); end
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#344
+ def compare_without_coercion(_arg0); end
+
# Returns a new Time representing the end of the day, 23:59:59.999999
#
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#256
@@ -19165,7 +19314,7 @@ class Time
# Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances
# can be eql? to an equivalent Time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#349
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#355
def eql?(other); end
# Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances
@@ -19174,6 +19323,9 @@ class Time
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#349
def eql_with_coercion(other); end
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#354
+ def eql_without_coercion(_arg0); end
+
# Returns a formatted string of the offset from UTC, or an alternative
# string if the time zone is already UTC.
#
@@ -19185,12 +19337,12 @@ class Time
# Returns a new Time representing the time a number of seconds since the instance time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#235
def in(seconds); end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
def midday; end
# Returns a new Time representing the middle of the day (12:00)
@@ -19200,7 +19352,7 @@ class Time
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#241
def midnight; end
# Time#- can also be used to determine the number of seconds between two Time instances.
@@ -19213,9 +19365,12 @@ class Time
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#307
def minus_with_duration(other); end
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#307
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#324
def minus_without_coercion(other); end
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#314
+ def minus_without_duration(_arg0); end
+
# Returns a new time the specified number of days in the future.
#
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#363
@@ -19233,12 +19388,15 @@ class Time
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#250
def noon; end
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#297
def plus_with_duration(other); end
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#304
+ def plus_without_duration(_arg0); end
+
# @return [Boolean]
#
# source://activesupport//lib/active_support/core_ext/object/blank.rb#196
@@ -19259,6 +19417,11 @@ class Time
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#378
def prev_year(years = T.unsafe(nil)); end
+ # Aliased to +xmlschema+ for compatibility with +DateTime+
+ #
+ # source://activesupport//lib/active_support/core_ext/time/conversions.rb#74
+ def rfc3339(*_arg0); end
+
# Returns the fraction of a second as a +Rational+
#
# Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2)
@@ -19316,7 +19479,7 @@ class Time
# Time::DATE_FORMATS[:month_and_year] = '%B %Y'
# Time::DATE_FORMATS[:short_ordinal] = ->(time) { time.strftime("%B #{time.day.ordinalize}") }
#
- # source://activesupport//lib/active_support/core_ext/time/conversions.rb#55
+ # source://activesupport//lib/active_support/core_ext/time/conversions.rb#62
def to_formatted_s(format = T.unsafe(nil)); end
# Converts to a formatted string. See DATE_FORMATS for built-in formats.
@@ -19358,7 +19521,7 @@ class Time
# Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime
# instances can be used when called with a single argument
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#45
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#60
def at(time_or_number, *args, **_arg2); end
# Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime
@@ -19367,6 +19530,9 @@ class Time
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#45
def at_with_coercion(time_or_number, *args, **_arg2); end
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#59
+ def at_without_coercion(time, subsec = T.unsafe(nil), unit = T.unsafe(nil), in: T.unsafe(nil)); end
+
# Returns Time.zone.now when Time.zone or config.time_zone are set, otherwise just returns Time.now .
#
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#39
diff --git a/sorbet/rbi/gems/addressable@2.8.7.rbi b/sorbet/rbi/gems/addressable@2.8.7.rbi
index eb8dae42..c3f28ea1 100644
--- a/sorbet/rbi/gems/addressable@2.8.7.rbi
+++ b/sorbet/rbi/gems/addressable@2.8.7.rbi
@@ -13,7 +13,7 @@ module Addressable; end
# source://addressable//lib/addressable/idna/pure.rb#21
module Addressable::IDNA
class << self
- # source://addressable//lib/addressable/idna/pure.rb#117
+ # source://addressable//lib/addressable/idna/pure.rb#122
def _deprecated_unicode_normalize_kc(value); end
# Converts from a Unicode internationalized domain name to an ASCII
@@ -29,6 +29,8 @@ module Addressable::IDNA
def to_unicode(input); end
# @deprecated Use {String#unicode_normalize(:nfkc)} instead
+ #
+ # source://addressable//lib/addressable/idna/pure.rb#117
def unicode_normalize_kc(*args, **_arg1, &block); end
private
@@ -200,7 +202,7 @@ class Addressable::Template
# otherwise.
# @see #==
#
- # source://addressable//lib/addressable/template.rb#274
+ # source://addressable//lib/addressable/template.rb#283
def eql?(template); end
# Expands a URI template into a full URI.
@@ -253,8 +255,8 @@ class Addressable::Template
# ).to_str
# #=> Addressable::Template::InvalidTemplateValueError
# @param mapping [Hash] The mapping that corresponds to the pattern.
- # @param processor [#validate, #transform] An optional processor object may be supplied.
# @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true
+ # @param processor [#validate, #transform] An optional processor object may be supplied.
# @return [Addressable::URI] The expanded URI template.
#
# source://addressable//lib/addressable/template.rb#591
@@ -294,7 +296,6 @@ class Addressable::Template
# "http://example.com/{first}/{-list|/|second}/"
# ).extract(uri)
# #=> {"first" => "a", "second" => ["b", "c"]}
- # @param uri [Addressable::URI, #to_str] The URI to extract from.
# @param processor [#restore, #match] A template processor object may optionally be supplied.
#
# The object should respond to either the restore or
@@ -308,6 +309,7 @@ class Addressable::Template
# matching on that particular variable. The default value is `".*?"`.
# The match method has no effect on multivariate operator
# expansions.
+ # @param uri [Addressable::URI, #to_str] The URI to extract from.
# @return [Hash, NilClass] The Hash mapping that was extracted from the URI, or
# nil if the URI didn't match the template.
#
@@ -335,7 +337,7 @@ class Addressable::Template
#
# @return [Array] The variables present in the template's pattern.
#
- # source://addressable//lib/addressable/template.rb#607
+ # source://addressable//lib/addressable/template.rb#610
def keys; end
# Extracts match data from the URI using a URI Template pattern.
@@ -381,7 +383,6 @@ class Addressable::Template
# #=> ["first", "second"]
# match.captures
# #=> ["a", ["b", "c"]]
- # @param uri [Addressable::URI, #to_str] The URI to extract from.
# @param processor [#restore, #match] A template processor object may optionally be supplied.
#
# The object should respond to either the restore or
@@ -395,6 +396,7 @@ class Addressable::Template
# matching on that particular variable. The default value is `".*?"`.
# The match method has no effect on multivariate operator
# expansions.
+ # @param uri [Addressable::URI, #to_str] The URI to extract from.
# @return [Hash, NilClass] The Hash mapping that was extracted from the URI, or
# nil if the URI didn't match the template.
#
@@ -416,7 +418,7 @@ class Addressable::Template
#
# @return [Array] The variables present in the template's pattern.
#
- # source://addressable//lib/addressable/template.rb#607
+ # source://addressable//lib/addressable/template.rb#611
def names; end
# Expands a URI template into another URI template.
@@ -449,8 +451,8 @@ class Addressable::Template
# ).partial_expand({"one" => "1", "three" => 3}).pattern
# #=> "http://example.com/?one=1{&two}&three=3"
# @param mapping [Hash] The mapping that corresponds to the pattern.
- # @param processor [#validate, #transform] An optional processor object may be supplied.
# @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true
+ # @param processor [#validate, #transform] An optional processor object may be supplied.
# @return [Addressable::Template] The partially expanded URI template.
#
# source://addressable//lib/addressable/template.rb#524
@@ -567,10 +569,10 @@ class Addressable::Template
# automatically. Unicode normalization will be performed both before and
# after sending the value to the transform method.
#
- # @param mapping [Hash] The mapping to replace captures
# @param capture [String] The expression to replace
- # @param processor [#validate, #transform] An optional processor object may be supplied.
+ # @param mapping [Hash] The mapping to replace captures
# @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true
+ # @param processor [#validate, #transform] An optional processor object may be supplied.
# @return [String] The expanded expression
#
# source://addressable//lib/addressable/template.rb#753
@@ -590,10 +592,10 @@ class Addressable::Template
# automatically. Unicode normalization will be performed both before and
# after sending the value to the transform method.
#
- # @param mapping [Hash] Set of keys to expand
# @param capture [String] The expression to expand
- # @param processor [#validate, #transform] An optional processor object may be supplied.
+ # @param mapping [Hash] Set of keys to expand
# @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true
+ # @param processor [#validate, #transform] An optional processor object may be supplied.
# @return [String] The expanded expression
#
# source://addressable//lib/addressable/template.rb#694
@@ -654,7 +656,7 @@ class Addressable::Template::MatchData
# Note that this list will include nils for any variables which
# were in the Template, but did not appear in the URI.
#
- # source://addressable//lib/addressable/template.rb#143
+ # source://addressable//lib/addressable/template.rb#149
def captures; end
# Returns a String representation of the MatchData's state.
@@ -668,7 +670,7 @@ class Addressable::Template::MatchData
# Note that this list will include variables which do not appear
# in the mapping because they were not present in URI.
#
- # source://addressable//lib/addressable/template.rb#132
+ # source://addressable//lib/addressable/template.rb#135
def keys; end
# @return [Hash] The mapping that resulted from the match.
@@ -683,14 +685,14 @@ class Addressable::Template::MatchData
# Note that this list will include variables which do not appear
# in the mapping because they were not present in URI.
#
- # source://addressable//lib/addressable/template.rb#132
+ # source://addressable//lib/addressable/template.rb#136
def names; end
# Dummy method for code expecting a ::MatchData instance
#
# @return [String] An empty string.
#
- # source://addressable//lib/addressable/template.rb#222
+ # source://addressable//lib/addressable/template.rb#225
def post_match; end
# Dummy method for code expecting a ::MatchData instance
@@ -702,7 +704,7 @@ class Addressable::Template::MatchData
# @return [String] The matched URI as String.
#
- # source://addressable//lib/addressable/template.rb#191
+ # source://addressable//lib/addressable/template.rb#194
def string; end
# @return [Addressable::Template] The Template used for the match.
@@ -799,7 +801,7 @@ class Addressable::URI
# @param The [String, Addressable::URI, #to_str] URI to join with.
# @return [Addressable::URI] The joined URI.
#
- # source://addressable//lib/addressable/uri.rb#1889
+ # source://addressable//lib/addressable/uri.rb#1982
def +(uri); end
# Returns true if the URI objects are equal. This method
@@ -1403,7 +1405,7 @@ class Addressable::URI
#
# @return [String] The URI's String representation.
#
- # source://addressable//lib/addressable/uri.rb#2341
+ # source://addressable//lib/addressable/uri.rb#2361
def to_str; end
# The user component for this URI.
@@ -1515,11 +1517,11 @@ class Addressable::URI
# Percent encodes any special characters in the URI.
#
- # @param uri [String, Addressable::URI, #to_str] The URI to encode.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
+ # @param uri [String, Addressable::URI, #to_str] The URI to encode.
# @return [String, Addressable::URI] The encoded URI.
# The return type is determined by the return_type
# parameter.
@@ -1545,12 +1547,12 @@ class Addressable::URI
# "simple/example", Addressable::URI::CharacterClasses::UNRESERVED
# )
# => "simple%2Fexample"
- # @param component [String, #to_str] The URI component to encode.
# @param character_class [String, Regexp] The characters which are not percent encoded. If a String
# is passed, the String must be formatted as a regular
# expression character class. (Do not include the surrounding square
# brackets.) For example, "b-zB-Z0-9" would cause
# everything but the letters 'b' through 'z' and the numbers '0' through
+ # @param component [String, #to_str] The URI component to encode.
# @param upcase_encoded [Regexp] A string of characters that may already be percent encoded, and whose
# encodings should be upcased. This allows normalization of percent
# encodings for characters not included in the
@@ -1562,16 +1564,16 @@ class Addressable::URI
# Percent encodes any special characters in the URI.
#
- # @param uri [String, Addressable::URI, #to_str] The URI to encode.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
+ # @param uri [String, Addressable::URI, #to_str] The URI to encode.
# @return [String, Addressable::URI] The encoded URI.
# The return type is determined by the return_type
# parameter.
#
- # source://addressable//lib/addressable/uri.rb#616
+ # source://addressable//lib/addressable/uri.rb#651
def escape(uri, return_type = T.unsafe(nil)); end
# Percent encodes a URI component.
@@ -1592,19 +1594,19 @@ class Addressable::URI
# "simple/example", Addressable::URI::CharacterClasses::UNRESERVED
# )
# => "simple%2Fexample"
- # @param component [String, #to_str] The URI component to encode.
# @param character_class [String, Regexp] The characters which are not percent encoded. If a String
# is passed, the String must be formatted as a regular
# expression character class. (Do not include the surrounding square
# brackets.) For example, "b-zB-Z0-9" would cause
# everything but the letters 'b' through 'z' and the numbers '0' through
+ # @param component [String, #to_str] The URI component to encode.
# @param upcase_encoded [Regexp] A string of characters that may already be percent encoded, and whose
# encodings should be upcased. This allows normalization of percent
# encodings for characters not included in the
# character_class.
# @return [String] The encoded component.
#
- # source://addressable//lib/addressable/uri.rb#403
+ # source://addressable//lib/addressable/uri.rb#446
def escape_component(component, character_class = T.unsafe(nil), upcase_encoded = T.unsafe(nil)); end
# Encodes a set of key/value pairs according to the rules for the
@@ -1633,11 +1635,11 @@ class Addressable::URI
# URI — the method will use heuristics to guess what URI was intended.
# This is not standards-compliant, merely user-friendly.
#
+ # @param hints [Hash] A Hash of hints to the heuristic parser.
+ # Defaults to {:scheme => "http"}.
# @param uri [String, Addressable::URI, #to_str] The URI string to parse.
# No parsing is performed if the object is already an
# Addressable::URI.
- # @param hints [Hash] A Hash of hints to the heuristic parser.
- # Defaults to {:scheme => "http"}.
# @return [Addressable::URI] The parsed URI.
#
# source://addressable//lib/addressable/uri.rb#191
@@ -1683,7 +1685,6 @@ class Addressable::URI
# "/"
# )
# => "one two%2Fthree&four"
- # @param component [String, #to_str] The URI component to encode.
# @param character_class [String, Regexp] The characters which are not percent encoded. If a String
# is passed, the String must be formatted as a regular
# expression character class. (Do not include the surrounding square
@@ -1695,6 +1696,7 @@ class Addressable::URI
# Addressable::URI::CharacterClasses module. The default
# value is the reserved plus unreserved character classes specified in
# RFC 3986 .
+ # @param component [String, #to_str] The URI component to encode.
# @param leave_encoded [String] When character_class is a String then
# leave_encoded is a string of characters that should remain
# percent encoded while normalizing the component; if they appear percent
@@ -1716,11 +1718,11 @@ class Addressable::URI
# Normalizes the encoding of a URI. Characters within a hostname are
# not percent encoded to allow for internationalized domain names.
#
- # @param uri [String, Addressable::URI, #to_str] The URI to encode.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
+ # @param uri [String, Addressable::URI, #to_str] The URI to encode.
# @return [String, Addressable::URI] The encoded URI.
# The return type is determined by the return_type
# parameter.
@@ -1750,13 +1752,13 @@ class Addressable::URI
# however, it is recommended to use the unencode_component
# alias when unencoding components.
#
- # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
+ # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
+ # in this list is encountered then it will remain percent encoded.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
- # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
- # in this list is encountered then it will remain percent encoded.
+ # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
# @return [String, Addressable::URI] The unencoded component or URI.
# The return type is determined by the return_type
# parameter.
@@ -1769,18 +1771,18 @@ class Addressable::URI
# however, it is recommended to use the unencode_component
# alias when unencoding components.
#
- # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
+ # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
+ # in this list is encountered then it will remain percent encoded.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
- # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
- # in this list is encountered then it will remain percent encoded.
+ # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
# @return [String, Addressable::URI] The unencoded component or URI.
# The return type is determined by the return_type
# parameter.
#
- # source://addressable//lib/addressable/uri.rb#472
+ # source://addressable//lib/addressable/uri.rb#502
def unencode_component(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end
# Unencodes any percent encoded characters within a URI component.
@@ -1788,18 +1790,18 @@ class Addressable::URI
# however, it is recommended to use the unencode_component
# alias when unencoding components.
#
- # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
+ # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
+ # in this list is encountered then it will remain percent encoded.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
- # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
- # in this list is encountered then it will remain percent encoded.
+ # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
# @return [String, Addressable::URI] The unencoded component or URI.
# The return type is determined by the return_type
# parameter.
#
- # source://addressable//lib/addressable/uri.rb#472
+ # source://addressable//lib/addressable/uri.rb#501
def unescape(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end
# Unencodes any percent encoded characters within a URI component.
@@ -1807,18 +1809,18 @@ class Addressable::URI
# however, it is recommended to use the unencode_component
# alias when unencoding components.
#
- # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
+ # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
+ # in this list is encountered then it will remain percent encoded.
# @param return_type [Class] The type of object to return.
# This value may only be set to String or
# Addressable::URI. All other values are invalid. Defaults
# to String.
- # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character
- # in this list is encountered then it will remain percent encoded.
+ # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode.
# @return [String, Addressable::URI] The unencoded component or URI.
# The return type is determined by the return_type
# parameter.
#
- # source://addressable//lib/addressable/uri.rb#472
+ # source://addressable//lib/addressable/uri.rb#503
def unescape_component(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end
end
end
diff --git a/sorbet/rbi/gems/ast@2.4.3.rbi b/sorbet/rbi/gems/ast@2.4.3.rbi
index 29c5bccb..c05e587e 100644
--- a/sorbet/rbi/gems/ast@2.4.3.rbi
+++ b/sorbet/rbi/gems/ast@2.4.3.rbi
@@ -77,14 +77,14 @@ class AST::Node
#
# @return [AST::Node]
#
- # source://ast//lib/ast/node.rb#168
+ # source://ast//lib/ast/node.rb#172
def +(array); end
# Appends `element` to `children` and returns the resulting node.
#
# @return [AST::Node]
#
- # source://ast//lib/ast/node.rb#177
+ # source://ast//lib/ast/node.rb#181
def <<(element); end
# Compares `self` to `other`, possibly converting with `to_ast`. Only
@@ -123,7 +123,7 @@ class AST::Node
#
# @return self
#
- # source://ast//lib/ast/node.rb#115
+ # source://ast//lib/ast/node.rb#118
def clone; end
# Concatenates `array` with `children` and returns the resulting node.
@@ -186,7 +186,7 @@ class AST::Node
#
# @return [Array]
#
- # source://ast//lib/ast/node.rb#56
+ # source://ast//lib/ast/node.rb#57
def to_a; end
# @return [AST::Node] self
@@ -199,7 +199,7 @@ class AST::Node
# @param indent [Integer] Base indentation level.
# @return [String]
#
- # source://ast//lib/ast/node.rb#187
+ # source://ast//lib/ast/node.rb#204
def to_s(indent = T.unsafe(nil)); end
# Converts `self` to a pretty-printed s-expression.
@@ -234,9 +234,9 @@ class AST::Node
#
# If the resulting node would be identical to `self`, does nothing.
#
- # @param type [Symbol, nil]
# @param children [Array, nil]
# @param properties [Hash, nil]
+ # @param type [Symbol, nil]
# @return [AST::Node]
#
# source://ast//lib/ast/node.rb#133
@@ -266,6 +266,7 @@ class AST::Node
private
+ # source://ast//lib/ast/node.rb#107
def original_dup; end
end
diff --git a/sorbet/rbi/gems/async@2.34.0.rbi b/sorbet/rbi/gems/async@2.34.0.rbi
index ae09cd1b..3ac2eb76 100644
--- a/sorbet/rbi/gems/async@2.34.0.rbi
+++ b/sorbet/rbi/gems/async@2.34.0.rbi
@@ -305,7 +305,7 @@ class Async::List
# source://async//lib/async/list.rb#189
def include?(needle); end
- # source://async//lib/async/list.rb#18
+ # source://async//lib/async/list.rb#23
def inspect; end
# source://async//lib/async/list.rb#215
@@ -419,7 +419,7 @@ class Async::List::Node
# source://async//lib/async/list.rb#240
def head=(_arg0); end
- # source://async//lib/async/list.rb#244
+ # source://async//lib/async/list.rb#249
def inspect; end
# Returns the value of attribute tail.
@@ -504,7 +504,7 @@ class Async::Node
# source://async//lib/async/node.rb#97
def head=(_arg0); end
- # source://async//lib/async/node.rb#180
+ # source://async//lib/async/node.rb#185
def inspect; end
# Returns the value of attribute parent.
@@ -627,12 +627,16 @@ class Async::Notification::Signal < ::Struct
# Returns the value of attribute ready
#
# @return [Object] the current value of ready
+ #
+ # source://async//lib/async/notification.rb#23
def ready; end
# Sets the attribute ready
#
# @param value [Object] the value to set the attribute ready to.
# @return [Object] the newly set value
+ #
+ # source://async//lib/async/notification.rb#23
def ready=(_); end
# source://async//lib/async/notification.rb#28
@@ -641,19 +645,32 @@ class Async::Notification::Signal < ::Struct
# Returns the value of attribute value
#
# @return [Object] the current value of value
+ #
+ # source://async//lib/async/notification.rb#23
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://async//lib/async/notification.rb#23
def value=(_); end
class << self
+ # source://async//lib/async/notification.rb#23
def [](*_arg0); end
+
+ # source://async//lib/async/notification.rb#23
def inspect; end
+
+ # source://async//lib/async/notification.rb#23
def keyword_init?; end
+
+ # source://async//lib/async/notification.rb#23
def members; end
+
+ # source://async//lib/async/notification.rb#23
def new(*_arg0); end
end
end
@@ -873,6 +890,7 @@ class Async::Reactor < ::Async::Scheduler
# source://async//lib/async/reactor.rb#28
def scheduler_close; end
+ # source://async//lib/async/reactor.rb#32
def sleep(*_arg0); end
class << self
diff --git a/sorbet/rbi/gems/benchmark@0.4.1.rbi b/sorbet/rbi/gems/benchmark@0.4.1.rbi
index 467f27bb..e29780e7 100644
--- a/sorbet/rbi/gems/benchmark@0.4.1.rbi
+++ b/sorbet/rbi/gems/benchmark@0.4.1.rbi
@@ -290,7 +290,7 @@ module Benchmark
# >total: 2.930000 0.000000 2.930000 ( 2.932889)
# >avg: 0.976667 0.000000 0.976667 ( 0.977630)
#
- # source://benchmark//lib/benchmark.rb#171
+ # source://benchmark//lib/benchmark.rb#328
def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end
# A simple interface to the #benchmark method, #bm generates sequential
@@ -313,7 +313,7 @@ module Benchmark
# times: 0.960000 0.000000 0.960000 ( 0.960423)
# upto: 0.950000 0.000000 0.950000 ( 0.954864)
#
- # source://benchmark//lib/benchmark.rb#216
+ # source://benchmark//lib/benchmark.rb#328
def bm(label_width = T.unsafe(nil), *labels, &blk); end
# Sometimes benchmark results are skewed because code executed
@@ -353,7 +353,7 @@ module Benchmark
# #bmbm yields a Benchmark::Job object and returns an array of
# Benchmark::Tms objects.
#
- # source://benchmark//lib/benchmark.rb#258
+ # source://benchmark//lib/benchmark.rb#328
def bmbm(width = T.unsafe(nil)); end
# Returns the time used to execute the given block as a
@@ -372,7 +372,7 @@ module Benchmark
#
# 0.220000 0.000000 0.220000 ( 0.227313)
#
- # source://benchmark//lib/benchmark.rb#303
+ # source://benchmark//lib/benchmark.rb#328
def measure(label = T.unsafe(nil)); end
# Returns the elapsed real time used to execute the given block.
@@ -381,7 +381,7 @@ module Benchmark
# Benchmark.realtime { "a" * 1_000_000_000 }
# #=> 0.5098029999935534
#
- # source://benchmark//lib/benchmark.rb#322
+ # source://benchmark//lib/benchmark.rb#328
def realtime; end
end
end
@@ -418,7 +418,7 @@ class Benchmark::Job
#
# @raise [ArgumentError]
#
- # source://benchmark//lib/benchmark.rb#350
+ # source://benchmark//lib/benchmark.rb#359
def report(label = T.unsafe(nil), &blk); end
# Length of the widest label in the #list.
@@ -464,7 +464,7 @@ class Benchmark::Report
# formatted by +format+. See Tms#format for the
# formatting rules.
#
- # source://benchmark//lib/benchmark.rb#389
+ # source://benchmark//lib/benchmark.rb#396
def report(label = T.unsafe(nil), *format, &blk); end
# An array of Benchmark::Tms objects representing each item.
diff --git a/sorbet/rbi/gems/bigdecimal@3.2.2.rbi b/sorbet/rbi/gems/bigdecimal@3.2.2.rbi
index 778bb843..63c461b1 100644
--- a/sorbet/rbi/gems/bigdecimal@3.2.2.rbi
+++ b/sorbet/rbi/gems/bigdecimal@3.2.2.rbi
@@ -1,4 +1,4 @@
-# typed: true
+# typed: false
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `bigdecimal` gem.
@@ -7,6 +7,156 @@
# source://bigdecimal//lib/bigdecimal/util.rb#78
class BigDecimal < ::Numeric
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def %(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def *(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def **(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def +(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def +@; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def -(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def -@; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def /(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def <(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def <=(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def <=>(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def ==(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def ===(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def >(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def >=(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def _dump(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def abs; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def add(_arg0, _arg1); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def ceil(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def clone; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def coerce(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def div(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def divmod(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def dup; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def eql?(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def exponent; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def finite?; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def fix; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def floor(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def frac; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def hash; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def infinite?; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def inspect; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def modulo(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def mult(_arg0, _arg1); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def n_significant_digits; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def nan?; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def nonzero?; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def power(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def precision; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def precision_scale; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def precs; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def quo(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def remainder(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def round(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def scale; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def sign; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def split; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def sqrt(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def sub(_arg0, _arg1); end
+
# call-seq:
# a.to_d -> bigdecimal
#
@@ -33,6 +183,53 @@ class BigDecimal < ::Numeric
#
# source://bigdecimal//lib/bigdecimal/util.rb#90
def to_digits; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def to_f; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def to_i; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def to_int; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def to_r; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def to_s(format = T.unsafe(nil)); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def truncate(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def zero?; end
+
+ class << self
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def _load(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def double_fig; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def interpret_loosely(_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def limit(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def mode(*_arg0); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def save_exception_mode; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def save_limit; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#4
+ def save_rounding_mode; end
+ end
end
BigDecimal::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi b/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
index 1f32266f..ea413441 100644
--- a/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
+++ b/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
@@ -109,7 +109,7 @@ module Concurrent
#
# @raise [Transaction::AbortError]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#139
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148
def abort_transaction; end
# Run a block that reads and writes `TVar`s as a single atomic transaction.
@@ -144,7 +144,7 @@ module Concurrent
# end
# @raise [ArgumentError]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#82
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148
def atomically; end
# Number of processors cores available for process scheduling.
@@ -162,7 +162,7 @@ module Concurrent
# @raise [ArgumentError]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#56
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#80
def call_dataflow(method, executor, *inputs, &block); end
# The maximum number of processors cores available for process scheduling.
@@ -212,16 +212,16 @@ module Concurrent
# @yieldparam inputs [Future] each of the `Future` inputs to the dataflow
# @yieldreturn [Object] the result of the block operation
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#34
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#37
def dataflow(*inputs, &block); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#44
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#47
def dataflow!(*inputs, &block); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#39
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#42
def dataflow_with(executor, *inputs, &block); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#49
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#52
def dataflow_with!(executor, *inputs, &block); end
# Disables AtExit handlers including pool auto-termination handlers.
@@ -287,7 +287,7 @@ module Concurrent
#
# @raise [Transaction::LeaveError]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#144
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#148
def leave_transaction; end
# Returns the current time as tracked by the application monotonic clock.
@@ -298,7 +298,7 @@ module Concurrent
# @return [Float] The current monotonic time since some unspecified
# starting point
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/monotonic_time.rb#15
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/monotonic_time.rb#18
def monotonic_time(unit = T.unsafe(nil)); end
# @return [Boolean]
@@ -323,10 +323,10 @@ 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 https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb
+ # @see http://linux.die.net/man/8/sysctl
# @see http://msdn.microsoft.com/en-us/library/aa394373(v=vs.85).aspx
# @see http://www.unix.com/man-page/osx/1/HWPREFS/
- # @see http://linux.die.net/man/8/sysctl
+ # @see https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#181
def physical_processor_count; end
@@ -388,8 +388,8 @@ class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object
# signifies timeout. When `nil` is a valid value in the exchange consider
# using {#exchange!} or {#try_exchange} instead.
#
- # @param value [Object] the value to exchange with another thread
# @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
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#69
@@ -405,8 +405,8 @@ class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object
#
# On timeout a {Concurrent::TimeoutError} exception will be raised.
#
- # @param value [Object] the value to exchange with another thread
# @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
#
@@ -435,8 +435,8 @@ class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object
# else
# puts 'timeout'
# end
- # @param value [Object] the value to exchange with another thread
# @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`
@@ -453,8 +453,8 @@ class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object
# for the exchange. When the timeout value is `nil` the method will
# block indefinitely.
#
- # @param value [Object] the value to exchange with another thread
# @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
#
@@ -895,7 +895,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
#
# @return [Object] the current value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#229
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#233
def deref; end
# When {#failed?} and {#error_mode} is `:fail`, returns the error object
@@ -937,18 +937,18 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @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 value [Object] the current {#value} of the Agent
# @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
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#298
def post(*args, &action); end
# When {#failed?} and {#error_mode} is `:fail`, returns the error object
@@ -957,7 +957,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
#
# @return [nil, Error] the error which caused the failure when {#failed?}
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#240
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#244
def reason; end
# When an Agent is {#failed?}, changes the Agent {#value} to `new_value`
@@ -995,15 +995,15 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @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 value [Object] the current {#value} of the Agent
# @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
@@ -1026,15 +1026,15 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @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 value [Object] the current {#value} of the Agent
# @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
@@ -1057,15 +1057,15 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @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 value [Object] the current {#value} of the Agent
# @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
@@ -1088,15 +1088,15 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @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 value [Object] the current {#value} of the Agent
# @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
@@ -1119,17 +1119,17 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @param executor [Concurrent::ExecutorService] 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 value [Object] the current {#value} of the Agent
# @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
@@ -1152,17 +1152,17 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# * {#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 action [Proc] the action dispatch to be enqueued
# @param executor [Concurrent::ExecutorService] 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 value [Object] the current {#value} of the Agent
# @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
@@ -1173,7 +1173,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# @return [Boolean]
# @see #restart
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#402
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#406
def stopped?; end
# The current value (state) of the Agent, irrespective of any pending or
@@ -1266,8 +1266,8 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# 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 agents [Array] the Agents on which to wait
+ # @param timeout [Float] 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#463
@@ -1284,8 +1284,8 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# 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 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
#
@@ -1324,52 +1324,77 @@ class Concurrent::Agent::Job < ::Struct
# Returns the value of attribute action
#
# @return [Object] the current value of action
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def action; end
# Sets the attribute action
#
# @param value [Object] the value to set the attribute action to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def action=(_); end
# Returns the value of attribute args
#
# @return [Object] the current value of args
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def args; end
# Sets the attribute args
#
# @param value [Object] the value to set the attribute args to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def args=(_); end
# Returns the value of attribute caller
#
# @return [Object] the current value of caller
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def caller; end
# Sets the attribute caller
#
# @param value [Object] the value to set the attribute caller to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def caller=(_); end
# Returns the value of attribute executor
#
# @return [Object] the current value of executor
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def executor; end
# Sets the attribute executor
#
# @param value [Object] the value to set the attribute executor to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def executor=(_); end
class << self
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def [](*_arg0); end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def inspect; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def keyword_init?; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def members; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#163
def new(*_arg0); end
end
end
@@ -1609,9 +1634,9 @@ Concurrent::ArrayImplementation = Array
# horn.await.echo('two') # synchronous, blocking, thread-safe
# # returns an IVar in the :complete state
# @see Concurrent::Actor
-# @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/
+# @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
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#217
module Concurrent::Async
@@ -1674,7 +1699,7 @@ module Concurrent::Async
# requested method
# @return [Concurrent::IVar] the completed result of the synchronous operation
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#430
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#433
def call; end
# Causes the chained method call to be performed asynchronously on the
@@ -1694,7 +1719,7 @@ module Concurrent::Async
# the requested method
# @return [Concurrent::IVar] the pending result of the asynchronous operation
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#412
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/async.rb#415
def cast; end
# Initialize the internal serializer and other stnchronization mechanisms.
@@ -1719,14 +1744,14 @@ module Concurrent::Async
# 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 obj [Object] the object to check against
- # @param method [Symbol] the method to check the object for
# @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
def validate_argc(obj, method, *args); end
@@ -1747,8 +1772,8 @@ class Concurrent::Async::AsyncDelegator < ::Concurrent::Synchronization::Lockabl
# Delegates method calls to the wrapped object.
#
- # @param method [Symbol] the method being called
# @param args [Array] zero or more arguments to the method
+ # @param method [Symbol] the method being called
# @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
@@ -1792,8 +1817,8 @@ class Concurrent::Async::AwaitDelegator
# Delegates method calls to the wrapped object.
#
- # @param method [Symbol] the method being called
# @param args [Array] zero or more arguments to the method
+ # @param method [Symbol] the method being called
# @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
@@ -1910,15 +1935,15 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object
# Create a new atom with the given initial value.
#
# @option opts
- # @param value [Object] The initial value
# @param opts [Hash] The options used to configure the atom
+ # @param value [Object] The initial value
# @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
def initialize(value, opts = T.unsafe(nil)); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99
def __initialize_atomic_fields__; end
# Atomically sets the value of atom to the new value if and only if the
@@ -1926,14 +1951,14 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object
# value successfully validates against the (optional) validator given
# at construction.
#
- # @param old_value [Object] The expected current value.
# @param new_value [Object] The intended new value.
+ # @param old_value [Object] The expected current value.
# @return [Boolean] True if the value is changed else false.
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#181
def compare_and_set(old_value, new_value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#102
def deref; end
# Atomically sets the value of atom to the new value without regard for the
@@ -1969,8 +1994,8 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object
# validations are complete.
# @yield [value, args] Calculates a new value for the atom based on the
# current value and any supplied arguments.
- # @yieldparam value [Object] The current value of the atom.
# @yieldparam args [Object] All arguments passed to the function, in order.
+ # @yieldparam value [Object] The current value of the atom.
# @yieldreturn [Object] The intended new value of the atom.
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#157
@@ -1980,18 +2005,18 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object
#
# @return [Object] The current value.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99
def value; end
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99
def compare_and_set_value(expected, value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99
def swap_value(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99
def update_value(&block); end
# Is the new value valid?
@@ -2003,7 +2028,7 @@ class Concurrent::Atom < ::Concurrent::Synchronization::Object
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#216
def valid?(new_value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atom.rb#99
def value=(value); end
end
@@ -2065,7 +2090,7 @@ end
class Concurrent::AtomicBoolean < ::Concurrent::MutexAtomicBoolean
# @return [String] Short string representation.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#121
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb#125
def inspect; end
# @return [String] Short string representation.
@@ -2149,7 +2174,7 @@ end
class Concurrent::AtomicFixnum < ::Concurrent::MutexAtomicFixnum
# @return [String] Short string representation.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#138
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb#142
def inspect; end
# @return [String] Short string representation.
@@ -2175,7 +2200,7 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#15
def initialize(value = T.unsafe(nil), mark = T.unsafe(nil)); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12
def __initialize_atomic_fields__; end
# Atomically sets the value and mark to the given updated value and
@@ -2186,10 +2211,10 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
# that the actual value was not equal to the expected value or the
# actual mark was not equal to the expected mark
#
- # @param expected_val [Object] the expected value
- # @param new_val [Object] the new value
# @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
@@ -2203,13 +2228,13 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
# that the actual value was not equal to the expected value or the
# actual mark was not equal to the expected mark
#
- # @param expected_val [Object] the expected value
- # @param new_val [Object] the new value
# @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
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#59
def compare_and_swap(expected_val, new_val, expected_mark, new_mark); end
# Gets the current reference and marked values.
@@ -2230,14 +2255,14 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
#
# @return [Boolean] the current marked value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#78
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#82
def marked?; end
# _Unconditionally_ sets to the given value of both the reference and
# the mark.
#
- # @param new_val [Object] the new value
# @param new_mark [Boolean] the new mark
+ # @param new_val [Object] the new value
# @return [Array] both the new value and the new mark
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#91
@@ -2251,8 +2276,8 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
# @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_val [Object] the starting value of the atomic reference
# @yieldparam old_mark [Boolean] the starting state of marked
+ # @yieldparam old_val [Object] the starting value of the atomic reference
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#152
def try_update; end
@@ -2265,8 +2290,8 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
# @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_val [Object] the starting value of the atomic reference
# @yieldparam old_mark [Boolean] the starting state of marked
+ # @yieldparam old_val [Object] the starting value of the atomic reference
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#128
def try_update!; end
@@ -2278,8 +2303,8 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
# @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_val [Object] the starting value of the atomic reference
# @yieldparam old_mark [Boolean] the starting state of marked
+ # @yieldparam old_val [Object] the starting value of the atomic reference
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#105
def update; end
@@ -2293,22 +2318,22 @@ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Objec
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12
def compare_and_set_reference(expected, value); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#163
def immutable_array(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12
def reference; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12
def reference=(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12
def swap_reference(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb#12
def update_reference(&block); end
end
@@ -2321,8 +2346,8 @@ module Concurrent::AtomicNumericCompareAndSetWrapper
#
# that the actual value was not equal to the expected value.
#
- # @param old_value [Object] 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/numeric_cas_wrapper.rb#10
@@ -2372,7 +2397,7 @@ end
class Concurrent::AtomicReference < ::Concurrent::MutexAtomicReference
# @return [String] Short string representation.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#129
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb#133
def inspect; end
# @return [String] Short string representation.
@@ -2386,195 +2411,195 @@ Concurrent::AtomicReferenceImplementation = Concurrent::MutexAtomicReference
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#30
class Concurrent::CRubySet < ::Set
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#18
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def initialize(*args, &block); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def &(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def +(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def -(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def <(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def <<(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def <=(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def <=>(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def ==(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def ===(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def >(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def >=(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def ^(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def add(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def add?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def classify(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def clear(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def collect!(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def compare_by_identity(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def compare_by_identity?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def delete(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def delete?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def delete_if(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def difference(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def disjoint?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def divide(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def each(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def empty?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def eql?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def filter!(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def flatten(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def flatten!(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def flatten_merge(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def freeze(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def hash(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def include?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def inspect(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def intersect?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def intersection(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def join(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def keep_if(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def length(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def map!(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def member?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def merge(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def pretty_print(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def pretty_print_cycle(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def proper_subset?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def proper_superset?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def reject!(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def replace(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def reset(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def select!(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def size(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def subset?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def subtract(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def superset?(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def to_a(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def to_s(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def to_set(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def union(*args); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#32
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def |(*args); end
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb#23
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/set.rb#33
def initialize_copy(other); end
end
@@ -2940,30 +2965,30 @@ end
# When running under all other interpreters it extends `RubyNonConcurrentPriorityQueue`.
#
# @note This implementation is *not* thread safe.
-# @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://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/non_concurrent_priority_queue.rb#50
class Concurrent::Collection::NonConcurrentPriorityQueue < ::Concurrent::Collection::RubyNonConcurrentPriorityQueue
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#59
def <<(item); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#56
def deq; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#60
def enq(item); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#48
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#52
def has_priority?(item); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#57
def shift; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#54
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb#54
def size; end
end
@@ -2990,11 +3015,11 @@ Concurrent::Collection::NonConcurrentPriorityQueueImplementation = Concurrent::C
# When running under all other interpreters it extends `RubyNonConcurrentPriorityQueue`.
#
# @note This implementation is *not* thread safe.
-# @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://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
class Concurrent::Collection::RubyNonConcurrentPriorityQueue
@@ -3012,7 +3037,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
# @param item [Object] the item to insert onto the queue
# @raise [ArgumentError]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#85
def <<(item); end
# Removes all of the elements from this priority queue.
@@ -3033,7 +3058,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
#
# @return [Object] the head of the queue or `nil` when empty
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#74
def deq; end
# Returns `true` if `self` contains no elements.
@@ -3048,7 +3073,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
# @param item [Object] the item to insert onto the queue
# @raise [ArgumentError]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#78
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#86
def enq(item); end
# Returns `true` if the given item is present in `self` (that is, if any
@@ -3057,7 +3082,7 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
# @param item [Object] the item to search for
# @return [Boolean] true if the item is found else false
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#48
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#51
def has_priority?(item); end
# Returns `true` if the given item is present in `self` (that is, if any
@@ -3105,14 +3130,14 @@ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
#
# @return [Object] the head of the queue or `nil` when empty
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#65
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#75
def shift; end
# The current length of the queue.
#
# @return [Fixnum] the number of items in the queue
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#54
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb#57
def size; end
private
@@ -3187,7 +3212,7 @@ module Concurrent::Concern::Dereferenceable
#
# @return [Object] the current value of the object
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#21
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/dereferenceable.rb#24
def deref; end
# Return the value this object represents after applying the options specified
@@ -3246,8 +3271,8 @@ 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 progname [String] e.g. a path of an Actor
# @param message [String, nil] when nil block is used to generate the message
+ # @param progname [String] e.g. a path of an Actor
# @yieldreturn [String] a message
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#19
@@ -3315,7 +3340,7 @@ module Concurrent::Concern::Obligation
# @raise [Exception] raises the reason when rejected
# @return [Obligation] self
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#86
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#89
def no_error!(timeout = T.unsafe(nil)); end
# Is obligation completion still pending?
@@ -3329,7 +3354,7 @@ module Concurrent::Concern::Obligation
#
# @return [Boolean]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#20
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#23
def realized?; end
# If an exception was raised during processing this will return the
@@ -3406,8 +3431,8 @@ module Concurrent::Concern::Obligation
# Atomic compare and set operation
# State is set to `next_state` only if `current state == expected_current`.
#
- # @param next_state [Symbol]
# @param expected_current [Symbol]
+ # @param next_state [Symbol]
# @return [Boolean] true is state is changed, false otherwise
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/obligation.rb#174
@@ -3496,9 +3521,9 @@ 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.
#
- # @param observer [Object] the observer to add
# @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
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#61
@@ -3529,8 +3554,8 @@ module Concurrent::Concern::Observable
# As `#add_observer` but can be used for chaining.
#
- # @param observer [Object] the observer to add
# @param func [Symbol] the function to call on the observer during notification.
+ # @param observer [Object] the observer to add
# @return [Observable] self
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/observable.rb#70
@@ -3699,19 +3724,32 @@ class Concurrent::CyclicBarrier::Generation < ::Struct
# Returns the value of attribute status
#
# @return [Object] the current value of status
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def status; end
# Sets the attribute status
#
# @param value [Object] the value to set the attribute status to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def status=(_); end
class << self
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def [](*_arg0); end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def inspect; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def keyword_init?; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def members; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb#30
def new(*_arg0); end
end
end
@@ -4179,9 +4217,9 @@ end
#
# @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/tutorial/essential/concurrency/pools.html Java Tutorials: Thread Pools
# @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-
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb#201
@@ -4202,9 +4240,9 @@ end
# {include:file:docs-source/future.md}
#
-# @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
class Concurrent::Future < ::Concurrent::IVar
@@ -4239,14 +4277,14 @@ class Concurrent::Future < ::Concurrent::IVar
# 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
# future = Concurrent::Future.new{ sleep(1); 42 }
# future.state #=> :unscheduled
# future.execute
# future.state #=> :pending
- # @example Instance and execute in one line
- # future = Concurrent::Future.new{ sleep(1); 42 }.execute
- # future.state #=> :pending
# @return [Future] a reference to `self`
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/future.rb#53
@@ -4365,8 +4403,8 @@ class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject
# @option opts
# @option opts
# @option opts
- # @param value [Object] the initial value
# @param opts [Hash] the options to create a message with
+ # @param value [Object] the initial value
# @return [IVar] a new instance of IVar
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#62
@@ -4380,9 +4418,9 @@ class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject
# final `value` (or `nil` on rejection), and the final `reason` (or `nil` on
# fulfillment).
#
- # @param observer [Object] the object that will be notified of changes
# @param func [Symbol] 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
@@ -4489,7 +4527,7 @@ class Concurrent::ImmediateExecutor < ::Concurrent::AbstractExecutorService
# but no new tasks will be accepted. Has no additional effect if the
# thread pool is not running.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#55
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/immediate_executor.rb#59
def kill; end
# Submit a task to the executor for asynchronous processing.
@@ -4577,13 +4615,13 @@ module Concurrent::ImmutableStruct
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#68
def select(&block); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#17
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#21
def to_a; end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#41
def to_h; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#33
def to_s; end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/immutable_struct.rb#17
@@ -4670,7 +4708,7 @@ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#51
def initialize(head = T.unsafe(nil)); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37
def __initialize_atomic_fields__; end
# @return [true, false]
@@ -4724,7 +4762,7 @@ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object
# @return [String] Short string representation.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#154
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#158
def inspect; end
# @return [Node]
@@ -4757,19 +4795,19 @@ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37
def compare_and_set_head(expected, value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37
def head; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37
def head=(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37
def swap_head(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#37
def update_head(&block); end
class << self
@@ -4809,6 +4847,7 @@ class Concurrent::LockFreeStack::Node
def value=(_arg0); end
class << self
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb#28
def [](*_arg0); end
end
end
@@ -4994,7 +5033,7 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
# @yieldparam key [Object]
# @yieldparam value [Object]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#274
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#279
def each; end
# Iterates over each key.
@@ -5052,8 +5091,8 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
# 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 key [Object]
# @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
# @yield default value for a key
@@ -5068,8 +5107,8 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
# therefore not atomic. The store can overwrite other concurrently
# stored value.
#
- # @param key [Object]
# @param default_value [Object]
+ # @param key [Object]
# @return [Object] the value or default value
# @yield default value for a key
# @yieldparam key [Object]
@@ -5083,7 +5122,7 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
# @param key [Object]
# @return [Object] the value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb#21
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#162
def get(key); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#321
@@ -5118,7 +5157,7 @@ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
# @param value [Object]
# @return [Object] the new value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb#17
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/map.rb#163
def put(key, value); end
# Insert value into map with key if key is absent in one atomic step.
@@ -5263,8 +5302,8 @@ class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end
# # In a Rails controller...
# result = ClientService.new(10).find # returns a Maybe
# render json: result.or(NullClient.new)
-# @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
+# @see https://hackage.haskell.org/package/base-4.2.0.1/docs/Data-Maybe.html Haskell Data.Maybe
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#104
class Concurrent::Maybe < ::Concurrent::Synchronization::Object
@@ -5294,7 +5333,7 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object
#
# @return [Boolean] True if `Just` or false if `Nothing`.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#176
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#179
def fulfilled?; end
# The value of a `Maybe` when `Just`. Will be `NONE` when `Nothing`.
@@ -5330,19 +5369,19 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object
# The reason for the `Maybe` when `Nothing`. Will be `NONE` when `Just`.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#117
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#191
def reason; end
# Is this `Maybe` a `nothing` (rejected with an exception upon fulfillment)?
#
# @return [Boolean] True if `Nothing` or false if `Just`.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#184
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#187
def rejected?; end
# The value of a `Maybe` when `Just`. Will be `NONE` when `Nothing`.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#114
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#189
def value; end
class << self
@@ -5385,7 +5424,7 @@ class Concurrent::Maybe < ::Concurrent::Synchronization::Object
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/maybe.rb#119
def new(*args, &block); end
end
end
@@ -5509,8 +5548,8 @@ module Concurrent::MutableStruct
# @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 selfvalue [Object] the value of the member in `self`
# @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
def merge(other, &block); end
@@ -5530,7 +5569,7 @@ module Concurrent::MutableStruct
#
# @return [Array] the values for this struct
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#51
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#54
def to_a; end
# Returns a hash containing the names and values for the struct’s members.
@@ -5544,7 +5583,7 @@ module Concurrent::MutableStruct
#
# @return [String] the contents of this struct in a string
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#72
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/mutable_struct.rb#75
def to_s; end
# Returns the values for this struct as an Array.
@@ -5817,7 +5856,7 @@ class Concurrent::MutexAtomicFixnum
# @param delta [Fixnum] the amount by which to decrease the current value
# @return [Fixnum] the current value after decrementation
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#37
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#41
def down(delta = T.unsafe(nil)); end
# Increases the current value by the given amount (defaults to 1).
@@ -5833,7 +5872,7 @@ class Concurrent::MutexAtomicFixnum
# @param delta [Fixnum] the amount by which to increase the current value
# @return [Fixnum] the current value after incrementation
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#30
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb#34
def up(delta = T.unsafe(nil)); end
# Pass the current value to the given block, replacing it
@@ -5892,14 +5931,14 @@ class Concurrent::MutexAtomicReference
#
# that the actual value was not equal to the expected value.
#
- # @param old_value [Object] 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
def _compare_and_set(old_value, new_value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb#10
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#13
def compare_and_swap(old_value, new_value); end
# Gets the current value.
@@ -5930,14 +5969,14 @@ class Concurrent::MutexAtomicReference
# @param new_value [Object] the new value
# @return [Object] the old value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#35
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#42
def swap(new_value); end
# Gets the current value.
#
# @return [Object] the current value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#23
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#26
def value; end
# Sets to the given value.
@@ -5945,7 +5984,7 @@ class Concurrent::MutexAtomicReference
# @param new_value [Object] the new value
# @return [Object] the new value
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb#32
def value=(new_value); end
protected
@@ -6266,8 +6305,8 @@ class Concurrent::Promise < ::Concurrent::IVar
# @param opts [Hash] a customizable set of options
# @raise [ArgumentError] if no block is given
# @return [Promise] a new instance of Promise
- # @see http://wiki.commonjs.org/wiki/Promises/A
# @see http://promises-aplus.github.io/promises-spec/
+ # @see http://wiki.commonjs.org/wiki/Promises/A
# @yield The block operation to be performed asynchronously.
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#210
@@ -6279,7 +6318,7 @@ class Concurrent::Promise < ::Concurrent::IVar
# @return [Promise] self
# @yield The block to execute
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#360
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#364
def catch(&block); end
# Execute an `:unscheduled` `Promise`. Immediately sets the state to `:pending` and
@@ -6319,7 +6358,7 @@ class Concurrent::Promise < ::Concurrent::IVar
# @return [Promise] self
# @yield The block to execute
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#360
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promise.rb#365
def on_error(&block); end
# Chain onto this promise an action to be undertaken on success
@@ -6552,7 +6591,7 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#522
def initialize(promise, default_executor); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515
def __initialize_atomic_fields__; end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#738
@@ -6583,12 +6622,12 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# Chains the task to be executed asynchronously on executor after it is resolved.
#
- # @overload an_event.chain_on
# @overload a_future.chain_on
- # @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.
+ # @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.
# @return [Future]
# @yieldreturn will become result of the returned Future.
# Its returned value becomes {Future#value} fulfilling it,
@@ -6609,9 +6648,9 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
#
# @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
@@ -6619,10 +6658,10 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# @return [String] Short string representation.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#619
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#623
def inspect; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515
def internal_state; end
# Shortcut of {#on_resolution_using} with default `:io` executor supplied.
@@ -6636,8 +6675,8 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# Stores the callback to be executed synchronously on resolving thread after it is
# resolved.
#
- # @overload an_event.on_resolution!
# @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).
# @return [self]
@@ -6648,12 +6687,12 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# Stores the callback to be executed asynchronously on executor after it is resolved.
#
- # @overload an_event.on_resolution_using
# @overload a_future.on_resolution_using
- # @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.
+ # @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.
# @return [self]
# @yieldreturn is forgotten.
#
@@ -6684,8 +6723,8 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# Returns its state.
#
- # @overload an_event.state
# @overload a_future.state
+ # @overload an_event.state
# @return [Symbol]
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#543
@@ -6696,7 +6735,7 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# @param resolvable [Resolvable]
# @return [self]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#629
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#633
def tangle(resolvable); end
# @return [String] Short string representation.
@@ -6771,16 +6810,16 @@ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization:
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#818
def callback_notify_blocked(state, promise, index); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515
def compare_and_set_internal_state(expected, value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515
def internal_state=(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515
def swap_internal_state(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#515
def update_internal_state(&block); end
# @return [Boolean]
@@ -6840,13 +6879,13 @@ class Concurrent::Promises::AbstractPromise < ::Concurrent::Synchronization::Obj
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1581
def delayed_because; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1558
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1562
def event; end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1558
def future; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1575
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1579
def inspect; end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1568
@@ -6971,7 +7010,7 @@ class Concurrent::Promises::BlockedPromise < ::Concurrent::Promises::InnerPromis
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1621
def new(*args, &block); end
end
end
@@ -7026,7 +7065,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture
#
# @return [Future, Event]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#839
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#847
def &(other); end
# Creates a new event which will be resolved when the first of receiver, `event_or_future`
@@ -7056,7 +7095,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#875
def schedule(intended_time); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#596
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#828
def then(*args, &task); end
# Returns self, since this is event
@@ -7097,7 +7136,7 @@ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture
#
# @return [Event]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#853
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#857
def |(event_or_future); end
private
@@ -7139,7 +7178,7 @@ module Concurrent::Promises::FactoryMethods
# @return [Future]
# @see #any_resolved_future_on
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#278
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#282
def any(*futures_and_or_events); end
# Shortcut of {#any_event_on} with default `:io` executor supplied.
@@ -7254,11 +7293,11 @@ module Concurrent::Promises::FactoryMethods
# 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}.
- # @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).
# @return [Future]
# @yield [*args] to the task.
# @yieldreturn will become result of the returned Future.
@@ -7348,12 +7387,12 @@ module Concurrent::Promises::FactoryMethods
# Creates a resolved future with will be either fulfilled with the given value or rejected with
# the given reason.
#
- # @param fulfilled [true, false]
- # @param value [Object]
- # @param reason [Object]
# @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]
# @return [Future]
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#118
@@ -7385,7 +7424,7 @@ module Concurrent::Promises::FactoryMethods
# @return [Future]
# @see #zip_futures_on
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#240
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#258
def zip(*futures_and_or_events); end
# Shortcut of {#zip_events_on} with default `:io` executor supplied.
@@ -7482,7 +7521,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
#
# @return [Future]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1070
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1078
def &(other); end
# Creates a new event which will be resolved when the first of receiver, `event_or_future`
@@ -7523,7 +7562,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
# @param level [Integer] how many levels of futures should flatten
# @return [Future]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1120
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1124
def flat(level = T.unsafe(nil)); end
# Creates new event which will be resolved when the returned event by receiver is.
@@ -7552,7 +7591,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
# @return [String] Short string representation.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1235
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1243
def inspect; end
# Shortcut of {#on_fulfillment_using} with default `:io` executor supplied.
@@ -7578,10 +7617,10 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
# Stores the callback to be executed asynchronously on executor after it is
# fulfilled. Does nothing on rejection.
#
- # @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.
# @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.
# @return [self]
# @yield [value, *args] to the callback.
# @yieldreturn is forgotten.
@@ -7612,10 +7651,10 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
# Stores the callback to be executed asynchronously on executor after it is
# rejected. Does nothing on fulfillment.
#
- # @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.
# @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.
# @return [self]
# @yield [reason, *args] to the callback.
# @yieldreturn is forgotten.
@@ -7656,10 +7695,10 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
# 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 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.
# @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.
# @return [Future]
# @yield [reason, *args] to the task.
# @yieldreturn will become result of the returned Future.
@@ -7724,10 +7763,10 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
# 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 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.
# @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.
# @return [Future]
# @yield [value, *args] to the task.
# @yieldreturn will become result of the returned Future.
@@ -7829,7 +7868,7 @@ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
#
# @return [Future]
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1085
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1089
def |(event_or_future); end
private
@@ -8147,11 +8186,11 @@ class Concurrent::Promises::ResolvableFuture < ::Concurrent::Promises::Future
# Makes the future fulfilled with `value`,
# which triggers all dependent futures.
#
- # @param value [Object]
# @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.
#
@@ -8172,8 +8211,8 @@ class Concurrent::Promises::ResolvableFuture < ::Concurrent::Promises::Future
# Makes the future rejected with `reason`,
# which triggers all dependent futures.
#
- # @param reason [Object]
# @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.
@@ -8187,12 +8226,12 @@ class Concurrent::Promises::ResolvableFuture < ::Concurrent::Promises::Future
# which triggers all dependent futures.
#
# @param fulfilled [true, false]
- # @param value [Object]
- # @param reason [Object]
# @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.
#
@@ -8271,7 +8310,7 @@ class Concurrent::Promises::ResolvableFuturePromise < ::Concurrent::Promises::Ab
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1607
def initialize(default_executor); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1592
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/promises.rb#1611
def evaluate_to(*args, block); end
end
@@ -8773,22 +8812,22 @@ class Concurrent::RubyExchanger < ::Concurrent::AbstractExchanger
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#159
def initialize; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165
def __initialize_atomic_fields__; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165
def compare_and_set_slot(expected, value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165
def slot; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165
def slot=(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165
def swap_slot(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#165
def update_slot(&block); end
private
@@ -8800,8 +8839,8 @@ class Concurrent::RubyExchanger < ::Concurrent::AbstractExchanger
# for the exchange. When the timeout value is `nil` the method will
# block indefinitely.
#
- # @param value [Object] the value to exchange with another thread
# @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
@@ -8817,10 +8856,10 @@ class Concurrent::RubyExchanger::Node < ::Concurrent::Synchronization::Object
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#142
def initialize(item); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#137
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139
def __initialize_atomic_fields__; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#105
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139
def compare_and_set_value(expected, value); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#153
@@ -8829,16 +8868,16 @@ class Concurrent::RubyExchanger::Node < ::Concurrent::Synchronization::Object
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#149
def latch; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#101
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139
def swap_value(value); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139
def update_value(&block); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#93
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139
def value; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/object.rb#97
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/exchanger.rb#139
def value=(value); end
end
@@ -8967,9 +9006,9 @@ end
#
# @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/tutorial/essential/concurrency/pools.html Java Tutorials: Thread Pools
# @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-
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb#12
@@ -9319,21 +9358,20 @@ end
# price.state #=> :fulfilled
# price.fulfilled? #=> true
# price.value #=> 63.65
-# @example Successful task execution
+# @example Failed task execution
#
-# task = Concurrent::ScheduledTask.new(2){ 'What does the fox say?' }
-# task.state #=> :unscheduled
-# task.execute
-# task.state #=> pending
+# 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 One line creation and execution
#
# task = Concurrent::ScheduledTask.new(2){ 'What does the fox say?' }.execute
@@ -9341,20 +9379,21 @@ end
#
# task = Concurrent::ScheduledTask.execute(2){ 'What do you get when you multiply 6 by 9?' }
# task.state #=> pending
-# @example Failed task execution
+# @example Successful task execution
#
-# task = Concurrent::ScheduledTask.execute(2){ raise StandardError.new('Call me maybe?') }
-# task.pending? #=> true
+# 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 Task execution with observation
#
# observer = Class.new{
@@ -9471,7 +9510,7 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar
protected
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#135
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301
def fail(reason = T.unsafe(nil)); end
# Reschedule the task using the given delay and the current time.
@@ -9491,10 +9530,10 @@ class Concurrent::ScheduledTask < ::Concurrent::IVar
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#312
def ns_schedule(delay); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#113
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301
def set(value = T.unsafe(nil)); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/ivar.rb#145
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/scheduled_task.rb#301
def try_set(value = T.unsafe(nil), &block); end
class << self
@@ -9617,8 +9656,8 @@ class Concurrent::SerializedExecution < ::Concurrent::Synchronization::LockableO
# Submit a task to the executor for asynchronous processing.
#
- # @param executor [Executor] to be used for this job
# @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
# @return [Boolean] `true` if the task is queued, `false` if the executor
# is not running
@@ -9655,23 +9694,31 @@ class Concurrent::SerializedExecution::Job < ::Struct
# Returns the value of attribute args
#
# @return [Object] the current value of args
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def args; end
# Sets the attribute args
#
# @param value [Object] the value to set the attribute args to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def args=(_); end
# Returns the value of attribute block
#
# @return [Object] the current value of block
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def block; end
# Sets the attribute block
#
# @param value [Object] the value to set the attribute block to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def block=(_); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#17
@@ -9680,19 +9727,32 @@ class Concurrent::SerializedExecution::Job < ::Struct
# Returns the value of attribute executor
#
# @return [Object] the current value of executor
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def executor; end
# Sets the attribute executor
#
# @param value [Object] the value to set the attribute executor to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def executor=(_); end
class << self
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def [](*_arg0); end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def inspect; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def keyword_init?; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def members; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution.rb#16
def new(*_arg0); end
end
end
@@ -9700,8 +9760,8 @@ end
# A wrapper/delegator for any `ExecutorService` that
# guarantees serialized execution of tasks.
#
-# @see [SimpleDelegator](http://www.ruby-doc.org/stdlib-2.1.2/libdoc/delegate/rdoc/SimpleDelegator.html)
# @see Concurrent::SerializedExecution
+# @see [SimpleDelegator](http://www.ruby-doc.org/stdlib-2.1.2/libdoc/delegate/rdoc/SimpleDelegator.html)
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb#12
class Concurrent::SerializedExecutionDelegator < ::SimpleDelegator
@@ -9749,8 +9809,8 @@ 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://ruby-doc.org/core/Struct.html Ruby standard library `Struct`
# @see http://en.wikipedia.org/wiki/Final_(Java) Java `final` keyword
+# @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct`
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#14
module Concurrent::SettableStruct
@@ -9826,8 +9886,8 @@ module Concurrent::SettableStruct
# @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 selfvalue [Object] the value of the member in `self`
# @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
def merge(other, &block); end
@@ -9847,7 +9907,7 @@ module Concurrent::SettableStruct
#
# @return [Array] the values for this struct
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#18
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#21
def to_a; end
# Returns a hash containing the names and values for the struct’s members.
@@ -9861,7 +9921,7 @@ module Concurrent::SettableStruct
#
# @return [String] the contents of this struct in a string
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/settable_struct.rb#32
def to_s; end
# Returns the values for this struct as an Array.
@@ -10184,7 +10244,7 @@ module Concurrent::Synchronization::AbstractStruct
#
# @return [Fixnum] the number of struct members
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#19
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb#22
def size; end
protected
@@ -10248,8 +10308,8 @@ module Concurrent::Synchronization::AbstractStruct
# @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 selfvalue [Object] the value of the member in `self`
# @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
def ns_merge(other, &block); end
@@ -10331,12 +10391,12 @@ class Concurrent::Synchronization::Condition < ::Concurrent::Synchronization::Lo
def wait_until(timeout = T.unsafe(nil), &condition); end
class << self
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#15
def private_new(*args, &block); end
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/safe_initialization.rb#29
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/condition.rb#16
def new(*args, &block); end
end
end
@@ -10359,22 +10419,22 @@ class Concurrent::Synchronization::Lock < ::Concurrent::Synchronization::Lockabl
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#31
def broadcast; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#16
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#35
def ns_broadcast; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#11
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#29
def ns_signal; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#52
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#17
def ns_wait(timeout = T.unsafe(nil)); end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb#37
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#23
def ns_wait_until(timeout = T.unsafe(nil), &condition); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#25
def signal; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb#44
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#11
def synchronize; end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/synchronization/lock.rb#13
@@ -10909,9 +10969,9 @@ end
#
# @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/tutorial/essential/concurrency/pools.html Java Tutorials: Thread Pools
# @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-
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb#56
@@ -10982,8 +11042,8 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService
# delay is less than 1/100th of a second the task will be immediately post
# to the executor.
#
- # @param delay [Float] the number of seconds to wait for before executing the task.
# @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.
# @return [Concurrent::ScheduledTask, false] IVar representing the task if the post
@@ -10995,7 +11055,7 @@ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#166
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/timer_set.rb#66
def <<(task); end
# Initialize the object.
@@ -11109,26 +11169,11 @@ end
# 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
# 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! ' }
@@ -11147,6 +11192,21 @@ 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)
@@ -11185,8 +11245,8 @@ 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://ruby-doc.org/stdlib-2.0/libdoc/observer/rdoc/Observable.html
# @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
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#165
class Concurrent::TimerTask < ::Concurrent::RubyExecutorService
@@ -11213,14 +11273,14 @@ class Concurrent::TimerTask < ::Concurrent::RubyExecutorService
# 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
# @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
- # @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`
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#235
@@ -11264,7 +11324,7 @@ class Concurrent::TimerTask < ::Concurrent::RubyExecutorService
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/executor_service.rb#166
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#292
def <<(task); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#352
@@ -11282,7 +11342,7 @@ class Concurrent::TimerTask < ::Concurrent::RubyExecutorService
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#318
def ns_shutdown_execution; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb#17
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#292
def post(*args, &task); end
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/timer_task.rb#330
@@ -11382,30 +11442,47 @@ class Concurrent::Transaction::OpenEntry < ::Struct
# Returns the value of attribute modified
#
# @return [Object] the current value of modified
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def modified; end
# Sets the attribute modified
#
# @param value [Object] the value to set the attribute modified to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def modified=(_); end
# Returns the value of attribute value
#
# @return [Object] the current value of value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def value; end
# Sets the attribute value
#
# @param value [Object] the value to set the attribute value to.
# @return [Object] the newly set value
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def value=(_); end
class << self
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def [](*_arg0); end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def inspect; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def keyword_init?; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def members; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#157
def new(*_arg0); end
end
end
@@ -11421,9 +11498,9 @@ 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 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
+# @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
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#20
class Concurrent::Tuple
@@ -11441,19 +11518,19 @@ class Concurrent::Tuple
# value matches the given old value.
#
# @param i [Integer] the index for the element to set
- # @param old_value [Object] the value to compare against the current value
# @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#69
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#73
def cas(i, old_value, new_value); end
# Set the value at the given index to the new value if and only if the current
# value matches the given old value.
#
# @param i [Integer] the index for the element to set
- # @param old_value [Object] the value to compare against the current value
# @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#69
@@ -11493,7 +11570,7 @@ class Concurrent::Tuple
# @param i [Integer] the index from which to retrieve the value
# @return [Object] the value at the given index or nil if the index is out of bounds
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#43
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#47
def volatile_get(i); end
# Set the element at the given index to the given value
@@ -11502,7 +11579,7 @@ class Concurrent::Tuple
# @param value [Object] the value to set at the given index
# @return [Object] the new value of the element at the given index or nil if the index is out of bounds
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#55
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tuple.rb#59
def volatile_set(i, value); end
end
diff --git a/sorbet/rbi/gems/console@1.34.2.rbi b/sorbet/rbi/gems/console@1.34.2.rbi
index 836e129b..b1dfee6f 100644
--- a/sorbet/rbi/gems/console@1.34.2.rbi
+++ b/sorbet/rbi/gems/console@1.34.2.rbi
@@ -464,7 +464,7 @@ module Console::Interface
def warn(*_arg0, **_arg1, &_arg2); end
class << self
- # source://fiber-local/1.1.0/lib/fiber/local.rb#16
+ # source://console//lib/console/interface.rb#12
def fiber_local_attribute_name; end
# Create a new (thread local) logger instance.
@@ -742,7 +742,7 @@ class Console::Output::Terminal::Buffer < ::StringIO
# Write lines using the given prefix.
# Write a line to the buffer.
#
- # source://console//lib/console/output/terminal.rb#37
+ # source://console//lib/console/output/terminal.rb#45
def <<(*lines, prefix: T.unsafe(nil)); end
# Returns the value of attribute prefix.
diff --git a/sorbet/rbi/gems/docile@1.4.1.rbi b/sorbet/rbi/gems/docile@1.4.1.rbi
index 682563d4..31130672 100644
--- a/sorbet/rbi/gems/docile@1.4.1.rbi
+++ b/sorbet/rbi/gems/docile@1.4.1.rbi
@@ -37,10 +37,10 @@ module Docile
# end
# #=> [1, 3]
# @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
# @param args [Array] arguments to be passed to the block
# @param block [Proc] the block of DSL commands to be executed against the
# `dsl` context object
+ # @param dsl [Object] context object whose methods make up the DSL
# @return [Object] the `dsl` context object after executing the block
#
# source://docile//lib/docile.rb#45
@@ -55,25 +55,25 @@ module Docile
# 2. Each command returns the next DSL context object
# 3. The final return value is the value returned by the last command
#
- # @example Use a frozen String as a DSL
- # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
- # reverse
- # upcase
- # end
- # #=> "!ELBATUMMI M'I"
# @example Use a Float as a DSL
# Docile.dsl_eval_immutable(84.5) do
# fdiv(2)
# floor
# end
# #=> 42
+ # @example Use a frozen String as a DSL
+ # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
+ # reverse
+ # upcase
+ # end
+ # #=> "!ELBATUMMI M'I"
# @note Use with a *functional* DSL (commands return successor
# context objects)
- # @param dsl [Object] immutable context object whose methods make up the
- # initial DSL
# @param args [Array] arguments to be passed to the block
# @param block [Proc] the block of DSL commands to be executed against the
# `dsl` context object and successor return values
+ # @param dsl [Object] immutable context object whose methods make up the
+ # initial DSL
# @return [Object] the return value of the final command in the block
#
# source://docile//lib/docile.rb#128
@@ -105,10 +105,10 @@ module Docile
# end
# #=> 2
# @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
# @param args [Array] arguments to be passed to the block
# @param block [Proc] the block of DSL commands to be executed against the
# `dsl` context object
+ # @param dsl [Object] context object whose methods make up the DSL
# @return [Object] the return value from executing the block
#
# source://docile//lib/docile.rb#87
@@ -139,13 +139,13 @@ module Docile
# end
# #=> [1, 3]
# @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
# @param args [Array] arguments to be passed to the block
# @param block [Proc] the block of DSL commands to be executed against the
# `dsl` context object
+ # @param dsl [Object] context object whose methods make up the DSL
# @return [Object] the `dsl` context object after executing the block
#
- # source://docile//lib/docile.rb#45
+ # source://docile//lib/docile.rb#51
def dsl_eval(dsl, *args, **_arg2, &block); end
# Execute a block in the context of an immutable object whose methods,
@@ -157,28 +157,28 @@ module Docile
# 2. Each command returns the next DSL context object
# 3. The final return value is the value returned by the last command
#
- # @example Use a frozen String as a DSL
- # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
- # reverse
- # upcase
- # end
- # #=> "!ELBATUMMI M'I"
# @example Use a Float as a DSL
# Docile.dsl_eval_immutable(84.5) do
# fdiv(2)
# floor
# end
# #=> 42
+ # @example Use a frozen String as a DSL
+ # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
+ # reverse
+ # upcase
+ # end
+ # #=> "!ELBATUMMI M'I"
# @note Use with a *functional* DSL (commands return successor
# context objects)
- # @param dsl [Object] immutable context object whose methods make up the
- # initial DSL
# @param args [Array] arguments to be passed to the block
# @param block [Proc] the block of DSL commands to be executed against the
# `dsl` context object and successor return values
+ # @param dsl [Object] immutable context object whose methods make up the
+ # initial DSL
# @return [Object] the return value of the final command in the block
#
- # source://docile//lib/docile.rb#128
+ # source://docile//lib/docile.rb#133
def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
# Execute a block in the context of an object whose methods represent the
@@ -207,13 +207,13 @@ module Docile
# end
# #=> 2
# @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
# @param args [Array] arguments to be passed to the block
# @param block [Proc] the block of DSL commands to be executed against the
# `dsl` context object
+ # @param dsl [Object] context object whose methods make up the DSL
# @return [Object] the return value from executing the block
#
- # source://docile//lib/docile.rb#87
+ # source://docile//lib/docile.rb#94
def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
end
end
@@ -278,11 +278,11 @@ module Docile::Execution
# commands in a DSL, using a specific proxy class.
#
# @api private
+ # @param args [Array] arguments to be passed to the block
+ # @param block [Proc] the block of DSL commands to be executed
# @param dsl [Object] context object whose methods make up the
# (initial) DSL
# @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed
# @return [Object] the return value of the block
#
# source://docile//lib/docile/execution.rb#19
@@ -293,14 +293,14 @@ module Docile::Execution
# commands in a DSL, using a specific proxy class.
#
# @api private
+ # @param args [Array] arguments to be passed to the block
+ # @param block [Proc] the block of DSL commands to be executed
# @param dsl [Object] context object whose methods make up the
# (initial) DSL
# @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed
# @return [Object] the return value of the block
#
- # source://docile//lib/docile/execution.rb#19
+ # source://docile//lib/docile/execution.rb#51
def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
end
end
@@ -321,10 +321,10 @@ end
# source://docile//lib/docile/fallback_context_proxy.rb#20
class Docile::FallbackContextProxy
# @api private
- # @param receiver [Object] the primary proxy target to which all methods
- # initially will be forwarded
# @param fallback [Object] the fallback proxy target to which any methods
# not handled by `receiver` will be forwarded
+ # @param receiver [Object] the primary proxy target to which all methods
+ # initially will be forwarded
# @return [FallbackContextProxy] a new instance of FallbackContextProxy
#
# source://docile//lib/docile/fallback_context_proxy.rb#46
diff --git a/sorbet/rbi/gems/drb@2.2.3.rbi b/sorbet/rbi/gems/drb@2.2.3.rbi
index f0b2bc6d..7bd8c988 100644
--- a/sorbet/rbi/gems/drb@2.2.3.rbi
+++ b/sorbet/rbi/gems/drb@2.2.3.rbi
@@ -459,7 +459,7 @@ module DRb
# If there is no current server, this returns the default configuration.
# See #current_server and DRbServer::make_config.
#
- # source://drb//lib/drb/drb.rb#1882
+ # source://drb//lib/drb/drb.rb#1887
def config; end
# Get the 'current' server.
@@ -475,14 +475,14 @@ module DRb
#
# @raise [DRbServerNotFound]
#
- # source://drb//lib/drb/drb.rb#1839
+ # source://drb//lib/drb/drb.rb#1845
def current_server; end
# Retrieves the server with the given +uri+.
#
# See also regist_server and remove_server.
#
- # source://drb//lib/drb/drb.rb#1984
+ # source://drb//lib/drb/drb.rb#1987
def fetch_server(uri); end
# Get the front object of the current server.
@@ -490,21 +490,21 @@ module DRb
# This raises a DRbServerNotFound error if there is no current server.
# See #current_server.
#
- # source://drb//lib/drb/drb.rb#1893
+ # source://drb//lib/drb/drb.rb#1896
def front; end
# Is +uri+ the URI for the current local server?
#
# @return [Boolean]
#
- # source://drb//lib/drb/drb.rb#1872
+ # source://drb//lib/drb/drb.rb#1876
def here?(uri); end
# Set the default ACL to +acl+.
#
# See DRb::DRbServer.default_acl.
#
- # source://drb//lib/drb/drb.rb#1938
+ # source://drb//lib/drb/drb.rb#1941
def install_acl(acl); end
# Set the default id conversion object.
@@ -514,24 +514,24 @@ module DRb
#
# See DRbServer#default_id_conv.
#
- # source://drb//lib/drb/drb.rb#1930
+ # source://drb//lib/drb/drb.rb#1933
def install_id_conv(idconv); end
- # source://drb//lib/drb/drb.rb#1944
+ # source://drb//lib/drb/drb.rb#1947
def mutex; end
# The primary local dRuby server.
#
# This is the server created by the #start_service call.
#
- # source://drb//lib/drb/drb.rb#1826
+ # source://drb//lib/drb/drb.rb#1827
def primary_server; end
# The primary local dRuby server.
#
# This is the server created by the #start_service call.
#
- # source://drb//lib/drb/drb.rb#1826
+ # source://drb//lib/drb/drb.rb#1827
def primary_server=(_arg0); end
# Registers +server+ with DRb.
@@ -547,12 +547,12 @@ module DRb
# s = DRb::DRbServer.new # automatically calls regist_server
# DRb.fetch_server s.uri #=> #
#
- # source://drb//lib/drb/drb.rb#1962
+ # source://drb//lib/drb/drb.rb#1968
def regist_server(server); end
# Removes +server+ from the list of registered servers.
#
- # source://drb//lib/drb/drb.rb#1971
+ # source://drb//lib/drb/drb.rb#1979
def remove_server(server); end
# Start a dRuby server locally.
@@ -571,7 +571,7 @@ module DRb
#
# See DRbServer::new.
#
- # source://drb//lib/drb/drb.rb#1818
+ # source://drb//lib/drb/drb.rb#1821
def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end
# Stop the local dRuby server.
@@ -579,14 +579,14 @@ module DRb
# This operates on the primary server. If there is no primary
# server currently running, it is a noop.
#
- # source://drb//lib/drb/drb.rb#1851
+ # source://drb//lib/drb/drb.rb#1855
def stop_service; end
# Get the thread of the primary server.
#
# This returns nil if there is no primary server. See #primary_server.
#
- # source://drb//lib/drb/drb.rb#1919
+ # source://drb//lib/drb/drb.rb#1922
def thread; end
# Get a reference id for an object using the current server.
@@ -594,7 +594,7 @@ module DRb
# This raises a DRbServerNotFound error if there is no current server.
# See #current_server.
#
- # source://drb//lib/drb/drb.rb#1910
+ # source://drb//lib/drb/drb.rb#1913
def to_id(obj); end
# Convert a reference into an object using the current server.
@@ -602,14 +602,14 @@ module DRb
# This raises a DRbServerNotFound error if there is no current server.
# See #current_server.
#
- # source://drb//lib/drb/drb.rb#1902
+ # source://drb//lib/drb/drb.rb#1914
def to_obj(ref); end
# Get the URI defining the local dRuby space.
#
# This is the URI of the current server. See #current_server.
#
- # source://drb//lib/drb/drb.rb#1860
+ # source://drb//lib/drb/drb.rb#1869
def uri; end
end
end
@@ -795,7 +795,7 @@ class DRb::DRbObject
# source://drb//lib/drb/drb.rb#1108
def _dump(lv); end
- # source://drb//lib/drb/eq.rb#4
+ # source://drb//lib/drb/eq.rb#13
def eql?(other); end
# source://drb//lib/drb/eq.rb#9
@@ -989,10 +989,10 @@ module DRb::DRbProtocol
class << self
# Add a new protocol to the DRbProtocol module.
#
- # source://drb//lib/drb/drb.rb#752
+ # source://drb//lib/drb/drb.rb#755
def add_protocol(prot); end
- # source://drb//lib/drb/drb.rb#830
+ # source://drb//lib/drb/drb.rb#835
def auto_load(uri); end
# Open a client connection to +uri+ with the configuration +config+.
@@ -1005,7 +1005,7 @@ module DRb::DRbProtocol
#
# @raise [DRbBadURI]
#
- # source://drb//lib/drb/drb.rb#764
+ # source://drb//lib/drb/drb.rb#781
def open(uri, config, first = T.unsafe(nil)); end
# Open a server listening for connections at +uri+ with
@@ -1020,7 +1020,7 @@ module DRb::DRbProtocol
#
# @raise [DRbBadURI]
#
- # source://drb//lib/drb/drb.rb#792
+ # source://drb//lib/drb/drb.rb#805
def open_server(uri, config, first = T.unsafe(nil)); end
# Parse +uri+ into a [uri, option] pair.
@@ -1032,7 +1032,7 @@ module DRb::DRbProtocol
#
# @raise [DRbBadURI]
#
- # source://drb//lib/drb/drb.rb#813
+ # source://drb//lib/drb/drb.rb#828
def uri_option(uri, config, first = T.unsafe(nil)); end
end
end
@@ -1503,7 +1503,7 @@ class DRb::DRbURIOption
# source://drb//lib/drb/drb.rb#1056
def ==(other); end
- # source://drb//lib/drb/drb.rb#1056
+ # source://drb//lib/drb/drb.rb#1065
def eql?(other); end
# source://drb//lib/drb/drb.rb#1061
diff --git a/sorbet/rbi/gems/erubi@1.13.1.rbi b/sorbet/rbi/gems/erubi@1.13.1.rbi
index a291c13d..3a6982f1 100644
--- a/sorbet/rbi/gems/erubi@1.13.1.rbi
+++ b/sorbet/rbi/gems/erubi@1.13.1.rbi
@@ -9,9 +9,11 @@
module Erubi
private
+ # source://erubi//lib/erubi.rb#22
def h(_arg0); end
class << self
+ # source://erubi//lib/erubi.rb#49
def h(_arg0); end
end
end
diff --git a/sorbet/rbi/gems/faraday-net_http@3.4.2.rbi b/sorbet/rbi/gems/faraday-net_http@3.4.2.rbi
index 4b4be07e..31c8f81b 100644
--- a/sorbet/rbi/gems/faraday-net_http@3.4.2.rbi
+++ b/sorbet/rbi/gems/faraday-net_http@3.4.2.rbi
@@ -6,85 +6,10 @@
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#12
-module Faraday
- class << self
- # source://faraday/2.14.1/lib/faraday.rb#56
- def default_adapter; end
-
- # source://faraday/2.14.1/lib/faraday.rb#103
- def default_adapter=(adapter); end
-
- # source://faraday/2.14.1/lib/faraday.rb#60
- def default_adapter_options; end
-
- # source://faraday/2.14.1/lib/faraday.rb#60
- def default_adapter_options=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#121
- def default_connection; end
-
- # source://faraday/2.14.1/lib/faraday.rb#63
- def default_connection=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#128
- def default_connection_options; end
-
- # source://faraday/2.14.1/lib/faraday.rb#135
- def default_connection_options=(options); end
-
- # source://faraday/2.14.1/lib/faraday.rb#68
- def ignore_env_proxy; end
-
- # source://faraday/2.14.1/lib/faraday.rb#68
- def ignore_env_proxy=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#47
- def lib_path; end
-
- # source://faraday/2.14.1/lib/faraday.rb#47
- def lib_path=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#97
- def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
-
- # source://faraday/2.14.1/lib/faraday.rb#108
- def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
-
- # source://faraday/2.14.1/lib/faraday.rb#43
- def root_path; end
-
- # source://faraday/2.14.1/lib/faraday.rb#43
- def root_path=(_arg0); end
-
- private
-
- # source://faraday/2.14.1/lib/faraday.rb#144
- def method_missing(name, *args, &block); end
- end
-end
+module Faraday; end
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#13
-class Faraday::Adapter
- # source://faraday/2.14.1/lib/faraday/adapter.rb#28
- def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
-
- # source://faraday/2.14.1/lib/faraday/adapter.rb#55
- def call(env); end
-
- # source://faraday/2.14.1/lib/faraday/adapter.rb#50
- def close; end
-
- # source://faraday/2.14.1/lib/faraday/adapter.rb#41
- def connection(env); end
-
- private
-
- # source://faraday/2.14.1/lib/faraday/adapter.rb#85
- def request_timeout(type, options); end
-
- # source://faraday/2.14.1/lib/faraday/adapter.rb#62
- def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end
-end
+class Faraday::Adapter; end
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#14
class Faraday::Adapter::NetHttp < ::Faraday::Adapter
diff --git a/sorbet/rbi/gems/faraday-retry@2.3.2.rbi b/sorbet/rbi/gems/faraday-retry@2.3.2.rbi
index d68043a4..09036bfa 100644
--- a/sorbet/rbi/gems/faraday-retry@2.3.2.rbi
+++ b/sorbet/rbi/gems/faraday-retry@2.3.2.rbi
@@ -8,62 +8,7 @@
# Faraday namespace.
#
# source://faraday-retry//lib/faraday/retriable_response.rb#4
-module Faraday
- class << self
- # source://faraday/2.14.1/lib/faraday.rb#56
- def default_adapter; end
-
- # source://faraday/2.14.1/lib/faraday.rb#103
- def default_adapter=(adapter); end
-
- # source://faraday/2.14.1/lib/faraday.rb#60
- def default_adapter_options; end
-
- # source://faraday/2.14.1/lib/faraday.rb#60
- def default_adapter_options=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#121
- def default_connection; end
-
- # source://faraday/2.14.1/lib/faraday.rb#63
- def default_connection=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#128
- def default_connection_options; end
-
- # source://faraday/2.14.1/lib/faraday.rb#135
- def default_connection_options=(options); end
-
- # source://faraday/2.14.1/lib/faraday.rb#68
- def ignore_env_proxy; end
-
- # source://faraday/2.14.1/lib/faraday.rb#68
- def ignore_env_proxy=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#47
- def lib_path; end
-
- # source://faraday/2.14.1/lib/faraday.rb#47
- def lib_path=(_arg0); end
-
- # source://faraday/2.14.1/lib/faraday.rb#97
- def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
-
- # source://faraday/2.14.1/lib/faraday.rb#108
- def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
-
- # source://faraday/2.14.1/lib/faraday.rb#43
- def root_path; end
-
- # source://faraday/2.14.1/lib/faraday.rb#43
- def root_path=(_arg0); end
-
- private
-
- # source://faraday/2.14.1/lib/faraday.rb#144
- def method_missing(name, *args, &block); end
- end
-end
+module Faraday; end
# Exception used to control the Retry middleware.
#
@@ -166,7 +111,7 @@ Faraday::Retry::Middleware::IDEMPOTENT_METHODS = T.let(T.unsafe(nil), Array)
# Options contains the configurable parameters for the Retry middleware.
#
-# source://faraday-retry//lib/faraday/retry/middleware.rb#29
+# source://faraday-retry//lib/faraday/retry/middleware.rb#35
class Faraday::Retry::Middleware::Options < ::Faraday::Options
# source://faraday-retry//lib/faraday/retry/middleware.rb#63
def backoff_factor; end
diff --git a/sorbet/rbi/gems/faraday@2.14.1.rbi b/sorbet/rbi/gems/faraday@2.14.1.rbi
index 6087908e..313968eb 100644
--- a/sorbet/rbi/gems/faraday@2.14.1.rbi
+++ b/sorbet/rbi/gems/faraday@2.14.1.rbi
@@ -93,24 +93,24 @@ module Faraday
# @example With an URL argument
# Faraday.new 'http://faraday.com'
# # => Faraday::Connection to http://faraday.com
+ # @example With an URL argument and an options hash
+ # Faraday.new 'http://faraday.com', params: { page: 1 }
+ # # => Faraday::Connection to http://faraday.com?page=1
# @example With everything in an options hash
# Faraday.new url: 'http://faraday.com',
# params: { page: 1 }
# # => Faraday::Connection to http://faraday.com?page=1
- # @example With an URL argument and an options hash
- # Faraday.new 'http://faraday.com', params: { page: 1 }
- # # => Faraday::Connection to http://faraday.com?page=1
# @option options
# @option options
# @option options
# @option options
# @option options
# @option options
+ # @param options [Hash]
# @param url [String, Hash] The optional String base URL to use as a prefix
# for all requests. Can also be the options Hash. Any of these
# values will be set on every request made, unless overridden
# for a specific request.
- # @param options [Hash]
# @return [Faraday::Connection]
#
# source://faraday//lib/faraday.rb#97
@@ -187,10 +187,10 @@ class Faraday::Adapter
# Fetches either a read, write, or open timeout setting. Defaults to the
# :timeout value if a more specific one is not given.
#
- # @param type [Symbol] Describes which timeout setting to get: :read,
- # :write, or :open.
# @param options [Hash] Hash containing Symbol keys like :timeout,
# :read_timeout, :write_timeout, or :open_timeout
+ # @param type [Symbol] Describes which timeout setting to get: :read,
+ # :write, or :open.
# @return [Integer, nil] Timeout duration in seconds, or nil if no timeout
# has been set.
#
@@ -320,23 +320,31 @@ class Faraday::Adapter::Test::Stub < ::Struct
# Returns the value of attribute block
#
# @return [Object] the current value of block
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def block; end
# Sets the attribute block
#
# @param value [Object] the value to set the attribute block to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def block=(_); end
# Returns the value of attribute body
#
# @return [Object] the current value of body
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def body; end
# Sets the attribute body
#
# @param value [Object] the value to set the attribute body to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def body=(_); end
# @return [Boolean]
@@ -347,12 +355,16 @@ class Faraday::Adapter::Test::Stub < ::Struct
# Returns the value of attribute headers
#
# @return [Object] the current value of headers
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def headers; end
# Sets the attribute headers
#
# @param value [Object] the value to set the attribute headers to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def headers=(_); end
# @return [Boolean]
@@ -363,12 +375,16 @@ class Faraday::Adapter::Test::Stub < ::Struct
# Returns the value of attribute host
#
# @return [Object] the current value of host
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def host; end
# Sets the attribute host
#
# @param value [Object] the value to set the attribute host to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def host=(_); end
# @param env [Faraday::Env]
@@ -386,12 +402,16 @@ class Faraday::Adapter::Test::Stub < ::Struct
# Returns the value of attribute path
#
# @return [Object] the current value of path
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def path; end
# Sets the attribute path
#
# @param value [Object] the value to set the attribute path to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def path=(_); end
# @return [Boolean]
@@ -402,33 +422,50 @@ class Faraday::Adapter::Test::Stub < ::Struct
# Returns the value of attribute query
#
# @return [Object] the current value of query
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def query; end
# Sets the attribute query
#
# @param value [Object] the value to set the attribute query to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def query=(_); end
# Returns the value of attribute strict_mode
#
# @return [Object] the current value of strict_mode
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def strict_mode; end
# Sets the attribute strict_mode
#
# @param value [Object] the value to set the attribute strict_mode to.
# @return [Object] the newly set value
+ #
+ # source://faraday//lib/faraday/adapter/test.rb#187
def strict_mode=(_); end
# source://faraday//lib/faraday/adapter/test.rb#253
def to_s; end
class << self
+ # source://faraday//lib/faraday/adapter/test.rb#187
def [](*_arg0); end
+
+ # source://faraday//lib/faraday/adapter/test.rb#187
def inspect; end
+
+ # source://faraday//lib/faraday/adapter/test.rb#187
def keyword_init?; end
+
+ # source://faraday//lib/faraday/adapter/test.rb#187
def members; end
+
+ # source://faraday//lib/faraday/adapter/test.rb#187
def new(*_arg0); end
end
end
@@ -488,8 +525,8 @@ class Faraday::Adapter::Test::Stubs
protected
- # @param stack [Hash]
# @param env [Faraday::Env]
+ # @param stack [Hash]
# @return [Boolean]
#
# source://faraday//lib/faraday/adapter/test.rb#177
@@ -563,28 +600,28 @@ class Faraday::Connection
# @option options
# @option options
# @option options
+ # @param options [Hash, Faraday::ConnectionOptions]
# @param url [URI, String] URI or String base URL to use as a prefix for all
# requests (optional).
- # @param options [Hash, Faraday::ConnectionOptions]
# @return [Connection] a new instance of Connection
# @yield [self] after all setup has been done
#
# source://faraday//lib/faraday/connection.rb#63
def initialize(url = T.unsafe(nil), options = T.unsafe(nil)); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#120
def adapter(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#120
def app(*args, **_arg1, &block); end
# Build an absolute URL based on url_prefix.
#
# of the resulting url (default: nil).
#
- # @param url [String, URI, nil]
# @param params [Faraday::Utils::ParamsHash] A Faraday::Utils::ParamsHash to
# replace the query values
+ # @param url [String, URI, nil]
# @return [URI]
#
# source://faraday//lib/faraday/connection.rb#478
@@ -613,8 +650,8 @@ class Faraday::Connection
#
# conn.build_url("nigiri", page: 2)
# # => https://httpbingo.org/api/nigiri?token=abc&page=2
- # @param url [String, URI, nil]
# @param extra_params [Hash]
+ # @param url [String, URI, nil]
#
# source://faraday//lib/faraday/connection.rb#415
def build_url(url = T.unsafe(nil), extra_params = T.unsafe(nil)); end
@@ -645,7 +682,7 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#40
def default_parallel_manager=(_arg0); end
- # source://faraday//lib/faraday/connection.rb#199
+ # source://faraday//lib/faraday/connection.rb#198
def delete(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
# Creates a duplicate of this Faraday::Connection.
@@ -659,10 +696,10 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#543
def find_default_proxy; end
- # source://faraday//lib/faraday/connection.rb#199
+ # source://faraday//lib/faraday/connection.rb#198
def get(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
- # source://faraday//lib/faraday/connection.rb#199
+ # source://faraday//lib/faraday/connection.rb#198
def head(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
# @return [Hash] unencoded HTTP header key/value pairs.
@@ -677,10 +714,10 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#114
def headers=(hash); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#346
def host(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#346
def host=(*args, **_arg1, &block); end
# Sets up the parallel manager to make a set of requests.
@@ -730,10 +767,10 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#108
def params=(hash); end
- # source://faraday//lib/faraday/connection.rb#279
+ # source://faraday//lib/faraday/connection.rb#278
def patch(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#347
def path_prefix(*args, **_arg1, &block); end
# Sets the path prefix and ensures that it always has a leading
@@ -745,13 +782,13 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#390
def path_prefix=(value); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#346
def port(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#346
def port=(*args, **_arg1, &block); end
- # source://faraday//lib/faraday/connection.rb#279
+ # source://faraday//lib/faraday/connection.rb#278
def post(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
# @return [Hash] proxy options.
@@ -772,31 +809,31 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#523
def proxy_from_env(url); end
- # source://faraday//lib/faraday/connection.rb#279
+ # source://faraday//lib/faraday/connection.rb#278
def put(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#120
def request(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#120
def response(*args, **_arg1, &block); end
# Builds and runs the Faraday::Request.
#
- # @param method [Symbol] HTTP method.
- # @param url [String, URI, nil] String or URI to access.
# @param body [String, Hash, Array, nil] The request body that will eventually be converted to
# a string; middlewares can be used to support more complex types.
# @param headers [Hash, nil] unencoded HTTP header key/value pairs.
+ # @param method [Symbol] HTTP method.
+ # @param url [String, URI, nil] String or URI to access.
# @return [Faraday::Response]
#
# source://faraday//lib/faraday/connection.rb#439
def run_request(method, url, body, headers); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#346
def scheme(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#346
def scheme=(*args, **_arg1, &block); end
# source://faraday//lib/faraday/connection.rb#379
@@ -812,7 +849,7 @@ class Faraday::Connection
# source://faraday//lib/faraday/connection.rb#561
def support_parallel?(adapter); end
- # source://faraday//lib/faraday/connection.rb#199
+ # source://faraday//lib/faraday/connection.rb#198
def trace(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
# @return [String] a URI with the prefix used for all requests from this
@@ -833,13 +870,13 @@ class Faraday::Connection
# conn.path_prefix # => "/api"
#
# conn.get("nigiri?page=2") # accesses https://httpbingo.org/api/nigiri
- # @param url [String, URI]
# @param encoder [Object]
+ # @param url [String, URI]
#
# source://faraday//lib/faraday/connection.rb#364
def url_prefix=(url, encoder = T.unsafe(nil)); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/connection.rb#120
def use(*args, **_arg1, &block); end
# Yields username and password extracted from a URI if they both exist.
@@ -848,8 +885,8 @@ class Faraday::Connection
# @param uri [URI]
# @return [void]
# @yield [username, password] any username and password
- # @yieldparam username [String] any username from URI
# @yieldparam password [String] any password from URI
+ # @yieldparam username [String] any username from URI
#
# source://faraday//lib/faraday/connection.rb#517
def with_uri_credentials(uri); end
@@ -873,43 +910,77 @@ class Faraday::ConnectionFailed < ::Faraday::Error; end
#
# source://faraday//lib/faraday/options/connection_options.rb#8
class Faraday::ConnectionOptions < ::Faraday::Options
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def builder; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def builder=(_); end
- # source://faraday//lib/faraday/options.rb#178
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def builder_class; end
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def builder_class=(_); end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def headers; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def headers=(_); end
# source://faraday//lib/faraday/options/connection_options.rb#19
def new_builder(block); end
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def parallel_manager; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def parallel_manager=(_); end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def params; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def params=(_); end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def proxy; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def proxy=(_); end
- # source://faraday//lib/faraday/options.rb#178
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def request; end
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def request=(_); end
- # source://faraday//lib/faraday/options.rb#178
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def ssl; end
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def ssl=(_); end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def url; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def url=(_); end
class << self
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def [](*_arg0); end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def inspect; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def keyword_init?; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def members; end
+
+ # source://faraday//lib/faraday/options/connection_options.rb#8
def new(*_arg0); end
end
end
@@ -1015,9 +1086,13 @@ class Faraday::Env < ::Faraday::Options
def inspect; end
# @return [Symbol] HTTP method (`:get`, `:post`)
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def method; end
# @return [Symbol] HTTP method (`:get`, `:post`)
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def method=(_); end
# source://faraday//lib/faraday/options/env.rb#133
@@ -1027,27 +1102,39 @@ class Faraday::Env < ::Faraday::Options
def parallel?; end
# @return [Object] sent if the connection is in parallel mode
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def parallel_manager; end
# @return [Object] sent if the connection is in parallel mode
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def parallel_manager=(_); end
# @return [Hash]
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def params; end
# @return [Hash]
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def params=(_); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/env.rb#74
def params_encoder(*args, **_arg1, &block); end
# source://faraday//lib/faraday/options/env.rb#145
def parse_body?; end
# @return [String]
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def reason_phrase; end
# @return [String]
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def reason_phrase=(_); end
# Options for configuring the request.
@@ -1067,6 +1154,8 @@ class Faraday::Env < ::Faraday::Options
# - `:password` - Proxy server password
#
# @return [Hash] options for configuring the request.
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def request; end
# Options for configuring the request.
@@ -1086,42 +1175,70 @@ class Faraday::Env < ::Faraday::Options
# - `:password` - Proxy server password
#
# @return [Hash] options for configuring the request.
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def request=(_); end
+ # source://faraday//lib/faraday/options/env.rb#57
def request_body; end
+
+ # source://faraday//lib/faraday/options/env.rb#57
def request_body=(_); end
# @return [Hash] HTTP Headers to be sent to the server.
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def request_headers; end
# @return [Hash] HTTP Headers to be sent to the server.
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def request_headers=(_); end
# @return [Response]
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def response; end
# @return [Response]
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def response=(_); end
+ # source://faraday//lib/faraday/options/env.rb#57
def response_body; end
+
+ # source://faraday//lib/faraday/options/env.rb#57
def response_body=(_); end
# @return [Hash] HTTP headers from the server
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def response_headers; end
# @return [Hash] HTTP headers from the server
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def response_headers=(_); end
# @return [Hash] options for configuring SSL requests
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def ssl; end
# @return [Hash] options for configuring SSL requests
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def ssl=(_); end
# @return [Integer] HTTP response status code
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def status; end
# @return [Integer] HTTP response status code
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def status=(_); end
# source://faraday//lib/faraday/options/env.rb#169
@@ -1134,24 +1251,35 @@ class Faraday::Env < ::Faraday::Options
def success?; end
# @return [URI] URI instance for the current request.
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def url; end
# @return [URI] URI instance for the current request.
+ #
+ # source://faraday//lib/faraday/options/env.rb#57
def url=(_); end
class << self
+ # source://faraday//lib/faraday/options/env.rb#57
def [](*_arg0); end
# source://faraday//lib/faraday/options/env.rb#80
def from(value); end
+ # source://faraday//lib/faraday/options/env.rb#57
def inspect; end
+
+ # source://faraday//lib/faraday/options/env.rb#57
def keyword_init?; end
# source://faraday//lib/faraday/options/env.rb#200
def member_set; end
+ # source://faraday//lib/faraday/options/env.rb#57
def members; end
+
+ # source://faraday//lib/faraday/options/env.rb#57
def new(*_arg0); end
end
end
@@ -1279,7 +1407,7 @@ module Faraday::FlatParamsEncoder
# source://faraday//lib/faraday/encoders/flat_params_encoder.rb#23
def encode(params); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#9
def escape(*args, **_arg1, &block); end
# Returns the value of attribute sort_params.
@@ -1294,7 +1422,7 @@ module Faraday::FlatParamsEncoder
# source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99
def sort_params=(_arg0); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#9
def unescape(*args, **_arg1, &block); end
end
end
@@ -1323,22 +1451,22 @@ class Faraday::Logging::Formatter
# source://faraday//lib/faraday/logging/formatter.rb#14
def initialize(logger:, options:); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/logging/formatter.rb#23
def debug(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/logging/formatter.rb#23
def error(*args, **_arg1, &block); end
# source://faraday//lib/faraday/logging/formatter.rb#41
def exception(exc); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/logging/formatter.rb#23
def fatal(*args, **_arg1, &block); end
# source://faraday//lib/faraday/logging/formatter.rb#52
def filter(filter_word, filter_replacement); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/logging/formatter.rb#23
def info(*args, **_arg1, &block); end
# source://faraday//lib/faraday/logging/formatter.rb#25
@@ -1347,7 +1475,7 @@ class Faraday::Logging::Formatter
# source://faraday//lib/faraday/logging/formatter.rb#34
def response(env); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/logging/formatter.rb#23
def warn(*args, **_arg1, &block); end
private
@@ -1542,7 +1670,7 @@ module Faraday::NestedParamsEncoder
# source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
def array_indices=(_arg0); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#173
def escape(*args, **_arg1, &block); end
# Returns the value of attribute sort_params.
@@ -1557,7 +1685,7 @@ module Faraday::NestedParamsEncoder
# source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
def sort_params=(_arg0); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#173
def unescape(*args, **_arg1, &block); end
end
end
@@ -1626,14 +1754,14 @@ class Faraday::Options < ::Struct
#
# @return [Boolean]
#
- # source://faraday//lib/faraday/options.rb#113
+ # source://faraday//lib/faraday/options.rb#117
def has_key?(key); end
# Public
#
# @return [Boolean]
#
- # source://faraday//lib/faraday/options.rb#127
+ # source://faraday//lib/faraday/options.rb#131
def has_value?(value); end
# Internal
@@ -1742,52 +1870,65 @@ class Faraday::ProxyAuthError < ::Faraday::ClientError; end
class Faraday::ProxyOptions < ::Faraday::Options
extend ::Forwardable
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def host(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def host=(*args, **_arg1, &block); end
- # source://faraday//lib/faraday/options.rb#178
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def password; end
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def password=(_); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def path(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def path=(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def port(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def port=(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def scheme(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/options/proxy_options.rb#10
def scheme=(*args, **_arg1, &block); end
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def uri; end
+
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def uri=(_); end
- # source://faraday//lib/faraday/options.rb#178
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def user; end
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def user=(_); end
class << self
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def [](*_arg0); end
# source://faraday//lib/faraday/options/proxy_options.rb#13
def from(value); end
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def inspect; end
+
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def keyword_init?; end
+
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def members; end
+
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
def new(*_arg0); end
end
end
@@ -1886,7 +2027,7 @@ class Faraday::RackBuilder
# methods to push onto the various positions in the stack:
#
- # source://faraday//lib/faraday/rack_builder.rb#119
+ # source://faraday//lib/faraday/rack_builder.rb#126
def insert_before(index, *_arg1, **_arg2, &_arg3); end
# Locks the middleware stack to ensure no further modifications are made.
@@ -2019,25 +2160,35 @@ class Faraday::Request < ::Struct
def []=(key, value); end
# @return [String] body
+ #
+ # source://faraday//lib/faraday/request.rb#27
def body; end
# @return [String] body
+ #
+ # source://faraday//lib/faraday/request.rb#27
def body=(_); end
# @return [Faraday::Utils::Headers] headers
+ #
+ # source://faraday//lib/faraday/request.rb#27
def headers; end
# Replace request headers, preserving the existing hash type.
#
# @param hash [Hash] new headers
#
- # source://faraday//lib/faraday/request.rb#61
+ # source://faraday//lib/faraday/request.rb#27
def headers=(hash); end
# @return [Symbol] the HTTP method of the Request
+ #
+ # source://faraday//lib/faraday/request.rb#27
def http_method; end
# @return [Symbol] the HTTP method of the Request
+ #
+ # source://faraday//lib/faraday/request.rb#27
def http_method=(_); end
# Marshal serialization support.
@@ -2056,25 +2207,35 @@ class Faraday::Request < ::Struct
def marshal_load(serialised); end
# @return [RequestOptions] options
+ #
+ # source://faraday//lib/faraday/request.rb#27
def options; end
# @return [RequestOptions] options
+ #
+ # source://faraday//lib/faraday/request.rb#27
def options=(_); end
# @return [Hash] query parameters
+ #
+ # source://faraday//lib/faraday/request.rb#27
def params; end
# Replace params, preserving the existing hash type.
#
# @param hash [Hash] new params
#
- # source://faraday//lib/faraday/request.rb#49
+ # source://faraday//lib/faraday/request.rb#27
def params=(hash); end
# @return [URI, String] the path
+ #
+ # source://faraday//lib/faraday/request.rb#27
def path; end
# @return [URI, String] the path
+ #
+ # source://faraday//lib/faraday/request.rb#27
def path=(_); end
# @return [Env] the Env for this Request
@@ -2084,8 +2245,8 @@ class Faraday::Request < ::Struct
# Update path and params.
#
- # @param path [URI, String]
# @param params [Hash, nil]
+ # @param path [URI, String]
# @return [void]
#
# source://faraday//lib/faraday/request.rb#74
@@ -2093,10 +2254,14 @@ class Faraday::Request < ::Struct
private
+ # source://faraday//lib/faraday/request.rb#30
def member_get(_arg0); end
+
+ # source://faraday//lib/faraday/request.rb#32
def member_set(_arg0, _arg1); end
class << self
+ # source://faraday//lib/faraday/request.rb#27
def [](*_arg0); end
# @param request_method [String]
@@ -2107,9 +2272,16 @@ class Faraday::Request < ::Struct
# source://faraday//lib/faraday/request.rb#39
def create(request_method); end
+ # source://faraday//lib/faraday/request.rb#27
def inspect; end
+
+ # source://faraday//lib/faraday/request.rb#27
def keyword_init?; end
+
+ # source://faraday//lib/faraday/request.rb#27
def members; end
+
+ # source://faraday//lib/faraday/request.rb#27
def new(*_arg0); end
end
end
@@ -2119,12 +2291,12 @@ end
# source://faraday//lib/faraday/request/authorization.rb#6
class Faraday::Request::Authorization < ::Faraday::Middleware
# @param app [#call]
- # @param type [String, Symbol] Type of Authorization
# @param params [Array] parameters to build the Authorization header.
# If the type is `:basic`, then these can be a login and password pair.
# Otherwise, a single value is expected that will be appended after the type.
# This value can be a proc or an object responding to `.call`, in which case
# it will be invoked on each request.
+ # @param type [String, Symbol] Type of Authorization
# @return [Authorization] a new instance of Authorization
#
# source://faraday//lib/faraday/request/authorization.rb#16
@@ -2137,9 +2309,9 @@ class Faraday::Request::Authorization < ::Faraday::Middleware
private
- # @param type [String, Symbol]
# @param env [Faraday::Env]
# @param params [Array]
+ # @param type [String, Symbol]
# @return [String] a header value
#
# source://faraday//lib/faraday/request/authorization.rb#35
@@ -2186,21 +2358,32 @@ end
#
# source://faraday//lib/faraday/request/instrumentation.rb#8
class Faraday::Request::Instrumentation::Options < ::Faraday::Options
- # source://faraday//lib/faraday/request/instrumentation.rb#17
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def instrumenter; end
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def instrumenter=(_); end
- # source://faraday//lib/faraday/request/instrumentation.rb#11
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def name; end
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def name=(_); end
class << self
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def [](*_arg0); end
+
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def inspect; end
+
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def keyword_init?; end
+
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def members; end
+
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
def new(*_arg0); end
end
end
@@ -2304,38 +2487,89 @@ class Faraday::RequestOptions < ::Faraday::Options
# source://faraday//lib/faraday/options/request_options.rb#11
def []=(key, value); end
+ # source://faraday//lib/faraday/options/request_options.rb#7
def bind; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def bind=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def boundary; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def boundary=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def context; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def context=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def oauth; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def oauth=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def on_data; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def on_data=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def open_timeout; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def open_timeout=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def params_encoder; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def params_encoder=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def proxy; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def proxy=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def read_timeout; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def read_timeout=(_); end
# source://faraday//lib/faraday/options/request_options.rb#19
def stream_response?; end
+ # source://faraday//lib/faraday/options/request_options.rb#7
def timeout; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def timeout=(_); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def write_timeout; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def write_timeout=(_); end
class << self
+ # source://faraday//lib/faraday/options/request_options.rb#7
def [](*_arg0); end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def inspect; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def keyword_init?; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def members; end
+
+ # source://faraday//lib/faraday/options/request_options.rb#7
def new(*_arg0); end
end
end
@@ -2362,7 +2596,7 @@ class Faraday::Response
# source://faraday//lib/faraday/response.rb#11
def initialize(env = T.unsafe(nil)); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://faraday//lib/faraday/response.rb#30
def [](*args, **_arg1, &block); end
# Expand the env with more properties, without overriding existing ones.
@@ -2527,117 +2761,190 @@ class Faraday::SSLError < ::Faraday::Error; end
# source://faraday//lib/faraday/options/ssl_options.rb#56
class Faraday::SSLOptions < ::Faraday::Options
# @return [String] CA file
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def ca_file; end
# @return [String] CA file
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def ca_file=(_); end
# @return [String] CA path
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def ca_path; end
# @return [String] CA path
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def ca_path=(_); end
# @return [OpenSSL::X509::Store] certificate store
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def cert_store; end
# @return [OpenSSL::X509::Store] certificate store
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def cert_store=(_); end
# @return [OpenSSL::X509::Certificate] certificate (Excon only)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def certificate; end
# @return [OpenSSL::X509::Certificate] certificate (Excon only)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def certificate=(_); end
# @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def ciphers; end
# @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def ciphers=(_); end
# @return [String, OpenSSL::X509::Certificate] client certificate
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def client_cert; end
# @return [String, OpenSSL::X509::Certificate] client certificate
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def client_cert=(_); end
# @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def client_key; end
# @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def client_key=(_); end
# source://faraday//lib/faraday/options/ssl_options.rb#67
def disable?; end
# @return [String] Server hostname used for SNI (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html#method-i-hostname-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def hostname; end
# @return [String] Server hostname used for SNI (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html#method-i-hostname-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def hostname=(_); end
# @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def max_version; end
# @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def max_version=(_); end
# @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def min_version; end
# @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def min_version=(_); end
# @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def private_key; end
# @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def private_key=(_); end
# @return [Boolean] whether to verify SSL certificates or not
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify; end
# @return [Boolean] whether to verify SSL certificates or not
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify=(_); end
# source://faraday//lib/faraday/options/ssl_options.rb#62
def verify?; end
# @return [Integer] maximum depth for the certificate chain verification
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify_depth; end
# @return [Integer] maximum depth for the certificate chain verification
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify_depth=(_); end
# @return [Boolean] whether to enable hostname verification on server certificates
# during the handshake or not (see https://github.com/ruby/openssl/pull/60)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify_hostname; end
# @return [Boolean] whether to enable hostname verification on server certificates
# during the handshake or not (see https://github.com/ruby/openssl/pull/60)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify_hostname=(_); end
# source://faraday//lib/faraday/options/ssl_options.rb#72
def verify_hostname?; end
# @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify_mode; end
# @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def verify_mode=(_); end
# @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def version; end
# @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D)
+ #
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def version=(_); end
class << self
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def [](*_arg0); end
+
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def inspect; end
+
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def keyword_init?; end
+
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def members; end
+
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
def new(*_arg0); end
end
end
@@ -2861,7 +3168,7 @@ class Faraday::Utils::Headers < ::Hash
# @return [Boolean]
#
- # source://faraday//lib/faraday/utils/headers.rb#86
+ # source://faraday//lib/faraday/utils/headers.rb#90
def has_key?(key); end
# @return [Boolean]
@@ -2874,12 +3181,12 @@ class Faraday::Utils::Headers < ::Hash
# @return [Boolean]
#
- # source://faraday//lib/faraday/utils/headers.rb#86
+ # source://faraday//lib/faraday/utils/headers.rb#92
def key?(key); end
# @return [Boolean]
#
- # source://faraday//lib/faraday/utils/headers.rb#86
+ # source://faraday//lib/faraday/utils/headers.rb#91
def member?(key); end
# source://faraday//lib/faraday/utils/headers.rb#101
@@ -2897,7 +3204,7 @@ class Faraday::Utils::Headers < ::Hash
# source://faraday//lib/faraday/utils/headers.rb#113
def to_hash; end
- # source://faraday//lib/faraday/utils/headers.rb#94
+ # source://faraday//lib/faraday/utils/headers.rb#99
def update(other); end
protected
@@ -2948,7 +3255,7 @@ class Faraday::Utils::ParamsHash < ::Hash
# @return [Boolean]
#
- # source://faraday//lib/faraday/utils/params_hash.rb#19
+ # source://faraday//lib/faraday/utils/params_hash.rb#23
def has_key?(key); end
# @return [Boolean]
@@ -2958,18 +3265,18 @@ class Faraday::Utils::ParamsHash < ::Hash
# @return [Boolean]
#
- # source://faraday//lib/faraday/utils/params_hash.rb#19
+ # source://faraday//lib/faraday/utils/params_hash.rb#25
def key?(key); end
# @return [Boolean]
#
- # source://faraday//lib/faraday/utils/params_hash.rb#19
+ # source://faraday//lib/faraday/utils/params_hash.rb#24
def member?(key); end
# source://faraday//lib/faraday/utils/params_hash.rb#35
def merge(params); end
- # source://faraday//lib/faraday/utils/params_hash.rb#27
+ # source://faraday//lib/faraday/utils/params_hash.rb#33
def merge!(params); end
# source://faraday//lib/faraday/utils/params_hash.rb#44
diff --git a/sorbet/rbi/gems/guard-compat@1.2.1.rbi b/sorbet/rbi/gems/guard-compat@1.2.1.rbi
index eaa43cf4..51f52b17 100644
--- a/sorbet/rbi/gems/guard-compat@1.2.1.rbi
+++ b/sorbet/rbi/gems/guard-compat@1.2.1.rbi
@@ -11,49 +11,6 @@
# source://guard-compat//lib/guard/compat/plugin.rb#5
module Guard
extend ::Guard::Internals::Helpers
-
- class << self
- # source://guard/2.19.1/lib/guard.rb#87
- def async_queue_add(changes); end
-
- # source://guard/2.19.1/lib/guard.rb#73
- def init(cmdline_options); end
-
- # source://guard/2.19.1/lib/guard.rb#24
- def interactor; end
-
- # source://guard/2.19.1/lib/guard.rb#23
- def listener; end
-
- # source://guard/2.19.1/lib/guard.rb#22
- def queue; end
-
- # source://guard/2.19.1/lib/guard.rb#44
- def setup(cmdline_options = T.unsafe(nil)); end
-
- # source://guard/2.19.1/lib/guard.rb#21
- def state; end
-
- private
-
- # source://guard/2.19.1/lib/guard.rb#132
- def _evaluate(options); end
-
- # source://guard/2.19.1/lib/guard.rb#152
- def _guardfile_deprecated_check(modified); end
-
- # source://guard/2.19.1/lib/guard.rb#113
- def _listener_callback; end
-
- # source://guard/2.19.1/lib/guard.rb#128
- def _pluginless_guardfile?; end
-
- # source://guard/2.19.1/lib/guard.rb#109
- def _relative_pathnames(paths); end
-
- # source://guard/2.19.1/lib/guard.rb#99
- def _relevant_changes?(changes); end
- end
end
# source://guard-compat//lib/guard/compat/plugin.rb#24
@@ -107,72 +64,6 @@ end
class Guard::Plugin
# @return [Plugin] a new instance of Plugin
#
- # source://guard/2.19.1/lib/guard/plugin.rb#285
+ # source://guard-compat//lib/guard/compat/plugin.rb#14
def initialize(options = T.unsafe(nil)); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def callbacks; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def callbacks=(_arg0); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def group; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def group=(_arg0); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#116
- def hook(event, *args); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#240
- def name; end
-
- # Returns the value of attribute options.
- #
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def options; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def options=(_arg0); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#252
- def title; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#267
- def to_s; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def watchers; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#129
- def watchers=(_arg0); end
-
- private
-
- # source://guard/2.19.1/lib/guard/plugin.rb#297
- def _register_callbacks; end
-
- class << self
- # source://guard/2.19.1/lib/guard/plugin.rb#62
- def add_callback(listener, guard_plugin, events); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#52
- def callbacks; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#140
- def non_namespaced_classname; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#153
- def non_namespaced_name; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#74
- def notify(guard_plugin, event, *args); end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#83
- def reset_callbacks!; end
-
- # source://guard/2.19.1/lib/guard/plugin.rb#162
- def template(plugin_location); end
- end
end
diff --git a/sorbet/rbi/gems/guard-minitest@2.4.6.rbi b/sorbet/rbi/gems/guard-minitest@2.4.6.rbi
index 126e0ba3..dbff9ff5 100644
--- a/sorbet/rbi/gems/guard-minitest@2.4.6.rbi
+++ b/sorbet/rbi/gems/guard-minitest@2.4.6.rbi
@@ -8,49 +8,6 @@
# source://guard-minitest//lib/guard/minitest.rb#3
module Guard
extend ::Guard::Internals::Helpers
-
- class << self
- # source://guard/2.19.1/lib/guard.rb#87
- def async_queue_add(changes); end
-
- # source://guard/2.19.1/lib/guard.rb#73
- def init(cmdline_options); end
-
- # source://guard/2.19.1/lib/guard.rb#24
- def interactor; end
-
- # source://guard/2.19.1/lib/guard.rb#23
- def listener; end
-
- # source://guard/2.19.1/lib/guard.rb#22
- def queue; end
-
- # source://guard/2.19.1/lib/guard.rb#44
- def setup(cmdline_options = T.unsafe(nil)); end
-
- # source://guard/2.19.1/lib/guard.rb#21
- def state; end
-
- private
-
- # source://guard/2.19.1/lib/guard.rb#132
- def _evaluate(options); end
-
- # source://guard/2.19.1/lib/guard.rb#152
- def _guardfile_deprecated_check(modified); end
-
- # source://guard/2.19.1/lib/guard.rb#113
- def _listener_callback; end
-
- # source://guard/2.19.1/lib/guard.rb#128
- def _pluginless_guardfile?; end
-
- # source://guard/2.19.1/lib/guard.rb#109
- def _relative_pathnames(paths); end
-
- # source://guard/2.19.1/lib/guard.rb#99
- def _relevant_changes?(changes); end
- end
end
# source://guard-minitest//lib/guard/minitest.rb#4
@@ -300,106 +257,10 @@ Guard::MinitestVersion::VERSION = T.let(T.unsafe(nil), String)
# source://guard-minitest//lib/minitest/guard_minitest_plugin.rb#1
module Minitest
class << self
- # source://minitest/5.25.5/lib/minitest.rb#323
- def __run(reporter, options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#97
- def after_run(&block); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def allow_fork; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def allow_fork=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#70
- def autorun; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def backtrace_filter; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def backtrace_filter=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#19
- def cattr_accessor(name); end
-
- # source://minitest/5.25.5/lib/minitest.rb#1216
- def clock_time; end
-
- # source://minitest/5.25.5/lib/minitest.rb#303
- def empty_run!(options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def extensions; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def extensions=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#336
- def filter_backtrace(bt); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def info_signal; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def info_signal=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#125
- def init_plugins(options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#109
- def load_plugins; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def parallel_executor; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def parallel_executor=(_arg0); end
-
# source://guard-minitest//lib/minitest/guard_minitest_plugin.rb#8
def plugin_guard_minitest_init(options); end
# source://guard-minitest//lib/minitest/guard_minitest_plugin.rb#2
def plugin_guard_minitest_options(opts, options); end
-
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#10
- def plugin_pride_init(options); end
-
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#4
- def plugin_pride_options(opts, _options); end
-
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#12
- def plugin_rg_init(options); end
-
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#6
- def plugin_rg_options(opts, _options); end
-
- # source://simplecov/0.22.0/lib/minitest/simplecov_plugin.rb#6
- def plugin_simplecov_init(_options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#143
- def process_args(args = T.unsafe(nil)); end
-
- # source://minitest/5.25.5/lib/minitest.rb#104
- def register_plugin(name_or_mod); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def reporter; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def reporter=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#269
- def run(args = T.unsafe(nil)); end
-
- # source://minitest/5.25.5/lib/minitest.rb#1207
- def run_one_method(klass, method_name); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def seed; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def seed=(_arg0); end
end
end
diff --git a/sorbet/rbi/gems/guard@2.19.1.rbi b/sorbet/rbi/gems/guard@2.19.1.rbi
index 1b491457..004444e2 100644
--- a/sorbet/rbi/gems/guard@2.19.1.rbi
+++ b/sorbet/rbi/gems/guard@2.19.1.rbi
@@ -443,7 +443,7 @@ class Guard::Dsl
# ignore %r{^ignored/path/}, /man/
# @param regexps [Regexp] a pattern (or list of patterns) for ignoring paths
#
- # source://guard//lib/guard/dsl.rb#267
+ # source://guard//lib/guard/dsl.rb#273
def filter(*regexps); end
# Replaces ignored paths globally
@@ -453,7 +453,7 @@ class Guard::Dsl
# ignore! %r{^ignored/path/}, /man/
# @param regexps [Regexp] a pattern (or list of patterns) for ignoring paths
#
- # source://guard//lib/guard/dsl.rb#282
+ # source://guard//lib/guard/dsl.rb#290
def filter!(*regexps); end
# Declares a group of Guard plugins to be run with `guard start --group
@@ -472,9 +472,9 @@ class Guard::Dsl
# @param name [Symbol, String, Array] the group name called
# from the CLI
# @param options [Hash] the options accepted by the group
+ # @see #guard
# @see Group
# @see Guard.add_group
- # @see #guard
# @yield a block where you can declare several Guard plugins
#
# source://guard//lib/guard/dsl.rb#124
@@ -487,18 +487,18 @@ class Guard::Dsl
#
# The available options are different for each Guard implementation.
#
- # @example Declare a Guard without `watch` patterns
- # guard :rspec
# @example Declare a Guard with a `watch` pattern
# guard :rspec do
# watch %r{.*_spec.rb}
# end
+ # @example Declare a Guard without `watch` patterns
+ # guard :rspec
# @param name [String] the Guard plugin name
# @param options [Hash] the options accepted by the Guard plugin
- # @see Plugin
- # @see Guard.add_plugin
- # @see #watch
# @see #group
+ # @see #watch
+ # @see Guard.add_plugin
+ # @see Plugin
# @yield a block where you can declare several watch patterns and actions
#
# source://guard//lib/guard/dsl.rb#176
@@ -543,16 +543,16 @@ class Guard::Dsl
# `:milliseconds`.
# * The `:only` and `:except` options must be a `RegExp`.
#
- # @example Set the log level
- # logger level: :warn
- # @example Set a custom log template
- # logger template: '[Guard - :severity - :progname - :time] :message'
- # @example Set a custom time format
- # logger time_format: '%h'
# @example Limit logging to a Guard plugin
# logger only: :jasmine
# @example Log all but not the messages from a specific Guard plugin
# logger except: :jasmine
+ # @example Set a custom log template
+ # logger template: '[Guard - :severity - :progname - :time] :message'
+ # @example Set a custom time format
+ # logger time_format: '%h'
+ # @example Set the log level
+ # logger level: :warn
# @option options
# @option options
# @option options
@@ -582,10 +582,10 @@ class Guard::Dsl
#
# @example Scope Guard to a single group
# scope group: :frontend
- # @example Scope Guard to multiple groups
- # scope groups: [:specs, :docs]
# @example Scope Guard to a single plugin
# scope plugin: :test
+ # @example Scope Guard to multiple groups
+ # scope groups: [:specs, :docs]
# @example Scope Guard to multiple plugins
# scope plugins: [:jasmine, :rspec]
# @param scope [Hash] the scope for the groups and plugins
@@ -938,13 +938,13 @@ class Guard::Interactor
# source://guard//lib/guard/interactor.rb#9
def initialize(no_interaction = T.unsafe(nil)); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://guard//lib/guard/interactor.rb#25
def background(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://guard//lib/guard/interactor.rb#25
def foreground(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://guard//lib/guard/interactor.rb#25
def handle_interrupt(*args, **_arg1, &block); end
# @return [Boolean]
@@ -964,7 +964,7 @@ class Guard::Interactor
#
# @return [Boolean]
#
- # source://guard//lib/guard/interactor.rb#39
+ # source://guard//lib/guard/interactor.rb#43
def enabled; end
# TODO: handle switching interactors during runtime?
@@ -1165,7 +1165,7 @@ class Guard::Internals::Session
# @return [Boolean]
#
- # source://guard//lib/guard/internals/session.rb#102
+ # source://guard//lib/guard/internals/session.rb#106
def clear?; end
# source://guard//lib/guard/internals/session.rb#98
@@ -1343,8 +1343,8 @@ class Guard::Options < ::Thor::CoreExt::HashWithIndifferentAccess
# Initializes an Guard::Options object. `default_opts` is merged into
# `opts`.
#
- # @param opts [Hash] the options
# @param default_opts [Hash] the default options
+ # @param opts [Hash] the options
# @return [Options] a new instance of Options
#
# source://guard//lib/guard/options.rb#13
@@ -1446,19 +1446,19 @@ class Guard::Plugin
# When {Guard::Plugin::run_all} is called, {#hook} will notify
# callbacks registered for the "foo_bar" event.
#
- # @example Add a hook with a Symbol
+ # @example Add a hook with a String
#
# def run_all
- # hook :foo
+ # hook "foo_bar"
# end
- # @example Add a hook with a String
+ # @example Add a hook with a Symbol
#
# def run_all
- # hook "foo_bar"
+ # hook :foo
# end
- # @param event [Symbol, String] the name of the Guard event
# @param args [Array] the parameters are passed as is to the callbacks
# registered for the given event.
+ # @param event [Symbol, String] the name of the Guard event
#
# source://guard//lib/guard/plugin.rb#116
def hook(event, *args); end
@@ -1531,9 +1531,9 @@ class Guard::Plugin
class << self
# Add a callback.
#
- # @param listener [Block] the listener to notify
- # @param guard_plugin [Guard::Plugin] the Guard plugin to add the callback
# @param events [Array] the events to register
+ # @param guard_plugin [Guard::Plugin] the Guard plugin to add the callback
+ # @param listener [Block] the listener to notify
#
# source://guard//lib/guard/plugin.rb#62
def add_callback(listener, guard_plugin, events); end
@@ -1566,9 +1566,9 @@ class Guard::Plugin
# Notify a callback.
#
- # @param guard_plugin [Guard::Plugin] the Guard plugin to add the callback
- # @param event [Symbol] the event to trigger
# @param args [Array] the arguments for the listener
+ # @param event [Symbol] the event to trigger
+ # @param guard_plugin [Guard::Plugin] the Guard plugin to add the callback
#
# source://guard//lib/guard/plugin.rb#74
def notify(guard_plugin, event, *args); end
@@ -1727,9 +1727,9 @@ class Guard::Runner
# When the Group has `:halt_on_fail` disabled, we've to catch
# `:task_has_failed` here in order to avoid an uncaught throw error.
#
+ # @param args [Array] the arguments for the task
# @param plugin [Guard::Plugin] guard the Guard to execute
# @param task [Symbol] the task to run
- # @param args [Array] the arguments for the task
# @raise [:task_has_failed] when task has failed
#
# source://guard//lib/guard/runner.rb#78
@@ -1739,8 +1739,8 @@ class Guard::Runner
#
# on
#
- # @param task [Symbol] the task to run
# @param scope_hash [Hash] either the Guard plugin or the group to run the task
+ # @param task [Symbol] the task to run
#
# source://guard//lib/guard/runner.rb#17
def run(task, scope_hash = T.unsafe(nil)); end
@@ -1748,8 +1748,8 @@ class Guard::Runner
# Runs the appropriate tasks on all registered plugins
# based on the passed changes.
#
- # @param modified [Array] the modified paths.
# @param added [Array] the added paths.
+ # @param modified [Array] the modified paths.
# @param removed [Array] the removed paths.
#
# source://guard//lib/guard/runner.rb#44
@@ -1957,8 +1957,8 @@ module Guard::UI
# @example
#
# color('Hello World', :red, :bright)
- # @param text [String] the text to colorize
# @param color_options [Array] the color options
+ # @param text [String] the text to colorize
#
# source://guard//lib/guard/ui.rb#247
def color(text, *color_options); end
@@ -2122,10 +2122,10 @@ class Guard::Watcher
# Initializes a file watcher.
#
- # @param pattern [String, Regexp] the pattern to be watched by the Guard
- # plugin
# @param action [Block] the action to execute before passing the result to
# the Guard plugin
+ # @param pattern [String, Regexp] the pattern to be watched by the Guard
+ # plugin
# @return [Watcher] a new instance of Watcher
#
# source://guard//lib/guard/watcher.rb#24
@@ -2178,8 +2178,8 @@ class Guard::Watcher
class << self
# Finds the files that matches a Guard plugin.
#
- # @param guard [Guard::Plugin] the Guard plugin which watchers are used
# @param files [Array] the changed files
+ # @param guard [Guard::Plugin] the Guard plugin which watchers are used
# @return [Array] the matched watcher response
#
# source://guard//lib/guard/watcher.rb#42
diff --git a/sorbet/rbi/gems/hashdiff@1.2.0.rbi b/sorbet/rbi/gems/hashdiff@1.2.0.rbi
index 01f8c682..b146dcc0 100644
--- a/sorbet/rbi/gems/hashdiff@1.2.0.rbi
+++ b/sorbet/rbi/gems/hashdiff@1.2.0.rbi
@@ -78,8 +78,8 @@ module Hashdiff
# decode property path into an array
# e.g. "a.b[3].c" => ['a', 'b', 3, 'c']
#
- # @param path [String] Property-string
# @param delimiter [String] Property-string delimiter
+ # @param path [String] Property-string
# @private
#
# source://hashdiff//lib/hashdiff/util.rb#58
@@ -139,8 +139,8 @@ module Hashdiff
# Apply patch to object
#
- # @param obj [Hash, Array] the object to be patched, can be an Array or a Hash
# @param changes [Array] e.g. [[ '+', 'a.b', '45' ], [ '-', 'a.c', '5' ], [ '~', 'a.x', '45', '63']]
+ # @param obj [Hash, Array] the object to be patched, can be an Array or a Hash
# @param options [Hash] supports following keys:
# * :delimiter (String) ['.'] delimiter string for representing nested keys in changes array
# @return the object after patch
@@ -165,8 +165,8 @@ module Hashdiff
# Unpatch an object
#
- # @param obj [Hash, Array] the object to be unpatched, can be an Array or a Hash
# @param changes [Array] e.g. [[ '+', 'a.b', '45' ], [ '-', 'a.c', '5' ], [ '~', 'a.x', '45', '63']]
+ # @param obj [Hash, Array] the object to be unpatched, can be an Array or a Hash
# @param options [Hash] supports following keys:
# * :delimiter (String) ['.'] delimiter string for representing nested keys in changes array
# @return the object after unpatch
diff --git a/sorbet/rbi/gems/i18n@1.14.7.rbi b/sorbet/rbi/gems/i18n@1.14.7.rbi
index 72a32f16..faf9d0f7 100644
--- a/sorbet/rbi/gems/i18n@1.14.7.rbi
+++ b/sorbet/rbi/gems/i18n@1.14.7.rbi
@@ -13,22 +13,46 @@ class GetText::PoParser < ::Racc::Parser
# source://i18n//lib/i18n/gettext/po_parser.rb#19
def _(x); end
+ # source://i18n//lib/i18n/gettext/po_parser.rb#282
def _reduce_10(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#295
def _reduce_12(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#302
def _reduce_13(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#309
def _reduce_14(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#316
def _reduce_15(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#235
def _reduce_5(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#246
def _reduce_8(val, _values, result); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#264
def _reduce_9(val, _values, result); end
# source://i18n//lib/i18n/gettext/po_parser.rb#323
def _reduce_none(val, _values, result); end
+ # source://i18n//lib/i18n/gettext/po_parser.rb#23
def next_token; end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#23
def on_comment(comment); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#23
def on_message(msgid, msgstr); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#23
def parse(str, data, ignore_fuzzy = T.unsafe(nil)); end
+
+ # source://i18n//lib/i18n/gettext/po_parser.rb#23
def unescape(orig); end
end
@@ -230,7 +254,7 @@ module I18n::Backend::Base
# Loads a YAML translations file. The data must have locales as
# toplevel keys.
#
- # source://i18n//lib/i18n/backend/base.rb#261
+ # source://i18n//lib/i18n/backend/base.rb#272
def load_yaml(filename); end
# Loads a YAML translations file. The data must have locales as
@@ -276,7 +300,7 @@ module I18n::Backend::Base
# given options. If it is a Proc then it will be evaluated. All other
# subjects will be returned directly.
#
- # source://i18n//lib/i18n/backend/base.rb#150
+ # source://i18n//lib/i18n/backend/base.rb#172
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
# @return [Boolean]
@@ -811,7 +835,7 @@ class I18n::Backend::KeyValue::SubtreeProxy
# @return [Boolean]
#
- # source://i18n//lib/i18n/backend/key_value.rb#183
+ # source://i18n//lib/i18n/backend/key_value.rb#186
def kind_of?(klass); end
# @return [Boolean]
@@ -1195,10 +1219,10 @@ end
# source://i18n//lib/i18n.rb#55
module I18n::Base
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def available_locales; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def available_locales=(value); end
# @return [Boolean]
@@ -1206,10 +1230,10 @@ module I18n::Base
# source://i18n//lib/i18n.rb#386
def available_locales_initialized?; end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def backend; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def backend=(value); end
# Gets I18n configuration object.
@@ -1222,16 +1246,16 @@ module I18n::Base
# source://i18n//lib/i18n.rb#62
def config=(value); end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def default_locale; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def default_locale=(value); end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def default_separator; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def default_separator=(value); end
# Tells the backend to load translations now. Used in situations like the
@@ -1241,7 +1265,7 @@ module I18n::Base
# source://i18n//lib/i18n.rb#91
def eager_load!; end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def enforce_available_locales; end
# Raises an InvalidLocale exception when the passed locale is not available.
@@ -1249,13 +1273,13 @@ module I18n::Base
# source://i18n//lib/i18n.rb#380
def enforce_available_locales!(locale); end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def enforce_available_locales=(value); end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def exception_handler; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def exception_handler=(value); end
# Returns true if a translation exists for a given key, otherwise returns false.
@@ -1295,19 +1319,19 @@ module I18n::Base
#
# @raise [Disabled]
#
- # source://i18n//lib/i18n.rb#335
+ # source://i18n//lib/i18n.rb#343
def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def load_path; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def load_path=(value); end
- # source://i18n//lib/i18n.rb#70
+ # source://i18n//lib/i18n.rb#69
def locale; end
- # source://i18n//lib/i18n.rb#74
+ # source://i18n//lib/i18n.rb#69
def locale=(value); end
# Returns true when the passed locale, which can be either a String or a
@@ -1457,13 +1481,13 @@ module I18n::Base
#
# @raise [Disabled]
#
- # source://i18n//lib/i18n.rb#211
+ # source://i18n//lib/i18n.rb#226
def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
# Wrapper for translate that adds :raise => true . With
# this option, if no translation is found, it will raise I18n::MissingTranslationData
#
- # source://i18n//lib/i18n.rb#230
+ # source://i18n//lib/i18n.rb#233
def t!(key, **options); end
# Translates, pluralizes and interpolates a given key using a given locale,
@@ -1889,13 +1913,13 @@ module I18n::Gettext::Helpers
# source://i18n//lib/i18n/gettext/helpers.rb#17
def N_(msgsid); end
- # source://i18n//lib/i18n/gettext/helpers.rb#21
+ # source://i18n//lib/i18n/gettext/helpers.rb#24
def _(msgid, options = T.unsafe(nil)); end
# source://i18n//lib/i18n/gettext/helpers.rb#21
def gettext(msgid, options = T.unsafe(nil)); end
- # source://i18n//lib/i18n/gettext/helpers.rb#38
+ # source://i18n//lib/i18n/gettext/helpers.rb#41
def n_(msgid, msgid_plural, n = T.unsafe(nil)); end
# source://i18n//lib/i18n/gettext/helpers.rb#38
@@ -1905,7 +1929,7 @@ module I18n::Gettext::Helpers
# npgettext('Fruits', 'apple', 'apples', 2)
# npgettext('Fruits', ['apple', 'apples'], 2)
#
- # source://i18n//lib/i18n/gettext/helpers.rb#61
+ # source://i18n//lib/i18n/gettext/helpers.rb#72
def np_(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
# Method signatures:
@@ -1919,7 +1943,7 @@ module I18n::Gettext::Helpers
# nsgettext('Fruits|apple', 'apples', 2)
# nsgettext(['Fruits|apple', 'apples'], 2)
#
- # source://i18n//lib/i18n/gettext/helpers.rb#46
+ # source://i18n//lib/i18n/gettext/helpers.rb#56
def ns_(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
# Method signatures:
@@ -1929,13 +1953,13 @@ module I18n::Gettext::Helpers
# source://i18n//lib/i18n/gettext/helpers.rb#46
def nsgettext(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
- # source://i18n//lib/i18n/gettext/helpers.rb#32
+ # source://i18n//lib/i18n/gettext/helpers.rb#36
def p_(msgctxt, msgid); end
# source://i18n//lib/i18n/gettext/helpers.rb#32
def pgettext(msgctxt, msgid); end
- # source://i18n//lib/i18n/gettext/helpers.rb#26
+ # source://i18n//lib/i18n/gettext/helpers.rb#30
def s_(msgid, separator = T.unsafe(nil)); end
# source://i18n//lib/i18n/gettext/helpers.rb#26
@@ -2246,7 +2270,7 @@ module I18n::MissingTranslation::Base
# source://i18n//lib/i18n/exceptions.rb#80
def to_exception; end
- # source://i18n//lib/i18n/exceptions.rb#65
+ # source://i18n//lib/i18n/exceptions.rb#78
def to_s; end
end
diff --git a/sorbet/rbi/gems/io-event@1.14.0.rbi b/sorbet/rbi/gems/io-event@1.14.0.rbi
index b6ecae7a..d4271ba3 100644
--- a/sorbet/rbi/gems/io-event@1.14.0.rbi
+++ b/sorbet/rbi/gems/io-event@1.14.0.rbi
@@ -90,16 +90,7 @@ IO::Buffer::PAGE_SIZE = T.let(T.unsafe(nil), Integer)
IO::Buffer::PRIVATE = T.let(T.unsafe(nil), Integer)
IO::Buffer::READONLY = T.let(T.unsafe(nil), Integer)
IO::Buffer::SHARED = T.let(T.unsafe(nil), Integer)
-
-class IO::ConsoleMode
- def echo=(_arg0); end
- def raw(*_arg0); end
- def raw!(*_arg0); end
-
- private
-
- def initialize_copy(_arg0); end
-end
+class IO::ConsoleMode; end
class IO::EAGAINWaitReadable < ::Errno::EAGAIN
include ::IO::WaitReadable
@@ -361,27 +352,59 @@ module IO::Event::Selector
def new(loop, env = T.unsafe(nil)); end
# Execute the given block in non-blocking mode.
+ #
+ # source://io-event//lib/io/event/native.rb#7
def nonblock(_arg0); end
end
end
class IO::Event::Selector::KQueue
+ # source://io-event//lib/io/event/native.rb#7
def initialize(_arg0); end
+ # source://io-event//lib/io/event/native.rb#7
def close; end
+
+ # source://io-event//lib/io/event/native.rb#7
def idle_duration; end
+
+ # source://io-event//lib/io/event/native.rb#7
def io_read(*_arg0); end
+
+ # source://io-event//lib/io/event/native.rb#7
def io_wait(_arg0, _arg1, _arg2); end
+
+ # source://io-event//lib/io/event/native.rb#7
def io_write(*_arg0); end
+
+ # source://io-event//lib/io/event/native.rb#7
def loop; end
+
+ # source://io-event//lib/io/event/native.rb#7
def process_wait(_arg0, _arg1, _arg2); end
+
+ # source://io-event//lib/io/event/native.rb#7
def push(_arg0); end
+
+ # source://io-event//lib/io/event/native.rb#7
def raise(*_arg0); end
+
+ # source://io-event//lib/io/event/native.rb#7
def ready?; end
+
+ # source://io-event//lib/io/event/native.rb#7
def resume(*_arg0); end
+
+ # source://io-event//lib/io/event/native.rb#7
def select(_arg0); end
+
+ # source://io-event//lib/io/event/native.rb#7
def transfer; end
+
+ # source://io-event//lib/io/event/native.rb#7
def wakeup; end
+
+ # source://io-event//lib/io/event/native.rb#7
def yield; end
end
@@ -507,12 +530,16 @@ class IO::Event::Selector::Select::Optional < ::Struct
# Returns the value of attribute fiber
#
# @return [Object] the current value of fiber
+ #
+ # source://io-event//lib/io/event/selector/select.rb#56
def fiber; end
# Sets the attribute fiber
#
# @param value [Object] the value to set the attribute fiber to.
# @return [Object] the newly set value
+ #
+ # source://io-event//lib/io/event/selector/select.rb#56
def fiber=(_); end
# source://io-event//lib/io/event/selector/select.rb#65
@@ -522,10 +549,19 @@ class IO::Event::Selector::Select::Optional < ::Struct
def transfer(*arguments); end
class << self
+ # source://io-event//lib/io/event/selector/select.rb#56
def [](*_arg0); end
+
+ # source://io-event//lib/io/event/selector/select.rb#56
def inspect; end
+
+ # source://io-event//lib/io/event/selector/select.rb#56
def keyword_init?; end
+
+ # source://io-event//lib/io/event/selector/select.rb#56
def members; end
+
+ # source://io-event//lib/io/event/selector/select.rb#56
def new(*_arg0); end
end
end
@@ -548,23 +584,31 @@ class IO::Event::Selector::Select::Waiter < ::Struct
# Returns the value of attribute events
#
# @return [Object] the current value of events
+ #
+ # source://io-event//lib/io/event/selector/select.rb#115
def events; end
# Sets the attribute events
#
# @param value [Object] the value to set the attribute events to.
# @return [Object] the newly set value
+ #
+ # source://io-event//lib/io/event/selector/select.rb#115
def events=(_); end
# Returns the value of attribute fiber
#
# @return [Object] the current value of fiber
+ #
+ # source://io-event//lib/io/event/selector/select.rb#115
def fiber; end
# Sets the attribute fiber
#
# @param value [Object] the value to set the attribute fiber to.
# @return [Object] the newly set value
+ #
+ # source://io-event//lib/io/event/selector/select.rb#115
def fiber=(_); end
# source://io-event//lib/io/event/selector/select.rb#142
@@ -573,19 +617,32 @@ class IO::Event::Selector::Select::Waiter < ::Struct
# Returns the value of attribute tail
#
# @return [Object] the current value of tail
+ #
+ # source://io-event//lib/io/event/selector/select.rb#115
def tail; end
# Sets the attribute tail
#
# @param value [Object] the value to set the attribute tail to.
# @return [Object] the newly set value
+ #
+ # source://io-event//lib/io/event/selector/select.rb#115
def tail=(_); end
class << self
+ # source://io-event//lib/io/event/selector/select.rb#115
def [](*_arg0); end
+
+ # source://io-event//lib/io/event/selector/select.rb#115
def inspect; end
+
+ # source://io-event//lib/io/event/selector/select.rb#115
def keyword_init?; end
+
+ # source://io-event//lib/io/event/selector/select.rb#115
def members; end
+
+ # source://io-event//lib/io/event/selector/select.rb#115
def new(*_arg0); end
end
end
diff --git a/sorbet/rbi/gems/json@2.18.1.rbi b/sorbet/rbi/gems/json@2.18.1.rbi
index 546200f2..8be0e783 100644
--- a/sorbet/rbi/gems/json@2.18.1.rbi
+++ b/sorbet/rbi/gems/json@2.18.1.rbi
@@ -1200,6 +1200,15 @@ module JSON
# source://json//lib/json/common.rb#132
def [](object, opts = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#206
+ def _dump_default_options; end
+
+ # source://json//lib/json/common.rb#206
+ def _load_default_options; end
+
+ # source://json//lib/json/common.rb#206
+ def _unsafe_load_default_options; end
+
# Returns the current create identifier.
# See also JSON.create_id=.
#
@@ -1247,6 +1256,12 @@ module JSON
# source://json//lib/json/common.rb#930
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#206
+ def dump_default_options; end
+
+ # source://json//lib/json/common.rb#206
+ def dump_default_options=(val); end
+
# :call-seq:
# JSON.fast_generate(obj, opts) -> new_string
#
@@ -1456,6 +1471,12 @@ module JSON
# source://json//lib/json/common.rb#854
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#206
+ def load_default_options; end
+
+ # source://json//lib/json/common.rb#206
+ def load_default_options=(val); end
+
# :call-seq:
# JSON.load_file(path, opts={}) -> object
#
@@ -1744,6 +1765,12 @@ module JSON
# source://json//lib/json/common.rb#683
def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#206
+ def unsafe_load_default_options; end
+
+ # source://json//lib/json/common.rb#206
+ def unsafe_load_default_options=(val); end
+
private
# source://json//lib/json/common.rb#1008
@@ -1814,7 +1841,7 @@ class JSON::Coder
#
# Serialize the given object into a \JSON document.
#
- # source://json//lib/json/common.rb#1076
+ # source://json//lib/json/common.rb#1079
def generate(object, io = T.unsafe(nil)); end
# call-seq:
@@ -1838,10 +1865,55 @@ class JSON::Coder
#
# Parse the given \JSON document and return an equivalent Ruby object.
#
- # source://json//lib/json/common.rb#1085
+ # source://json//lib/json/common.rb#1088
def parse(source); end
end
+module JSON::Ext::Generator::GeneratorMethods::Array
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::FalseClass
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::Float
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::Hash
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::Integer
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::NilClass
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::Object
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::String
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
+module JSON::Ext::Generator::GeneratorMethods::TrueClass
+ # source://json//lib/json/ext.rb#39
+ def to_json(*_arg0); end
+end
+
# source://json//lib/json/ext/generator/state.rb#6
class JSON::Ext::Generator::State
# call-seq: new(opts = {})
@@ -1853,7 +1925,7 @@ class JSON::Ext::Generator::State
#
# @return [State] a new instance of State
#
- # source://json//lib/json/ext/generator/state.rb#13
+ # source://json//lib/json/ext.rb#39
def initialize(opts = T.unsafe(nil)); end
# call-seq: [](name)
@@ -1870,6 +1942,39 @@ class JSON::Ext::Generator::State
# source://json//lib/json/ext/generator/state.rb#91
def []=(name, value); end
+ # source://json//lib/json/ext.rb#39
+ def allow_nan=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def allow_nan?; end
+
+ # source://json//lib/json/ext.rb#39
+ def array_nl; end
+
+ # source://json//lib/json/ext.rb#39
+ def array_nl=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def as_json; end
+
+ # source://json//lib/json/ext.rb#39
+ def as_json=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def ascii_only=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def ascii_only?; end
+
+ # source://json//lib/json/ext.rb#39
+ def buffer_initial_length; end
+
+ # source://json//lib/json/ext.rb#39
+ def buffer_initial_length=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def check_circular?; end
+
# call-seq: configure(opts)
#
# Configure this State instance with the Hash _opts_, and return
@@ -1878,14 +1983,80 @@ class JSON::Ext::Generator::State
# source://json//lib/json/ext/generator/state.rb#23
def configure(opts); end
+ # source://json//lib/json/ext.rb#39
+ def depth; end
+
+ # source://json//lib/json/ext.rb#39
+ def depth=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def escape_slash; end
+
+ # source://json//lib/json/ext.rb#39
+ def escape_slash=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def escape_slash?; end
+
+ # source://json//lib/json/ext.rb#39
+ def generate(*_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def indent; end
+
+ # source://json//lib/json/ext.rb#39
+ def indent=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def max_nesting; end
+
+ # source://json//lib/json/ext.rb#39
+ def max_nesting=(_arg0); end
+
# call-seq: configure(opts)
#
# Configure this State instance with the Hash _opts_, and return
# itself.
#
- # source://json//lib/json/ext/generator/state.rb#23
+ # source://json//lib/json/ext/generator/state.rb#36
def merge(opts); end
+ # source://json//lib/json/ext.rb#39
+ def object_nl; end
+
+ # source://json//lib/json/ext.rb#39
+ def object_nl=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def script_safe; end
+
+ # source://json//lib/json/ext.rb#39
+ def script_safe=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def script_safe?; end
+
+ # source://json//lib/json/ext.rb#39
+ def space; end
+
+ # source://json//lib/json/ext.rb#39
+ def space=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def space_before; end
+
+ # source://json//lib/json/ext.rb#39
+ def space_before=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def strict; end
+
+ # source://json//lib/json/ext.rb#39
+ def strict=(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def strict?; end
+
# call-seq: to_h
#
# Returns the configuration instance variables as a hash, that can be
@@ -1899,8 +2070,27 @@ class JSON::Ext::Generator::State
# Returns the configuration instance variables as a hash, that can be
# passed to the configure method.
#
- # source://json//lib/json/ext/generator/state.rb#42
+ # source://json//lib/json/ext/generator/state.rb#72
def to_hash; end
+
+ private
+
+ # source://json//lib/json/ext.rb#39
+ def _configure(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def allow_duplicate_key?; end
+
+ # source://json//lib/json/ext.rb#39
+ def initialize_copy(_arg0); end
+
+ class << self
+ # source://json//lib/json/ext.rb#39
+ def from_state(_arg0); end
+
+ # source://json//lib/json/ext.rb#39
+ def generate(_arg0, _arg1, _arg2); end
+ end
end
# source://json//lib/json/ext.rb#9
@@ -1915,11 +2105,27 @@ class JSON::Ext::Parser
# source://json//lib/json/ext.rb#22
def source; end
+
+ class << self
+ # Allow redefinition by extensions
+ # Allow redefinition by extensions
+ #
+ # source://json//lib/json/ext.rb#11
+ def parse(_arg0, _arg1); end
+ end
end
# source://json//lib/json/ext.rb#32
JSON::Ext::Parser::Config = JSON::Ext::ParserConfig
+class JSON::Ext::ParserConfig
+ # source://json//lib/json/ext.rb#31
+ def initialize(_arg0); end
+
+ # source://json//lib/json/ext.rb#31
+ def parse(_arg0); end
+end
+
# Fragment of JSON document that is to be included as is:
# fragment = JSON::Fragment.new("[1, 2, 3]")
# JSON.generate({ count: 3, items: fragments })
@@ -1941,22 +2147,35 @@ class JSON::Fragment < ::Struct
# Returns the value of attribute json
#
# @return [Object] the current value of json
+ #
+ # source://json//lib/json/common.rb#287
def json; end
# Sets the attribute json
#
# @param value [Object] the value to set the attribute json to.
# @return [Object] the newly set value
+ #
+ # source://json//lib/json/common.rb#287
def json=(_); end
# source://json//lib/json/common.rb#296
def to_json(state = T.unsafe(nil), *_arg1); end
class << self
+ # source://json//lib/json/common.rb#287
def [](*_arg0); end
+
+ # source://json//lib/json/common.rb#287
def inspect; end
+
+ # source://json//lib/json/common.rb#287
def keyword_init?; end
+
+ # source://json//lib/json/common.rb#287
def members; end
+
+ # source://json//lib/json/common.rb#287
def new(*_arg0); end
end
end
@@ -1994,6 +2213,9 @@ class JSON::GenericObject < ::OpenStruct
def |(other); end
class << self
+ # source://json//lib/json/generic_object.rb#11
+ def [](*_arg0); end
+
# source://json//lib/json/generic_object.rb#45
def dump(obj, *args); end
diff --git a/sorbet/rbi/gems/lint_roller@1.1.0.rbi b/sorbet/rbi/gems/lint_roller@1.1.0.rbi
index ef073b8c..db4caf61 100644
--- a/sorbet/rbi/gems/lint_roller@1.1.0.rbi
+++ b/sorbet/rbi/gems/lint_roller@1.1.0.rbi
@@ -13,52 +13,77 @@ class LintRoller::About < ::Struct
# Returns the value of attribute description
#
# @return [Object] the current value of description
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def description; end
# Sets the attribute description
#
# @param value [Object] the value to set the attribute description to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def description=(_); end
# Returns the value of attribute homepage
#
# @return [Object] the current value of homepage
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def homepage; end
# Sets the attribute homepage
#
# @param value [Object] the value to set the attribute homepage to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def homepage=(_); end
# Returns the value of attribute name
#
# @return [Object] the current value of name
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def name; end
# Sets the attribute name
#
# @param value [Object] the value to set the attribute name to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def name=(_); end
# Returns the value of attribute version
#
# @return [Object] the current value of version
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def version; end
# Sets the attribute version
#
# @param value [Object] the value to set the attribute version to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/about.rb#2
def version=(_); end
class << self
+ # source://lint_roller//lib/lint_roller/about.rb#2
def [](*_arg0); end
+
+ # source://lint_roller//lib/lint_roller/about.rb#2
def inspect; end
+
+ # source://lint_roller//lib/lint_roller/about.rb#2
def keyword_init?; end
+
+ # source://lint_roller//lib/lint_roller/about.rb#2
def members; end
+
+ # source://lint_roller//lib/lint_roller/about.rb#2
def new(*_arg0); end
end
end
@@ -68,74 +93,107 @@ class LintRoller::Context < ::Struct
# Returns the value of attribute engine
#
# @return [Object] the current value of engine
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def engine; end
# Sets the attribute engine
#
# @param value [Object] the value to set the attribute engine to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def engine=(_); end
# Returns the value of attribute engine_version
#
# @return [Object] the current value of engine_version
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def engine_version; end
# Sets the attribute engine_version
#
# @param value [Object] the value to set the attribute engine_version to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def engine_version=(_); end
# Returns the value of attribute rule_format
#
# @return [Object] the current value of rule_format
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def rule_format; end
# Sets the attribute rule_format
#
# @param value [Object] the value to set the attribute rule_format to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def rule_format=(_); end
# Returns the value of attribute runner
#
# @return [Object] the current value of runner
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def runner; end
# Sets the attribute runner
#
# @param value [Object] the value to set the attribute runner to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def runner=(_); end
# Returns the value of attribute runner_version
#
# @return [Object] the current value of runner_version
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def runner_version; end
# Sets the attribute runner_version
#
# @param value [Object] the value to set the attribute runner_version to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def runner_version=(_); end
# Returns the value of attribute target_ruby_version
#
# @return [Object] the current value of target_ruby_version
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def target_ruby_version; end
# Sets the attribute target_ruby_version
#
# @param value [Object] the value to set the attribute target_ruby_version to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/context.rb#2
def target_ruby_version=(_); end
class << self
+ # source://lint_roller//lib/lint_roller/context.rb#2
def [](*_arg0); end
+
+ # source://lint_roller//lib/lint_roller/context.rb#2
def inspect; end
+
+ # source://lint_roller//lib/lint_roller/context.rb#2
def keyword_init?; end
+
+ # source://lint_roller//lib/lint_roller/context.rb#2
def members; end
+
+ # source://lint_roller//lib/lint_roller/context.rb#2
def new(*_arg0); end
end
end
@@ -177,52 +235,77 @@ class LintRoller::Rules < ::Struct
# Returns the value of attribute config_format
#
# @return [Object] the current value of config_format
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def config_format; end
# Sets the attribute config_format
#
# @param value [Object] the value to set the attribute config_format to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def config_format=(_); end
# Returns the value of attribute error
#
# @return [Object] the current value of error
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def error; end
# Sets the attribute error
#
# @param value [Object] the value to set the attribute error to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def error=(_); end
# Returns the value of attribute type
#
# @return [Object] the current value of type
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def type; end
# Sets the attribute type
#
# @param value [Object] the value to set the attribute type to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def type=(_); end
# Returns the value of attribute value
#
# @return [Object] the current value of value
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def value; end
# Sets the attribute value
#
# @param value [Object] the value to set the attribute value to.
# @return [Object] the newly set value
+ #
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def value=(_); end
class << self
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def [](*_arg0); end
+
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def inspect; end
+
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def keyword_init?; end
+
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def members; end
+
+ # source://lint_roller//lib/lint_roller/rules.rb#2
def new(*_arg0); end
end
end
diff --git a/sorbet/rbi/gems/listen@3.9.0.rbi b/sorbet/rbi/gems/listen@3.9.0.rbi
index dcf6a6c7..7c3e6bd4 100644
--- a/sorbet/rbi/gems/listen@3.9.0.rbi
+++ b/sorbet/rbi/gems/listen@3.9.0.rbi
@@ -46,8 +46,8 @@ module Listen
#
# @return [Listen::Listener] the listener
# @yield [modified, added, removed] the changed files
- # @yieldparam modified [Array] the list of modified files
# @yieldparam added [Array] the list of added files
+ # @yieldparam modified [Array] the list of modified files
# @yieldparam removed [Array] the list of removed files
#
# source://listen//lib/listen.rb#29
@@ -377,10 +377,10 @@ class Listen::Backend
# source://listen//lib/listen/backend.rb#34
def min_delay_between_events; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://listen//lib/listen/backend.rb#31
def start(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://listen//lib/listen/backend.rb#32
def stop(*args, **_arg1, &block); end
private
@@ -628,13 +628,13 @@ class Listen::Event::Queue
# source://listen//lib/listen/event/queue.rb#27
def <<(args); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://listen//lib/listen/event/queue.rb#43
def close(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://listen//lib/listen/event/queue.rb#41
def empty?(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://listen//lib/listen/event/queue.rb#42
def pop(*args, **_arg1, &block); end
private
@@ -776,8 +776,8 @@ class Listen::Listener
# @param options [Hash] the listen options (see Listen::Listener::Options)
# @return [Listener] a new instance of Listener
# @yield [modified, added, removed] the changed files
- # @yieldparam modified [Array] the list of modified files
# @yieldparam added [Array] the list of added files
+ # @yieldparam modified [Array] the list of modified files
# @yieldparam removed [Array] the list of removed files
#
# source://listen//lib/listen/listener.rb#37
diff --git a/sorbet/rbi/gems/logger@1.7.0.rbi b/sorbet/rbi/gems/logger@1.7.0.rbi
index a616dbdd..a17ebf0f 100644
--- a/sorbet/rbi/gems/logger@1.7.0.rbi
+++ b/sorbet/rbi/gems/logger@1.7.0.rbi
@@ -692,7 +692,7 @@ class Logger
# - #fatal.
# - #unknown.
#
- # source://logger//lib/logger.rb#675
+ # source://logger//lib/logger.rb#695
def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
# Program name to include in log messages.
@@ -733,7 +733,7 @@ class Logger
# Logging severity threshold (e.g. Logger::INFO ).
#
- # source://logger//lib/logger.rb#383
+ # source://logger//lib/logger.rb#475
def sev_threshold; end
# Sets the log level; returns +severity+.
@@ -748,7 +748,7 @@ class Logger
#
# Logger#sev_threshold= is an alias for Logger#level=.
#
- # source://logger//lib/logger.rb#399
+ # source://logger//lib/logger.rb#476
def sev_threshold=(severity); end
# Equivalent to calling #add with severity Logger::UNKNOWN .
diff --git a/sorbet/rbi/gems/lumberjack@1.2.10.rbi b/sorbet/rbi/gems/lumberjack@1.2.10.rbi
index 8c1222a8..2235ff92 100644
--- a/sorbet/rbi/gems/lumberjack@1.2.10.rbi
+++ b/sorbet/rbi/gems/lumberjack@1.2.10.rbi
@@ -200,8 +200,8 @@ class Lumberjack::Device::DateRollingLogFile < ::Lumberjack::Device::RollingLogF
# with the :roll option which may contain a value of :daily, :weekly,
# or :monthly.
#
- # @param path [String, Pathname] The path to the log file.
# @param options [Hash] The options for the device.
+ # @param path [String, Pathname] The path to the log file.
# @return [DateRollingLogFile] a new instance of DateRollingLogFile
#
# source://lumberjack//lib/lumberjack/device/date_rolling_log_file.rb#19
@@ -233,8 +233,8 @@ end
class Lumberjack::Device::LogFile < ::Lumberjack::Device::Writer
# Create a logger to the file at +path+. Options are passed through to the Writer constructor.
#
- # @param path [String, Pathname] The path to the log file.
# @param options [Hash] The options for the device.
+ # @param path [String, Pathname] The path to the log file.
# @return [LogFile] a new instance of LogFile
#
# source://lumberjack//lib/lumberjack/device/log_file.rb#18
@@ -440,8 +440,8 @@ class Lumberjack::Device::Writer < ::Lumberjack::Device
#
# The size of the internal buffer in bytes can be set by providing :buffer_size (defaults to 32K).
#
- # @param stream [IO] The stream to write log entries to.
# @param options [Hash] The options for the device.
+ # @param stream [IO] The stream to write log entries to.
# @return [Writer] a new instance of Writer
#
# source://lumberjack//lib/lumberjack/device/writer.rb#66
@@ -602,12 +602,12 @@ class Lumberjack::Formatter
#
# # Add statements can be chained together
# formatter.add(MyClass, :pretty_print).add(YourClass){|obj| obj.humanize}
- # @param klass [Class, Module, String, Array] The class or module to add a formatter for.
+ # @param args [Array] Arguments to pass to the formatter when it is initialized.
# @param formatter [Symbol, Class, String, #call] The formatter to use for the class.
# If a symbol is passed in, it will be used to load one of the predefined formatters.
# If a class is passed in, it will be initialized with the args passed in.
# Otherwise, the object will be used as the formatter and must respond to call method.
- # @param args [Array] Arguments to pass to the formatter when it is initialized.
+ # @param klass [Class, Module, String, Array] The class or module to add a formatter for.
# @return [self] Returns itself so that add statements can be chained together.
# @yield [obj] A block that will be used as the formatter for the class.
# @yieldparam obj [Object] The object to format.
@@ -619,10 +619,10 @@ class Lumberjack::Formatter
# Compatibility with the Logger::Formatter signature. This method will just convert the message
# object to a string and ignores the other parameters.
#
+ # @param msg [Object] The message object to format.
+ # @param progname [String] The name of the program logging the message.
# @param severity [Integer, String, Symbol] The severity of the message.
# @param timestamp [Time] The time the message was logged.
- # @param progname [String] The name of the program logging the message.
- # @param msg [Object] The message object to format.
#
# source://lumberjack//lib/lumberjack/formatter.rb#175
def call(severity, timestamp, progname, msg); end
@@ -863,12 +863,12 @@ Lumberjack::LINE_SEPARATOR = T.let(T.unsafe(nil), String)
class Lumberjack::LogEntry
# Create a new log entry.
#
- # @param time [Time] The time the log entry was created.
- # @param severity [Integer, String] The severity of the log entry.
# @param message [String] The message to log.
- # @param progname [String] The name of the program that created the log entry.
# @param pid [Integer] The process id of the program that created the log entry.
+ # @param progname [String] The name of the program that created the log entry.
+ # @param severity [Integer, String] The severity of the log entry.
# @param tags [Hash] A hash of tags to associate with the log entry.
+ # @param time [Time] The time the log entry was created.
# @return [LogEntry] a new instance of LogEntry
#
# source://lumberjack//lib/lumberjack/log_entry.rb#21
@@ -1049,9 +1049,9 @@ class Lumberjack::Logger
# ::Logger compatible method to add a log entry.
#
- # @param severity [Integer, Symbol, String] The severity of the message.
# @param message [Object] The message to log.
# @param progname [String] The name of the program that is logging the message.
+ # @param severity [Integer, Symbol, String] The severity of the message.
# @return [void]
#
# source://lumberjack//lib/lumberjack/logger.rb#229
@@ -1071,9 +1071,9 @@ class Lumberjack::Logger
# logger.add_entry(Logger::INFO, "Request completed")
# logger.add_entry(:warn, "Request took a long time")
# logger.add_entry(Logger::DEBUG){"Start processing with options #{options.inspect}"}
- # @param severity [Integer, Symbol, String] The severity of the message.
# @param message [Object] The message to log.
# @param progname [String] The name of the program that is logging the message.
+ # @param severity [Integer, Symbol, String] The severity of the message.
# @param tags [Hash] The tags to add to the log entry.
# @return [void]
#
@@ -1265,12 +1265,12 @@ class Lumberjack::Logger
# ::Logger compatible method to add a log entry.
#
- # @param severity [Integer, Symbol, String] The severity of the message.
# @param message [Object] The message to log.
# @param progname [String] The name of the program that is logging the message.
+ # @param severity [Integer, Symbol, String] The severity of the message.
# @return [void]
#
- # source://lumberjack//lib/lumberjack/logger.rb#229
+ # source://lumberjack//lib/lumberjack/logger.rb#241
def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil), &block); end
# Get the program name associated with log messages.
@@ -1316,7 +1316,7 @@ class Lumberjack::Logger
#
# @return [Integer] The severity level.
#
- # source://lumberjack//lib/lumberjack/logger.rb#109
+ # source://lumberjack//lib/lumberjack/logger.rb#113
def sev_threshold; end
# Set the log level using either an integer level like Logger::INFO or a label like
@@ -1325,7 +1325,7 @@ class Lumberjack::Logger
# @param value [Integer, Symbol, String] The severity level.
# @return [void]
#
- # source://lumberjack//lib/lumberjack/logger.rb#120
+ # source://lumberjack//lib/lumberjack/logger.rb#124
def sev_threshold=(value); end
# Silence the logger by setting a new log level inside a block. By default, only +ERROR+ or +FATAL+
@@ -1604,9 +1604,9 @@ class Lumberjack::TagFormatter
# or an object that responds to `call` or a block. The default formatter will not be
# applied.
#
- # @param names [String, Array] The tag names to apply the formatter to.
# @param formatter [Lumberjack::Formatter, #call, nil] The formatter to use.
# If this is nil, then the block will be used as the formatter.
+ # @param names [String, Array] The tag names to apply the formatter to.
# @return [Lumberjack::TagFormatter] self
#
# source://lumberjack//lib/lumberjack/tag_formatter.rb#46
@@ -1691,19 +1691,19 @@ class Lumberjack::TaggedLoggerSupport::Formatter
# source://lumberjack//lib/lumberjack/tagged_logger_support.rb#35
def __formatter; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
def clear_tags!(*args, **_arg1, &block); end
# source://lumberjack//lib/lumberjack/tagged_logger_support.rb#19
def current_tags; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
def pop_tags(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
def push_tags(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
def tagged(*args, **_arg1, &block); end
# source://lumberjack//lib/lumberjack/tagged_logger_support.rb#28
diff --git a/sorbet/rbi/gems/marcel@1.1.0.rbi b/sorbet/rbi/gems/marcel@1.1.0.rbi
index 2970bf08..faf93dc4 100644
--- a/sorbet/rbi/gems/marcel@1.1.0.rbi
+++ b/sorbet/rbi/gems/marcel@1.1.0.rbi
@@ -36,7 +36,7 @@ class Marcel::Magic
#
# @return [Boolean]
#
- # source://marcel//lib/marcel/magic.rb#103
+ # source://marcel//lib/marcel/magic.rb#111
def ==(other); end
# @return [Boolean]
diff --git a/sorbet/rbi/gems/minitest-rg@5.3.0.rbi b/sorbet/rbi/gems/minitest-rg@5.3.0.rbi
index d4738cb5..b3133086 100644
--- a/sorbet/rbi/gems/minitest-rg@5.3.0.rbi
+++ b/sorbet/rbi/gems/minitest-rg@5.3.0.rbi
@@ -8,107 +8,11 @@
# source://minitest-rg//lib/minitest/rg_plugin.rb#5
module Minitest
class << self
- # source://minitest/5.25.5/lib/minitest.rb#323
- def __run(reporter, options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#97
- def after_run(&block); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def allow_fork; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def allow_fork=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#70
- def autorun; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def backtrace_filter; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def backtrace_filter=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#19
- def cattr_accessor(name); end
-
- # source://minitest/5.25.5/lib/minitest.rb#1216
- def clock_time; end
-
- # source://minitest/5.25.5/lib/minitest.rb#303
- def empty_run!(options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def extensions; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def extensions=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#336
- def filter_backtrace(bt); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def info_signal; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def info_signal=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#125
- def init_plugins(options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#109
- def load_plugins; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def parallel_executor; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def parallel_executor=(_arg0); end
-
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#8
- def plugin_guard_minitest_init(options); end
-
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#2
- def plugin_guard_minitest_options(opts, options); end
-
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#10
- def plugin_pride_init(options); end
-
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#4
- def plugin_pride_options(opts, _options); end
-
# source://minitest-rg//lib/minitest/rg_plugin.rb#12
def plugin_rg_init(options); end
# source://minitest-rg//lib/minitest/rg_plugin.rb#6
def plugin_rg_options(opts, _options); end
-
- # source://simplecov/0.22.0/lib/minitest/simplecov_plugin.rb#6
- def plugin_simplecov_init(_options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#143
- def process_args(args = T.unsafe(nil)); end
-
- # source://minitest/5.25.5/lib/minitest.rb#104
- def register_plugin(name_or_mod); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def reporter; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def reporter=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#269
- def run(args = T.unsafe(nil)); end
-
- # source://minitest/5.25.5/lib/minitest.rb#1207
- def run_one_method(klass, method_name); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def seed; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def seed=(_arg0); end
end
end
diff --git a/sorbet/rbi/gems/minitest@5.25.5.rbi b/sorbet/rbi/gems/minitest@5.25.5.rbi
index f35e027c..046d583c 100644
--- a/sorbet/rbi/gems/minitest@5.25.5.rbi
+++ b/sorbet/rbi/gems/minitest@5.25.5.rbi
@@ -78,27 +78,12 @@ module Minitest
# source://minitest//lib/minitest.rb#20
def parallel_executor=(_arg0); end
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#8
- def plugin_guard_minitest_init(options); end
-
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#2
- def plugin_guard_minitest_options(opts, options); end
-
# source://minitest//lib/minitest/pride_plugin.rb#10
def plugin_pride_init(options); end
# source://minitest//lib/minitest/pride_plugin.rb#4
def plugin_pride_options(opts, _options); end
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#12
- def plugin_rg_init(options); end
-
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#6
- def plugin_rg_options(opts, _options); end
-
- # source://simplecov/0.22.0/lib/minitest/simplecov_plugin.rb#6
- def plugin_simplecov_init(_options); end
-
# source://minitest//lib/minitest.rb#143
def process_args(args = T.unsafe(nil)); end
@@ -991,7 +976,7 @@ end
# source://minitest//lib/minitest.rb#592
Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
-# source://minitest//lib/minitest.rb#733
+# source://minitest//lib/minitest.rb#735
class Minitest::Reporter < ::Minitest::AbstractReporter
# @return [Reporter] a new instance of Reporter
#
diff --git a/sorbet/rbi/gems/net-http@0.9.1.rbi b/sorbet/rbi/gems/net-http@0.9.1.rbi
index 46075811..8e6f3643 100644
--- a/sorbet/rbi/gems/net-http@0.9.1.rbi
+++ b/sorbet/rbi/gems/net-http@0.9.1.rbi
@@ -721,7 +721,7 @@ class Net::HTTP < ::Net::Protocol
#
# @return [Boolean]
#
- # source://net-http//lib/net/http.rb#1488
+ # source://net-http//lib/net/http.rb#1492
def active?; end
# Returns the string host name or host IP given as argument +address+ in ::new.
@@ -916,7 +916,7 @@ class Net::HTTP < ::Net::Protocol
#
# #
#
- # source://net-http//lib/net/http.rb#2280
+ # source://net-http//lib/net/http.rb#2338
def get2(path, initheader = T.unsafe(nil), &block); end
# Sends a HEAD request to the server;
@@ -945,7 +945,7 @@ class Net::HTTP < ::Net::Protocol
# http = Net::HTTP.new(hostname)
# http.head('/todos/1') # => #
#
- # source://net-http//lib/net/http.rb#2293
+ # source://net-http//lib/net/http.rb#2339
def head2(path, initheader = T.unsafe(nil), &block); end
# Sets or returns whether to ignore end-of-file when reading a response body
@@ -1271,7 +1271,7 @@ class Net::HTTP < ::Net::Protocol
#
# "{\n \"xyzzy\": \"\",\n \"id\": 201\n}"
#
- # source://net-http//lib/net/http.rb#2320
+ # source://net-http//lib/net/http.rb#2340
def post2(path, data, initheader = T.unsafe(nil), &block); end
# Sends a PROPFIND request to the server;
@@ -1386,13 +1386,13 @@ class Net::HTTP < ::Net::Protocol
# Returns the address of the proxy server, if defined, +nil+ otherwise;
# see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
#
- # source://net-http//lib/net/http.rb#1903
+ # source://net-http//lib/net/http.rb#1943
def proxyaddr; end
# Returns the port number of the proxy server, if defined, +nil+ otherwise;
# see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
#
- # source://net-http//lib/net/http.rb#1913
+ # source://net-http//lib/net/http.rb#1944
def proxyport; end
# Sends a PUT request to the server;
@@ -1423,7 +1423,7 @@ class Net::HTTP < ::Net::Protocol
# http.put('/todos/1', 'xyzzy')
# # => #
#
- # source://net-http//lib/net/http.rb#2334
+ # source://net-http//lib/net/http.rb#2341
def put2(path, data, initheader = T.unsafe(nil), &block); end
# Returns the numeric (\Integer or \Float) number of seconds
@@ -1849,7 +1849,7 @@ class Net::HTTP < ::Net::Protocol
# Adds a message to debugging output
#
- # source://net-http//lib/net/http.rb#2581
+ # source://net-http//lib/net/http.rb#2587
def D(msg); end
# source://net-http//lib/net/http.rb#2573
@@ -2045,14 +2045,14 @@ class Net::HTTP < ::Net::Protocol
#
# @return [Boolean]
#
- # source://net-http//lib/net/http.rb#748
+ # source://net-http//lib/net/http.rb#753
def is_version_1_1?; end
# Returns +true+; retained for compatibility.
#
# @return [Boolean]
#
- # source://net-http//lib/net/http.rb#743
+ # source://net-http//lib/net/http.rb#754
def is_version_1_2?; end
# Returns a new \Net::HTTP object +http+
@@ -2087,6 +2087,9 @@ class Net::HTTP < ::Net::Protocol
# source://net-http//lib/net/http.rb#1100
def new(address, port = T.unsafe(nil), p_addr = T.unsafe(nil), p_port = T.unsafe(nil), p_user = T.unsafe(nil), p_pass = T.unsafe(nil), p_no_proxy = T.unsafe(nil), p_use_ssl = T.unsafe(nil)); end
+ # source://net-http//lib/net/http.rb#1068
+ def newobj(*_arg0); end
+
# Posts data to a host; returns a Net::HTTPResponse object.
#
# Argument +url+ must be a URL;
@@ -2408,6 +2411,11 @@ module Net::HTTPExceptions
# source://net-http//lib/net/http/exceptions.rb#7
def initialize(msg, res); end
+ # Returns the value of attribute response.
+ #
+ # source://net-http//lib/net/http/exceptions.rb#12
+ def data; end
+
# Returns the value of attribute response.
#
# source://net-http//lib/net/http/exceptions.rb#11
@@ -2872,7 +2880,7 @@ module Net::HTTPHeader
#
# Net::HTTPHeader#canonical_each is an alias for Net::HTTPHeader#each_capitalized.
#
- # source://net-http//lib/net/http/header.rb#488
+ # source://net-http//lib/net/http/header.rb#495
def canonical_each; end
# Returns +true+ if field 'Transfer-Encoding'
@@ -2966,7 +2974,7 @@ module Net::HTTPHeader
#
# Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type.
#
- # source://net-http//lib/net/http/header.rb#776
+ # source://net-http//lib/net/http/header.rb#780
def content_type=(type, params = T.unsafe(nil)); end
# Removes the header for the given case-insensitive +key+
@@ -2999,7 +3007,7 @@ module Net::HTTPHeader
#
# Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header.
#
- # source://net-http//lib/net/http/header.rb#368
+ # source://net-http//lib/net/http/header.rb#375
def each; end
# Like #each_header, but the keys are returned in capitalized form.
@@ -3073,7 +3081,7 @@ module Net::HTTPHeader
#
# Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key.
#
- # source://net-http//lib/net/http/header.rb#395
+ # source://net-http//lib/net/http/header.rb#400
def each_key(&block); end
# Calls the block with each field key:
@@ -3183,7 +3191,7 @@ module Net::HTTPHeader
#
# Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data.
#
- # source://net-http//lib/net/http/header.rb#816
+ # source://net-http//lib/net/http/header.rb#823
def form_data=(params, sep = T.unsafe(nil)); end
# Returns the array field value for the given +key+,
@@ -3211,7 +3219,7 @@ module Net::HTTPHeader
# source://net-http//lib/net/http/header.rb#467
def key?(key); end
- # source://net-http//lib/net/http/header.rb#210
+ # source://net-http//lib/net/http/header.rb#214
def length; end
# Returns the leading ('type') part of the
@@ -3277,7 +3285,7 @@ module Net::HTTPHeader
#
# Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range.
#
- # source://net-http//lib/net/http/header.rb#580
+ # source://net-http//lib/net/http/header.rb#609
def range=(r, e = T.unsafe(nil)); end
# Returns the integer representing length of the value of field
@@ -3998,7 +4006,7 @@ class Net::HTTPResponse
# "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}"
# nil
#
- # source://net-http//lib/net/http/response.rb#401
+ # source://net-http//lib/net/http/response.rb#410
def entity; end
# @raise [error_type()]
@@ -4039,7 +4047,7 @@ class Net::HTTPResponse
# The HTTP result message sent by the server. For example, 'Not Found'.
#
- # source://net-http//lib/net/http/response.rb#217
+ # source://net-http//lib/net/http/response.rb#218
def msg; end
# Gets the entity body returned by the remote HTTP server.
diff --git a/sorbet/rbi/gems/netrc@0.11.0.rbi b/sorbet/rbi/gems/netrc@0.11.0.rbi
index 4ae989b9..8a4c7837 100644
--- a/sorbet/rbi/gems/netrc@0.11.0.rbi
+++ b/sorbet/rbi/gems/netrc@0.11.0.rbi
@@ -108,32 +108,50 @@ class Netrc::Entry < ::Struct
# Returns the value of attribute login
#
# @return [Object] the current value of login
+ #
+ # source://netrc//lib/netrc.rb#244
def login; end
# Sets the attribute login
#
# @param value [Object] the value to set the attribute login to.
# @return [Object] the newly set value
+ #
+ # source://netrc//lib/netrc.rb#244
def login=(_); end
# Returns the value of attribute password
#
# @return [Object] the current value of password
+ #
+ # source://netrc//lib/netrc.rb#244
def password; end
# Sets the attribute password
#
# @param value [Object] the value to set the attribute password to.
# @return [Object] the newly set value
+ #
+ # source://netrc//lib/netrc.rb#244
def password=(_); end
+ # source://netrc//lib/netrc.rb#245
def to_ary; end
class << self
+ # source://netrc//lib/netrc.rb#244
def [](*_arg0); end
+
+ # source://netrc//lib/netrc.rb#244
def inspect; end
+
+ # source://netrc//lib/netrc.rb#244
def keyword_init?; end
+
+ # source://netrc//lib/netrc.rb#244
def members; end
+
+ # source://netrc//lib/netrc.rb#244
def new(*_arg0); end
end
end
diff --git a/sorbet/rbi/gems/notiffany@0.1.3.rbi b/sorbet/rbi/gems/notiffany@0.1.3.rbi
index 173a74c4..4ca65af5 100644
--- a/sorbet/rbi/gems/notiffany@0.1.3.rbi
+++ b/sorbet/rbi/gems/notiffany@0.1.3.rbi
@@ -344,8 +344,8 @@ class Notiffany::Notifier::Emacs < ::Notiffany::Notifier::Base
# @option options
# @option options
# @option options
- # @param type [String] the notification type
# @param options [Hash] aditional notification options
+ # @param type [String] the notification type
# @return [String] the name of the emacs color
#
# source://notiffany//lib/notiffany/notifier/emacs.rb#86
@@ -365,12 +365,12 @@ class Notiffany::Notifier::Emacs < ::Notiffany::Notifier::Base
# @option opts
# @option opts
# @option opts
- # @param type [String] the notification type. Either 'success',
- # 'pending', 'failed' or 'notify'
- # @param title [String] the notification title
- # @param message [String] the notification message body
# @param image [String] the path to the notification image
+ # @param message [String] the notification message body
# @param opts [Hash] additional notification library options
+ # @param title [String] the notification title
+ # @param type [String] the notification type. Either 'success',
+ # 'pending', 'failed' or 'notify'
#
# source://notiffany//lib/notiffany/notifier/emacs.rb#58
def _perform_notify(message, opts = T.unsafe(nil)); end
@@ -439,21 +439,21 @@ Notiffany::Notifier::Emacs::DEFAULTS = T.let(T.unsafe(nil), Hash)
# source://notiffany//lib/notiffany/notifier/emacs.rb#20
Notiffany::Notifier::Emacs::DEFAULT_ELISP_ERB = T.let(T.unsafe(nil), String)
-# source://notiffany//lib/notiffany/notifier.rb#0
+# source://notiffany//lib/notiffany/notifier.rb#69
class Notiffany::Notifier::Env < ::Nenv::Environment
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
+ # source://notiffany//lib/notiffany/notifier.rb#70
def notify?; end
- # source://nenv/0.3.0/lib/nenv/environment.rb#59
+ # source://notiffany//lib/notiffany/notifier.rb#74
def notify_active=(raw_value); end
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
+ # source://notiffany//lib/notiffany/notifier.rb#73
def notify_active?; end
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
+ # source://notiffany//lib/notiffany/notifier.rb#71
def notify_pid; end
- # source://nenv/0.3.0/lib/nenv/environment.rb#59
+ # source://notiffany//lib/notiffany/notifier.rb#72
def notify_pid=(raw_value); end
end
@@ -561,15 +561,15 @@ Notiffany::Notifier::GNTP::DEFAULTS = T.let(T.unsafe(nil), Hash)
# your `Guardfile` notification :growl, sticky: true, host: '192.168.1.5',
# password: 'secret'
#
-# @example Install `growlnotify` with Homebrew
-# brew install growlnotify
+# @example Add the `:growl_notify` notifier with configuration options to
+# @example Add the `:growl` notifier to your `Guardfile`
+# notification :growl
# @example Add the `growl` gem to your `Gemfile`
# group :development
# gem 'growl'
# end
-# @example Add the `:growl` notifier to your `Guardfile`
-# notification :growl
-# @example Add the `:growl_notify` notifier with configuration options to
+# @example Install `growlnotify` with Homebrew
+# brew install growlnotify
#
# source://notiffany//lib/notiffany/notifier/growl.rb#34
class Notiffany::Notifier::Growl < ::Notiffany::Notifier::Base
@@ -755,8 +755,8 @@ class Notiffany::Notifier::NotifySend < ::Notiffany::Notifier::Base
# shell command.
#
# @param command [String] the command execute
- # @param supported [Array] list of supported option flags
# @param opts [Hash] additional command options
+ # @param supported [Array] list of supported option flags
# @return [Array] the command and its options converted to a
#
# source://notiffany//lib/notiffany/notifier/notifysend.rb#84
@@ -1069,11 +1069,11 @@ Notiffany::Notifier::USING_NOTIFIER = T.let(T.unsafe(nil), String)
# TODO: use a socket instead of passing env variables to child processes
# (currently probably only used by guard-cucumber anyway)
#
-# source://notiffany//lib/notiffany/notifier/detected.rb#0
+# source://notiffany//lib/notiffany/notifier/detected.rb#21
class Notiffany::Notifier::YamlEnvStorage < ::Nenv::Environment
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
+ # source://notiffany//lib/notiffany/notifier/detected.rb#23
def notifiers; end
- # source://nenv/0.3.0/lib/nenv/environment.rb#59
+ # source://notiffany//lib/notiffany/notifier/detected.rb#22
def notifiers=(raw_value); end
end
diff --git a/sorbet/rbi/gems/ostruct@0.6.2.rbi b/sorbet/rbi/gems/ostruct@0.6.2.rbi
index 432437c5..81ed28cf 100644
--- a/sorbet/rbi/gems/ostruct@0.6.2.rbi
+++ b/sorbet/rbi/gems/ostruct@0.6.2.rbi
@@ -161,6 +161,24 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#318
def []=(name, value); end
+ # source://ostruct//lib/ostruct.rb#478
+ def __id__!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def __send__!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def abort!(*_args, **_kwargs, &_block); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def class!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def clone!(freeze: T.unsafe(nil)); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def define_singleton_method!(*_arg0); end
+
# Removes the named field from the object and returns the value the field
# contained if it was defined. You may optionally provide a block.
# If the field is not defined, the result of the block is returned,
@@ -185,7 +203,7 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#371
def delete_field(name, &block); end
- # source://ostruct//lib/ostruct.rb#371
+ # source://ostruct//lib/ostruct.rb#478
def delete_field!(name, &block); end
# :call-seq:
@@ -206,9 +224,15 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#340
def dig(name, *names); end
- # source://ostruct//lib/ostruct.rb#340
+ # source://ostruct//lib/ostruct.rb#478
def dig!(name, *names); end
+ # source://ostruct//lib/ostruct.rb#478
+ def display!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def dup!; end
+
# :call-seq:
# ostruct.each_pair {|name, value| block } -> ostruct
# ostruct.each_pair -> Enumerator
@@ -223,7 +247,7 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#211
def each_pair; end
- # source://ostruct//lib/ostruct.rb#211
+ # source://ostruct//lib/ostruct.rb#478
def each_pair!; end
# Provides marshalling support for use by the YAML library.
@@ -231,9 +255,12 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#446
def encode_with(coder); end
- # source://ostruct//lib/ostruct.rb#446
+ # source://ostruct//lib/ostruct.rb#478
def encode_with!(coder); end
+ # source://ostruct//lib/ostruct.rb#478
+ def enum_for!(*_arg0); end
+
# Compares this object and +other+ for equality. An OpenStruct is eql? to
# +other+ when +other+ is an OpenStruct and the two objects' Hash tables are
# eql?.
@@ -243,18 +270,27 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#433
def eql?(other); end
+ # source://ostruct//lib/ostruct.rb#478
+ def exit!(*_args, **_kwargs, &_block); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def extend!(*_arg0); end
+
# source://ostruct//lib/ostruct.rb#269
def freeze; end
- # source://ostruct//lib/ostruct.rb#269
+ # source://ostruct//lib/ostruct.rb#478
def freeze!; end
+ # source://ostruct//lib/ostruct.rb#478
+ def gem!(dep, *reqs); end
+
# Computes a hash code for this OpenStruct.
#
# source://ostruct//lib/ostruct.rb#439
def hash; end
- # source://ostruct//lib/ostruct.rb#439
+ # source://ostruct//lib/ostruct.rb#478
def hash!; end
# Provides marshalling support for use by the YAML library.
@@ -262,7 +298,7 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#459
def init_with(coder); end
- # source://ostruct//lib/ostruct.rb#459
+ # source://ostruct//lib/ostruct.rb#478
def init_with!(coder); end
# Returns a string containing a detailed summary of the keys and values.
@@ -270,41 +306,134 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#388
def inspect; end
- # source://ostruct//lib/ostruct.rb#388
+ # source://ostruct//lib/ostruct.rb#478
def inspect!; end
+ # source://ostruct//lib/ostruct.rb#478
+ def instance_eval!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def instance_exec!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def instance_variable_get!(_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def instance_variable_set!(_arg0, _arg1); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def instance_variables!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def itself!; end
+
# Provides marshalling support for use by the Marshal library.
#
# source://ostruct//lib/ostruct.rb#220
def marshal_dump; end
- # source://ostruct//lib/ostruct.rb#220
+ # source://ostruct//lib/ostruct.rb#478
def marshal_dump!; end
+ # source://ostruct//lib/ostruct.rb#478
+ def method!(_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def methods!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def object_id!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def pretty_inspect!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def pretty_print!(q); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def pretty_print_cycle!(q); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def pretty_print_inspect!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def pretty_print_instance_variables!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def private_methods!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def protected_methods!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def public_method!(_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def public_methods!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def public_send!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def remove_instance_variable!(_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def send!(*_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def singleton_class!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def singleton_method!(_arg0); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def singleton_methods!(*_arg0); end
+
# source://ostruct//lib/ostruct.rb#406
def table; end
+ # source://ostruct//lib/ostruct.rb#478
+ def tap!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def then!; end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def to_enum!(*_arg0); end
+
# source://ostruct//lib/ostruct.rb#182
def to_h(&block); end
- # source://ostruct//lib/ostruct.rb#182
+ # source://ostruct//lib/ostruct.rb#478
def to_h!(&block); end
+ # source://ostruct//lib/ostruct.rb#478
+ def to_json!(*_arg0); end
+
# Returns a string containing a detailed summary of the keys and values.
#
- # source://ostruct//lib/ostruct.rb#388
+ # source://ostruct//lib/ostruct.rb#404
def to_s; end
- # source://ostruct//lib/ostruct.rb#388
+ # source://ostruct//lib/ostruct.rb#478
def to_s!; end
+ # source://ostruct//lib/ostruct.rb#478
+ def to_yaml!(options = T.unsafe(nil)); end
+
+ # source://ostruct//lib/ostruct.rb#478
+ def yield_self!; end
+
protected
- # source://ostruct//lib/ostruct.rb#406
+ # source://ostruct//lib/ostruct.rb#407
def table!; end
private
+ # source://ostruct//lib/ostruct.rb#486
+ def block_given!; end
+
# source://ostruct//lib/ostruct.rb#147
def initialize_clone(orig); end
@@ -317,7 +446,7 @@ class OpenStruct
#
# Provides marshalling support for use by the Marshal library.
#
- # source://ostruct//lib/ostruct.rb#157
+ # source://ostruct//lib/ostruct.rb#227
def marshal_load(hash); end
# source://ostruct//lib/ostruct.rb#274
@@ -330,6 +459,11 @@ class OpenStruct
# source://ostruct//lib/ostruct.rb#234
def new_ostruct_member!(name); end
+ # Other builtin private methods we use:
+ #
+ # source://ostruct//lib/ostruct.rb#481
+ def raise!(*_arg0); end
+
# :call-seq:
# ostruct[name] = obj -> obj
#
@@ -340,7 +474,7 @@ class OpenStruct
# person[:age] = 42 # equivalent to person.age = 42
# person.age # => 42
#
- # source://ostruct//lib/ostruct.rb#318
+ # source://ostruct//lib/ostruct.rb#323
def set_ostruct_member_value!(name, value); end
# source://ostruct//lib/ostruct.rb#157
diff --git a/sorbet/rbi/gems/parser@3.3.8.0.rbi b/sorbet/rbi/gems/parser@3.3.8.0.rbi
index 84f516bb..32bdda31 100644
--- a/sorbet/rbi/gems/parser@3.3.8.0.rbi
+++ b/sorbet/rbi/gems/parser@3.3.8.0.rbi
@@ -38,7 +38,7 @@ class Parser::AST::Node < ::AST::Node
# @api public
# @return [Parser::Source::Map]
#
- # source://parser//lib/parser/ast/node.rb#18
+ # source://parser//lib/parser/ast/node.rb#20
def loc; end
# Source map for this Node.
@@ -58,33 +58,33 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#179
def on_alias(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#222
def on_and(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#67
def on_and_asgn(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#122
def on_arg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#148
def on_arg_expr(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#103
def on_args(node); end
# @api public
@@ -94,64 +94,64 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#22
def on_array(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#258
def on_array_pattern(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#259
def on_array_pattern_with_tail(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#42
def on_back_ref(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#240
def on_begin(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#195
def on_block(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#151
def on_block_pass(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#125
def on_blockarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#150
def on_blockarg_expr(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#213
def on_break(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#228
def on_case(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#246
def on_case_match(node); end
# @api public
@@ -161,7 +161,7 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#157
def on_class(node); end
# @api public
@@ -171,24 +171,24 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#261
def on_const_pattern(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#181
+ # source://parser//lib/parser/ast/processor.rb#190
def on_csend(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#41
def on_cvar(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#58
+ # source://parser//lib/parser/ast/processor.rb#65
def on_cvasgn(node); end
# @api public
@@ -198,7 +198,7 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#219
def on_defined?(node); end
# @api public
@@ -208,17 +208,17 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#16
def on_dstr(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#17
def on_dsym(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#231
def on_eflipflop(node); end
# @api public
@@ -228,234 +228,234 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#238
def on_ensure(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#27
def on_erange(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#262
def on_find_pattern(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#210
def on_for(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#130
def on_forward_arg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#154
def on_forwarded_kwrestarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#153
def on_forwarded_restarg(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#40
def on_gvar(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#58
+ # source://parser//lib/parser/ast/processor.rb#64
def on_gvasgn(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#24
def on_hash(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#260
def on_hash_pattern(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#225
def on_if(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#251
def on_if_guard(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#230
def on_iflipflop(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#247
def on_in_match(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#250
def on_in_pattern(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#192
def on_index(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#193
def on_indexasgn(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#26
def on_irange(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#39
def on_ivar(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#58
+ # source://parser//lib/parser/ast/processor.rb#63
def on_ivasgn(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#127
def on_kwarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#25
def on_kwargs(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#241
def on_kwbegin(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#128
def on_kwoptarg(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#129
def on_kwrestarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#21
def on_kwsplat(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#196
def on_lambda(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#38
def on_lvar(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#58
+ # source://parser//lib/parser/ast/processor.rb#62
def on_lvasgn(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#79
def on_masgn(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#256
def on_match_alt(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#257
def on_match_as(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#233
def on_match_current_line(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#248
def on_match_pattern(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#249
def on_match_pattern_p(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#254
def on_match_rest(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#253
def on_match_var(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#234
def on_match_with_lvasgn(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#78
def on_mlhs(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#156
def on_module(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#214
def on_next(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#221
def on_not(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#34
+ # source://parser//lib/parser/ast/processor.rb#43
def on_nth_ref(node); end
# @api public
@@ -471,37 +471,37 @@ class Parser::AST::Processor
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#123
def on_optarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#223
def on_or(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#68
def on_or_asgn(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#23
def on_pair(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#255
def on_pin(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#244
def on_postexe(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#243
def on_preexe(node); end
# @api public
@@ -511,48 +511,48 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#215
def on_redo(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#18
def on_regexp(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#236
def on_resbody(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#237
def on_rescue(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#124
def on_restarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#149
def on_restarg_expr(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#216
def on_retry(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#212
def on_return(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#158
def on_sclass(node); end
# @api public
@@ -563,37 +563,37 @@ class Parser::AST::Processor
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#118
+ # source://parser//lib/parser/ast/processor.rb#126
def on_shadowarg(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#20
def on_splat(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#217
def on_super(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#178
def on_undef(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#252
def on_unless_guard(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#208
def on_until(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#209
def on_until_post(node); end
# @api public
@@ -608,33 +608,33 @@ class Parser::AST::Processor
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#227
def on_when(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#206
def on_while(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#207
def on_while_post(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#19
def on_xstr(node); end
# @api public
#
- # source://parser//lib/parser/ast/processor.rb#12
+ # source://parser//lib/parser/ast/processor.rb#218
def on_yield(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#281
+ # source://parser//lib/parser/ast/processor.rb#118
def process_argument_node(node); end
# @api public
@@ -645,13 +645,13 @@ class Parser::AST::Processor
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#273
+ # source://parser//lib/parser/ast/processor.rb#58
def process_var_asgn_node(node); end
# @api public
# @private
#
- # source://parser//lib/parser/ast/processor.rb#265
+ # source://parser//lib/parser/ast/processor.rb#34
def process_variable_node(node); end
end
@@ -763,8 +763,8 @@ class Parser::Base < ::Racc::Parser
# `:tSTRING "foo"`; such details must not be relied upon.
#
# @api public
- # @param source_buffer [Parser::Source::Buffer]
# @param recover [Boolean] If true, recover from syntax errors. False by default.
+ # @param source_buffer [Parser::Source::Buffer]
# @return [Array]
#
# source://parser//lib/parser/base.rb#236
@@ -806,9 +806,9 @@ class Parser::Base < ::Racc::Parser
# @api public
# @example
# Parser::Base.parse('puts "hello"')
- # @param string [String] The block of code to parse.
# @param file [String] The name of the file the code originated from.
# @param line [Numeric] The initial line number.
+ # @param string [String] The block of code to parse.
# @return [Parser::AST::Node]
#
# source://parser//lib/parser/base.rb#33
@@ -845,9 +845,9 @@ class Parser::Base < ::Racc::Parser
# @api public
# @example
# Parser::Base.parse_with_comments('puts "hello"')
- # @param string [String] The block of code to parse.
# @param file [String] The name of the file the code originated from.
# @param line [Numeric] The initial line number.
+ # @param string [String] The block of code to parse.
# @return [Array]
#
# source://parser//lib/parser/base.rb#52
@@ -1693,11 +1693,11 @@ end
# source://parser//lib/parser/diagnostic.rb#31
class Parser::Diagnostic
# @api public
- # @param level [Symbol]
- # @param reason [Symbol]
# @param arguments [Hash]
- # @param location [Parser::Source::Range]
# @param highlights [Array]
+ # @param level [Symbol]
+ # @param location [Parser::Source::Range]
+ # @param reason [Symbol]
# @return [Diagnostic] a new instance of Diagnostic
#
# source://parser//lib/parser/diagnostic.rb#49
@@ -2639,7 +2639,7 @@ class Parser::Lexer::StackState
# source://parser//lib/parser/lexer/stack_state.rb#38
def empty?; end
- # source://parser//lib/parser/lexer/stack_state.rb#42
+ # source://parser//lib/parser/lexer/stack_state.rb#46
def inspect; end
# source://parser//lib/parser/lexer/stack_state.rb#29
@@ -3272,8 +3272,8 @@ class Parser::Rewriter < ::Parser::AST::Processor
# Inserts new code after the given source range.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/rewriter.rb#77
def insert_after(range, content); end
@@ -3281,8 +3281,8 @@ class Parser::Rewriter < ::Parser::AST::Processor
# Inserts new code before the given source range.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/rewriter.rb#67
def insert_before(range, content); end
@@ -3298,8 +3298,8 @@ class Parser::Rewriter < ::Parser::AST::Processor
# Replaces the code of the source range `range` with `content`.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/rewriter.rb#87
def replace(range, content); end
@@ -3308,8 +3308,8 @@ class Parser::Rewriter < ::Parser::AST::Processor
# version.
#
# @api public
- # @param source_buffer [Parser::Source::Buffer]
# @param ast [Parser::AST::Node]
+ # @param source_buffer [Parser::Source::Buffer]
# @return [String]
#
# source://parser//lib/parser/rewriter.rb#23
@@ -3318,8 +3318,8 @@ class Parser::Rewriter < ::Parser::AST::Processor
# Wraps the given source range with the given values.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/rewriter.rb#57
def wrap(range, before, after); end
@@ -3594,7 +3594,7 @@ class Parser::Source::Comment
# @api public
# @return [Parser::Source::Range]
#
- # source://parser//lib/parser/source/comment.rb#20
+ # source://parser//lib/parser/source/comment.rb#21
def loc; end
# @api public
@@ -3818,7 +3818,7 @@ class Parser::Source::Map
# @api public
# @return [Integer]
#
- # source://parser//lib/parser/source/map.rb#99
+ # source://parser//lib/parser/source/map.rb#103
def first_line; end
# A shortcut for `self.expression.last_column`.
@@ -4178,9 +4178,9 @@ class Parser::Source::Range
include ::Comparable
# @api public
- # @param source_buffer [Buffer]
# @param begin_pos [Integer]
# @param end_pos [Integer]
+ # @param source_buffer [Buffer]
# @return [Range] a new instance of Range
#
# source://parser//lib/parser/source/range.rb#37
@@ -4294,6 +4294,8 @@ class Parser::Source::Range
def end_pos; end
# @api public
+ #
+ # source://parser//lib/parser/source/range.rb#308
def eql?(_arg0); end
# Line number of the beginning of this range. By default, the first line
@@ -4303,7 +4305,7 @@ class Parser::Source::Range
# @return [Integer] line number of the beginning of this range.
# @see Buffer
#
- # source://parser//lib/parser/source/range.rb#83
+ # source://parser//lib/parser/source/range.rb#87
def first_line; end
# Support for Ranges be used in as Hash indices and in Sets.
@@ -4359,7 +4361,7 @@ class Parser::Source::Range
# @api public
# @return [Integer] amount of characters included in this range.
#
- # source://parser//lib/parser/source/range.rb#70
+ # source://parser//lib/parser/source/range.rb#74
def length; end
# Line number of the beginning of this range. By default, the first line
@@ -4491,8 +4493,8 @@ class Parser::Source::Rewriter
#
# @api public
# @deprecated Use {TreeRewriter#insert_after}
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4511,8 +4513,8 @@ class Parser::Source::Rewriter
# insert_after_multi(range, ')').
# insert_after_multi(range, ']').
# process
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4523,8 +4525,8 @@ class Parser::Source::Rewriter
#
# @api public
# @deprecated Use {TreeRewriter#insert_before}
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4543,8 +4545,8 @@ class Parser::Source::Rewriter
# insert_before_multi(range, '(').
# insert_before_multi(range, '[').
# process
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4576,8 +4578,8 @@ class Parser::Source::Rewriter
#
# @api public
# @deprecated Use {TreeRewriter#replace}
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4614,9 +4616,9 @@ class Parser::Source::Rewriter
#
# @api public
# @deprecated Use {TreeRewriter#wrap}
- # @param range [Range]
- # @param before [String]
# @param after [String]
+ # @param before [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4798,7 +4800,7 @@ class Parser::Source::Rewriter::Action
# source://parser//lib/parser/source/rewriter/action.rb#12
def allow_multiple_insertions; end
- # source://parser//lib/parser/source/rewriter/action.rb#12
+ # source://parser//lib/parser/source/rewriter/action.rb#13
def allow_multiple_insertions?; end
# source://parser//lib/parser/source/rewriter/action.rb#12
@@ -4962,8 +4964,8 @@ class Parser::Source::TreeRewriter
# or that needs to be offset. Policies of the receiver are used.
#
# @api public
- # @param rewriter [TreeRewriter] from different source_buffer
# @param offset [Integer]
+ # @param rewriter [TreeRewriter] from different source_buffer
# @raise [IndexError] if action ranges (once offset) don't fit the current buffer
# @return [Rewriter] self
#
@@ -4979,8 +4981,8 @@ class Parser::Source::TreeRewriter
# Shortcut for `wrap(range, nil, content)`
#
# @api public
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -4996,8 +4998,8 @@ class Parser::Source::TreeRewriter
# Shortcut for `wrap(range, content, nil)`
#
# @api public
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -5061,8 +5063,8 @@ class Parser::Source::TreeRewriter
# Replaces the code of the source range `range` with `content`.
#
# @api public
- # @param range [Range]
# @param content [String]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -5088,9 +5090,9 @@ class Parser::Source::TreeRewriter
# Inserts the given strings before and after the given range.
#
# @api public
- # @param range [Range]
- # @param insert_before [String, nil]
# @param insert_after [String, nil]
+ # @param insert_before [String, nil]
+ # @param range [Range]
# @raise [ClobberingError] when clobbering is detected
# @return [Rewriter] self
#
@@ -5435,8 +5437,8 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
# Inserts new code after the given source range.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/tree_rewriter.rb#118
def insert_after(range, content); end
@@ -5444,8 +5446,8 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
# Inserts new code before the given source range.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/tree_rewriter.rb#108
def insert_before(range, content); end
@@ -5461,8 +5463,8 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
# Replaces the code of the source range `range` with `content`.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/tree_rewriter.rb#128
def replace(range, content); end
@@ -5471,10 +5473,10 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
# version.
#
# @api public
- # @param source_buffer [Parser::Source::Buffer]
# @param ast [Parser::AST::Node]
# @param crossing_deletions:, [Symbol] different_replacements:, swallowed_insertions:
# policy arguments for TreeRewriter (optional)
+ # @param source_buffer [Parser::Source::Buffer]
# @return [String]
#
# source://parser//lib/parser/tree_rewriter.rb#62
@@ -5483,8 +5485,8 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
# Wraps the given source range with the given values.
#
# @api public
- # @param range [Parser::Source::Range]
# @param content [String]
+ # @param range [Parser::Source::Range]
#
# source://parser//lib/parser/tree_rewriter.rb#98
def wrap(range, before, after); end
diff --git a/sorbet/rbi/gems/prism@1.4.0.rbi b/sorbet/rbi/gems/prism@1.4.0.rbi
index 5a92b9dd..422935e8 100644
--- a/sorbet/rbi/gems/prism@1.4.0.rbi
+++ b/sorbet/rbi/gems/prism@1.4.0.rbi
@@ -38,12 +38,18 @@ class Parser::Base; end
module Prism
class << self
# Mirror the Prism.dump API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def dump(*_arg0); end
# Mirror the Prism.dump_file API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def dump_file(*_arg0); end
# Mirror the Prism.lex API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def lex(*_arg0); end
# :call-seq:
@@ -60,6 +66,8 @@ module Prism
def lex_compat(source, **options); end
# Mirror the Prism.lex_file API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def lex_file(*_arg0); end
# :call-seq:
@@ -83,54 +91,80 @@ module Prism
def load(source, serialized, freeze = T.unsafe(nil)); end
# Mirror the Prism.parse API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def parse(*_arg0); end
# Mirror the Prism.parse_comments API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def parse_comments(*_arg0); end
# Mirror the Prism.parse_failure? API by using the serialization API.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def parse_failure?(*_arg0); end
# Mirror the Prism.parse_file API by using the serialization API. This uses
# native strings instead of Ruby strings because it allows us to use mmap
# when it is available.
+ #
+ # source://prism//lib/prism.rb#83
def parse_file(*_arg0); end
# Mirror the Prism.parse_file_comments API by using the serialization
# API. This uses native strings instead of Ruby strings because it allows us
# to use mmap when it is available.
+ #
+ # source://prism//lib/prism.rb#83
def parse_file_comments(*_arg0); end
# Mirror the Prism.parse_file_failure? API by using the serialization API.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def parse_file_failure?(*_arg0); end
# Mirror the Prism.parse_file_success? API by using the serialization API.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def parse_file_success?(*_arg0); end
# Mirror the Prism.parse_lex API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def parse_lex(*_arg0); end
# Mirror the Prism.parse_lex_file API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def parse_lex_file(*_arg0); end
# Mirror the Prism.parse_stream API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def parse_stream(*_arg0); end
# Mirror the Prism.parse_success? API by using the serialization API.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def parse_success?(*_arg0); end
# Mirror the Prism.profile API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def profile(*_arg0); end
# Mirror the Prism.profile_file API by using the serialization API.
+ #
+ # source://prism//lib/prism.rb#83
def profile_file(*_arg0); end
# Create a new scope with the given locals and forwarding options that is
@@ -271,7 +305,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#334
+ # source://prism//lib/prism/node.rb#354
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -418,7 +452,7 @@ class Prism::AliasMethodNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#441
+ # source://prism//lib/prism/node.rb#461
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -577,7 +611,7 @@ class Prism::AlternationPatternNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#560
+ # source://prism//lib/prism/node.rb#580
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -722,7 +756,7 @@ class Prism::AndNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#667
+ # source://prism//lib/prism/node.rb#687
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -918,7 +952,7 @@ class Prism::ArgumentsNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#778
+ # source://prism//lib/prism/node.rb#798
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -1079,7 +1113,7 @@ class Prism::ArrayNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#883
+ # source://prism//lib/prism/node.rb#903
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -1269,7 +1303,7 @@ class Prism::ArrayPatternNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1040
+ # source://prism//lib/prism/node.rb#1065
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -1429,7 +1463,7 @@ class Prism::AssocNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1199
+ # source://prism//lib/prism/node.rb#1219
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -1581,7 +1615,7 @@ class Prism::AssocSplatNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1320
+ # source://prism//lib/prism/node.rb#1342
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -1710,7 +1744,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1420
+ # source://prism//lib/prism/node.rb#1440
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -1876,7 +1910,7 @@ class Prism::BeginNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1504
+ # source://prism//lib/prism/node.rb#1529
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2046,7 +2080,7 @@ class Prism::BlockArgumentNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1663
+ # source://prism//lib/prism/node.rb#1685
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2170,7 +2204,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1763
+ # source://prism//lib/prism/node.rb#1783
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2321,7 +2355,7 @@ class Prism::BlockNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1849
+ # source://prism//lib/prism/node.rb#1872
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2477,7 +2511,7 @@ class Prism::BlockParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#1994
+ # source://prism//lib/prism/node.rb#2014
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2663,7 +2697,7 @@ class Prism::BlockParametersNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#2130
+ # source://prism//lib/prism/node.rb#2153
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2833,7 +2867,7 @@ class Prism::BreakNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#2290
+ # source://prism//lib/prism/node.rb#2312
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -2991,7 +3025,7 @@ class Prism::CallAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#2396
+ # source://prism//lib/prism/node.rb#2419
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -3289,7 +3323,7 @@ class Prism::CallNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#2617
+ # source://prism//lib/prism/node.rb#2641
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -3586,7 +3620,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#2866
+ # source://prism//lib/prism/node.rb#2889
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -3828,7 +3862,7 @@ class Prism::CallOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3073
+ # source://prism//lib/prism/node.rb#3096
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -4075,7 +4109,7 @@ class Prism::CallTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3283
+ # source://prism//lib/prism/node.rb#3303
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -4250,7 +4284,7 @@ class Prism::CapturePatternNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3433
+ # source://prism//lib/prism/node.rb#3453
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -4431,7 +4465,7 @@ class Prism::CaseMatchNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3544
+ # source://prism//lib/prism/node.rb#3568
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -4618,7 +4652,7 @@ class Prism::CaseNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3689
+ # source://prism//lib/prism/node.rb#3713
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -4803,7 +4837,7 @@ class Prism::ClassNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3835
+ # source://prism//lib/prism/node.rb#3859
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -4971,7 +5005,7 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#3995
+ # source://prism//lib/prism/node.rb#4015
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -5150,7 +5184,7 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4121
+ # source://prism//lib/prism/node.rb#4141
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -5303,7 +5337,7 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4233
+ # source://prism//lib/prism/node.rb#4253
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -5442,7 +5476,7 @@ class Prism::ClassVariableReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4343
+ # source://prism//lib/prism/node.rb#4363
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -5546,7 +5580,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4420
+ # source://prism//lib/prism/node.rb#4440
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -5660,7 +5694,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4496
+ # source://prism//lib/prism/node.rb#4516
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -5869,13 +5903,13 @@ class Prism::Compiler < ::Prism::Visitor
# Visit the child nodes of the given node.
# Compile a AliasGlobalVariableNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#44
def visit_alias_global_variable_node(node); end
# Visit the child nodes of the given node.
# Compile a AliasMethodNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#47
def visit_alias_method_node(node); end
# Visit a list of nodes.
@@ -5887,139 +5921,139 @@ class Prism::Compiler < ::Prism::Visitor
# Visit the child nodes of the given node.
# Compile a AlternationPatternNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#50
def visit_alternation_pattern_node(node); end
# Visit the child nodes of the given node.
# Compile a AndNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#53
def visit_and_node(node); end
# Visit the child nodes of the given node.
# Compile a ArgumentsNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#56
def visit_arguments_node(node); end
# Visit the child nodes of the given node.
# Compile a ArrayNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#59
def visit_array_node(node); end
# Visit the child nodes of the given node.
# Compile a ArrayPatternNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#62
def visit_array_pattern_node(node); end
# Visit the child nodes of the given node.
# Compile a AssocNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#65
def visit_assoc_node(node); end
# Visit the child nodes of the given node.
# Compile a AssocSplatNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#68
def visit_assoc_splat_node(node); end
# Visit the child nodes of the given node.
# Compile a BackReferenceReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#71
def visit_back_reference_read_node(node); end
# Visit the child nodes of the given node.
# Compile a BeginNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#74
def visit_begin_node(node); end
# Visit the child nodes of the given node.
# Compile a BlockArgumentNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#77
def visit_block_argument_node(node); end
# Visit the child nodes of the given node.
# Compile a BlockLocalVariableNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#80
def visit_block_local_variable_node(node); end
# Visit the child nodes of the given node.
# Compile a BlockNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#83
def visit_block_node(node); end
# Visit the child nodes of the given node.
# Compile a BlockParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#86
def visit_block_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a BlockParametersNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#89
def visit_block_parameters_node(node); end
# Visit the child nodes of the given node.
# Compile a BreakNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#92
def visit_break_node(node); end
# Visit the child nodes of the given node.
# Compile a CallAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#95
def visit_call_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a CallNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#98
def visit_call_node(node); end
# Visit the child nodes of the given node.
# Compile a CallOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#101
def visit_call_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a CallOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#104
def visit_call_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a CallTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#107
def visit_call_target_node(node); end
# Visit the child nodes of the given node.
# Compile a CapturePatternNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#110
def visit_capture_pattern_node(node); end
# Visit the child nodes of the given node.
# Compile a CaseMatchNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#113
def visit_case_match_node(node); end
# Visit the child nodes of the given node.
# Compile a CaseNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#116
def visit_case_node(node); end
# Visit the child nodes of the given node.
@@ -6031,757 +6065,757 @@ class Prism::Compiler < ::Prism::Visitor
# Visit the child nodes of the given node.
# Compile a ClassNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#119
def visit_class_node(node); end
# Visit the child nodes of the given node.
# Compile a ClassVariableAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#122
def visit_class_variable_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ClassVariableOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#125
def visit_class_variable_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ClassVariableOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#128
def visit_class_variable_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ClassVariableReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#131
def visit_class_variable_read_node(node); end
# Visit the child nodes of the given node.
# Compile a ClassVariableTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#134
def visit_class_variable_target_node(node); end
# Visit the child nodes of the given node.
# Compile a ClassVariableWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#137
def visit_class_variable_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#140
def visit_constant_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#143
def visit_constant_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#146
def visit_constant_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantPathAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#149
def visit_constant_path_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantPathNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#152
def visit_constant_path_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantPathOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#155
def visit_constant_path_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantPathOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#158
def visit_constant_path_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantPathTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#161
def visit_constant_path_target_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantPathWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#164
def visit_constant_path_write_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#167
def visit_constant_read_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#170
def visit_constant_target_node(node); end
# Visit the child nodes of the given node.
# Compile a ConstantWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#173
def visit_constant_write_node(node); end
# Visit the child nodes of the given node.
# Compile a DefNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#176
def visit_def_node(node); end
# Visit the child nodes of the given node.
# Compile a DefinedNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#179
def visit_defined_node(node); end
# Visit the child nodes of the given node.
# Compile a ElseNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#182
def visit_else_node(node); end
# Visit the child nodes of the given node.
# Compile a EmbeddedStatementsNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#185
def visit_embedded_statements_node(node); end
# Visit the child nodes of the given node.
# Compile a EmbeddedVariableNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#188
def visit_embedded_variable_node(node); end
# Visit the child nodes of the given node.
# Compile a EnsureNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#191
def visit_ensure_node(node); end
# Visit the child nodes of the given node.
# Compile a FalseNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#194
def visit_false_node(node); end
# Visit the child nodes of the given node.
# Compile a FindPatternNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#197
def visit_find_pattern_node(node); end
# Visit the child nodes of the given node.
# Compile a FlipFlopNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#200
def visit_flip_flop_node(node); end
# Visit the child nodes of the given node.
# Compile a FloatNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#203
def visit_float_node(node); end
# Visit the child nodes of the given node.
# Compile a ForNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#206
def visit_for_node(node); end
# Visit the child nodes of the given node.
# Compile a ForwardingArgumentsNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#209
def visit_forwarding_arguments_node(node); end
# Visit the child nodes of the given node.
# Compile a ForwardingParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#212
def visit_forwarding_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a ForwardingSuperNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#215
def visit_forwarding_super_node(node); end
# Visit the child nodes of the given node.
# Compile a GlobalVariableAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#218
def visit_global_variable_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a GlobalVariableOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#221
def visit_global_variable_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a GlobalVariableOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#224
def visit_global_variable_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a GlobalVariableReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#227
def visit_global_variable_read_node(node); end
# Visit the child nodes of the given node.
# Compile a GlobalVariableTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#230
def visit_global_variable_target_node(node); end
# Visit the child nodes of the given node.
# Compile a GlobalVariableWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#233
def visit_global_variable_write_node(node); end
# Visit the child nodes of the given node.
# Compile a HashNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#236
def visit_hash_node(node); end
# Visit the child nodes of the given node.
# Compile a HashPatternNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#239
def visit_hash_pattern_node(node); end
# Visit the child nodes of the given node.
# Compile a IfNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#242
def visit_if_node(node); end
# Visit the child nodes of the given node.
# Compile a ImaginaryNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#245
def visit_imaginary_node(node); end
# Visit the child nodes of the given node.
# Compile a ImplicitNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#248
def visit_implicit_node(node); end
# Visit the child nodes of the given node.
# Compile a ImplicitRestNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#251
def visit_implicit_rest_node(node); end
# Visit the child nodes of the given node.
# Compile a InNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#254
def visit_in_node(node); end
# Visit the child nodes of the given node.
# Compile a IndexAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#257
def visit_index_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a IndexOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#260
def visit_index_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a IndexOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#263
def visit_index_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a IndexTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#266
def visit_index_target_node(node); end
# Visit the child nodes of the given node.
# Compile a InstanceVariableAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#269
def visit_instance_variable_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a InstanceVariableOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#272
def visit_instance_variable_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a InstanceVariableOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#275
def visit_instance_variable_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a InstanceVariableReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#278
def visit_instance_variable_read_node(node); end
# Visit the child nodes of the given node.
# Compile a InstanceVariableTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#281
def visit_instance_variable_target_node(node); end
# Visit the child nodes of the given node.
# Compile a InstanceVariableWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#284
def visit_instance_variable_write_node(node); end
# Visit the child nodes of the given node.
# Compile a IntegerNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#287
def visit_integer_node(node); end
# Visit the child nodes of the given node.
# Compile a InterpolatedMatchLastLineNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#290
def visit_interpolated_match_last_line_node(node); end
# Visit the child nodes of the given node.
# Compile a InterpolatedRegularExpressionNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#293
def visit_interpolated_regular_expression_node(node); end
# Visit the child nodes of the given node.
# Compile a InterpolatedStringNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#296
def visit_interpolated_string_node(node); end
# Visit the child nodes of the given node.
# Compile a InterpolatedSymbolNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#299
def visit_interpolated_symbol_node(node); end
# Visit the child nodes of the given node.
# Compile a InterpolatedXStringNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#302
def visit_interpolated_x_string_node(node); end
# Visit the child nodes of the given node.
# Compile a ItLocalVariableReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#305
def visit_it_local_variable_read_node(node); end
# Visit the child nodes of the given node.
# Compile a ItParametersNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#308
def visit_it_parameters_node(node); end
# Visit the child nodes of the given node.
# Compile a KeywordHashNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#311
def visit_keyword_hash_node(node); end
# Visit the child nodes of the given node.
# Compile a KeywordRestParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#314
def visit_keyword_rest_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a LambdaNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#317
def visit_lambda_node(node); end
# Visit the child nodes of the given node.
# Compile a LocalVariableAndWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#320
def visit_local_variable_and_write_node(node); end
# Visit the child nodes of the given node.
# Compile a LocalVariableOperatorWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#323
def visit_local_variable_operator_write_node(node); end
# Visit the child nodes of the given node.
# Compile a LocalVariableOrWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#326
def visit_local_variable_or_write_node(node); end
# Visit the child nodes of the given node.
# Compile a LocalVariableReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#329
def visit_local_variable_read_node(node); end
# Visit the child nodes of the given node.
# Compile a LocalVariableTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#332
def visit_local_variable_target_node(node); end
# Visit the child nodes of the given node.
# Compile a LocalVariableWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#335
def visit_local_variable_write_node(node); end
# Visit the child nodes of the given node.
# Compile a MatchLastLineNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#338
def visit_match_last_line_node(node); end
# Visit the child nodes of the given node.
# Compile a MatchPredicateNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#341
def visit_match_predicate_node(node); end
# Visit the child nodes of the given node.
# Compile a MatchRequiredNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#344
def visit_match_required_node(node); end
# Visit the child nodes of the given node.
# Compile a MatchWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#347
def visit_match_write_node(node); end
# Visit the child nodes of the given node.
# Compile a MissingNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#350
def visit_missing_node(node); end
# Visit the child nodes of the given node.
# Compile a ModuleNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#353
def visit_module_node(node); end
# Visit the child nodes of the given node.
# Compile a MultiTargetNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#356
def visit_multi_target_node(node); end
# Visit the child nodes of the given node.
# Compile a MultiWriteNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#359
def visit_multi_write_node(node); end
# Visit the child nodes of the given node.
# Compile a NextNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#362
def visit_next_node(node); end
# Visit the child nodes of the given node.
# Compile a NilNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#365
def visit_nil_node(node); end
# Visit the child nodes of the given node.
# Compile a NoKeywordsParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#368
def visit_no_keywords_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a NumberedParametersNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#371
def visit_numbered_parameters_node(node); end
# Visit the child nodes of the given node.
# Compile a NumberedReferenceReadNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#374
def visit_numbered_reference_read_node(node); end
# Visit the child nodes of the given node.
# Compile a OptionalKeywordParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#377
def visit_optional_keyword_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a OptionalParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#380
def visit_optional_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a OrNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#383
def visit_or_node(node); end
# Visit the child nodes of the given node.
# Compile a ParametersNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#386
def visit_parameters_node(node); end
# Visit the child nodes of the given node.
# Compile a ParenthesesNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#389
def visit_parentheses_node(node); end
# Visit the child nodes of the given node.
# Compile a PinnedExpressionNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#392
def visit_pinned_expression_node(node); end
# Visit the child nodes of the given node.
# Compile a PinnedVariableNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#395
def visit_pinned_variable_node(node); end
# Visit the child nodes of the given node.
# Compile a PostExecutionNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#398
def visit_post_execution_node(node); end
# Visit the child nodes of the given node.
# Compile a PreExecutionNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#401
def visit_pre_execution_node(node); end
# Visit the child nodes of the given node.
# Compile a ProgramNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#404
def visit_program_node(node); end
# Visit the child nodes of the given node.
# Compile a RangeNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#407
def visit_range_node(node); end
# Visit the child nodes of the given node.
# Compile a RationalNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#410
def visit_rational_node(node); end
# Visit the child nodes of the given node.
# Compile a RedoNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#413
def visit_redo_node(node); end
# Visit the child nodes of the given node.
# Compile a RegularExpressionNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#416
def visit_regular_expression_node(node); end
# Visit the child nodes of the given node.
# Compile a RequiredKeywordParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#419
def visit_required_keyword_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a RequiredParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#422
def visit_required_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a RescueModifierNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#425
def visit_rescue_modifier_node(node); end
# Visit the child nodes of the given node.
# Compile a RescueNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#428
def visit_rescue_node(node); end
# Visit the child nodes of the given node.
# Compile a RestParameterNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#431
def visit_rest_parameter_node(node); end
# Visit the child nodes of the given node.
# Compile a RetryNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#434
def visit_retry_node(node); end
# Visit the child nodes of the given node.
# Compile a ReturnNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#437
def visit_return_node(node); end
# Visit the child nodes of the given node.
# Compile a SelfNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#440
def visit_self_node(node); end
# Visit the child nodes of the given node.
# Compile a ShareableConstantNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#443
def visit_shareable_constant_node(node); end
# Visit the child nodes of the given node.
# Compile a SingletonClassNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#446
def visit_singleton_class_node(node); end
# Visit the child nodes of the given node.
# Compile a SourceEncodingNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#449
def visit_source_encoding_node(node); end
# Visit the child nodes of the given node.
# Compile a SourceFileNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#452
def visit_source_file_node(node); end
# Visit the child nodes of the given node.
# Compile a SourceLineNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#455
def visit_source_line_node(node); end
# Visit the child nodes of the given node.
# Compile a SplatNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#458
def visit_splat_node(node); end
# Visit the child nodes of the given node.
# Compile a StatementsNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#461
def visit_statements_node(node); end
# Visit the child nodes of the given node.
# Compile a StringNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#464
def visit_string_node(node); end
# Visit the child nodes of the given node.
# Compile a SuperNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#467
def visit_super_node(node); end
# Visit the child nodes of the given node.
# Compile a SymbolNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#470
def visit_symbol_node(node); end
# Visit the child nodes of the given node.
# Compile a TrueNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#473
def visit_true_node(node); end
# Visit the child nodes of the given node.
# Compile a UndefNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#476
def visit_undef_node(node); end
# Visit the child nodes of the given node.
# Compile a UnlessNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#479
def visit_unless_node(node); end
# Visit the child nodes of the given node.
# Compile a UntilNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#482
def visit_until_node(node); end
# Visit the child nodes of the given node.
# Compile a WhenNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#485
def visit_when_node(node); end
# Visit the child nodes of the given node.
# Compile a WhileNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#488
def visit_while_node(node); end
# Visit the child nodes of the given node.
# Compile a XStringNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#491
def visit_x_string_node(node); end
# Visit the child nodes of the given node.
# Compile a YieldNode node
#
- # source://prism//lib/prism/compiler.rb#39
+ # source://prism//lib/prism/compiler.rb#494
def visit_yield_node(node); end
end
@@ -6860,7 +6894,7 @@ class Prism::ConstantAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4625
+ # source://prism//lib/prism/node.rb#4645
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7027,7 +7061,7 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4739
+ # source://prism//lib/prism/node.rb#4759
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7180,7 +7214,7 @@ class Prism::ConstantOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4851
+ # source://prism//lib/prism/node.rb#4871
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7331,7 +7365,7 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#4963
+ # source://prism//lib/prism/node.rb#4983
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7476,7 +7510,7 @@ class Prism::ConstantPathNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5062
+ # source://prism//lib/prism/node.rb#5084
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7689,7 +7723,7 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5198
+ # source://prism//lib/prism/node.rb#5218
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7825,7 +7859,7 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5295
+ # source://prism//lib/prism/node.rb#5315
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -7970,7 +8004,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5394
+ # source://prism//lib/prism/node.rb#5416
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -8137,7 +8171,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5514
+ # source://prism//lib/prism/node.rb#5534
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -8273,7 +8307,7 @@ class Prism::ConstantReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5622
+ # source://prism//lib/prism/node.rb#5642
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -8390,7 +8424,7 @@ class Prism::ConstantTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5699
+ # source://prism//lib/prism/node.rb#5719
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -8517,7 +8551,7 @@ class Prism::ConstantWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5775
+ # source://prism//lib/prism/node.rb#5795
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -11366,7 +11400,7 @@ class Prism::DefNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#5913
+ # source://prism//lib/prism/node.rb#5937
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -11618,7 +11652,7 @@ class Prism::DefinedNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6168
+ # source://prism//lib/prism/node.rb#6188
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -12045,7 +12079,7 @@ class Prism::Dispatcher < ::Prism::Visitor
#
# def dispatch: (Node) -> void
#
- # source://prism//lib/prism/visitor.rb#17
+ # source://prism//lib/prism/dispatcher.rb#61
def dispatch(node); end
# Dispatches a single event for `node` to all registered listeners.
@@ -14780,7 +14814,7 @@ class Prism::ElseNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6312
+ # source://prism//lib/prism/node.rb#6334
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -14960,7 +14994,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6433
+ # source://prism//lib/prism/node.rb#6455
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15094,7 +15128,7 @@ class Prism::EmbeddedVariableNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6547
+ # source://prism//lib/prism/node.rb#6567
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15245,7 +15279,7 @@ class Prism::EnsureNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6645
+ # source://prism//lib/prism/node.rb#6667
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15374,7 +15408,7 @@ class Prism::FalseNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6757
+ # source://prism//lib/prism/node.rb#6777
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15510,7 +15544,7 @@ class Prism::FindPatternNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6837
+ # source://prism//lib/prism/node.rb#6862
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15658,7 +15692,7 @@ class Prism::FlipFlopNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#6980
+ # source://prism//lib/prism/node.rb#7003
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15783,7 +15817,7 @@ class Prism::FloatNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7085
+ # source://prism//lib/prism/node.rb#7105
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -15912,7 +15946,7 @@ class Prism::ForNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7164
+ # source://prism//lib/prism/node.rb#7188
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16107,7 +16141,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7355
+ # source://prism//lib/prism/node.rb#7375
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16195,7 +16229,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7424
+ # source://prism//lib/prism/node.rb#7444
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16303,7 +16337,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7493
+ # source://prism//lib/prism/node.rb#7515
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16411,7 +16445,7 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7571
+ # source://prism//lib/prism/node.rb#7591
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16578,7 +16612,7 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7685
+ # source://prism//lib/prism/node.rb#7705
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16731,7 +16765,7 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7797
+ # source://prism//lib/prism/node.rb#7817
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16870,7 +16904,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7907
+ # source://prism//lib/prism/node.rb#7927
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -16974,7 +17008,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#7984
+ # source://prism//lib/prism/node.rb#8004
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -17088,7 +17122,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8060
+ # source://prism//lib/prism/node.rb#8080
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -17267,7 +17301,7 @@ class Prism::HashNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8188
+ # source://prism//lib/prism/node.rb#8208
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -17437,7 +17471,7 @@ class Prism::HashPatternNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8319
+ # source://prism//lib/prism/node.rb#8343
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -17607,7 +17641,7 @@ class Prism::IfNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8466
+ # source://prism//lib/prism/node.rb#8490
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -17830,7 +17864,7 @@ class Prism::ImaginaryNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8672
+ # source://prism//lib/prism/node.rb#8692
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -17950,7 +17984,7 @@ class Prism::ImplicitNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8751
+ # source://prism//lib/prism/node.rb#8771
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -18054,7 +18088,7 @@ class Prism::ImplicitRestNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8832
+ # source://prism//lib/prism/node.rb#8852
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -18162,7 +18196,7 @@ class Prism::InNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#8904
+ # source://prism//lib/prism/node.rb#8927
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -18370,7 +18404,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#9035
+ # source://prism//lib/prism/node.rb#9060
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -18628,7 +18662,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#9236
+ # source://prism//lib/prism/node.rb#9261
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -18872,7 +18906,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#9435
+ # source://prism//lib/prism/node.rb#9460
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -19106,7 +19140,7 @@ class Prism::IndexTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#9640
+ # source://prism//lib/prism/node.rb#9664
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20111,7 +20145,7 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#9787
+ # source://prism//lib/prism/node.rb#9807
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20278,7 +20312,7 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#9901
+ # source://prism//lib/prism/node.rb#9921
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20431,7 +20465,7 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10013
+ # source://prism//lib/prism/node.rb#10033
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20570,7 +20604,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10123
+ # source://prism//lib/prism/node.rb#10143
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20674,7 +20708,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10200
+ # source://prism//lib/prism/node.rb#10220
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20788,7 +20822,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10276
+ # source://prism//lib/prism/node.rb#10296
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -20989,7 +21023,7 @@ class Prism::IntegerNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10402
+ # source://prism//lib/prism/node.rb#10422
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -21139,7 +21173,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10498
+ # source://prism//lib/prism/node.rb#10518
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -21383,7 +21417,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10668
+ # source://prism//lib/prism/node.rb#10688
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -21619,7 +21653,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10838
+ # source://prism//lib/prism/node.rb#10858
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -21802,7 +21836,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#10975
+ # source://prism//lib/prism/node.rb#10995
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -21955,7 +21989,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11101
+ # source://prism//lib/prism/node.rb#11121
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -22078,7 +22112,7 @@ class Prism::ItLocalVariableReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11212
+ # source://prism//lib/prism/node.rb#11232
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -22165,7 +22199,7 @@ class Prism::ItParametersNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11280
+ # source://prism//lib/prism/node.rb#11300
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -22267,7 +22301,7 @@ class Prism::KeywordHashNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11349
+ # source://prism//lib/prism/node.rb#11369
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -22398,7 +22432,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11432
+ # source://prism//lib/prism/node.rb#11452
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -22572,7 +22606,7 @@ class Prism::LambdaNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11555
+ # source://prism//lib/prism/node.rb#11578
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -23042,7 +23076,7 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11701
+ # source://prism//lib/prism/node.rb#11721
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -23217,7 +23251,7 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11820
+ # source://prism//lib/prism/node.rb#11840
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -23378,7 +23412,7 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#11937
+ # source://prism//lib/prism/node.rb#11957
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -23533,7 +23567,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12052
+ # source://prism//lib/prism/node.rb#12072
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -23663,7 +23697,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12144
+ # source://prism//lib/prism/node.rb#12164
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -23785,7 +23819,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12225
+ # source://prism//lib/prism/node.rb#12245
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -24336,7 +24370,7 @@ class Prism::MatchLastLineNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12368
+ # source://prism//lib/prism/node.rb#12388
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -24561,7 +24595,7 @@ class Prism::MatchPredicateNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12556
+ # source://prism//lib/prism/node.rb#12576
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -24697,7 +24731,7 @@ class Prism::MatchRequiredNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12654
+ # source://prism//lib/prism/node.rb#12674
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -24837,7 +24871,7 @@ class Prism::MatchWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12751
+ # source://prism//lib/prism/node.rb#12771
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -24927,7 +24961,7 @@ class Prism::MissingNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12825
+ # source://prism//lib/prism/node.rb#12845
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -25051,7 +25085,7 @@ class Prism::ModuleNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#12899
+ # source://prism//lib/prism/node.rb#12922
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -25214,7 +25248,7 @@ class Prism::MultiTargetNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13035
+ # source://prism//lib/prism/node.rb#13059
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -25416,7 +25450,7 @@ class Prism::MultiWriteNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13208
+ # source://prism//lib/prism/node.rb#13233
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -26406,7 +26440,7 @@ class Prism::NextNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13406
+ # source://prism//lib/prism/node.rb#13428
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -26511,7 +26545,7 @@ class Prism::NilNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13499
+ # source://prism//lib/prism/node.rb#13519
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -26616,7 +26650,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13570
+ # source://prism//lib/prism/node.rb#13590
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -26771,7 +26805,7 @@ class Prism::Node
#
# @raise [NoMethodError]
#
- # source://prism//lib/prism/node.rb#264
+ # source://prism//lib/prism/node.rb#268
sig { abstract.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -26874,7 +26908,7 @@ class Prism::Node
# An alias for source_lines, used to mimic the API from
# RubyVM::AbstractSyntaxTree to make it easier to migrate.
#
- # source://prism//lib/prism/node.rb#135
+ # source://prism//lib/prism/node.rb#141
sig { returns(T::Array[String]) }
def script_lines; end
@@ -27099,7 +27133,7 @@ class Prism::NumberedParametersNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13677
+ # source://prism//lib/prism/node.rb#13697
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -27207,7 +27241,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13750
+ # source://prism//lib/prism/node.rb#13770
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -27326,7 +27360,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13832
+ # source://prism//lib/prism/node.rb#13852
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -27467,7 +27501,7 @@ class Prism::OptionalParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#13933
+ # source://prism//lib/prism/node.rb#13953
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -27623,7 +27657,7 @@ class Prism::OrNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14051
+ # source://prism//lib/prism/node.rb#14071
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -27706,6 +27740,7 @@ end
# source://prism//lib/prism/pack.rb#6
module Prism::Pack
class << self
+ # source://prism//lib/prism.rb#83
def parse(_arg0, _arg1, _arg2); end
end
end
@@ -28041,7 +28076,7 @@ class Prism::ParametersNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14169
+ # source://prism//lib/prism/node.rb#14197
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -28211,7 +28246,7 @@ class Prism::ParenthesesNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14280
+ # source://prism//lib/prism/node.rb#14302
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -28599,7 +28634,7 @@ class Prism::ParseResult::Newlines < ::Prism::Visitor
# Permit block/lambda nodes to mark newlines within themselves.
#
- # source://prism//lib/prism/parse_result/newlines.rb#33
+ # source://prism//lib/prism/parse_result/newlines.rb#44
def visit_lambda_node(node); end
# Permit statements lists to mark newlines within themselves.
@@ -28609,7 +28644,7 @@ class Prism::ParseResult::Newlines < ::Prism::Visitor
# Mark if/unless nodes as newlines.
#
- # source://prism//lib/prism/parse_result/newlines.rb#47
+ # source://prism//lib/prism/parse_result/newlines.rb#52
def visit_unless_node(node); end
end
@@ -28899,7 +28934,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14402
+ # source://prism//lib/prism/node.rb#14422
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29063,7 +29098,7 @@ class Prism::PinnedVariableNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14533
+ # source://prism//lib/prism/node.rb#14553
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29209,7 +29244,7 @@ class Prism::PostExecutionNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14628
+ # source://prism//lib/prism/node.rb#14650
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29377,7 +29412,7 @@ class Prism::PreExecutionNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14763
+ # source://prism//lib/prism/node.rb#14785
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29526,7 +29561,7 @@ class Prism::ProgramNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14893
+ # source://prism//lib/prism/node.rb#14913
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29657,7 +29692,7 @@ class Prism::RangeNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#14976
+ # source://prism//lib/prism/node.rb#14999
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29828,7 +29863,7 @@ class Prism::RationalNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15095
+ # source://prism//lib/prism/node.rb#15115
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -29959,7 +29994,7 @@ class Prism::RedoNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15196
+ # source://prism//lib/prism/node.rb#15216
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -30291,7 +30326,7 @@ class Prism::RegularExpressionNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15268
+ # source://prism//lib/prism/node.rb#15288
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31053,7 +31088,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15456
+ # source://prism//lib/prism/node.rb#15476
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31174,7 +31209,7 @@ class Prism::RequiredParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15550
+ # source://prism//lib/prism/node.rb#15570
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31294,7 +31329,7 @@ class Prism::RescueModifierNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15631
+ # source://prism//lib/prism/node.rb#15651
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31452,7 +31487,7 @@ class Prism::RescueNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15738
+ # source://prism//lib/prism/node.rb#15763
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31639,7 +31674,7 @@ class Prism::RestParameterNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#15901
+ # source://prism//lib/prism/node.rb#15921
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31872,7 +31907,7 @@ class Prism::RetryNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16018
+ # source://prism//lib/prism/node.rb#16038
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -31982,7 +32017,7 @@ class Prism::ReturnNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16088
+ # source://prism//lib/prism/node.rb#16110
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -32118,7 +32153,7 @@ class Prism::SelfNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16181
+ # source://prism//lib/prism/node.rb#16201
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -32417,7 +32452,7 @@ class Prism::ShareableConstantNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16251
+ # source://prism//lib/prism/node.rb#16271
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -32599,7 +32634,7 @@ class Prism::SingletonClassNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16345
+ # source://prism//lib/prism/node.rb#16368
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -32901,7 +32936,7 @@ class Prism::SourceEncodingNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16486
+ # source://prism//lib/prism/node.rb#16506
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33003,7 +33038,7 @@ class Prism::SourceFileNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16555
+ # source://prism//lib/prism/node.rb#16575
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33128,7 +33163,7 @@ class Prism::SourceLineNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16648
+ # source://prism//lib/prism/node.rb#16668
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33232,7 +33267,7 @@ class Prism::SplatNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16718
+ # source://prism//lib/prism/node.rb#16740
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33364,7 +33399,7 @@ class Prism::StatementsNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16812
+ # source://prism//lib/prism/node.rb#16832
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33525,7 +33560,7 @@ class Prism::StringNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#16895
+ # source://prism//lib/prism/node.rb#16915
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33678,16 +33713,22 @@ class Prism::StringQuery
# Mirrors the C extension's StringQuery::constant? method.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def constant?(_arg0); end
# Mirrors the C extension's StringQuery::local? method.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def local?(_arg0); end
# Mirrors the C extension's StringQuery::method_name? method.
#
# @return [Boolean]
+ #
+ # source://prism//lib/prism.rb#83
def method_name?(_arg0); end
end
end
@@ -33784,7 +33825,7 @@ class Prism::SuperNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17065
+ # source://prism//lib/prism/node.rb#17088
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -33981,7 +34022,7 @@ class Prism::SymbolNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17220
+ # source://prism//lib/prism/node.rb#17240
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -34749,7 +34790,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler
# if foo .. bar; end
# ^^^^^^^^^^
#
- # source://prism//lib/prism/translation/parser/compiler.rb#1501
+ # source://prism//lib/prism/translation/parser/compiler.rb#1519
def visit_flip_flop_node(node); end
# 1.0
@@ -34939,7 +34980,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler
# if /foo #{bar}/ then end
# ^^^^^^^^^^^^
#
- # source://prism//lib/prism/translation/parser/compiler.rb#1100
+ # source://prism//lib/prism/translation/parser/compiler.rb#1111
def visit_interpolated_match_last_line_node(node); end
# /foo #{bar}/
@@ -35040,7 +35081,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler
# if /foo/ then end
# ^^^^^
#
- # source://prism//lib/prism/translation/parser/compiler.rb#1535
+ # source://prism//lib/prism/translation/parser/compiler.rb#1555
def visit_match_last_line_node(node); end
# foo in bar
@@ -35661,30 +35702,47 @@ class Prism::Translation::Parser::Lexer::HeredocData < ::Struct
# Returns the value of attribute common_whitespace
#
# @return [Object] the current value of common_whitespace
+ #
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def common_whitespace; end
# Sets the attribute common_whitespace
#
# @param value [Object] the value to set the attribute common_whitespace to.
# @return [Object] the newly set value
+ #
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def common_whitespace=(_); end
# Returns the value of attribute identifier
#
# @return [Object] the current value of identifier
+ #
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def identifier; end
# Sets the attribute identifier
#
# @param value [Object] the value to set the attribute identifier to.
# @return [Object] the newly set value
+ #
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def identifier=(_); end
class << self
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def [](*_arg0); end
+
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def inspect; end
+
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def keyword_init?; end
+
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def members; end
+
+ # source://prism//lib/prism/translation/parser/lexer.rb#213
def new(*_arg0); end
end
end
@@ -36842,574 +36900,574 @@ class Prism::Translation::Ripper < ::Prism::Compiler
# source://prism//lib/prism/translation/ripper.rb#3438
def dedent_string(string, width); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_BEGIN(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_CHAR(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_END(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on___end__(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_alias(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_alias_error(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_aref(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_aref_field(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_arg_ambiguous(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_arg_paren(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_args_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_args_add_block(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_args_add_star(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_args_forward; end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_args_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_array(_); end
- # source://prism//lib/prism/translation/ripper.rb#3399
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_aryptn(_, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_assign(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_assign_error(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_assoc_new(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_assoc_splat(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_assoclist_from_args(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_backref(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_backtick(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_bare_assoc_hash(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_begin(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_binary(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_block_var(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_blockarg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3399
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_bodystmt(_, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_brace_block(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_break(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_call(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_case(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_class(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_class_name_error(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_comma(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_command(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3399
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_command_call(_, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_comment(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_const(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_const_path_field(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_const_path_ref(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_const_ref(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_cvar(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_def(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_defined(_); end
- # source://prism//lib/prism/translation/ripper.rb#3400
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_defs(_, _, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_do_block(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_dot2(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_dot3(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_dyna_symbol(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_else(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_elsif(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_embdoc(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_embdoc_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_embdoc_end(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_embexpr_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_embexpr_end(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_embvar(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_ensure(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_excessed_comma; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_fcall(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_field(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_float(_); end
- # source://prism//lib/prism/translation/ripper.rb#3399
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_fndptn(_, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_for(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_gvar(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_hash(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_heredoc_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_heredoc_dedent(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_heredoc_end(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_hshptn(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_ident(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_if(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_if_mod(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_ifop(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_ignored_nl(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_ignored_sp(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_imaginary(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_in(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_int(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_ivar(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_kw(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_kwrest_param(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_label(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_label_end(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_lambda(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_lbrace(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_lbracket(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_lparen(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_magic_comment(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_massign(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_method_add_arg(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_method_add_block(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mlhs_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mlhs_add_post(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mlhs_add_star(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mlhs_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mlhs_paren(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_module(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mrhs_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mrhs_add_star(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mrhs_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_mrhs_new_from_args(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_next(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_nl(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_nokw_param(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_op(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_opassign(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_operator_ambiguous(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_param_error(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3401
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_params(_, _, _, _, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_paren(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_parse_error(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_period(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_program(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_qsymbols_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_qsymbols_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_qsymbols_new; end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_qwords_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_qwords_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_qwords_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_rational(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_rbrace(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_rbracket(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_redo; end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_regexp_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_regexp_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_regexp_end(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_regexp_literal(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_regexp_new; end
- # source://prism//lib/prism/translation/ripper.rb#3399
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_rescue(_, _, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_rescue_mod(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_rest_param(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_retry; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_return(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_return0; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_rparen(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_sclass(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_semicolon(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_sp(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_stmts_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_stmts_new; end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_string_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_string_concat(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_string_content; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_string_dvar(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_string_embexpr(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_string_literal(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_super(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_symbeg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_symbol(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_symbol_literal(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_symbols_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_symbols_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_symbols_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_tlambda(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_tlambeg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_top_const_field(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_top_const_ref(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_tstring_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_tstring_content(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_tstring_end(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_unary(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_undef(_); end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_unless(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_unless_mod(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_until(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_until_mod(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_var_alias(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_var_field(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_var_ref(_); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_vcall(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_void_stmt; end
- # source://prism//lib/prism/translation/ripper.rb#3398
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_when(_, _, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_while(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_while_mod(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_word_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_word_new; end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_words_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_words_beg(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_words_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3431
def on_words_sep(_); end
- # source://prism//lib/prism/translation/ripper.rb#3397
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_xstring_add(_, _); end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_xstring_literal(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_xstring_new; end
- # source://prism//lib/prism/translation/ripper.rb#3396
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_yield(_); end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_yield0; end
- # source://prism//lib/prism/translation/ripper.rb#3395
+ # source://prism//lib/prism/translation/ripper.rb#3409
def on_zsuper; end
# Lazily initialize the parse result.
@@ -37680,573 +37738,573 @@ class Prism::Translation::Ripper::SexpBuilder < ::Prism::Translation::Ripper
# source://prism//lib/prism/translation/ripper/sexp.rb#13
def error; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_BEGIN(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_CHAR(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_END(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on___end__(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_alias(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_alias_error(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_aref(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_aref_field(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_arg_ambiguous(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_arg_paren(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_args_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_args_add_block(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_args_add_star(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_args_forward(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_args_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_array(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_aryptn(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_assign(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_assign_error(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_assoc_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_assoc_splat(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_assoclist_from_args(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_backref(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_backtick(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_bare_assoc_hash(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_begin(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_binary(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_block_var(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_blockarg(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_bodystmt(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_brace_block(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_break(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_call(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_case(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_class(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_class_name_error(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_comma(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_command(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_command_call(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_comment(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_const(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_const_path_field(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_const_path_ref(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_const_ref(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_cvar(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_def(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_defined(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_defs(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_do_block(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_dot2(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_dot3(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_dyna_symbol(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_else(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_elsif(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_embdoc(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_embdoc_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_embdoc_end(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_embexpr_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_embexpr_end(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_embvar(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_ensure(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_excessed_comma(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_fcall(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_field(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_float(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_fndptn(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_for(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_gvar(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_hash(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_heredoc_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_heredoc_end(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_hshptn(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_ident(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_if(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_if_mod(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_ifop(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_ignored_nl(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_ignored_sp(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_imaginary(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_in(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_int(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_ivar(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_kw(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_kwrest_param(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_label(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_label_end(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_lambda(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_lbrace(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_lbracket(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_lparen(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_magic_comment(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_massign(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_method_add_arg(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_method_add_block(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mlhs_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mlhs_add_post(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mlhs_add_star(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mlhs_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mlhs_paren(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_module(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mrhs_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mrhs_add_star(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mrhs_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_mrhs_new_from_args(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_next(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_nl(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_nokw_param(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_op(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_opassign(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_operator_ambiguous(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_param_error(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_params(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_paren(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_period(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_program(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_qsymbols_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_qsymbols_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_qsymbols_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_qwords_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_qwords_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_qwords_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_rational(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_rbrace(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_rbracket(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_redo(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_regexp_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_regexp_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_regexp_end(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_regexp_literal(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_regexp_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_rescue(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_rescue_mod(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_rest_param(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_retry(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_return(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_return0(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_rparen(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_sclass(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_semicolon(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_sp(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_stmts_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_stmts_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_string_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_string_concat(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_string_content(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_string_dvar(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_string_embexpr(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_string_literal(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_super(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_symbeg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_symbol(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_symbol_literal(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_symbols_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_symbols_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_symbols_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_tlambda(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_tlambeg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_top_const_field(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_top_const_ref(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_tstring_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_tstring_content(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_tstring_end(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_unary(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_undef(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_unless(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_unless_mod(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_until(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_until_mod(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_var_alias(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_var_field(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_var_ref(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_vcall(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_void_stmt(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_when(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_while(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_while_mod(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_word_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_word_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_words_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_words_beg(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_words_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#55
+ # source://prism//lib/prism/translation/ripper/sexp.rb#54
def on_words_sep(tok); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_xstring_add(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_xstring_literal(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_xstring_new(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_yield(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_yield0(*args); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#47
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_zsuper(*args); end
private
- # source://prism//lib/prism/translation/ripper/sexp.rb#61
+ # source://prism//lib/prism/translation/ripper/sexp.rb#66
def compile_error(mesg); end
# source://prism//lib/prism/translation/ripper/sexp.rb#17
@@ -38258,7 +38316,7 @@ class Prism::Translation::Ripper::SexpBuilder < ::Prism::Translation::Ripper
# source://prism//lib/prism/translation/ripper/sexp.rb#24
def on_heredoc_dedent(val, width); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#61
+ # source://prism//lib/prism/translation/ripper/sexp.rb#46
def on_parse_error(mesg); end
end
@@ -38276,16 +38334,16 @@ class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper::
# source://prism//lib/prism/translation/ripper/sexp.rb#96
def _dispatch_event_push(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_args_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_args_new; end
# source://prism//lib/prism/translation/ripper/sexp.rb#79
def on_heredoc_dedent(val, width); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_mlhs_add(list, item); end
# source://prism//lib/prism/translation/ripper/sexp.rb#109
@@ -38294,67 +38352,67 @@ class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper::
# source://prism//lib/prism/translation/ripper/sexp.rb#105
def on_mlhs_add_star(list, star); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_mlhs_new; end
# source://prism//lib/prism/translation/ripper/sexp.rb#101
def on_mlhs_paren(list); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_mrhs_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_mrhs_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_qsymbols_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_qsymbols_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_qwords_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_qwords_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_regexp_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_regexp_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_stmts_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_stmts_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_string_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_symbols_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_symbols_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_word_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_word_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_words_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_words_new; end
- # source://prism//lib/prism/translation/ripper/sexp.rb#96
+ # source://prism//lib/prism/translation/ripper/sexp.rb#117
def on_xstring_add(list, item); end
- # source://prism//lib/prism/translation/ripper/sexp.rb#92
+ # source://prism//lib/prism/translation/ripper/sexp.rb#115
def on_xstring_new; end
end
@@ -39516,7 +39574,7 @@ class Prism::TrueNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17383
+ # source://prism//lib/prism/node.rb#17403
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -39620,7 +39678,7 @@ class Prism::UndefNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17453
+ # source://prism//lib/prism/node.rb#17473
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -39765,7 +39823,7 @@ class Prism::UnlessNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17554
+ # source://prism//lib/prism/node.rb#17578
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -39998,7 +40056,7 @@ class Prism::UntilNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17740
+ # source://prism//lib/prism/node.rb#17763
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -40114,907 +40172,907 @@ Prism::VERSION = T.let(T.unsafe(nil), String)
class Prism::Visitor < ::Prism::BasicVisitor
# Visit a AliasGlobalVariableNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#56
sig { params(node: Prism::AliasGlobalVariableNode).void }
def visit_alias_global_variable_node(node); end
# Visit a AliasMethodNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#59
sig { params(node: Prism::AliasMethodNode).void }
def visit_alias_method_node(node); end
# Visit a AlternationPatternNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#62
sig { params(node: Prism::AlternationPatternNode).void }
def visit_alternation_pattern_node(node); end
# Visit a AndNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#65
sig { params(node: Prism::AndNode).void }
def visit_and_node(node); end
# Visit a ArgumentsNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#68
sig { params(node: Prism::ArgumentsNode).void }
def visit_arguments_node(node); end
# Visit a ArrayNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#71
sig { params(node: Prism::ArrayNode).void }
def visit_array_node(node); end
# Visit a ArrayPatternNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#74
sig { params(node: Prism::ArrayPatternNode).void }
def visit_array_pattern_node(node); end
# Visit a AssocNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#77
sig { params(node: Prism::AssocNode).void }
def visit_assoc_node(node); end
# Visit a AssocSplatNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#80
sig { params(node: Prism::AssocSplatNode).void }
def visit_assoc_splat_node(node); end
# Visit a BackReferenceReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#83
sig { params(node: Prism::BackReferenceReadNode).void }
def visit_back_reference_read_node(node); end
# Visit a BeginNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#86
sig { params(node: Prism::BeginNode).void }
def visit_begin_node(node); end
# Visit a BlockArgumentNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#89
sig { params(node: Prism::BlockArgumentNode).void }
def visit_block_argument_node(node); end
# Visit a BlockLocalVariableNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#92
sig { params(node: Prism::BlockLocalVariableNode).void }
def visit_block_local_variable_node(node); end
# Visit a BlockNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#95
sig { params(node: Prism::BlockNode).void }
def visit_block_node(node); end
# Visit a BlockParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#98
sig { params(node: Prism::BlockParameterNode).void }
def visit_block_parameter_node(node); end
# Visit a BlockParametersNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#101
sig { params(node: Prism::BlockParametersNode).void }
def visit_block_parameters_node(node); end
# Visit a BreakNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#104
sig { params(node: Prism::BreakNode).void }
def visit_break_node(node); end
# Visit a CallAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#107
sig { params(node: Prism::CallAndWriteNode).void }
def visit_call_and_write_node(node); end
# Visit a CallNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#110
sig { params(node: Prism::CallNode).void }
def visit_call_node(node); end
# Visit a CallOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#113
sig { params(node: Prism::CallOperatorWriteNode).void }
def visit_call_operator_write_node(node); end
# Visit a CallOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#116
sig { params(node: Prism::CallOrWriteNode).void }
def visit_call_or_write_node(node); end
# Visit a CallTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#119
sig { params(node: Prism::CallTargetNode).void }
def visit_call_target_node(node); end
# Visit a CapturePatternNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#122
sig { params(node: Prism::CapturePatternNode).void }
def visit_capture_pattern_node(node); end
# Visit a CaseMatchNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#125
sig { params(node: Prism::CaseMatchNode).void }
def visit_case_match_node(node); end
# Visit a CaseNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#128
sig { params(node: Prism::CaseNode).void }
def visit_case_node(node); end
# Visit a ClassNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#131
sig { params(node: Prism::ClassNode).void }
def visit_class_node(node); end
# Visit a ClassVariableAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#134
sig { params(node: Prism::ClassVariableAndWriteNode).void }
def visit_class_variable_and_write_node(node); end
# Visit a ClassVariableOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#137
sig { params(node: Prism::ClassVariableOperatorWriteNode).void }
def visit_class_variable_operator_write_node(node); end
# Visit a ClassVariableOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#140
sig { params(node: Prism::ClassVariableOrWriteNode).void }
def visit_class_variable_or_write_node(node); end
# Visit a ClassVariableReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#143
sig { params(node: Prism::ClassVariableReadNode).void }
def visit_class_variable_read_node(node); end
# Visit a ClassVariableTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#146
sig { params(node: Prism::ClassVariableTargetNode).void }
def visit_class_variable_target_node(node); end
# Visit a ClassVariableWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#149
sig { params(node: Prism::ClassVariableWriteNode).void }
def visit_class_variable_write_node(node); end
# Visit a ConstantAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#152
sig { params(node: Prism::ConstantAndWriteNode).void }
def visit_constant_and_write_node(node); end
# Visit a ConstantOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#155
sig { params(node: Prism::ConstantOperatorWriteNode).void }
def visit_constant_operator_write_node(node); end
# Visit a ConstantOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#158
sig { params(node: Prism::ConstantOrWriteNode).void }
def visit_constant_or_write_node(node); end
# Visit a ConstantPathAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#161
sig { params(node: Prism::ConstantPathAndWriteNode).void }
def visit_constant_path_and_write_node(node); end
# Visit a ConstantPathNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#164
sig { params(node: Prism::ConstantPathNode).void }
def visit_constant_path_node(node); end
# Visit a ConstantPathOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#167
sig { params(node: Prism::ConstantPathOperatorWriteNode).void }
def visit_constant_path_operator_write_node(node); end
# Visit a ConstantPathOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#170
sig { params(node: Prism::ConstantPathOrWriteNode).void }
def visit_constant_path_or_write_node(node); end
# Visit a ConstantPathTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#173
sig { params(node: Prism::ConstantPathTargetNode).void }
def visit_constant_path_target_node(node); end
# Visit a ConstantPathWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#176
sig { params(node: Prism::ConstantPathWriteNode).void }
def visit_constant_path_write_node(node); end
# Visit a ConstantReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#179
sig { params(node: Prism::ConstantReadNode).void }
def visit_constant_read_node(node); end
# Visit a ConstantTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#182
sig { params(node: Prism::ConstantTargetNode).void }
def visit_constant_target_node(node); end
# Visit a ConstantWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#185
sig { params(node: Prism::ConstantWriteNode).void }
def visit_constant_write_node(node); end
# Visit a DefNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#188
sig { params(node: Prism::DefNode).void }
def visit_def_node(node); end
# Visit a DefinedNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#191
sig { params(node: Prism::DefinedNode).void }
def visit_defined_node(node); end
# Visit a ElseNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#194
sig { params(node: Prism::ElseNode).void }
def visit_else_node(node); end
# Visit a EmbeddedStatementsNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#197
sig { params(node: Prism::EmbeddedStatementsNode).void }
def visit_embedded_statements_node(node); end
# Visit a EmbeddedVariableNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#200
sig { params(node: Prism::EmbeddedVariableNode).void }
def visit_embedded_variable_node(node); end
# Visit a EnsureNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#203
sig { params(node: Prism::EnsureNode).void }
def visit_ensure_node(node); end
# Visit a FalseNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#206
sig { params(node: Prism::FalseNode).void }
def visit_false_node(node); end
# Visit a FindPatternNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#209
sig { params(node: Prism::FindPatternNode).void }
def visit_find_pattern_node(node); end
# Visit a FlipFlopNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#212
sig { params(node: Prism::FlipFlopNode).void }
def visit_flip_flop_node(node); end
# Visit a FloatNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#215
sig { params(node: Prism::FloatNode).void }
def visit_float_node(node); end
# Visit a ForNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#218
sig { params(node: Prism::ForNode).void }
def visit_for_node(node); end
# Visit a ForwardingArgumentsNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#221
sig { params(node: Prism::ForwardingArgumentsNode).void }
def visit_forwarding_arguments_node(node); end
# Visit a ForwardingParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#224
sig { params(node: Prism::ForwardingParameterNode).void }
def visit_forwarding_parameter_node(node); end
# Visit a ForwardingSuperNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#227
sig { params(node: Prism::ForwardingSuperNode).void }
def visit_forwarding_super_node(node); end
# Visit a GlobalVariableAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#230
sig { params(node: Prism::GlobalVariableAndWriteNode).void }
def visit_global_variable_and_write_node(node); end
# Visit a GlobalVariableOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#233
sig { params(node: Prism::GlobalVariableOperatorWriteNode).void }
def visit_global_variable_operator_write_node(node); end
# Visit a GlobalVariableOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#236
sig { params(node: Prism::GlobalVariableOrWriteNode).void }
def visit_global_variable_or_write_node(node); end
# Visit a GlobalVariableReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#239
sig { params(node: Prism::GlobalVariableReadNode).void }
def visit_global_variable_read_node(node); end
# Visit a GlobalVariableTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#242
sig { params(node: Prism::GlobalVariableTargetNode).void }
def visit_global_variable_target_node(node); end
# Visit a GlobalVariableWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#245
sig { params(node: Prism::GlobalVariableWriteNode).void }
def visit_global_variable_write_node(node); end
# Visit a HashNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#248
sig { params(node: Prism::HashNode).void }
def visit_hash_node(node); end
# Visit a HashPatternNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#251
sig { params(node: Prism::HashPatternNode).void }
def visit_hash_pattern_node(node); end
# Visit a IfNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#254
sig { params(node: Prism::IfNode).void }
def visit_if_node(node); end
# Visit a ImaginaryNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#257
sig { params(node: Prism::ImaginaryNode).void }
def visit_imaginary_node(node); end
# Visit a ImplicitNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#260
sig { params(node: Prism::ImplicitNode).void }
def visit_implicit_node(node); end
# Visit a ImplicitRestNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#263
sig { params(node: Prism::ImplicitRestNode).void }
def visit_implicit_rest_node(node); end
# Visit a InNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#266
sig { params(node: Prism::InNode).void }
def visit_in_node(node); end
# Visit a IndexAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#269
sig { params(node: Prism::IndexAndWriteNode).void }
def visit_index_and_write_node(node); end
# Visit a IndexOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#272
sig { params(node: Prism::IndexOperatorWriteNode).void }
def visit_index_operator_write_node(node); end
# Visit a IndexOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#275
sig { params(node: Prism::IndexOrWriteNode).void }
def visit_index_or_write_node(node); end
# Visit a IndexTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#278
sig { params(node: Prism::IndexTargetNode).void }
def visit_index_target_node(node); end
# Visit a InstanceVariableAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#281
sig { params(node: Prism::InstanceVariableAndWriteNode).void }
def visit_instance_variable_and_write_node(node); end
# Visit a InstanceVariableOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#284
sig { params(node: Prism::InstanceVariableOperatorWriteNode).void }
def visit_instance_variable_operator_write_node(node); end
# Visit a InstanceVariableOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#287
sig { params(node: Prism::InstanceVariableOrWriteNode).void }
def visit_instance_variable_or_write_node(node); end
# Visit a InstanceVariableReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#290
sig { params(node: Prism::InstanceVariableReadNode).void }
def visit_instance_variable_read_node(node); end
# Visit a InstanceVariableTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#293
sig { params(node: Prism::InstanceVariableTargetNode).void }
def visit_instance_variable_target_node(node); end
# Visit a InstanceVariableWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#296
sig { params(node: Prism::InstanceVariableWriteNode).void }
def visit_instance_variable_write_node(node); end
# Visit a IntegerNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#299
sig { params(node: Prism::IntegerNode).void }
def visit_integer_node(node); end
# Visit a InterpolatedMatchLastLineNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#302
sig { params(node: Prism::InterpolatedMatchLastLineNode).void }
def visit_interpolated_match_last_line_node(node); end
# Visit a InterpolatedRegularExpressionNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#305
sig { params(node: Prism::InterpolatedRegularExpressionNode).void }
def visit_interpolated_regular_expression_node(node); end
# Visit a InterpolatedStringNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#308
sig { params(node: Prism::InterpolatedStringNode).void }
def visit_interpolated_string_node(node); end
# Visit a InterpolatedSymbolNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#311
sig { params(node: Prism::InterpolatedSymbolNode).void }
def visit_interpolated_symbol_node(node); end
# Visit a InterpolatedXStringNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#314
sig { params(node: Prism::InterpolatedXStringNode).void }
def visit_interpolated_x_string_node(node); end
# Visit a ItLocalVariableReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#317
sig { params(node: Prism::ItLocalVariableReadNode).void }
def visit_it_local_variable_read_node(node); end
# Visit a ItParametersNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#320
sig { params(node: Prism::ItParametersNode).void }
def visit_it_parameters_node(node); end
# Visit a KeywordHashNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#323
sig { params(node: Prism::KeywordHashNode).void }
def visit_keyword_hash_node(node); end
# Visit a KeywordRestParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#326
sig { params(node: Prism::KeywordRestParameterNode).void }
def visit_keyword_rest_parameter_node(node); end
# Visit a LambdaNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#329
sig { params(node: Prism::LambdaNode).void }
def visit_lambda_node(node); end
# Visit a LocalVariableAndWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#332
sig { params(node: Prism::LocalVariableAndWriteNode).void }
def visit_local_variable_and_write_node(node); end
# Visit a LocalVariableOperatorWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#335
sig { params(node: Prism::LocalVariableOperatorWriteNode).void }
def visit_local_variable_operator_write_node(node); end
# Visit a LocalVariableOrWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#338
sig { params(node: Prism::LocalVariableOrWriteNode).void }
def visit_local_variable_or_write_node(node); end
# Visit a LocalVariableReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#341
sig { params(node: Prism::LocalVariableReadNode).void }
def visit_local_variable_read_node(node); end
# Visit a LocalVariableTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#344
sig { params(node: Prism::LocalVariableTargetNode).void }
def visit_local_variable_target_node(node); end
# Visit a LocalVariableWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#347
sig { params(node: Prism::LocalVariableWriteNode).void }
def visit_local_variable_write_node(node); end
# Visit a MatchLastLineNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#350
sig { params(node: Prism::MatchLastLineNode).void }
def visit_match_last_line_node(node); end
# Visit a MatchPredicateNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#353
sig { params(node: Prism::MatchPredicateNode).void }
def visit_match_predicate_node(node); end
# Visit a MatchRequiredNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#356
sig { params(node: Prism::MatchRequiredNode).void }
def visit_match_required_node(node); end
# Visit a MatchWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#359
sig { params(node: Prism::MatchWriteNode).void }
def visit_match_write_node(node); end
# Visit a MissingNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#362
sig { params(node: Prism::MissingNode).void }
def visit_missing_node(node); end
# Visit a ModuleNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#365
sig { params(node: Prism::ModuleNode).void }
def visit_module_node(node); end
# Visit a MultiTargetNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#368
sig { params(node: Prism::MultiTargetNode).void }
def visit_multi_target_node(node); end
# Visit a MultiWriteNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#371
sig { params(node: Prism::MultiWriteNode).void }
def visit_multi_write_node(node); end
# Visit a NextNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#374
sig { params(node: Prism::NextNode).void }
def visit_next_node(node); end
# Visit a NilNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#377
sig { params(node: Prism::NilNode).void }
def visit_nil_node(node); end
# Visit a NoKeywordsParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#380
sig { params(node: Prism::NoKeywordsParameterNode).void }
def visit_no_keywords_parameter_node(node); end
# Visit a NumberedParametersNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#383
sig { params(node: Prism::NumberedParametersNode).void }
def visit_numbered_parameters_node(node); end
# Visit a NumberedReferenceReadNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#386
sig { params(node: Prism::NumberedReferenceReadNode).void }
def visit_numbered_reference_read_node(node); end
# Visit a OptionalKeywordParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#389
sig { params(node: Prism::OptionalKeywordParameterNode).void }
def visit_optional_keyword_parameter_node(node); end
# Visit a OptionalParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#392
sig { params(node: Prism::OptionalParameterNode).void }
def visit_optional_parameter_node(node); end
# Visit a OrNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#395
sig { params(node: Prism::OrNode).void }
def visit_or_node(node); end
# Visit a ParametersNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#398
sig { params(node: Prism::ParametersNode).void }
def visit_parameters_node(node); end
# Visit a ParenthesesNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#401
sig { params(node: Prism::ParenthesesNode).void }
def visit_parentheses_node(node); end
# Visit a PinnedExpressionNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#404
sig { params(node: Prism::PinnedExpressionNode).void }
def visit_pinned_expression_node(node); end
# Visit a PinnedVariableNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#407
sig { params(node: Prism::PinnedVariableNode).void }
def visit_pinned_variable_node(node); end
# Visit a PostExecutionNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#410
sig { params(node: Prism::PostExecutionNode).void }
def visit_post_execution_node(node); end
# Visit a PreExecutionNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#413
sig { params(node: Prism::PreExecutionNode).void }
def visit_pre_execution_node(node); end
# Visit a ProgramNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#416
sig { params(node: Prism::ProgramNode).void }
def visit_program_node(node); end
# Visit a RangeNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#419
sig { params(node: Prism::RangeNode).void }
def visit_range_node(node); end
# Visit a RationalNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#422
sig { params(node: Prism::RationalNode).void }
def visit_rational_node(node); end
# Visit a RedoNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#425
sig { params(node: Prism::RedoNode).void }
def visit_redo_node(node); end
# Visit a RegularExpressionNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#428
sig { params(node: Prism::RegularExpressionNode).void }
def visit_regular_expression_node(node); end
# Visit a RequiredKeywordParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#431
sig { params(node: Prism::RequiredKeywordParameterNode).void }
def visit_required_keyword_parameter_node(node); end
# Visit a RequiredParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#434
sig { params(node: Prism::RequiredParameterNode).void }
def visit_required_parameter_node(node); end
# Visit a RescueModifierNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#437
sig { params(node: Prism::RescueModifierNode).void }
def visit_rescue_modifier_node(node); end
# Visit a RescueNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#440
sig { params(node: Prism::RescueNode).void }
def visit_rescue_node(node); end
# Visit a RestParameterNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#443
sig { params(node: Prism::RestParameterNode).void }
def visit_rest_parameter_node(node); end
# Visit a RetryNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#446
sig { params(node: Prism::RetryNode).void }
def visit_retry_node(node); end
# Visit a ReturnNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#449
sig { params(node: Prism::ReturnNode).void }
def visit_return_node(node); end
# Visit a SelfNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#452
sig { params(node: Prism::SelfNode).void }
def visit_self_node(node); end
# Visit a ShareableConstantNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#455
sig { params(node: Prism::ShareableConstantNode).void }
def visit_shareable_constant_node(node); end
# Visit a SingletonClassNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#458
sig { params(node: Prism::SingletonClassNode).void }
def visit_singleton_class_node(node); end
# Visit a SourceEncodingNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#461
sig { params(node: Prism::SourceEncodingNode).void }
def visit_source_encoding_node(node); end
# Visit a SourceFileNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#464
sig { params(node: Prism::SourceFileNode).void }
def visit_source_file_node(node); end
# Visit a SourceLineNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#467
sig { params(node: Prism::SourceLineNode).void }
def visit_source_line_node(node); end
# Visit a SplatNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#470
sig { params(node: Prism::SplatNode).void }
def visit_splat_node(node); end
# Visit a StatementsNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#473
sig { params(node: Prism::StatementsNode).void }
def visit_statements_node(node); end
# Visit a StringNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#476
sig { params(node: Prism::StringNode).void }
def visit_string_node(node); end
# Visit a SuperNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#479
sig { params(node: Prism::SuperNode).void }
def visit_super_node(node); end
# Visit a SymbolNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#482
sig { params(node: Prism::SymbolNode).void }
def visit_symbol_node(node); end
# Visit a TrueNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#485
sig { params(node: Prism::TrueNode).void }
def visit_true_node(node); end
# Visit a UndefNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#488
sig { params(node: Prism::UndefNode).void }
def visit_undef_node(node); end
# Visit a UnlessNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#491
sig { params(node: Prism::UnlessNode).void }
def visit_unless_node(node); end
# Visit a UntilNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#494
sig { params(node: Prism::UntilNode).void }
def visit_until_node(node); end
# Visit a WhenNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#497
sig { params(node: Prism::WhenNode).void }
def visit_when_node(node); end
# Visit a WhileNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#500
sig { params(node: Prism::WhileNode).void }
def visit_while_node(node); end
# Visit a XStringNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#503
sig { params(node: Prism::XStringNode).void }
def visit_x_string_node(node); end
# Visit a YieldNode node
#
- # source://prism//lib/prism/visitor.rb#29
+ # source://prism//lib/prism/visitor.rb#506
sig { params(node: Prism::YieldNode).void }
def visit_yield_node(node); end
end
@@ -41102,7 +41160,7 @@ class Prism::WhenNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#17900
+ # source://prism//lib/prism/node.rb#17923
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -41277,7 +41335,7 @@ class Prism::WhileNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#18032
+ # source://prism//lib/prism/node.rb#18055
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -41468,7 +41526,7 @@ class Prism::XStringNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#18190
+ # source://prism//lib/prism/node.rb#18210
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
@@ -41644,7 +41702,7 @@ class Prism::YieldNode < ::Prism::Node
# def child_nodes: () -> Array[nil | Node]
# def deconstruct: () -> Array[nil | Node]
#
- # source://prism//lib/prism/node.rb#18334
+ # source://prism//lib/prism/node.rb#18356
sig { override.returns(T::Array[T.nilable(Prism::Node)]) }
def deconstruct; end
diff --git a/sorbet/rbi/gems/public_suffix@6.0.2.rbi b/sorbet/rbi/gems/public_suffix@6.0.2.rbi
index 0c24f9dc..7487e14e 100644
--- a/sorbet/rbi/gems/public_suffix@6.0.2.rbi
+++ b/sorbet/rbi/gems/public_suffix@6.0.2.rbi
@@ -26,9 +26,9 @@ module PublicSuffix
#
# This method doesn't raise. Instead, it returns nil if the domain is not valid for whatever reason.
#
- # @param name [#to_s] The domain name or fully qualified domain name to parse.
- # @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
# @param ignore_private [Boolean]
+ # @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
+ # @param name [#to_s] The domain name or fully qualified domain name to parse.
# @return [String]
#
# source://public_suffix//lib/public_suffix.rb#140
@@ -41,30 +41,30 @@ module PublicSuffix
# Parses +name+ and returns the {PublicSuffix::Domain} instance.
#
- # @example Parse a valid domain
- # PublicSuffix.parse("google.com")
- # # => #
- # @example Parse a valid subdomain
- # PublicSuffix.parse("www.google.com")
- # # => #
# @example Parse a fully qualified domain
# PublicSuffix.parse("google.com.")
# # => #
# @example Parse a fully qualified domain (subdomain)
# PublicSuffix.parse("www.google.com.")
# # => #
+ # @example Parse a valid domain
+ # PublicSuffix.parse("google.com")
+ # # => #
+ # @example Parse a valid subdomain
+ # PublicSuffix.parse("www.google.com")
+ # # => #
+ # @example Parse an URL (not supported, only domains)
+ # PublicSuffix.parse("http://www.google.com")
+ # # => PublicSuffix::DomainInvalid: http://www.google.com is not expected to contain a scheme
# @example Parse an invalid (unlisted) domain
# PublicSuffix.parse("x.yz")
# # => #
# @example Parse an invalid (unlisted) domain with strict checking (without applying the default * rule)
# PublicSuffix.parse("x.yz", default_rule: nil)
# # => PublicSuffix::DomainInvalid: `x.yz` is not a valid domain
- # @example Parse an URL (not supported, only domains)
- # PublicSuffix.parse("http://www.google.com")
- # # => PublicSuffix::DomainInvalid: http://www.google.com is not expected to contain a scheme
- # @param name [#to_s] The domain name or fully qualified domain name to parse.
- # @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
# @param ignore_private [Boolean]
+ # @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
+ # @param name [#to_s] The domain name or fully qualified domain name to parse.
# @raise [PublicSuffix::DomainInvalid] If domain is not a valid domain.
# @raise [PublicSuffix::DomainNotAllowed] If a rule for +domain+ is found, but the rule doesn't allow +domain+.
# @return [PublicSuffix::Domain]
@@ -77,11 +77,13 @@ module PublicSuffix
# This method doesn't care whether domain is a domain or subdomain.
# The validation is performed using the default {PublicSuffix::List}.
#
- # @example Validate a valid domain
- # PublicSuffix.valid?("example.com")
+ # @example Check an URL (which is not a valid domain)
+ # PublicSuffix.valid?("http://www.example.com")
+ # # => false
+ # @example Validate a fully qualified domain
+ # PublicSuffix.valid?("google.com.")
# # => true
- # @example Validate a valid subdomain
- # PublicSuffix.valid?("www.example.com")
+ # PublicSuffix.valid?("www.google.com.")
# # => true
# @example Validate a not-listed domain
# PublicSuffix.valid?("example.tldnotlisted")
@@ -91,16 +93,14 @@ module PublicSuffix
# # => true
# PublicSuffix.valid?("example.tldnotlisted", default_rule: nil)
# # => false
- # @example Validate a fully qualified domain
- # PublicSuffix.valid?("google.com.")
+ # @example Validate a valid domain
+ # PublicSuffix.valid?("example.com")
# # => true
- # PublicSuffix.valid?("www.google.com.")
+ # @example Validate a valid subdomain
+ # PublicSuffix.valid?("www.example.com")
# # => true
- # @example Check an URL (which is not a valid domain)
- # PublicSuffix.valid?("http://www.example.com")
- # # => false
- # @param name [#to_s] The domain name or fully qualified domain name to validate.
# @param ignore_private [Boolean]
+ # @param name [#to_s] The domain name or fully qualified domain name to validate.
# @return [Boolean]
#
# source://public_suffix//lib/public_suffix.rb#123
@@ -120,12 +120,12 @@ PublicSuffix::DOT = T.let(T.unsafe(nil), String)
class PublicSuffix::Domain
# Creates and returns a new {PublicSuffix::Domain} instance.
#
- # @example Initialize with a TLD and SLD
- # PublicSuffix::Domain.new("com", "example")
- # # => #
# @example Initialize with a TLD
# PublicSuffix::Domain.new("com")
# # => #
+ # @example Initialize with a TLD and SLD
+ # PublicSuffix::Domain.new("com", "example")
+ # # => #
# @example Initialize with a TLD, SLD and TRD
# PublicSuffix::Domain.new("com", "example", "wwww")
# # => #
@@ -240,8 +240,8 @@ class PublicSuffix::Domain
# # => "www"
#
# @return [String]
- # @see #subdomain?
# @see #domain
+ # @see #subdomain?
#
# source://public_suffix//lib/public_suffix/domain.rb#169
def subdomain; end
@@ -401,7 +401,7 @@ class PublicSuffix::List
# @param rule [PublicSuffix::Rule::*] the rule to add to the list
# @return [self]
#
- # source://public_suffix//lib/public_suffix/list.rb#141
+ # source://public_suffix//lib/public_suffix/list.rb#145
def <<(rule); end
# Checks whether two lists are equal.
@@ -460,13 +460,13 @@ class PublicSuffix::List
# @param other [PublicSuffix::List] the List to compare
# @return [Boolean]
#
- # source://public_suffix//lib/public_suffix/list.rb#120
+ # source://public_suffix//lib/public_suffix/list.rb#125
def eql?(other); end
# Finds and returns the rule corresponding to the longest public suffix for the hostname.
#
- # @param name [#to_s] the hostname
# @param default [PublicSuffix::Rule::*] the default rule to return in case no rule matches
+ # @param name [#to_s] the hostname
# @return [PublicSuffix::Rule::*]
#
# source://public_suffix//lib/public_suffix/list.rb#174
@@ -507,8 +507,8 @@ class PublicSuffix::List
# matching rules, but different data structures may not be able to do it, and instead would
# return only the match. For this reason, you should rely on {#find}.
#
- # @param name [#to_s] the hostname
# @param ignore_private [Boolean]
+ # @param name [#to_s] the hostname
# @return [Array]
#
# source://public_suffix//lib/public_suffix/list.rb#199
@@ -674,8 +674,8 @@ end
class PublicSuffix::Rule::Base
# Initializes a new rule.
#
- # @param value [String]
# @param private [Boolean]
+ # @param value [String]
# @return [Base] a new instance of Base
#
# source://public_suffix//lib/public_suffix/rule.rb#126
@@ -704,7 +704,7 @@ class PublicSuffix::Rule::Base
# @return [Boolean] true if this rule and other are instances of the same class
# and has the same value, false otherwise.
#
- # source://public_suffix//lib/public_suffix/rule.rb#137
+ # source://public_suffix//lib/public_suffix/rule.rb#140
def eql?(other); end
# @return [String] the length of the rule
@@ -769,41 +769,62 @@ class PublicSuffix::Rule::Entry < ::Struct
# Returns the value of attribute length
#
# @return [Object] the current value of length
+ #
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def length; end
# Sets the attribute length
#
# @param value [Object] the value to set the attribute length to.
# @return [Object] the newly set value
+ #
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def length=(_); end
# Returns the value of attribute private
#
# @return [Object] the current value of private
+ #
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def private; end
# Sets the attribute private
#
# @param value [Object] the value to set the attribute private to.
# @return [Object] the newly set value
+ #
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def private=(_); end
# Returns the value of attribute type
#
# @return [Object] the current value of type
+ #
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def type; end
# Sets the attribute type
#
# @param value [Object] the value to set the attribute type to.
# @return [Object] the newly set value
+ #
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def type=(_); end
class << self
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def [](*_arg0); end
+
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def inspect; end
+
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def keyword_init?; end
+
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def members; end
+
+ # source://public_suffix//lib/public_suffix/rule.rb#25
def new(*_arg0); end
end
end
@@ -885,9 +906,9 @@ end
class PublicSuffix::Rule::Wildcard < ::PublicSuffix::Rule::Base
# Initializes a new rule.
#
- # @param value [String]
# @param length [Integer]
# @param private [Boolean]
+ # @param value [String]
# @return [Wildcard] a new instance of Wildcard
#
# source://public_suffix//lib/public_suffix/rule.rb#232
diff --git a/sorbet/rbi/gems/racc@1.8.1.rbi b/sorbet/rbi/gems/racc@1.8.1.rbi
index 09ae3af3..f3f00f0e 100644
--- a/sorbet/rbi/gems/racc@1.8.1.rbi
+++ b/sorbet/rbi/gems/racc@1.8.1.rbi
@@ -35,7 +35,7 @@ class Racc::Parser
# source://racc//lib/racc/parser.rb#329
def _racc_yyparse_rb(recv, mid, arg, c_debug); end
- # source://racc//lib/racc/parser.rb#262
+ # source://racc//lib/racc/parser.rb#261
def do_parse; end
# The method to fetch next token.
@@ -123,9 +123,17 @@ class Racc::Parser
# source://racc//lib/racc/parser.rb#542
def yyerror; end
- # source://racc//lib/racc/parser.rb#324
+ # source://racc//lib/racc/parser.rb#323
def yyparse(recv, mid); end
+ private
+
+ # source://racc//lib/racc/parser.rb#195
+ def _racc_do_parse_c(_arg0, _arg1); end
+
+ # source://racc//lib/racc/parser.rb#195
+ def _racc_yyparse_c(_arg0, _arg1, _arg2, _arg3); end
+
class << self
# source://racc//lib/racc/parser.rb#216
def racc_runtime_type; end
diff --git a/sorbet/rbi/gems/rainbow@3.1.1.rbi b/sorbet/rbi/gems/rainbow@3.1.1.rbi
index d02bc048..62c9183e 100644
--- a/sorbet/rbi/gems/rainbow@3.1.1.rbi
+++ b/sorbet/rbi/gems/rainbow@3.1.1.rbi
@@ -145,7 +145,7 @@ class Rainbow::NullPresenter < ::String
# source://rainbow//lib/rainbow/null_presenter.rb#9
def background(*_values); end
- # source://rainbow//lib/rainbow/null_presenter.rb#9
+ # source://rainbow//lib/rainbow/null_presenter.rb#95
def bg(*_values); end
# source://rainbow//lib/rainbow/null_presenter.rb#49
@@ -157,7 +157,7 @@ class Rainbow::NullPresenter < ::String
# source://rainbow//lib/rainbow/null_presenter.rb#65
def blue; end
- # source://rainbow//lib/rainbow/null_presenter.rb#17
+ # source://rainbow//lib/rainbow/null_presenter.rb#96
def bold; end
# source://rainbow//lib/rainbow/null_presenter.rb#17
@@ -172,16 +172,16 @@ class Rainbow::NullPresenter < ::String
# source://rainbow//lib/rainbow/null_presenter.rb#73
def cyan; end
- # source://rainbow//lib/rainbow/null_presenter.rb#21
+ # source://rainbow//lib/rainbow/null_presenter.rb#97
def dark; end
# source://rainbow//lib/rainbow/null_presenter.rb#21
def faint; end
- # source://rainbow//lib/rainbow/null_presenter.rb#5
+ # source://rainbow//lib/rainbow/null_presenter.rb#94
def fg(*_values); end
- # source://rainbow//lib/rainbow/null_presenter.rb#5
+ # source://rainbow//lib/rainbow/null_presenter.rb#93
def foreground(*_values); end
# source://rainbow//lib/rainbow/null_presenter.rb#57
@@ -208,7 +208,7 @@ class Rainbow::NullPresenter < ::String
# source://rainbow//lib/rainbow/null_presenter.rb#13
def reset; end
- # source://rainbow//lib/rainbow/null_presenter.rb#45
+ # source://rainbow//lib/rainbow/null_presenter.rb#98
def strike; end
# source://rainbow//lib/rainbow/null_presenter.rb#29
@@ -237,7 +237,7 @@ class Rainbow::Presenter < ::String
# Sets background color of this text.
#
- # source://rainbow//lib/rainbow/presenter.rb#30
+ # source://rainbow//lib/rainbow/presenter.rb#34
def bg(*values); end
# source://rainbow//lib/rainbow/presenter.rb#92
@@ -254,7 +254,7 @@ class Rainbow::Presenter < ::String
# Turns on bright/bold for this text.
#
- # source://rainbow//lib/rainbow/presenter.rb#45
+ # source://rainbow//lib/rainbow/presenter.rb#49
def bold; end
# Turns on bright/bold for this text.
@@ -276,7 +276,7 @@ class Rainbow::Presenter < ::String
# Turns on faint/dark for this text (not well supported by terminal
# emulators).
#
- # source://rainbow//lib/rainbow/presenter.rb#53
+ # source://rainbow//lib/rainbow/presenter.rb#57
def dark; end
# Turns on faint/dark for this text (not well supported by terminal
@@ -287,12 +287,12 @@ class Rainbow::Presenter < ::String
# Sets color of this text.
#
- # source://rainbow//lib/rainbow/presenter.rb#22
+ # source://rainbow//lib/rainbow/presenter.rb#27
def fg(*values); end
# Sets color of this text.
#
- # source://rainbow//lib/rainbow/presenter.rb#22
+ # source://rainbow//lib/rainbow/presenter.rb#26
def foreground(*values); end
# source://rainbow//lib/rainbow/presenter.rb#100
@@ -334,7 +334,7 @@ class Rainbow::Presenter < ::String
# source://rainbow//lib/rainbow/presenter.rb#40
def reset; end
- # source://rainbow//lib/rainbow/presenter.rb#86
+ # source://rainbow//lib/rainbow/presenter.rb#90
def strike; end
# Turns on underline decoration for this text.
diff --git a/sorbet/rbi/gems/rake@13.3.0.rbi b/sorbet/rbi/gems/rake@13.3.0.rbi
index 820a2fb4..acb296f0 100644
--- a/sorbet/rbi/gems/rake@13.3.0.rbi
+++ b/sorbet/rbi/gems/rake@13.3.0.rbi
@@ -559,34 +559,34 @@ module Rake::DSL
private
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def cd(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def chdir(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def chmod(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def chmod_R(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def chown(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def chown_R(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def copy(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def cp(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def cp_lr(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def cp_r(*args, **options, &block); end
# Describes the next rake task. Duplicate descriptions are discarded.
@@ -650,37 +650,37 @@ module Rake::DSL
# source://rake//lib/rake/dsl_definition.rb#184
def import(*fns); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def install(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def link(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def ln(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def ln_s(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def ln_sf(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def ln_sr(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def makedirs(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def mkdir(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def mkdir_p(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def mkpath(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def move(*args, **options, &block); end
# Declare a task that performs its prerequisites in
@@ -694,7 +694,7 @@ module Rake::DSL
# source://rake//lib/rake/dsl_definition.rb#113
def multitask(*args, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def mv(*args, **options, &block); end
# Create a new rake namespace and use it for evaluating the given
@@ -719,37 +719,37 @@ module Rake::DSL
# source://rake//lib/rake/dsl_definition.rb#136
def namespace(name = T.unsafe(nil), &block); end
- # source://rake//lib/rake/file_utils_ext.rb#77
+ # source://rake//lib/rake/dsl_definition.rb#24
def nowrite(value = T.unsafe(nil)); end
- # source://rake//lib/rake/file_utils_ext.rb#123
+ # source://rake//lib/rake/dsl_definition.rb#24
def rake_check_options(options, *optdecl); end
- # source://rake//lib/rake/file_utils_ext.rb#116
+ # source://rake//lib/rake/dsl_definition.rb#24
def rake_output_message(message); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def remove(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def rm(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def rm_f(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def rm_r(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def rm_rf(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def rmdir(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def rmtree(*args, **options, &block); end
- # source://rake//lib/rake/file_utils.rb#98
+ # source://rake//lib/rake/dsl_definition.rb#23
def ruby(*args, **options, &block); end
# Declare a rule for auto-tasks.
@@ -762,19 +762,19 @@ module Rake::DSL
# source://rake//lib/rake/dsl_definition.rb#152
def rule(*args, &block); end
- # source://rake//lib/rake/file_utils.rb#110
+ # source://rake//lib/rake/dsl_definition.rb#23
def safe_ln(*args, **options); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def safe_unlink(*args, **options, &block); end
- # source://rake//lib/rake/file_utils.rb#43
+ # source://rake//lib/rake/dsl_definition.rb#23
def sh(*cmd, &block); end
- # source://rake//lib/rake/file_utils.rb#126
+ # source://rake//lib/rake/dsl_definition.rb#23
def split_all(path); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def symlink(*args, **options, &block); end
# :call-seq:
@@ -811,13 +811,13 @@ module Rake::DSL
# source://rake//lib/rake/dsl_definition.rb#59
def task(*args, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/dsl_definition.rb#24
def touch(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#53
+ # source://rake//lib/rake/dsl_definition.rb#24
def verbose(value = T.unsafe(nil)); end
- # source://rake//lib/rake/file_utils_ext.rb#107
+ # source://rake//lib/rake/dsl_definition.rb#24
def when_writing(msg = T.unsafe(nil)); end
end
@@ -857,7 +857,10 @@ class Rake::EarlyTime
class << self
private
+ # source://rake//lib/rake/early_time.rb#7
def allocate; end
+
+ # source://rake//lib/rake/early_time.rb#7
def new(*_arg0); end
end
end
@@ -918,7 +921,7 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#99
def initialize(*patterns); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def &(*args, &block); end
# Redefine * to return either a string or a new file list.
@@ -926,16 +929,16 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#193
def *(other); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def +(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def -(*args, &block); end
# source://rake//lib/rake/file_list.rb#203
def <<(obj); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def <=>(*args, &block); end
# A FileList is equal through array equality.
@@ -943,10 +946,10 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#171
def ==(array); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def [](*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def []=(*args, &block); end
# Add file names defined by glob patterns to the file list. If an array
@@ -956,40 +959,40 @@ class Rake::FileList
# file_list.include("*.java", "*.cfg")
# file_list.include %w( math.c lib.h *.o )
#
- # source://rake//lib/rake/file_list.rb#116
+ # source://rake//lib/rake/file_list.rb#128
def add(*filenames); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def all?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def any?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def append(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def assoc(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def at(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def bsearch(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def bsearch_index(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def chain(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def chunk(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def chunk_while(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def clear(*args, &block); end
# Clear all the exclude patterns so that we exclude nothing.
@@ -997,85 +1000,79 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#164
def clear_exclude; end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def collect(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def collect!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def collect_concat(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def combination(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def compact(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def compact!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def compact_blank(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def compact_blank!(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def concat(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def count(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def cycle(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def deconstruct(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def delete(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def delete_at(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def delete_if(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def detect(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def difference(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def dig(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def drop(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def drop_while(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each_cons(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each_entry(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each_index(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each_slice(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each_with_index(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def each_with_object(*args, &block); end
# Grep each of the files in the filelist using the given pattern. If a
@@ -1087,10 +1084,10 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#293
def egrep(pattern, *options); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def empty?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def entries(*args, &block); end
# Register a list of file name patterns that should be excluded from the
@@ -1116,9 +1113,6 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#150
def exclude(*patterns, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def exclude?(*args, &block); end
-
# Should the given file name be excluded from the list?
#
# NOTE: This method was formerly named "exclude?", but Rails
@@ -1132,9 +1126,6 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#364
def excluded_from_list?(fn); end
- # source://rake//lib/rake/file_list.rb#77
- def excluding(*args, &block); end
-
# Return a new file list that only contains file names from the current
# file list that exist on the file system.
#
@@ -1159,70 +1150,52 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#284
def ext(newext = T.unsafe(nil)); end
- # source://rake//lib/rake/file_list.rb#77
- def extract!(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def extract_options!(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def fetch(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def fetch_values(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def fifth(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def fill(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def filter(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def filter!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def filter_map(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def find(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def find_all(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def find_index(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def first(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def flat_map(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def flatten(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def flatten!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def forty_two(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def fourth(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def from(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def grep(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def grep_v(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def group_by(*args, &block); end
# Return a new FileList with the results of running +gsub+ against each
@@ -1243,15 +1216,6 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#391
def import(array); end
- # source://rake//lib/rake/file_list.rb#77
- def in_groups(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def in_groups_of(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def in_order_of(*args, &block); end
-
# Add file names defined by glob patterns to the file list. If an array
# is given, add each element of the array.
#
@@ -1262,37 +1226,25 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#116
def include(*filenames); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def include?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def including(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def index(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def index_by(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def index_with(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def inject(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def inquiry(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def insert(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def inspect(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def intersect?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def intersection(*args, &block); end
# Lie about our class.
@@ -1302,71 +1254,62 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#187
def is_a?(klass); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def join(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def keep_if(*args, &block); end
# Lie about our class.
#
# @return [Boolean]
#
- # source://rake//lib/rake/file_list.rb#187
+ # source://rake//lib/rake/file_list.rb#190
def kind_of?(klass); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def last(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def lazy(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def length(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def many?(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def map(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def map!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def max(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def max_by(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def maximum(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def member?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def min(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def min_by(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def minimum(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def minmax(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def minmax_by(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def none?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def one?(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def pack(*args, &block); end
# FileList version of partition. Needed because the nested arrays should
@@ -1382,49 +1325,40 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#272
def pathmap(spec = T.unsafe(nil), &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def permutation(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def pick(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def place(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def pluck(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def pop(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def prepend(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def product(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def push(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def rassoc(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def reduce(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def reject(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def reject!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def repeated_combination(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def repeated_permutation(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def replace(*args, &block); end
# Resolve all the pending adds now.
@@ -1432,87 +1366,75 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#210
def resolve; end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def reverse(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def reverse!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def reverse_each(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def rindex(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def rotate(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def rotate!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def sample(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def second(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def second_to_last(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def select(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def select!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def shelljoin(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def shift(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def shuffle(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def shuffle!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def size(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def slice(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def slice!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def slice_after(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def slice_before(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def slice_when(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def sole(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def sort(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def sort!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def sort_by(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def sort_by!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def split(*args, &block); end
-
# Return a new FileList with the results of running +sub+ against each
# element of the original list.
#
@@ -1527,27 +1449,18 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#258
def sub!(pat, rep); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def sum(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def take(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def take_while(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def tally(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def third(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def third_to_last(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def to(*args, &block); end
-
# Return the internal array object.
#
# source://rake//lib/rake/file_list.rb#176
@@ -1558,13 +1471,7 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#182
def to_ary; end
- # source://rake//lib/rake/file_list.rb#77
- def to_formatted_s(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
- def to_fs(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def to_h(*args, &block); end
# Convert a FileList to a string by joining all elements with a space.
@@ -1572,40 +1479,31 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#344
def to_s; end
- # source://rake//lib/rake/file_list.rb#77
- def to_sentence(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def to_set(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def to_xml(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def transpose(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def union(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def uniq(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def uniq!(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def unshift(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def values_at(*args, &block); end
- # source://rake//lib/rake/file_list.rb#77
- def without(*args, &block); end
-
- # source://rake//lib/rake/file_list.rb#77
+ # source://rake//lib/rake/file_list.rb#76
def zip(*args, &block); end
- # source://rake//lib/rake/file_list.rb#68
+ # source://rake//lib/rake/file_list.rb#67
def |(*args, &block); end
private
@@ -1723,70 +1621,70 @@ module Rake::FileUtilsExt
extend ::FileUtils
extend ::Rake::FileUtilsExt
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def cd(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def chdir(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def chmod(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def chmod_R(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def chown(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def chown_R(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def copy(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def cp(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def cp_lr(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def cp_r(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def install(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def link(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def ln(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def ln_s(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def ln_sf(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def ln_sr(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def makedirs(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def mkdir(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def mkdir_p(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def mkpath(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def move(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def mv(*args, **options, &block); end
# Get/set the nowrite flag controlling output from the FileUtils
@@ -1818,34 +1716,34 @@ module Rake::FileUtilsExt
# source://rake//lib/rake/file_utils_ext.rb#116
def rake_output_message(message); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def remove(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def rm(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def rm_f(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def rm_r(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def rm_rf(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def rmdir(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def rmtree(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def safe_unlink(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def symlink(*args, **options, &block); end
- # source://rake//lib/rake/file_utils_ext.rb#34
+ # source://rake//lib/rake/file_utils_ext.rb#33
def touch(*args, **options, &block); end
# Get/set the verbose flag controlling output from the FileUtils
@@ -2005,7 +1903,10 @@ class Rake::LateTime
class << self
private
+ # source://rake//lib/rake/late_time.rb#6
def allocate; end
+
+ # source://rake//lib/rake/late_time.rb#6
def new(*_arg0); end
end
end
@@ -2500,7 +2401,7 @@ class Rake::Task
# List of prerequisites for a task.
#
- # source://rake//lib/rake/task.rb#17
+ # source://rake//lib/rake/task.rb#18
def prereqs; end
# List of prerequisite tasks
@@ -2710,7 +2611,7 @@ class Rake::TaskArguments
#
# @return [Boolean]
#
- # source://rake//lib/rake/task_arguments.rb#88
+ # source://rake//lib/rake/task_arguments.rb#91
def key?(key); end
# Returns the value of the given argument via method_missing
@@ -2955,16 +2856,16 @@ class Rake::ThreadHistoryDisplay
private
- # source://rake//lib/rake/private_reader.rb#15
+ # source://rake//lib/rake/thread_history_display.rb#9
def items; end
# source://rake//lib/rake/thread_history_display.rb#35
def rename(hash, key, renames); end
- # source://rake//lib/rake/private_reader.rb#15
+ # source://rake//lib/rake/thread_history_display.rb#9
def stats; end
- # source://rake//lib/rake/private_reader.rb#15
+ # source://rake//lib/rake/thread_history_display.rb#9
def threads; end
end
diff --git a/sorbet/rbi/gems/rbi@0.3.6.rbi b/sorbet/rbi/gems/rbi@0.3.9.rbi
similarity index 70%
rename from sorbet/rbi/gems/rbi@0.3.6.rbi
rename to sorbet/rbi/gems/rbi@0.3.9.rbi
index 94b64cbf..639eaee8 100644
--- a/sorbet/rbi/gems/rbi@0.3.6.rbi
+++ b/sorbet/rbi/gems/rbi@0.3.9.rbi
@@ -9,53 +9,43 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rbi` gem.
-# Please instead update this file by running `spoom srb sigs export`.
+# Please instead update this file by running `bundle exec spoom srb sigs export`.
# source://rbi//lib/rbi.rb#7
module RBI; end
-# source://rbi//lib/rbi/model.rb#783
+# source://rbi//lib/rbi/model.rb#833
class RBI::Arg < ::RBI::Node
- # : (String value, ?loc: Loc?) -> void
- #
# @return [Arg] a new instance of Arg
#
- # source://rbi//lib/rbi/model.rb#788
+ # source://rbi//lib/rbi/model.rb#838
sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void }
def initialize(value, loc: T.unsafe(nil)); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#794
+ # source://rbi//lib/rbi/model.rb#844
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#799
+ # source://rbi//lib/rbi/model.rb#849
sig { returns(::String) }
def to_s; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#785
+ # source://rbi//lib/rbi/model.rb#835
sig { returns(::String) }
def value; end
end
# @abstract
#
-# source://rbi//lib/rbi/model.rb#292
+# source://rbi//lib/rbi/model.rb#298
class RBI::Attr < ::RBI::NodeWithComments
include ::RBI::Indexable
abstract!
- # : (Symbol name, Array[Symbol] names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [Attr] a new instance of Attr
#
- # source://rbi//lib/rbi/model.rb#303
+ # source://rbi//lib/rbi/model.rb#316
sig do
params(
name: ::Symbol,
@@ -68,69 +58,51 @@ class RBI::Attr < ::RBI::NodeWithComments
end
def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#403
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#420
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[Method]
- #
# @abstract
+ # @raise [NotImplementedError]
#
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#59
sig { abstract.returns(T::Array[::RBI::Method]) }
def convert_to_methods; end
- # : -> Array[String]
- #
# @abstract
+ # @raise [NotImplementedError]
#
- # source://rbi//lib/rbi/model.rb#312
+ # source://rbi//lib/rbi/model.rb#325
sig { abstract.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#104
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : (Node other) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#412
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#429
sig { override.params(other: ::RBI::Node).void }
def merge_with(other); end
- # : Array[Symbol]
- #
- # source://rbi//lib/rbi/model.rb#294
+ # source://rbi//lib/rbi/model.rb#300
sig { returns(T::Array[::Symbol]) }
def names; end
- # : Array[Sig]
- #
- # source://rbi//lib/rbi/model.rb#300
+ # source://rbi//lib/rbi/model.rb#306
sig { returns(T::Array[::RBI::Sig]) }
def sigs; end
- # : Visibility
- #
- # source://rbi//lib/rbi/model.rb#297
+ # source://rbi//lib/rbi/model.rb#303
sig { returns(::RBI::Visibility) }
def visibility; end
- # : Visibility
- #
- # source://rbi//lib/rbi/model.rb#297
+ # source://rbi//lib/rbi/model.rb#303
def visibility=(_arg0); end
private
- # : (String name, Sig? sig, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method
- #
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#80
sig do
params(
@@ -143,9 +115,7 @@ class RBI::Attr < ::RBI::NodeWithComments
end
def create_getter_method(name, sig, visibility, loc, comments); end
- # : (String name, Sig? sig, (Type | String)? attribute_type, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method
- #
- # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#92
+ # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#99
sig do
params(
name: ::String,
@@ -158,8 +128,6 @@ class RBI::Attr < ::RBI::NodeWithComments
end
def create_setter_method(name, sig, attribute_type, visibility, loc, comments); end
- # : -> [Sig?, (Type | String)?]
- #
# @raise [UnexpectedMultipleSigsError]
#
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#65
@@ -167,13 +135,11 @@ class RBI::Attr < ::RBI::NodeWithComments
def parse_sig; end
end
-# source://rbi//lib/rbi/model.rb#315
+# source://rbi//lib/rbi/model.rb#328
class RBI::AttrAccessor < ::RBI::Attr
- # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrAccessor node) -> void } -> void
- #
# @return [AttrAccessor] a new instance of AttrAccessor
#
- # source://rbi//lib/rbi/model.rb#317
+ # source://rbi//lib/rbi/model.rb#337
sig do
params(
name: ::Symbol,
@@ -187,40 +153,30 @@ class RBI::AttrAccessor < ::RBI::Attr
end
def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#441
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#458
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[Method]
- #
- # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#123
+ # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#130
sig { override.returns(T::Array[::RBI::Method]) }
def convert_to_methods; end
- # : -> Array[String]
- #
- # source://rbi//lib/rbi/model.rb#324
+ # source://rbi//lib/rbi/model.rb#344
sig { override.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#331
+ # source://rbi//lib/rbi/model.rb#351
sig { override.returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#337
+# source://rbi//lib/rbi/model.rb#357
class RBI::AttrReader < ::RBI::Attr
- # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrReader node) -> void } -> void
- #
# @return [AttrReader] a new instance of AttrReader
#
- # source://rbi//lib/rbi/model.rb#339
+ # source://rbi//lib/rbi/model.rb#366
sig do
params(
name: ::Symbol,
@@ -234,40 +190,30 @@ class RBI::AttrReader < ::RBI::Attr
end
def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#425
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#442
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[Method]
- #
- # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#138
+ # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#145
sig { override.returns(T::Array[::RBI::Method]) }
def convert_to_methods; end
- # : -> Array[String]
- #
- # source://rbi//lib/rbi/model.rb#346
+ # source://rbi//lib/rbi/model.rb#373
sig { override.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#353
+ # source://rbi//lib/rbi/model.rb#380
sig { override.returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#359
+# source://rbi//lib/rbi/model.rb#386
class RBI::AttrWriter < ::RBI::Attr
- # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrWriter node) -> void } -> void
- #
# @return [AttrWriter] a new instance of AttrWriter
#
- # source://rbi//lib/rbi/model.rb#361
+ # source://rbi//lib/rbi/model.rb#395
sig do
params(
name: ::Symbol,
@@ -281,29 +227,21 @@ class RBI::AttrWriter < ::RBI::Attr
end
def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#433
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#450
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[Method]
- #
- # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#148
+ # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#155
sig { override.returns(T::Array[::RBI::Method]) }
def convert_to_methods; end
- # : -> Array[String]
- #
- # source://rbi//lib/rbi/model.rb#368
+ # source://rbi//lib/rbi/model.rb#402
sig { override.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#375
+ # source://rbi//lib/rbi/model.rb#409
sig { override.returns(::String) }
def to_s; end
end
@@ -312,8 +250,6 @@ end
#
# source://rbi//lib/rbi/model.rb#70
class RBI::BlankLine < ::RBI::Comment
- # : (?loc: Loc?) -> void
- #
# @return [BlankLine] a new instance of BlankLine
#
# source://rbi//lib/rbi/model.rb#72
@@ -321,13 +257,11 @@ class RBI::BlankLine < ::RBI::Comment
def initialize(loc: T.unsafe(nil)); end
end
-# source://rbi//lib/rbi/model.rb#629
+# source://rbi//lib/rbi/model.rb#679
class RBI::BlockParam < ::RBI::Param
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (BlockParam node) -> void } -> void
- #
# @return [BlockParam] a new instance of BlockParam
#
- # source://rbi//lib/rbi/model.rb#631
+ # source://rbi//lib/rbi/model.rb#681
sig do
params(
name: ::String,
@@ -338,23 +272,17 @@ class RBI::BlockParam < ::RBI::Param
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#643
+ # source://rbi//lib/rbi/model.rb#693
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#638
+ # source://rbi//lib/rbi/model.rb#688
sig { override.returns(::String) }
def to_s; end
end
# source://rbi//lib/rbi/model.rb#195
class RBI::Class < ::RBI::Scope
- # : (String name, ?superclass_name: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Class node) -> void } -> void
- #
# @return [Class] a new instance of Class
#
# source://rbi//lib/rbi/model.rb#203
@@ -369,67 +297,47 @@ class RBI::Class < ::RBI::Scope
end
def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#371
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#388
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> String
- #
# source://rbi//lib/rbi/model.rb#212
sig { override.returns(::String) }
def fully_qualified_name; end
- # : String
- #
# source://rbi//lib/rbi/model.rb#197
sig { returns(::String) }
def name; end
- # : String
- #
# source://rbi//lib/rbi/model.rb#197
def name=(_arg0); end
- # : String?
- #
# source://rbi//lib/rbi/model.rb#200
sig { returns(T.nilable(::String)) }
def superclass_name; end
- # : String?
- #
# source://rbi//lib/rbi/model.rb#200
def superclass_name=(_arg0); end
end
# source://rbi//lib/rbi/model.rb#51
class RBI::Comment < ::RBI::Node
- # : (String text, ?loc: Loc?) -> void
- #
# @return [Comment] a new instance of Comment
#
# source://rbi//lib/rbi/model.rb#56
sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void }
def initialize(text, loc: T.unsafe(nil)); end
- # : (Object other) -> bool
- #
# source://rbi//lib/rbi/model.rb#62
sig { params(other: ::Object).returns(T::Boolean) }
def ==(other); end
- # : String
- #
# source://rbi//lib/rbi/model.rb#53
sig { returns(::String) }
def text; end
- # : String
- #
# source://rbi//lib/rbi/model.rb#53
def text=(_arg0); end
end
@@ -449,50 +357,38 @@ end
# end
# ~~~
#
-# source://rbi//lib/rbi/rewriters/merge_trees.rb#555
+# source://rbi//lib/rbi/rewriters/merge_trees.rb#572
class RBI::ConflictTree < ::RBI::Tree
- # : (?left_name: String, ?right_name: String) -> void
- #
# @return [ConflictTree] a new instance of ConflictTree
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#563
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#580
sig { params(left_name: ::String, right_name: ::String).void }
def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end
- # : Tree
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#557
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#574
sig { returns(::RBI::Tree) }
def left; end
- # : String
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#560
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#577
sig { returns(::String) }
def left_name; end
- # : Tree
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#557
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#574
def right; end
- # : String
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#560
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#577
def right_name; end
end
# Consts
#
-# source://rbi//lib/rbi/model.rb#263
+# source://rbi//lib/rbi/model.rb#269
class RBI::Const < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Const node) -> void } -> void
- #
# @return [Const] a new instance of Const
#
- # source://rbi//lib/rbi/model.rb#268
+ # source://rbi//lib/rbi/model.rb#274
sig do
params(
name: ::String,
@@ -504,59 +400,45 @@ class RBI::Const < ::RBI::NodeWithComments
end
def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#395
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#412
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#276
+ # source://rbi//lib/rbi/model.rb#282
sig { returns(::String) }
def fully_qualified_name; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#94
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#265
+ # source://rbi//lib/rbi/model.rb#271
sig { returns(::String) }
def name; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#284
+ # source://rbi//lib/rbi/model.rb#290
sig { override.returns(::String) }
def to_s; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#265
+ # source://rbi//lib/rbi/model.rb#271
def value; end
end
-# source://rbi//lib/rbi/rewriters/merge_trees.rb#341
+# source://rbi//lib/rbi/rewriters/merge_trees.rb#358
class RBI::DuplicateNodeError < ::RBI::Error; end
# source://rbi//lib/rbi.rb#8
class RBI::Error < ::StandardError; end
-# source://rbi//lib/rbi/model.rb#676
+# source://rbi//lib/rbi/model.rb#726
class RBI::Extend < ::RBI::Mixin
include ::RBI::Indexable
- # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Extend node) -> void } -> void
- #
# @return [Extend] a new instance of Extend
#
- # source://rbi//lib/rbi/model.rb#678
+ # source://rbi//lib/rbi/model.rb#728
sig do
params(
name: ::String,
@@ -568,31 +450,23 @@ class RBI::Extend < ::RBI::Mixin
end
def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#488
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#505
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#134
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#685
+ # source://rbi//lib/rbi/model.rb#735
sig { override.returns(::String) }
def to_s; end
end
# source://rbi//lib/rbi/model.rb#131
class RBI::File
- # : (?strictness: String?, ?comments: Array[Comment]) ?{ (File file) -> void } -> void
- #
# @return [File] a new instance of File
#
# source://rbi//lib/rbi/model.rb#142
@@ -605,34 +479,24 @@ class RBI::File
end
def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node node) -> void
- #
# source://rbi//lib/rbi/model.rb#150
sig { params(node: ::RBI::Node).void }
def <<(node); end
- # : Array[Comment]
- #
# source://rbi//lib/rbi/model.rb#139
sig { returns(T::Array[::RBI::Comment]) }
def comments; end
- # : Array[Comment]
- #
# source://rbi//lib/rbi/model.rb#139
def comments=(_arg0); end
- # : -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/model.rb#155
sig { returns(T::Boolean) }
def empty?; end
- # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void
- #
- # source://rbi//lib/rbi/printer.rb#817
+ # source://rbi//lib/rbi/printer.rb#819
sig do
params(
out: T.any(::IO, ::StringIO),
@@ -643,54 +507,38 @@ class RBI::File
end
def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
- # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1210
+ # source://rbi//lib/rbi/rbs_printer.rb#1231
sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void }
def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end
- # : (?indent: Integer, ?print_locs: bool) -> String
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1216
+ # source://rbi//lib/rbi/rbs_printer.rb#1237
sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) }
def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end
- # : Tree
- #
# source://rbi//lib/rbi/model.rb#133
sig { returns(::RBI::Tree) }
def root; end
- # : Tree
- #
# source://rbi//lib/rbi/model.rb#133
def root=(_arg0); end
- # : String?
- #
# source://rbi//lib/rbi/model.rb#136
sig { returns(T.nilable(::String)) }
def strictness; end
- # : String?
- #
# source://rbi//lib/rbi/model.rb#136
def strictness=(_arg0); end
- # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String
- #
- # source://rbi//lib/rbi/printer.rb#823
+ # source://rbi//lib/rbi/printer.rb#825
sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) }
def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
end
# source://rbi//lib/rbi/formatter.rb#5
class RBI::Formatter
- # : (?add_sig_templates: bool, ?group_nodes: bool, ?max_line_length: Integer?, ?nest_singleton_methods: bool, ?nest_non_public_members: bool, ?sort_nodes: bool, ?replace_attributes_with_methods: bool) -> void
- #
# @return [Formatter] a new instance of Formatter
#
- # source://rbi//lib/rbi/formatter.rb#10
+ # source://rbi//lib/rbi/formatter.rb#18
sig do
params(
add_sig_templates: T::Boolean,
@@ -704,48 +552,34 @@ class RBI::Formatter
end
def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_members: T.unsafe(nil), sort_nodes: T.unsafe(nil), replace_attributes_with_methods: T.unsafe(nil)); end
- # : (RBI::File file) -> void
- #
- # source://rbi//lib/rbi/formatter.rb#35
+ # source://rbi//lib/rbi/formatter.rb#43
sig { params(file: ::RBI::File).void }
def format_file(file); end
- # : (RBI::Tree tree) -> void
- #
- # source://rbi//lib/rbi/formatter.rb#40
+ # source://rbi//lib/rbi/formatter.rb#48
sig { params(tree: ::RBI::Tree).void }
def format_tree(tree); end
- # : Integer?
- #
# source://rbi//lib/rbi/formatter.rb#7
sig { returns(T.nilable(::Integer)) }
def max_line_length; end
- # : Integer?
- #
# source://rbi//lib/rbi/formatter.rb#7
def max_line_length=(_arg0); end
- # : (RBI::File file) -> String
- #
- # source://rbi//lib/rbi/formatter.rb#29
+ # source://rbi//lib/rbi/formatter.rb#37
sig { params(file: ::RBI::File).returns(::String) }
def print_file(file); end
end
# source://rbi//lib/rbi/rewriters/group_nodes.rb#84
class RBI::Group < ::RBI::Tree
- # : (Kind kind) -> void
- #
# @return [Group] a new instance of Group
#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#89
sig { params(kind: ::RBI::Group::Kind).void }
def initialize(kind); end
- # : Kind
- #
# source://rbi//lib/rbi/rewriters/group_nodes.rb#86
sig { returns(::RBI::Group::Kind) }
def kind; end
@@ -756,72 +590,47 @@ class RBI::Group::Kind
class << self
private
+ # source://rbi//lib/rbi/rewriters/group_nodes.rb#109
def new(*_arg0); end
end
end
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#101
RBI::Group::Kind::Attrs = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#107
RBI::Group::Kind::Consts = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#97
RBI::Group::Kind::Helpers = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#104
RBI::Group::Kind::Inits = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#105
RBI::Group::Kind::Methods = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#99
RBI::Group::Kind::MixesInClassMethods = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#95
RBI::Group::Kind::Mixins = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#96
RBI::Group::Kind::RequiredAncestors = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#100
RBI::Group::Kind::Sends = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#106
RBI::Group::Kind::SingletonClasses = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#103
RBI::Group::Kind::TEnums = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#102
RBI::Group::Kind::TStructFields = T.let(T.unsafe(nil), RBI::Group::Kind)
-# : Kind
-#
# source://rbi//lib/rbi/rewriters/group_nodes.rb#98
RBI::Group::Kind::TypeMembers = T.let(T.unsafe(nil), RBI::Group::Kind)
@@ -830,15 +639,13 @@ class RBI::GroupNodesError < ::RBI::Error; end
# Sorbet's misc.
#
-# source://rbi//lib/rbi/model.rb#1045
+# source://rbi//lib/rbi/model.rb#1141
class RBI::Helper < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Helper node) -> void } -> void
- #
# @return [Helper] a new instance of Helper
#
- # source://rbi//lib/rbi/model.rb#1050
+ # source://rbi//lib/rbi/model.rb#1146
sig do
params(
name: ::String,
@@ -849,42 +656,32 @@ class RBI::Helper < ::RBI::NodeWithComments
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#504
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#521
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#164
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#1047
+ # source://rbi//lib/rbi/model.rb#1143
sig { returns(::String) }
def name; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1058
+ # source://rbi//lib/rbi/model.rb#1154
sig { override.returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#662
+# source://rbi//lib/rbi/model.rb#712
class RBI::Include < ::RBI::Mixin
include ::RBI::Indexable
- # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Include node) -> void } -> void
- #
# @return [Include] a new instance of Include
#
- # source://rbi//lib/rbi/model.rb#664
+ # source://rbi//lib/rbi/model.rb#714
sig do
params(
name: ::String,
@@ -896,72 +693,52 @@ class RBI::Include < ::RBI::Mixin
end
def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#480
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#497
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#124
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#671
+ # source://rbi//lib/rbi/model.rb#721
sig { override.returns(::String) }
def to_s; end
end
# source://rbi//lib/rbi/index.rb#5
class RBI::Index < ::RBI::Visitor
- # : -> void
- #
# @return [Index] a new instance of Index
#
# source://rbi//lib/rbi/index.rb#16
sig { void }
def initialize; end
- # : (String id) -> Array[Node]
- #
# source://rbi//lib/rbi/index.rb#27
sig { params(id: ::String).returns(T::Array[::RBI::Node]) }
def [](id); end
- # : (*Node nodes) -> void
- #
# source://rbi//lib/rbi/index.rb#32
sig { params(nodes: ::RBI::Node).void }
def index(*nodes); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#22
sig { returns(T::Array[::String]) }
def keys; end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/index.rb#38
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : ((Indexable & Node) node) -> void
- #
# source://rbi//lib/rbi/index.rb#55
sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void }
def index_node(node); end
class << self
- # : (*Node node) -> Index
- #
# source://rbi//lib/rbi/index.rb#8
sig { params(node: ::RBI::Node).returns(::RBI::Index) }
def index(*node); end
@@ -978,51 +755,41 @@ module RBI::Indexable
#
# Some nodes can have multiple ids, for example an attribute accessor matches the ID of the
# getter and the setter.
- # : -> Array[String]
#
# @abstract
+ # @raise [NotImplementedError]
#
# source://rbi//lib/rbi/index.rb#76
sig { abstract.returns(T::Array[::String]) }
def index_ids; end
end
-# source://rbi//lib/rbi/model.rb#804
+# source://rbi//lib/rbi/model.rb#854
class RBI::KwArg < ::RBI::Arg
- # : (String keyword, String value, ?loc: Loc?) -> void
- #
# @return [KwArg] a new instance of KwArg
#
- # source://rbi//lib/rbi/model.rb#809
+ # source://rbi//lib/rbi/model.rb#859
sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void }
def initialize(keyword, value, loc: T.unsafe(nil)); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#815
+ # source://rbi//lib/rbi/model.rb#865
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#806
+ # source://rbi//lib/rbi/model.rb#856
sig { returns(::String) }
def keyword; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#820
+ # source://rbi//lib/rbi/model.rb#870
sig { returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#587
+# source://rbi//lib/rbi/model.rb#637
class RBI::KwOptParam < ::RBI::Param
- # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwOptParam node) -> void } -> void
- #
# @return [KwOptParam] a new instance of KwOptParam
#
- # source://rbi//lib/rbi/model.rb#592
+ # source://rbi//lib/rbi/model.rb#642
sig do
params(
name: ::String,
@@ -1034,32 +801,24 @@ class RBI::KwOptParam < ::RBI::Param
end
def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#605
+ # source://rbi//lib/rbi/model.rb#655
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#600
+ # source://rbi//lib/rbi/model.rb#650
sig { override.returns(::String) }
def to_s; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#589
+ # source://rbi//lib/rbi/model.rb#639
sig { returns(::String) }
def value; end
end
-# source://rbi//lib/rbi/model.rb#568
+# source://rbi//lib/rbi/model.rb#618
class RBI::KwParam < ::RBI::Param
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwParam node) -> void } -> void
- #
# @return [KwParam] a new instance of KwParam
#
- # source://rbi//lib/rbi/model.rb#570
+ # source://rbi//lib/rbi/model.rb#620
sig do
params(
name: ::String,
@@ -1070,26 +829,20 @@ class RBI::KwParam < ::RBI::Param
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#582
+ # source://rbi//lib/rbi/model.rb#632
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#577
+ # source://rbi//lib/rbi/model.rb#627
sig { override.returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#610
+# source://rbi//lib/rbi/model.rb#660
class RBI::KwRestParam < ::RBI::Param
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwRestParam node) -> void } -> void
- #
# @return [KwRestParam] a new instance of KwRestParam
#
- # source://rbi//lib/rbi/model.rb#612
+ # source://rbi//lib/rbi/model.rb#662
sig do
params(
name: ::String,
@@ -1100,26 +853,20 @@ class RBI::KwRestParam < ::RBI::Param
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#624
+ # source://rbi//lib/rbi/model.rb#674
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#619
+ # source://rbi//lib/rbi/model.rb#669
sig { override.returns(::String) }
def to_s; end
end
# source://rbi//lib/rbi/loc.rb#5
class RBI::Loc
- # : (?file: String?, ?begin_line: Integer?, ?end_line: Integer?, ?begin_column: Integer?, ?end_column: Integer?) -> void
- #
# @return [Loc] a new instance of Loc
#
- # source://rbi//lib/rbi/loc.rb#26
+ # source://rbi//lib/rbi/loc.rb#32
sig do
params(
file: T.nilable(::String),
@@ -1131,54 +878,36 @@ class RBI::Loc
end
def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end
- # : Integer?
- #
# source://rbi//lib/rbi/loc.rb#23
def begin_column; end
- # : Integer?
- #
# source://rbi//lib/rbi/loc.rb#23
sig { returns(T.nilable(::Integer)) }
def begin_line; end
- # : Integer?
- #
# source://rbi//lib/rbi/loc.rb#23
def end_column; end
- # : Integer?
- #
# source://rbi//lib/rbi/loc.rb#23
def end_line; end
- # : String?
- #
# source://rbi//lib/rbi/loc.rb#20
sig { returns(T.nilable(::String)) }
def file; end
- # : (Loc) -> Loc
- #
- # source://rbi//lib/rbi/loc.rb#35
+ # source://rbi//lib/rbi/loc.rb#41
sig { params(other: ::RBI::Loc).returns(::RBI::Loc) }
def join(other); end
- # : -> String?
- #
- # source://rbi//lib/rbi/loc.rb#55
+ # source://rbi//lib/rbi/loc.rb#61
sig { returns(T.nilable(::String)) }
def source; end
- # : -> String
- #
- # source://rbi//lib/rbi/loc.rb#46
+ # source://rbi//lib/rbi/loc.rb#52
sig { returns(::String) }
def to_s; end
class << self
- # : (String file, Prism::Location prism_location) -> Loc
- #
# source://rbi//lib/rbi/loc.rb#8
sig { params(file: ::String, prism_location: ::Prism::Location).returns(::RBI::Loc) }
def from_prism(file, prism_location); end
@@ -1187,13 +916,11 @@ end
# A tree that _might_ contain conflicts
#
-# source://rbi//lib/rbi/rewriters/merge_trees.rb#329
+# source://rbi//lib/rbi/rewriters/merge_trees.rb#342
class RBI::MergeTree < ::RBI::Tree
- # : (?loc: Loc?, ?comments: Array[Comment], ?conflicts: Array[Rewriters::Merge::Conflict]) ?{ (Tree node) -> void } -> void
- #
# @return [MergeTree] a new instance of MergeTree
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#334
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#351
sig do
params(
loc: T.nilable(::RBI::Loc),
@@ -1204,24 +931,20 @@ class RBI::MergeTree < ::RBI::Tree
end
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end
- # : Array[Rewriters::Merge::Conflict]
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#331
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#344
sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) }
def conflicts; end
end
# Methods and args
#
-# source://rbi//lib/rbi/model.rb#383
+# source://rbi//lib/rbi/model.rb#417
class RBI::Method < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String name, ?params: Array[Param], ?is_singleton: bool, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (Method node) -> void } -> void
- #
# @return [Method] a new instance of Method
#
- # source://rbi//lib/rbi/model.rb#400
+ # source://rbi//lib/rbi/model.rb#442
sig do
params(
name: ::String,
@@ -1236,57 +959,39 @@ class RBI::Method < ::RBI::NodeWithComments
end
def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Param param) -> void
- #
- # source://rbi//lib/rbi/model.rb#420
+ # source://rbi//lib/rbi/model.rb#462
sig { params(param: ::RBI::Param).void }
def <<(param); end
- # : (String name) -> void
- #
- # source://rbi//lib/rbi/model.rb#455
+ # source://rbi//lib/rbi/model.rb#497
sig { params(name: ::String).void }
def add_block_param(name); end
- # : (String name, String default_value) -> void
- #
- # source://rbi//lib/rbi/model.rb#445
+ # source://rbi//lib/rbi/model.rb#487
sig { params(name: ::String, default_value: ::String).void }
def add_kw_opt_param(name, default_value); end
- # : (String name) -> void
- #
- # source://rbi//lib/rbi/model.rb#440
+ # source://rbi//lib/rbi/model.rb#482
sig { params(name: ::String).void }
def add_kw_param(name); end
- # : (String name) -> void
- #
- # source://rbi//lib/rbi/model.rb#450
+ # source://rbi//lib/rbi/model.rb#492
sig { params(name: ::String).void }
def add_kw_rest_param(name); end
- # : (String name, String default_value) -> void
- #
- # source://rbi//lib/rbi/model.rb#430
+ # source://rbi//lib/rbi/model.rb#472
sig { params(name: ::String, default_value: ::String).void }
def add_opt_param(name, default_value); end
- # : (String name) -> void
- #
- # source://rbi//lib/rbi/model.rb#425
+ # source://rbi//lib/rbi/model.rb#467
sig { params(name: ::String).void }
def add_param(name); end
- # : (String name) -> void
- #
- # source://rbi//lib/rbi/model.rb#435
+ # source://rbi//lib/rbi/model.rb#477
sig { params(name: ::String).void }
def add_rest_param(name); end
- # : (?params: Array[SigParam], ?return_type: (String | Type), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?type_params: Array[String], ?checked: Symbol?) ?{ (Sig node) -> void } -> void
- #
- # source://rbi//lib/rbi/model.rb#460
+ # source://rbi//lib/rbi/model.rb#510
sig do
params(
params: T::Array[::RBI::SigParam],
@@ -1302,98 +1007,68 @@ class RBI::Method < ::RBI::NodeWithComments
end
def add_sig(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#449
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#466
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#486
+ # source://rbi//lib/rbi/model.rb#536
sig { returns(::String) }
def fully_qualified_name; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#114
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#391
+ # source://rbi//lib/rbi/model.rb#425
sig { returns(T::Boolean) }
def is_singleton; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#391
+ # source://rbi//lib/rbi/model.rb#425
def is_singleton=(_arg0); end
- # : (Node other) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#459
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#476
sig { override.params(other: ::RBI::Node).void }
def merge_with(other); end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#385
+ # source://rbi//lib/rbi/model.rb#419
sig { returns(::String) }
def name; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#385
+ # source://rbi//lib/rbi/model.rb#419
def name=(_arg0); end
- # : Array[Param]
- #
- # source://rbi//lib/rbi/model.rb#388
+ # source://rbi//lib/rbi/model.rb#422
sig { returns(T::Array[::RBI::Param]) }
def params; end
- # : Array[Sig]
- #
- # source://rbi//lib/rbi/model.rb#397
+ # source://rbi//lib/rbi/model.rb#431
sig { returns(T::Array[::RBI::Sig]) }
def sigs; end
- # : Array[Sig]
- #
- # source://rbi//lib/rbi/model.rb#397
+ # source://rbi//lib/rbi/model.rb#431
def sigs=(_arg0); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#496
+ # source://rbi//lib/rbi/model.rb#546
sig { override.returns(::String) }
def to_s; end
- # : Visibility
- #
- # source://rbi//lib/rbi/model.rb#394
+ # source://rbi//lib/rbi/model.rb#428
sig { returns(::RBI::Visibility) }
def visibility; end
- # : Visibility
- #
- # source://rbi//lib/rbi/model.rb#394
+ # source://rbi//lib/rbi/model.rb#428
def visibility=(_arg0); end
end
-# source://rbi//lib/rbi/model.rb#1089
+# source://rbi//lib/rbi/model.rb#1185
class RBI::MixesInClassMethods < ::RBI::Mixin
include ::RBI::Indexable
- # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (MixesInClassMethods node) -> void } -> void
- #
# @return [MixesInClassMethods] a new instance of MixesInClassMethods
#
- # source://rbi//lib/rbi/model.rb#1091
+ # source://rbi//lib/rbi/model.rb#1192
sig do
params(
name: ::String,
@@ -1405,38 +1080,30 @@ class RBI::MixesInClassMethods < ::RBI::Mixin
end
def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#496
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#513
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#144
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1098
+ # source://rbi//lib/rbi/model.rb#1199
sig { override.returns(::String) }
def to_s; end
end
# @abstract
#
-# source://rbi//lib/rbi/model.rb#651
+# source://rbi//lib/rbi/model.rb#701
class RBI::Mixin < ::RBI::NodeWithComments
abstract!
- # : (String name, Array[String] names, ?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [Mixin] a new instance of Mixin
#
- # source://rbi//lib/rbi/model.rb#656
+ # source://rbi//lib/rbi/model.rb#706
sig do
params(
name: ::String,
@@ -1447,25 +1114,19 @@ class RBI::Mixin < ::RBI::NodeWithComments
end
def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#472
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#489
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : Array[String]
- #
- # source://rbi//lib/rbi/model.rb#653
+ # source://rbi//lib/rbi/model.rb#703
sig { returns(T::Array[::String]) }
def names; end
end
# source://rbi//lib/rbi/model.rb#175
class RBI::Module < ::RBI::Scope
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Module node) -> void } -> void
- #
# @return [Module] a new instance of Module
#
# source://rbi//lib/rbi/model.rb#180
@@ -1479,28 +1140,20 @@ class RBI::Module < ::RBI::Scope
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#379
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#396
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> String
- #
# source://rbi//lib/rbi/model.rb#188
sig { override.returns(::String) }
def fully_qualified_name; end
- # : String
- #
# source://rbi//lib/rbi/model.rb#177
sig { returns(::String) }
def name; end
- # : String
- #
# source://rbi//lib/rbi/model.rb#177
def name=(_arg0); end
end
@@ -1511,8 +1164,6 @@ end
class RBI::Node
abstract!
- # : (?loc: Loc?) -> void
- #
# @return [Node] a new instance of Node
#
# source://rbi//lib/rbi/model.rb#16
@@ -1520,64 +1171,46 @@ class RBI::Node
def initialize(loc: T.unsafe(nil)); end
# Can `self` and `_other` be merged into a single definition?
- # : (Node _other) -> bool
#
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#289
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#302
sig { params(_other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(_other); end
- # : -> void
- #
# source://rbi//lib/rbi/model.rb#22
sig { void }
def detach; end
- # : Loc?
- #
# source://rbi//lib/rbi/model.rb#13
sig { returns(T.nilable(::RBI::Loc)) }
def loc; end
- # : Loc?
- #
# source://rbi//lib/rbi/model.rb#13
def loc=(_arg0); end
# Merge `self` and `other` into a single definition
- # : (Node other) -> void
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#295
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#308
sig { params(other: ::RBI::Node).void }
def merge_with(other); end
- # : -> ConflictTree?
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#298
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#311
sig { returns(T.nilable(::RBI::ConflictTree)) }
def parent_conflict_tree; end
- # : -> Scope?
- #
# source://rbi//lib/rbi/model.rb#44
sig { returns(T.nilable(::RBI::Scope)) }
def parent_scope; end
- # : Tree?
- #
# source://rbi//lib/rbi/model.rb#10
sig { returns(T.nilable(::RBI::Tree)) }
def parent_tree; end
- # : Tree?
- #
# source://rbi//lib/rbi/model.rb#10
def parent_tree=(_arg0); end
- # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void
- #
- # source://rbi//lib/rbi/printer.rb#832
+ # source://rbi//lib/rbi/printer.rb#834
sig do
params(
out: T.any(::IO, ::StringIO),
@@ -1588,9 +1221,7 @@ class RBI::Node
end
def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
- # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1225
+ # source://rbi//lib/rbi/rbs_printer.rb#1246
sig do
params(
out: T.any(::IO, ::StringIO),
@@ -1601,31 +1232,23 @@ class RBI::Node
end
def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end
- # : (?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> String
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1231
+ # source://rbi//lib/rbi/rbs_printer.rb#1252
sig { params(indent: ::Integer, print_locs: T::Boolean, positional_names: T::Boolean).returns(::String) }
def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end
- # : (Node node) -> void
- #
# @raise [ReplaceNodeError]
#
# source://rbi//lib/rbi/model.rb#31
sig { params(node: ::RBI::Node).void }
def replace(node); end
- # : (Gem::Version version) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/rewriters/filter_versions.rb#91
sig { params(version: ::Gem::Version).returns(T::Boolean) }
def satisfies_version?(version); end
- # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String
- #
- # source://rbi//lib/rbi/printer.rb#838
+ # source://rbi//lib/rbi/printer.rb#840
sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) }
def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
end
@@ -1636,51 +1259,37 @@ end
class RBI::NodeWithComments < ::RBI::Node
abstract!
- # : (?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [NodeWithComments] a new instance of NodeWithComments
#
# source://rbi//lib/rbi/model.rb#93
sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/model.rb#99
sig { returns(T::Array[::String]) }
def annotations; end
- # : Array[Comment]
- #
# source://rbi//lib/rbi/model.rb#90
sig { returns(T::Array[::RBI::Comment]) }
def comments; end
- # : Array[Comment]
- #
# source://rbi//lib/rbi/model.rb#90
def comments=(_arg0); end
- # : (Node other) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#312
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#325
sig { override.params(other: ::RBI::Node).void }
def merge_with(other); end
- # : -> Array[Gem::Requirement]
- #
# source://rbi//lib/rbi/rewriters/filter_versions.rb#101
sig { returns(T::Array[::Gem::Requirement]) }
def version_requirements; end
end
-# source://rbi//lib/rbi/model.rb#532
+# source://rbi//lib/rbi/model.rb#582
class RBI::OptParam < ::RBI::Param
- # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (OptParam node) -> void } -> void
- #
# @return [OptParam] a new instance of OptParam
#
- # source://rbi//lib/rbi/model.rb#537
+ # source://rbi//lib/rbi/model.rb#587
sig do
params(
name: ::String,
@@ -1692,58 +1301,44 @@ class RBI::OptParam < ::RBI::Param
end
def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#544
+ # source://rbi//lib/rbi/model.rb#594
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#534
+ # source://rbi//lib/rbi/model.rb#584
sig { returns(::String) }
def value; end
end
# @abstract
#
-# source://rbi//lib/rbi/model.rb#502
+# source://rbi//lib/rbi/model.rb#552
class RBI::Param < ::RBI::NodeWithComments
abstract!
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [Param] a new instance of Param
#
- # source://rbi//lib/rbi/model.rb#507
+ # source://rbi//lib/rbi/model.rb#557
sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#504
+ # source://rbi//lib/rbi/model.rb#554
sig { returns(::String) }
def name; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#514
+ # source://rbi//lib/rbi/model.rb#564
sig { override.returns(::String) }
def to_s; end
end
# source://rbi//lib/rbi/parser.rb#7
class RBI::ParseError < ::RBI::Error
- # : (String message, Loc location) -> void
- #
# @return [ParseError] a new instance of ParseError
#
# source://rbi//lib/rbi/parser.rb#12
sig { params(message: ::String, location: ::RBI::Loc).void }
def initialize(message, location); end
- # : Loc
- #
# source://rbi//lib/rbi/parser.rb#9
sig { returns(::RBI::Loc) }
def location; end
@@ -1751,114 +1346,88 @@ end
# source://rbi//lib/rbi/parser.rb#49
class RBI::Parser
- # : (String path) -> Tree
- #
# source://rbi//lib/rbi/parser.rb#80
sig { params(path: ::String).returns(::RBI::Tree) }
def parse_file(path); end
- # : (String string) -> Tree
- #
# source://rbi//lib/rbi/parser.rb#75
sig { params(string: ::String).returns(::RBI::Tree) }
def parse_string(string); end
private
- # : (String source, file: String) -> Tree
- #
# source://rbi//lib/rbi/parser.rb#87
sig { params(source: ::String, file: ::String).returns(::RBI::Tree) }
def parse(source, file:); end
class << self
- # : (String path) -> Tree
- #
# source://rbi//lib/rbi/parser.rb#57
sig { params(path: ::String).returns(::RBI::Tree) }
def parse_file(path); end
- # : (Array[String] paths) -> Array[Tree]
- #
# source://rbi//lib/rbi/parser.rb#62
sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) }
def parse_files(paths); end
- # : (String string) -> Tree
- #
# source://rbi//lib/rbi/parser.rb#52
sig { params(string: ::String).returns(::RBI::Tree) }
def parse_string(string); end
- # : (Array[String] strings) -> Array[Tree]
- #
# source://rbi//lib/rbi/parser.rb#68
sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) }
def parse_strings(strings); end
end
end
-# source://rbi//lib/rbi/parser.rb#1000
+# source://rbi//lib/rbi/parser.rb#1003
class RBI::Parser::HeredocLocationVisitor < ::Prism::Visitor
- # : (Prism::Source source, Integer begin_offset, Integer end_offset) -> void
- #
# @return [HeredocLocationVisitor] a new instance of HeredocLocationVisitor
#
- # source://rbi//lib/rbi/parser.rb#1002
+ # source://rbi//lib/rbi/parser.rb#1005
sig { params(source: ::Prism::Source, begin_offset: ::Integer, end_offset: ::Integer).void }
def initialize(source, begin_offset, end_offset); end
- # : -> Prism::Location
- #
- # source://rbi//lib/rbi/parser.rb#1033
+ # source://rbi//lib/rbi/parser.rb#1036
sig { returns(::Prism::Location) }
def location; end
- # : (Prism::InterpolatedStringNode node) -> void
- #
- # source://rbi//lib/rbi/parser.rb#1023
+ # source://rbi//lib/rbi/parser.rb#1026
sig { override.params(node: ::Prism::InterpolatedStringNode).void }
def visit_interpolated_string_node(node); end
- # : (Prism::StringNode node) -> void
- #
- # source://rbi//lib/rbi/parser.rb#1012
+ # source://rbi//lib/rbi/parser.rb#1015
sig { override.params(node: ::Prism::StringNode).void }
def visit_string_node(node); end
private
- # : (Prism::StringNode | Prism::InterpolatedStringNode node) -> void
- #
- # source://rbi//lib/rbi/parser.rb#1044
+ # source://rbi//lib/rbi/parser.rb#1047
sig { params(node: T.any(::Prism::InterpolatedStringNode, ::Prism::StringNode)).void }
def handle_string_node(node); end
end
# source://rbi//lib/rbi/parser.rb#915
class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor
- # : (String content, file: String) -> void
- #
# @return [SigBuilder] a new instance of SigBuilder
#
# source://rbi//lib/rbi/parser.rb#920
sig { params(content: ::String, file: ::String).void }
def initialize(content, file:); end
- # : Sig
+ # @return [Boolean]
#
+ # source://rbi//lib/rbi/parser.rb#986
+ sig { params(node: ::Prism::CallNode, value: ::String).returns(T::Boolean) }
+ def allow_incompatible_override?(node, value); end
+
# source://rbi//lib/rbi/parser.rb#917
sig { returns(::RBI::Sig) }
def current; end
- # : (Prism::AssocNode node) -> void
- #
- # source://rbi//lib/rbi/parser.rb#992
+ # source://rbi//lib/rbi/parser.rb#978
sig { override.params(node: ::Prism::AssocNode).void }
def visit_assoc_node(node); end
- # : (Prism::CallNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#928
sig { override.params(node: ::Prism::CallNode).void }
def visit_call_node(node); end
@@ -1866,76 +1435,52 @@ end
# source://rbi//lib/rbi/parser.rb#164
class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor
- # : (String source, comments: Array[Prism::Comment], file: String) -> void
- #
# @return [TreeBuilder] a new instance of TreeBuilder
#
# source://rbi//lib/rbi/parser.rb#172
sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void }
def initialize(source, comments:, file:); end
- # : Prism::Node?
- #
# source://rbi//lib/rbi/parser.rb#169
sig { returns(T.nilable(::Prism::Node)) }
def last_node; end
- # : Tree
- #
# source://rbi//lib/rbi/parser.rb#166
sig { returns(::RBI::Tree) }
def tree; end
- # : (Prism::CallNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#361
sig { params(node: ::Prism::CallNode).void }
def visit_call_node(node); end
- # : (Prism::ClassNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#185
sig { override.params(node: ::Prism::ClassNode).void }
def visit_class_node(node); end
- # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> void
- #
# source://rbi//lib/rbi/parser.rb#236
sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void }
def visit_constant_assign(node); end
- # : (Prism::ConstantPathWriteNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#229
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
def visit_constant_path_write_node(node); end
- # : (Prism::ConstantWriteNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#221
sig { override.params(node: ::Prism::ConstantWriteNode).void }
def visit_constant_write_node(node); end
- # : (Prism::DefNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#291
sig { override.params(node: ::Prism::DefNode).void }
def visit_def_node(node); end
- # : (Prism::ModuleNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#313
sig { override.params(node: ::Prism::ModuleNode).void }
def visit_module_node(node); end
- # : (Prism::ProgramNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#332
sig { override.params(node: ::Prism::ProgramNode).void }
def visit_program_node(node); end
- # : (Prism::SingletonClassNode node) -> void
- #
# source://rbi//lib/rbi/parser.rb#344
sig { override.params(node: ::Prism::SingletonClassNode).void }
def visit_singleton_class_node(node); end
@@ -1943,69 +1488,49 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor
private
# Collect all the remaining comments within a node
- # : (Prism::Node node) -> void
#
# source://rbi//lib/rbi/parser.rb#539
sig { params(node: ::Prism::Node).void }
def collect_dangling_comments(node); end
# Collect all the remaining comments after visiting the tree
- # : -> void
#
# source://rbi//lib/rbi/parser.rb#557
sig { void }
def collect_orphan_comments; end
- # : -> Tree
- #
# source://rbi//lib/rbi/parser.rb#580
sig { returns(::RBI::Tree) }
def current_scope; end
- # : -> Array[Sig]
- #
# source://rbi//lib/rbi/parser.rb#585
sig { returns(T::Array[::RBI::Sig]) }
def current_sigs; end
- # : (Array[Sig] sigs) -> Array[Comment]
- #
# source://rbi//lib/rbi/parser.rb#592
sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) }
def detach_comments_from_sigs(sigs); end
- # : (Prism::Node node) -> Array[Comment]
- #
# source://rbi//lib/rbi/parser.rb#604
sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) }
def node_comments(node); end
- # : (Prism::Comment node) -> Comment
- #
# source://rbi//lib/rbi/parser.rb#666
sig { params(node: ::Prism::Comment).returns(::RBI::Comment) }
def parse_comment(node); end
- # : (Prism::Node? node) -> Array[Param]
- #
# source://rbi//lib/rbi/parser.rb#699
sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) }
def parse_params(node); end
- # : (Prism::Node? node) -> Array[Arg]
- #
# source://rbi//lib/rbi/parser.rb#673
sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) }
def parse_send_args(node); end
- # : (Prism::CallNode node) -> Sig
- #
# source://rbi//lib/rbi/parser.rb#765
sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) }
def parse_sig(node); end
- # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> Struct?
- #
# source://rbi//lib/rbi/parser.rb#774
sig do
params(
@@ -2014,40 +1539,28 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor
end
def parse_struct(node); end
- # : (Prism::CallNode send) -> void
- #
# source://rbi//lib/rbi/parser.rb#822
sig { params(send: ::Prism::CallNode).void }
def parse_tstruct_field(send); end
- # : (String name, Prism::Node node) -> Visibility
- #
# source://rbi//lib/rbi/parser.rb#859
sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) }
def parse_visibility(name, node); end
- # : -> void
- #
# source://rbi//lib/rbi/parser.rb#873
sig { void }
def separate_header_comments; end
- # : -> void
- #
# source://rbi//lib/rbi/parser.rb#883
sig { void }
def set_root_tree_loc; end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/parser.rb#902
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
def t_enum_value?(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/parser.rb#897
@@ -2057,8 +1570,6 @@ end
# source://rbi//lib/rbi/parser.rb#114
class RBI::Parser::Visitor < ::Prism::Visitor
- # : (String source, file: String) -> void
- #
# @return [Visitor] a new instance of Visitor
#
# source://rbi//lib/rbi/parser.rb#116
@@ -2067,40 +1578,28 @@ class RBI::Parser::Visitor < ::Prism::Visitor
private
- # : (Prism::Node node) -> Prism::Location
- #
# source://rbi//lib/rbi/parser.rb#143
sig { params(node: ::Prism::Node).returns(::Prism::Location) }
def adjust_prism_location_for_heredoc(node); end
- # : (Prism::Node node) -> Loc
- #
# source://rbi//lib/rbi/parser.rb#126
sig { params(node: ::Prism::Node).returns(::RBI::Loc) }
def node_loc(node); end
- # : (Prism::Node? node) -> String?
- #
# source://rbi//lib/rbi/parser.rb#131
sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) }
def node_string(node); end
- # : (Prism::Node node) -> String
- #
# source://rbi//lib/rbi/parser.rb#138
sig { params(node: ::Prism::Node).returns(::String) }
def node_string!(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/parser.rb#154
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
def self?(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/parser.rb#159
@@ -2110,8 +1609,6 @@ end
# source://rbi//lib/rbi/printer.rb#7
class RBI::Printer < ::RBI::Visitor
- # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void
- #
# @return [Printer] a new instance of Printer
#
# source://rbi//lib/rbi/printer.rb#21
@@ -2125,451 +1622,307 @@ class RBI::Printer < ::RBI::Visitor
end
def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
- # : Integer
- #
# source://rbi//lib/rbi/printer.rb#15
sig { returns(::Integer) }
def current_indent; end
- # : -> void
- #
# source://rbi//lib/rbi/printer.rb#39
sig { void }
def dedent; end
- # : bool
- #
# source://rbi//lib/rbi/printer.rb#9
def in_visibility_group; end
- # : bool
- #
# source://rbi//lib/rbi/printer.rb#9
def in_visibility_group=(_arg0); end
- # : -> void
- #
# source://rbi//lib/rbi/printer.rb#34
sig { void }
def indent; end
- # : Integer?
- #
# source://rbi//lib/rbi/printer.rb#18
sig { returns(T.nilable(::Integer)) }
def max_line_length; end
- # : Node?
- #
# source://rbi//lib/rbi/printer.rb#12
sig { returns(T.nilable(::RBI::Node)) }
def previous_node; end
# Print a string without indentation nor `\n` at the end.
- # : (String string) -> void
#
# source://rbi//lib/rbi/printer.rb#45
sig { params(string: ::String).void }
def print(string); end
- # : bool
- #
# source://rbi//lib/rbi/printer.rb#9
sig { returns(T::Boolean) }
def print_locs; end
- # : bool
- #
# source://rbi//lib/rbi/printer.rb#9
def print_locs=(_arg0); end
# Print a string with indentation and `\n` at the end.
- # : (String string) -> void
#
# source://rbi//lib/rbi/printer.rb#65
sig { params(string: ::String).void }
def printl(string); end
# Print a string without indentation but with a `\n` at the end.
- # : (?String? string) -> void
#
# source://rbi//lib/rbi/printer.rb#51
sig { params(string: T.nilable(::String)).void }
def printn(string = T.unsafe(nil)); end
# Print a string with indentation but without a `\n` at the end.
- # : (?String? string) -> void
#
# source://rbi//lib/rbi/printer.rb#58
sig { params(string: T.nilable(::String)).void }
def printt(string = T.unsafe(nil)); end
- # : (Array[Node] nodes) -> void
- #
# source://rbi//lib/rbi/printer.rb#72
sig { override.params(nodes: T::Array[::RBI::Node]).void }
def visit_all(nodes); end
- # : (File file) -> void
- #
# source://rbi//lib/rbi/printer.rb#84
sig { override.params(file: ::RBI::File).void }
def visit_file(file); end
private
- # : (Node node) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/printer.rb#680
sig { params(node: ::RBI::Node).returns(T::Boolean) }
def oneline?(node); end
- # : (Node node) -> void
- #
# source://rbi//lib/rbi/printer.rb#638
sig { params(node: ::RBI::Node).void }
def print_blank_line_before(node); end
- # : (Node node) -> void
- #
# source://rbi//lib/rbi/printer.rb#648
sig { params(node: ::RBI::Node).void }
def print_loc(node); end
- # : (Param node, last: bool) -> void
- #
# source://rbi//lib/rbi/printer.rb#654
sig { params(node: ::RBI::Param, last: T::Boolean).void }
def print_param_comment_leading_space(node, last:); end
- # : (Sig node) -> void
- #
# source://rbi//lib/rbi/printer.rb#736
sig { params(node: ::RBI::Sig).void }
def print_sig_as_block(node); end
- # : (Sig node) -> void
- #
# source://rbi//lib/rbi/printer.rb#709
sig { params(node: ::RBI::Sig).void }
def print_sig_as_line(node); end
- # : (SigParam node, last: bool) -> void
- #
# source://rbi//lib/rbi/printer.rb#672
sig { params(node: ::RBI::SigParam, last: T::Boolean).void }
def print_sig_param_comment_leading_space(node, last:); end
- # : (Sig node) -> Array[String]
- #
# source://rbi//lib/rbi/printer.rb#796
sig { params(node: ::RBI::Sig).returns(T::Array[::String]) }
def sig_modifiers(node); end
- # : (Arg node) -> void
- #
# source://rbi//lib/rbi/printer.rb#453
sig { override.params(node: ::RBI::Arg).void }
def visit_arg(node); end
- # : (Attr node) -> void
- #
# source://rbi//lib/rbi/printer.rb#258
sig { params(node: ::RBI::Attr).void }
def visit_attr(node); end
- # : (AttrAccessor node) -> void
- #
# source://rbi//lib/rbi/printer.rb#241
sig { override.params(node: ::RBI::AttrAccessor).void }
def visit_attr_accessor(node); end
- # : (AttrReader node) -> void
- #
# source://rbi//lib/rbi/printer.rb#247
sig { override.params(node: ::RBI::AttrReader).void }
def visit_attr_reader(node); end
- # : (AttrWriter node) -> void
- #
# source://rbi//lib/rbi/printer.rb#253
sig { override.params(node: ::RBI::AttrWriter).void }
def visit_attr_writer(node); end
- # : (BlankLine node) -> void
- #
# source://rbi//lib/rbi/printer.rb#138
sig { override.params(node: ::RBI::BlankLine).void }
def visit_blank_line(node); end
- # : (BlockParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#373
sig { override.params(node: ::RBI::BlockParam).void }
def visit_block_param(node); end
- # : (Class node) -> void
- #
# source://rbi//lib/rbi/printer.rb#158
sig { override.params(node: ::RBI::Class).void }
def visit_class(node); end
- # : (Comment node) -> void
- #
# source://rbi//lib/rbi/printer.rb#121
sig { override.params(node: ::RBI::Comment).void }
def visit_comment(node); end
- # : (ConflictTree node) -> void
- #
# source://rbi//lib/rbi/printer.rb#614
sig { override.params(node: ::RBI::ConflictTree).void }
def visit_conflict_tree(node); end
- # : (Const node) -> void
- #
# source://rbi//lib/rbi/printer.rb#231
sig { override.params(node: ::RBI::Const).void }
def visit_const(node); end
- # : (Extend node) -> void
- #
# source://rbi//lib/rbi/printer.rb#385
sig { override.params(node: ::RBI::Extend).void }
def visit_extend(node); end
- # : (Group node) -> void
- #
# source://rbi//lib/rbi/printer.rb#583
sig { override.params(node: ::RBI::Group).void }
def visit_group(node); end
- # : (Helper node) -> void
- #
# source://rbi//lib/rbi/printer.rb#567
sig { override.params(node: ::RBI::Helper).void }
def visit_helper(node); end
- # : (Include node) -> void
- #
# source://rbi//lib/rbi/printer.rb#379
sig { override.params(node: ::RBI::Include).void }
def visit_include(node); end
- # : (KwArg node) -> void
- #
# source://rbi//lib/rbi/printer.rb#459
sig { override.params(node: ::RBI::KwArg).void }
def visit_kw_arg(node); end
- # : (KwOptParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#361
sig { override.params(node: ::RBI::KwOptParam).void }
def visit_kw_opt_param(node); end
- # : (KwParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#355
sig { override.params(node: ::RBI::KwParam).void }
def visit_kw_param(node); end
- # : (KwRestParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#367
sig { override.params(node: ::RBI::KwRestParam).void }
def visit_kw_rest_param(node); end
- # : (Method node) -> void
- #
# source://rbi//lib/rbi/printer.rb#287
sig { override.params(node: ::RBI::Method).void }
def visit_method(node); end
- # : (MixesInClassMethods node) -> void
- #
# source://rbi//lib/rbi/printer.rb#577
sig { override.params(node: ::RBI::MixesInClassMethods).void }
def visit_mixes_in_class_methods(node); end
- # : (Mixin node) -> void
- #
# source://rbi//lib/rbi/printer.rb#390
sig { params(node: ::RBI::Mixin).void }
def visit_mixin(node); end
- # : (Module node) -> void
- #
# source://rbi//lib/rbi/printer.rb#152
sig { override.params(node: ::RBI::Module).void }
def visit_module(node); end
- # : (OptParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#343
sig { override.params(node: ::RBI::OptParam).void }
def visit_opt_param(node); end
- # : (Private node) -> void
- #
# source://rbi//lib/rbi/printer.rb#420
sig { override.params(node: ::RBI::Private).void }
def visit_private(node); end
- # : (Protected node) -> void
- #
# source://rbi//lib/rbi/printer.rb#414
sig { override.params(node: ::RBI::Protected).void }
def visit_protected(node); end
- # : (Public node) -> void
- #
# source://rbi//lib/rbi/printer.rb#408
sig { override.params(node: ::RBI::Public).void }
def visit_public(node); end
- # : (RBSComment node) -> void
- #
# source://rbi//lib/rbi/printer.rb#104
sig { override.params(node: ::RBI::RBSComment).void }
def visit_rbs_comment(node); end
- # : (ReqParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#337
sig { override.params(node: ::RBI::ReqParam).void }
def visit_req_param(node); end
- # : (RequiresAncestor node) -> void
- #
# source://rbi//lib/rbi/printer.rb#604
sig { override.params(node: ::RBI::RequiresAncestor).void }
def visit_requires_ancestor(node); end
- # : (RestParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#349
sig { override.params(node: ::RBI::RestParam).void }
def visit_rest_param(node); end
- # : (Scope node) -> void
- #
# source://rbi//lib/rbi/printer.rb#175
sig { params(node: ::RBI::Scope).void }
def visit_scope(node); end
- # : (Scope node) -> void
- #
# source://rbi//lib/rbi/printer.rb#220
sig { params(node: ::RBI::Scope).void }
def visit_scope_body(node); end
- # : (ScopeConflict node) -> void
- #
# source://rbi//lib/rbi/printer.rb#624
sig { override.params(node: ::RBI::ScopeConflict).void }
def visit_scope_conflict(node); end
- # : (Scope node) -> void
- #
# source://rbi//lib/rbi/printer.rb#185
sig { params(node: ::RBI::Scope).void }
def visit_scope_header(node); end
- # : (Send node) -> void
- #
# source://rbi//lib/rbi/printer.rb#435
sig { override.params(node: ::RBI::Send).void }
def visit_send(node); end
- # : (Sig node) -> void
- #
# source://rbi//lib/rbi/printer.rb#465
sig { override.params(node: ::RBI::Sig).void }
def visit_sig(node); end
- # : (SigParam node) -> void
- #
# source://rbi//lib/rbi/printer.rb#486
sig { override.params(node: ::RBI::SigParam).void }
def visit_sig_param(node); end
- # : (SingletonClass node) -> void
- #
# source://rbi//lib/rbi/printer.rb#170
sig { override.params(node: ::RBI::SingletonClass).void }
def visit_singleton_class(node); end
- # : (Struct node) -> void
- #
# source://rbi//lib/rbi/printer.rb#164
sig { override.params(node: ::RBI::Struct).void }
def visit_struct(node); end
- # : (TStructField node) -> void
- #
# source://rbi//lib/rbi/printer.rb#509
sig { params(node: ::RBI::TStructField).void }
def visit_t_struct_field(node); end
- # : (TEnum node) -> void
- #
# source://rbi//lib/rbi/printer.rb#528
sig { override.params(node: ::RBI::TEnum).void }
def visit_tenum(node); end
- # : (TEnumBlock node) -> void
- #
# source://rbi//lib/rbi/printer.rb#534
sig { override.params(node: ::RBI::TEnumBlock).void }
def visit_tenum_block(node); end
- # : (TEnumValue node) -> void
- #
# source://rbi//lib/rbi/printer.rb#547
sig { override.params(node: ::RBI::TEnumValue).void }
def visit_tenum_value(node); end
- # : (Tree node) -> void
- #
# source://rbi//lib/rbi/printer.rb#144
sig { override.params(node: ::RBI::Tree).void }
def visit_tree(node); end
- # : (TStruct node) -> void
- #
# source://rbi//lib/rbi/printer.rb#492
sig { override.params(node: ::RBI::TStruct).void }
def visit_tstruct(node); end
- # : (TStructConst node) -> void
- #
# source://rbi//lib/rbi/printer.rb#498
sig { override.params(node: ::RBI::TStructConst).void }
def visit_tstruct_const(node); end
- # : (TStructProp node) -> void
- #
# source://rbi//lib/rbi/printer.rb#504
sig { override.params(node: ::RBI::TStructProp).void }
def visit_tstruct_prop(node); end
- # : (TypeMember node) -> void
- #
# source://rbi//lib/rbi/printer.rb#557
sig { override.params(node: ::RBI::TypeMember).void }
def visit_type_member(node); end
- # : (Visibility node) -> void
- #
# source://rbi//lib/rbi/printer.rb#425
sig { params(node: ::RBI::Visibility).void }
def visit_visibility(node); end
- # : (VisibilityGroup node) -> void
- #
# source://rbi//lib/rbi/printer.rb#590
sig { override.params(node: ::RBI::VisibilityGroup).void }
def visit_visibility_group(node); end
@@ -2578,13 +1931,11 @@ end
# source://rbi//lib/rbi/printer.rb#5
class RBI::PrinterError < ::RBI::Error; end
-# source://rbi//lib/rbi/model.rb#742
+# source://rbi//lib/rbi/model.rb#792
class RBI::Private < ::RBI::Visibility
- # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Private node) -> void } -> void
- #
# @return [Private] a new instance of Private
#
- # source://rbi//lib/rbi/model.rb#744
+ # source://rbi//lib/rbi/model.rb#794
sig do
params(
loc: T.nilable(::RBI::Loc),
@@ -2595,13 +1946,11 @@ class RBI::Private < ::RBI::Visibility
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
end
-# source://rbi//lib/rbi/model.rb#734
+# source://rbi//lib/rbi/model.rb#784
class RBI::Protected < ::RBI::Visibility
- # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Protected node) -> void } -> void
- #
# @return [Protected] a new instance of Protected
#
- # source://rbi//lib/rbi/model.rb#736
+ # source://rbi//lib/rbi/model.rb#786
sig do
params(
loc: T.nilable(::RBI::Loc),
@@ -2612,13 +1961,11 @@ class RBI::Protected < ::RBI::Visibility
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
end
-# source://rbi//lib/rbi/model.rb#726
+# source://rbi//lib/rbi/model.rb#776
class RBI::Public < ::RBI::Visibility
- # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Public node) -> void } -> void
- #
# @return [Public] a new instance of Public
#
- # source://rbi//lib/rbi/model.rb#728
+ # source://rbi//lib/rbi/model.rb#778
sig do
params(
loc: T.nilable(::RBI::Loc),
@@ -2634,57 +1981,41 @@ module RBI::RBS; end
# source://rbi//lib/rbi/rbs/method_type_translator.rb#6
class RBI::RBS::MethodTypeTranslator
- # : (Method) -> void
- #
# @return [MethodTypeTranslator] a new instance of MethodTypeTranslator
#
# source://rbi//lib/rbi/rbs/method_type_translator.rb#22
sig { params(method: ::RBI::Method).void }
def initialize(method); end
- # : Sig
- #
# source://rbi//lib/rbi/rbs/method_type_translator.rb#19
sig { returns(::RBI::Sig) }
def result; end
- # : (::RBS::MethodType) -> void
- #
# source://rbi//lib/rbi/rbs/method_type_translator.rb#28
sig { params(type: ::RBS::MethodType).void }
def visit(type); end
private
- # : (::RBS::Types::Function::Param, Integer) -> SigParam
- #
# source://rbi//lib/rbi/rbs/method_type_translator.rb#100
sig { params(param: ::RBS::Types::Function::Param, index: ::Integer).returns(::RBI::SigParam) }
def translate_function_param(param, index); end
- # : (untyped) -> Type
- #
# source://rbi//lib/rbi/rbs/method_type_translator.rb#115
sig { params(type: T.untyped).returns(::RBI::Type) }
def translate_type(type); end
- # : (::RBS::Types::Block) -> void
- #
# @raise [Error]
#
# source://rbi//lib/rbi/rbs/method_type_translator.rb#42
sig { params(type: ::RBS::Types::Block).void }
def visit_block_type(type); end
- # : (::RBS::Types::Function) -> void
- #
# source://rbi//lib/rbi/rbs/method_type_translator.rb#57
sig { params(type: ::RBS::Types::Function).void }
def visit_function_type(type); end
class << self
- # : (Method, ::RBS::MethodType) -> Sig
- #
# source://rbi//lib/rbi/rbs/method_type_translator.rb#11
sig { params(method: ::RBI::Method, type: ::RBS::MethodType).returns(::RBI::Sig) }
def translate(method, type); end
@@ -2697,32 +2028,6 @@ class RBI::RBS::MethodTypeTranslator::Error < ::RBI::Error; end
# source://rbi//lib/rbi/rbs/type_translator.rb#6
class RBI::RBS::TypeTranslator
class << self
- # : (
- # | ::RBS::Types::Alias |
- # | ::RBS::Types::Bases::Any |
- # | ::RBS::Types::Bases::Bool |
- # | ::RBS::Types::Bases::Bottom |
- # | ::RBS::Types::Bases::Class |
- # | ::RBS::Types::Bases::Instance |
- # | ::RBS::Types::Bases::Nil |
- # | ::RBS::Types::Bases::Self |
- # | ::RBS::Types::Bases::Top |
- # | ::RBS::Types::Bases::Void |
- # | ::RBS::Types::ClassSingleton |
- # | ::RBS::Types::ClassInstance |
- # | ::RBS::Types::Function |
- # | ::RBS::Types::Interface |
- # | ::RBS::Types::Intersection |
- # | ::RBS::Types::Literal |
- # | ::RBS::Types::Optional |
- # | ::RBS::Types::Proc |
- # | ::RBS::Types::Record |
- # | ::RBS::Types::Tuple |
- # | ::RBS::Types::Union |
- # | ::RBS::Types::UntypedFunction |
- # | ::RBS::Types::Variable
- # | ) -> Type
- #
# source://rbi//lib/rbi/rbs/type_translator.rb#33
sig do
params(
@@ -2733,23 +2038,21 @@ class RBI::RBS::TypeTranslator
private
- # : (::RBS::Types::ClassInstance) -> Type
- #
- # source://rbi//lib/rbi/rbs/type_translator.rb#95
+ # source://rbi//lib/rbi/rbs/type_translator.rb#106
sig { params(type: ::RBS::Types::ClassInstance).returns(::RBI::Type) }
def translate_class_instance(type); end
- # : (::RBS::Types::Function) -> Type
- #
- # source://rbi//lib/rbi/rbs/type_translator.rb#103
+ # source://rbi//lib/rbi/rbs/type_translator.rb#114
sig { params(type: ::RBS::Types::Function).returns(::RBI::Type) }
def translate_function(type); end
- # : (String type_name) -> String
- #
- # source://rbi//lib/rbi/rbs/type_translator.rb#150
+ # source://rbi//lib/rbi/rbs/type_translator.rb#161
sig { params(type_name: ::String).returns(::String) }
def translate_t_generic_type(type_name); end
+
+ # source://rbi//lib/rbi/rbs/type_translator.rb#94
+ sig { params(type: ::RBS::Types::Alias).returns(::RBI::Type) }
+ def translate_type_alias(type); end
end
end
@@ -2757,8 +2060,6 @@ end
#
# source://rbi//lib/rbi/model.rb#78
class RBI::RBSComment < ::RBI::Comment
- # : (Object other) -> bool
- #
# source://rbi//lib/rbi/model.rb#80
sig { params(other: ::Object).returns(T::Boolean) }
def ==(other); end
@@ -2766,14 +2067,6 @@ end
# source://rbi//lib/rbi/rbs_printer.rb#5
class RBI::RBSPrinter < ::RBI::Visitor
- # : (
- # | ?out: (IO | StringIO),
- # | ?indent: Integer,
- # | ?print_locs: bool,
- # | ?positional_names: bool,
- # | ?max_line_length: Integer?
- # | ) -> void
- #
# @return [RBSPrinter] a new instance of RBSPrinter
#
# source://rbi//lib/rbi/rbs_printer.rb#30
@@ -2788,478 +2081,327 @@ class RBI::RBSPrinter < ::RBI::Visitor
end
def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
- # : Integer
- #
# source://rbi//lib/rbi/rbs_printer.rb#15
sig { returns(::Integer) }
def current_indent; end
- # : -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#49
sig { void }
def dedent; end
- # : bool
- #
# source://rbi//lib/rbi/rbs_printer.rb#9
def in_visibility_group; end
- # : bool
- #
# source://rbi//lib/rbi/rbs_printer.rb#9
def in_visibility_group=(_arg0); end
- # : -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#44
sig { void }
def indent; end
- # : Integer?
- #
# source://rbi//lib/rbi/rbs_printer.rb#21
sig { returns(T.nilable(::Integer)) }
def max_line_length; end
- # : bool
- #
# source://rbi//lib/rbi/rbs_printer.rb#18
sig { returns(T::Boolean) }
def positional_names; end
- # : bool
- #
# source://rbi//lib/rbi/rbs_printer.rb#18
def positional_names=(_arg0); end
- # : Node?
- #
# source://rbi//lib/rbi/rbs_printer.rb#12
sig { returns(T.nilable(::RBI::Node)) }
def previous_node; end
# Print a string without indentation nor `\n` at the end.
- # : (String string) -> void
#
# source://rbi//lib/rbi/rbs_printer.rb#55
sig { params(string: ::String).void }
def print(string); end
- # : (RBI::Attr node, Sig sig) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#302
sig { params(node: ::RBI::Attr, sig: ::RBI::Sig).void }
def print_attr_sig(node, sig); end
- # : bool
- #
# source://rbi//lib/rbi/rbs_printer.rb#9
sig { returns(T::Boolean) }
def print_locs; end
- # : bool
- #
# source://rbi//lib/rbi/rbs_printer.rb#9
def print_locs=(_arg0); end
- # : (RBI::Method node, Sig sig) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#398
+ # source://rbi//lib/rbi/rbs_printer.rb#400
sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void }
def print_method_sig(node, sig); end
- # : (RBI::Method node, Sig sig) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#415
+ # source://rbi//lib/rbi/rbs_printer.rb#417
sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void }
def print_method_sig_inline(node, sig); end
- # : (RBI::Method node, Sig sig) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#477
+ # source://rbi//lib/rbi/rbs_printer.rb#479
sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void }
def print_method_sig_multiline(node, sig); end
# Print a string with indentation and `\n` at the end.
- # : (String string) -> void
#
# source://rbi//lib/rbi/rbs_printer.rb#75
sig { params(string: ::String).void }
def printl(string); end
# Print a string without indentation but with a `\n` at the end.
- # : (?String? string) -> void
#
# source://rbi//lib/rbi/rbs_printer.rb#61
sig { params(string: T.nilable(::String)).void }
def printn(string = T.unsafe(nil)); end
# Print a string with indentation but without a `\n` at the end.
- # : (?String? string) -> void
#
# source://rbi//lib/rbi/rbs_printer.rb#68
sig { params(string: T.nilable(::String)).void }
def printt(string = T.unsafe(nil)); end
- # : (Array[Node] nodes) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#82
sig { override.params(nodes: T::Array[::RBI::Node]).void }
def visit_all(nodes); end
- # : (Arg node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#678
+ # source://rbi//lib/rbi/rbs_printer.rb#680
sig { override.params(node: ::RBI::Arg).void }
def visit_arg(node); end
- # : (Attr node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#270
sig { params(node: ::RBI::Attr).void }
def visit_attr(node); end
- # : (AttrAccessor node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#253
sig { override.params(node: ::RBI::AttrAccessor).void }
def visit_attr_accessor(node); end
- # : (AttrReader node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#259
sig { override.params(node: ::RBI::AttrReader).void }
def visit_attr_reader(node); end
- # : (AttrWriter node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#265
sig { override.params(node: ::RBI::AttrWriter).void }
def visit_attr_writer(node); end
- # : (BlankLine node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#124
sig { override.params(node: ::RBI::BlankLine).void }
def visit_blank_line(node); end
- # : (BlockParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#610
+ # source://rbi//lib/rbi/rbs_printer.rb#612
sig { override.params(node: ::RBI::BlockParam).void }
def visit_block_param(node); end
- # : (Class node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#144
sig { override.params(node: ::RBI::Class).void }
def visit_class(node); end
- # : (Comment node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#107
sig { override.params(node: ::RBI::Comment).void }
def visit_comment(node); end
- # : (ConflictTree node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#814
+ # source://rbi//lib/rbi/rbs_printer.rb#816
sig { override.params(node: ::RBI::ConflictTree).void }
def visit_conflict_tree(node); end
- # : (Const node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#237
sig { override.params(node: ::RBI::Const).void }
def visit_const(node); end
- # : (Extend node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#622
+ # source://rbi//lib/rbi/rbs_printer.rb#624
sig { override.params(node: ::RBI::Extend).void }
def visit_extend(node); end
- # : (File file) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#94
sig { override.params(file: ::RBI::File).void }
def visit_file(file); end
- # : (Group node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#787
+ # source://rbi//lib/rbi/rbs_printer.rb#789
sig { override.params(node: ::RBI::Group).void }
def visit_group(node); end
- # : (Helper node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#775
+ # source://rbi//lib/rbi/rbs_printer.rb#777
sig { override.params(node: ::RBI::Helper).void }
def visit_helper(node); end
- # : (Include node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#616
+ # source://rbi//lib/rbi/rbs_printer.rb#618
sig { override.params(node: ::RBI::Include).void }
def visit_include(node); end
- # : (KwArg node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#684
+ # source://rbi//lib/rbi/rbs_printer.rb#686
sig { override.params(node: ::RBI::KwArg).void }
def visit_kw_arg(node); end
- # : (KwOptParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#598
+ # source://rbi//lib/rbi/rbs_printer.rb#600
sig { override.params(node: ::RBI::KwOptParam).void }
def visit_kw_opt_param(node); end
- # : (KwParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#592
+ # source://rbi//lib/rbi/rbs_printer.rb#594
sig { override.params(node: ::RBI::KwParam).void }
def visit_kw_param(node); end
- # : (KwRestParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#604
+ # source://rbi//lib/rbi/rbs_printer.rb#606
sig { override.params(node: ::RBI::KwRestParam).void }
def visit_kw_rest_param(node); end
- # : (Method node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#325
sig { override.params(node: ::RBI::Method).void }
def visit_method(node); end
- # : (MixesInClassMethods node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#781
+ # source://rbi//lib/rbi/rbs_printer.rb#783
sig { override.params(node: ::RBI::MixesInClassMethods).void }
def visit_mixes_in_class_methods(node); end
- # : (Mixin node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#627
+ # source://rbi//lib/rbi/rbs_printer.rb#629
sig { params(node: ::RBI::Mixin).void }
def visit_mixin(node); end
- # : (Module node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#138
sig { override.params(node: ::RBI::Module).void }
def visit_module(node); end
- # : (OptParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#572
+ # source://rbi//lib/rbi/rbs_printer.rb#574
sig { override.params(node: ::RBI::OptParam).void }
def visit_opt_param(node); end
- # : (Private node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#657
+ # source://rbi//lib/rbi/rbs_printer.rb#659
sig { override.params(node: ::RBI::Private).void }
def visit_private(node); end
- # : (Protected node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#651
+ # source://rbi//lib/rbi/rbs_printer.rb#653
sig { override.params(node: ::RBI::Protected).void }
def visit_protected(node); end
- # : (Public node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#645
+ # source://rbi//lib/rbi/rbs_printer.rb#647
sig { override.params(node: ::RBI::Public).void }
def visit_public(node); end
- # : (ReqParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#562
+ # source://rbi//lib/rbi/rbs_printer.rb#564
sig { override.params(node: ::RBI::ReqParam).void }
def visit_req_param(node); end
- # : (RequiresAncestor node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#808
+ # source://rbi//lib/rbi/rbs_printer.rb#810
sig { override.params(node: ::RBI::RequiresAncestor).void }
def visit_requires_ancestor(node); end
- # : (RestParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#582
+ # source://rbi//lib/rbi/rbs_printer.rb#584
sig { override.params(node: ::RBI::RestParam).void }
def visit_rest_param(node); end
- # : (Scope node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#161
sig { params(node: ::RBI::Scope).void }
def visit_scope(node); end
- # : (Scope node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#224
sig { params(node: ::RBI::Scope).void }
def visit_scope_body(node); end
- # : (ScopeConflict node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#824
+ # source://rbi//lib/rbi/rbs_printer.rb#826
sig { override.params(node: ::RBI::ScopeConflict).void }
def visit_scope_conflict(node); end
- # : (Scope node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#171
sig { params(node: ::RBI::Scope).void }
def visit_scope_header(node); end
- # : (Send node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#672
+ # source://rbi//lib/rbi/rbs_printer.rb#674
sig { override.params(node: ::RBI::Send).void }
def visit_send(node); end
- # : (Sig node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#543
+ # source://rbi//lib/rbi/rbs_printer.rb#545
sig { params(node: ::RBI::Sig).void }
def visit_sig(node); end
- # : (SigParam node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#556
+ # source://rbi//lib/rbi/rbs_printer.rb#558
sig { params(node: ::RBI::SigParam).void }
def visit_sig_param(node); end
- # : (SingletonClass node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#156
sig { override.params(node: ::RBI::SingletonClass).void }
def visit_singleton_class(node); end
- # : (Struct node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#150
sig { override.params(node: ::RBI::Struct).void }
def visit_struct(node); end
- # : (TEnum node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#741
+ # source://rbi//lib/rbi/rbs_printer.rb#743
sig { override.params(node: ::RBI::TEnum).void }
def visit_tenum(node); end
- # : (TEnumBlock node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#747
+ # source://rbi//lib/rbi/rbs_printer.rb#749
sig { override.params(node: ::RBI::TEnumBlock).void }
def visit_tenum_block(node); end
- # : (TEnumValue node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#753
+ # source://rbi//lib/rbi/rbs_printer.rb#755
sig { override.params(node: ::RBI::TEnumValue).void }
def visit_tenum_value(node); end
- # : (Tree node) -> void
- #
# source://rbi//lib/rbi/rbs_printer.rb#130
sig { override.params(node: ::RBI::Tree).void }
def visit_tree(node); end
- # : (TStruct node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#690
+ # source://rbi//lib/rbi/rbs_printer.rb#692
sig { override.params(node: ::RBI::TStruct).void }
def visit_tstruct(node); end
- # : (TStructConst node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#725
+ # source://rbi//lib/rbi/rbs_printer.rb#727
sig { override.params(node: ::RBI::TStructConst).void }
def visit_tstruct_const(node); end
- # : (TStructProp node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#733
+ # source://rbi//lib/rbi/rbs_printer.rb#735
sig { override.params(node: ::RBI::TStructProp).void }
def visit_tstruct_prop(node); end
- # : (TypeMember node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#769
+ # source://rbi//lib/rbi/rbs_printer.rb#771
sig { override.params(node: ::RBI::TypeMember).void }
def visit_type_member(node); end
- # : (Visibility node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#662
+ # source://rbi//lib/rbi/rbs_printer.rb#664
sig { params(node: ::RBI::Visibility).void }
def visit_visibility(node); end
- # : (VisibilityGroup node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#794
+ # source://rbi//lib/rbi/rbs_printer.rb#796
sig { override.params(node: ::RBI::VisibilityGroup).void }
def visit_visibility_group(node); end
private
- # : (Node node) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rbs_printer.rb#927
+ # source://rbi//lib/rbi/rbs_printer.rb#929
sig { params(node: ::RBI::Node).returns(T::Boolean) }
def oneline?(node); end
# Parse a string containing a `T.let(x, X)` and extract the type
#
# Returns `nil` is the string is not a `T.let`.
- # : (String? code) -> String?
#
- # source://rbi//lib/rbi/rbs_printer.rb#961
+ # source://rbi//lib/rbi/rbs_printer.rb#963
sig { params(code: T.nilable(::String)).returns(T.nilable(::String)) }
def parse_t_let(code); end
- # : ((Type | String) type) -> Type
- #
- # source://rbi//lib/rbi/rbs_printer.rb#949
+ # source://rbi//lib/rbi/rbs_printer.rb#951
sig { params(type: T.any(::RBI::Type, ::String)).returns(::RBI::Type) }
def parse_type(type); end
- # : (Node node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#840
+ # source://rbi//lib/rbi/rbs_printer.rb#842
sig { params(node: ::RBI::Node).void }
def print_blank_line_before(node); end
- # : (Node node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#859
+ # source://rbi//lib/rbi/rbs_printer.rb#861
sig { params(node: ::RBI::Node).void }
def print_loc(node); end
- # : (Param node, last: bool) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#901
+ # source://rbi//lib/rbi/rbs_printer.rb#903
sig { params(node: ::RBI::Param, last: T::Boolean).void }
def print_param_comment_leading_space(node, last:); end
- # : (Method node, SigParam param) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#865
+ # source://rbi//lib/rbi/rbs_printer.rb#867
sig { params(node: ::RBI::Method, param: ::RBI::SigParam).void }
def print_sig_param(node, param); end
- # : (SigParam node, last: bool) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#919
+ # source://rbi//lib/rbi/rbs_printer.rb#921
sig { params(node: ::RBI::SigParam, last: T::Boolean).void }
def print_sig_param_comment_leading_space(node, last:); end
end
@@ -3270,13 +2412,11 @@ class RBI::RBSPrinter::Error < ::RBI::Error; end
# source://rbi//lib/rbi/model.rb#5
class RBI::ReplaceNodeError < ::RBI::Error; end
-# source://rbi//lib/rbi/model.rb#519
+# source://rbi//lib/rbi/model.rb#569
class RBI::ReqParam < ::RBI::Param
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (ReqParam node) -> void } -> void
- #
# @return [ReqParam] a new instance of ReqParam
#
- # source://rbi//lib/rbi/model.rb#521
+ # source://rbi//lib/rbi/model.rb#571
sig do
params(
name: ::String,
@@ -3287,51 +2427,39 @@ class RBI::ReqParam < ::RBI::Param
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#527
+ # source://rbi//lib/rbi/model.rb#577
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
end
-# source://rbi//lib/rbi/model.rb#1103
+# source://rbi//lib/rbi/model.rb#1204
class RBI::RequiresAncestor < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [RequiresAncestor] a new instance of RequiresAncestor
#
- # source://rbi//lib/rbi/model.rb#1108
+ # source://rbi//lib/rbi/model.rb#1209
sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#154
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#1105
+ # source://rbi//lib/rbi/model.rb#1206
sig { returns(::String) }
def name; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1115
+ # source://rbi//lib/rbi/model.rb#1216
sig { override.returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#549
+# source://rbi//lib/rbi/model.rb#599
class RBI::RestParam < ::RBI::Param
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (RestParam node) -> void } -> void
- #
# @return [RestParam] a new instance of RestParam
#
- # source://rbi//lib/rbi/model.rb#551
+ # source://rbi//lib/rbi/model.rb#601
sig do
params(
name: ::String,
@@ -3342,15 +2470,11 @@ class RBI::RestParam < ::RBI::Param
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#563
+ # source://rbi//lib/rbi/model.rb#613
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#558
+ # source://rbi//lib/rbi/model.rb#608
sig { override.returns(::String) }
def to_s; end
end
@@ -3360,36 +2484,26 @@ module RBI::Rewriters; end
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6
class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor
- # : (?with_todo_comment: bool) -> void
- #
# @return [AddSigTemplates] a new instance of AddSigTemplates
#
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#8
sig { params(with_todo_comment: T::Boolean).void }
def initialize(with_todo_comment: T.unsafe(nil)); end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#15
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (Attr attr) -> void
- #
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#29
sig { params(attr: ::RBI::Attr).void }
def add_attr_sig(attr); end
- # : (Method method) -> void
- #
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#44
sig { params(method: ::RBI::Method).void }
def add_method_sig(method); end
- # : (NodeWithComments node) -> void
- #
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#55
sig { params(node: ::RBI::NodeWithComments).void }
def add_todo_comment(node); end
@@ -3397,30 +2511,22 @@ end
# source://rbi//lib/rbi/rewriters/annotate.rb#6
class RBI::Rewriters::Annotate < ::RBI::Visitor
- # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void
- #
# @return [Annotate] a new instance of Annotate
#
# source://rbi//lib/rbi/rewriters/annotate.rb#8
sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/annotate.rb#17
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (NodeWithComments node) -> void
- #
# source://rbi//lib/rbi/rewriters/annotate.rb#30
sig { params(node: ::RBI::NodeWithComments).void }
def annotate_node(node); end
- # : (Node node) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/rewriters/annotate.rb#37
@@ -3430,16 +2536,12 @@ end
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#22
class RBI::Rewriters::AttrToMethods < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#25
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (Node node, with: Array[Node]) -> void
- #
# @raise [ReplaceNodeError]
#
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#38
@@ -3449,24 +2551,18 @@ end
# source://rbi//lib/rbi/rewriters/deannotate.rb#6
class RBI::Rewriters::Deannotate < ::RBI::Visitor
- # : (String annotation) -> void
- #
# @return [Deannotate] a new instance of Deannotate
#
# source://rbi//lib/rbi/rewriters/deannotate.rb#8
sig { params(annotation: ::String).void }
def initialize(annotation); end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/deannotate.rb#15
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (NodeWithComments node) -> void
- #
# source://rbi//lib/rbi/rewriters/deannotate.rb#26
sig { params(node: ::RBI::NodeWithComments).void }
def deannotate_node(node); end
@@ -3526,23 +2622,17 @@ end
#
# source://rbi//lib/rbi/rewriters/filter_versions.rb#57
class RBI::Rewriters::FilterVersions < ::RBI::Visitor
- # : (Gem::Version version) -> void
- #
# @return [FilterVersions] a new instance of FilterVersions
#
# source://rbi//lib/rbi/rewriters/filter_versions.rb#69
sig { params(version: ::Gem::Version).void }
def initialize(version); end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/filter_versions.rb#76
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
class << self
- # : (Tree tree, Gem::Version version) -> void
- #
# source://rbi//lib/rbi/rewriters/filter_versions.rb#62
sig { params(tree: ::RBI::Tree, version: ::Gem::Version).void }
def filter(tree, version); end
@@ -3579,8 +2669,6 @@ RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String)
#
# source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#30
class RBI::Rewriters::FlattenSingletonMethods < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#33
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
@@ -3610,16 +2698,12 @@ end
#
# source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#27
class RBI::Rewriters::FlattenVisibilities < ::RBI::Visitor
- # : -> void
- #
# @return [FlattenVisibilities] a new instance of FlattenVisibilities
#
# source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#29
sig { void }
def initialize; end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#37
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
@@ -3627,16 +2711,12 @@ end
# source://rbi//lib/rbi/rewriters/group_nodes.rb#8
class RBI::Rewriters::GroupNodes < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/group_nodes.rb#11
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (Node node) -> Group::Kind
- #
# source://rbi//lib/rbi/rewriters/group_nodes.rb#35
sig { params(node: ::RBI::Node).returns(::RBI::Group::Kind) }
def group_kind(node); end
@@ -3678,29 +2758,21 @@ end
#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#39
class RBI::Rewriters::Merge
- # : (?left_name: String, ?right_name: String, ?keep: Keep) -> void
- #
# @return [Merge] a new instance of Merge
#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#66
sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void }
def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
- # : (Tree tree) -> void
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#75
sig { params(tree: ::RBI::Tree).void }
def merge(tree); end
- # : MergeTree
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#63
sig { returns(::RBI::MergeTree) }
def tree; end
class << self
- # : (Tree left, Tree right, ?left_name: String, ?right_name: String, ?keep: Keep) -> MergeTree
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#50
sig do
params(
@@ -3719,38 +2791,26 @@ end
#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#82
class RBI::Rewriters::Merge::Conflict
- # : (left: Node, right: Node, left_name: String, right_name: String) -> void
- #
# @return [Conflict] a new instance of Conflict
#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#90
sig { params(left: ::RBI::Node, right: ::RBI::Node, left_name: ::String, right_name: ::String).void }
def initialize(left:, right:, left_name:, right_name:); end
- # : Node
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#84
sig { returns(::RBI::Node) }
def left; end
- # : String
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#87
sig { returns(::String) }
def left_name; end
- # : Node
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#84
def right; end
- # : String
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#87
def right_name; end
- # : -> String
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#98
sig { returns(::String) }
def to_s; end
@@ -3787,25 +2847,19 @@ end
# end
# ~~~
#
-# source://rbi//lib/rbi/rewriters/merge_trees.rb#247
+# source://rbi//lib/rbi/rewriters/merge_trees.rb#258
class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor
- # : (Node? node) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#250
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#261
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
- # : (Array[Node] nodes) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#256
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#267
sig { override.params(nodes: T::Array[::RBI::Node]).void }
def visit_all(nodes); end
private
- # : (Tree left, Tree right) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#277
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#290
sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void }
def merge_conflict_trees(left, right); end
end
@@ -3815,29 +2869,22 @@ class RBI::Rewriters::Merge::Keep
class << self
private
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#45
def new(*_arg0); end
end
end
-# : Keep
-#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#42
RBI::Rewriters::Merge::Keep::LEFT = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep)
-# : Keep
-#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#41
RBI::Rewriters::Merge::Keep::NONE = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep)
-# : Keep
-#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#43
RBI::Rewriters::Merge::Keep::RIGHT = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep)
# source://rbi//lib/rbi/rewriters/merge_trees.rb#103
class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor
- # : (Tree output, ?left_name: String, ?right_name: String, ?keep: Keep) -> void
- #
# @return [TreeMerger] a new instance of TreeMerger
#
# source://rbi//lib/rbi/rewriters/merge_trees.rb#108
@@ -3851,55 +2898,39 @@ class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor
end
def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
- # : Array[Conflict]
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#105
sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) }
def conflicts; end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/merge_trees.rb#121
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : -> Tree
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#170
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#181
sig { returns(::RBI::Tree) }
def current_scope; end
- # : (Scope left, Scope right) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#187
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#198
sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void }
def make_conflict_scope(left, right); end
- # : (Node left, Node right) -> void
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#194
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#205
sig { params(left: ::RBI::Node, right: ::RBI::Node).void }
def make_conflict_tree(left, right); end
- # : (Node node) -> Node?
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#175
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#186
sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) }
def previous_definition(node); end
- # : (Scope left, Scope right) -> Scope
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#206
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#217
sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) }
def replace_scope_header(left, right); end
end
# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#6
class RBI::Rewriters::NestNonPublicMembers < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#9
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
@@ -3907,8 +2938,6 @@ end
# source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6
class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#9
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
@@ -3933,16 +2962,12 @@ end
#
# source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#22
class RBI::Rewriters::NestTopLevelMembers < ::RBI::Visitor
- # : -> void
- #
# @return [NestTopLevelMembers] a new instance of NestTopLevelMembers
#
# source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#24
sig { void }
def initialize; end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#32
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
@@ -3993,57 +3018,41 @@ end
#
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48
class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor
- # : (Index index) -> void
- #
# @return [RemoveKnownDefinitions] a new instance of RemoveKnownDefinitions
#
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#53
sig { params(index: ::RBI::Index).void }
def initialize(index); end
- # : Array[Operation]
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#50
sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) }
def operations; end
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#75
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
- # : (Array[Node] nodes) -> void
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#69
sig { params(nodes: T::Array[::RBI::Node]).void }
def visit_all(nodes); end
private
- # : (Node node, Node previous) -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#103
sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) }
def can_delete_node?(node, previous); end
- # : (Node node, Node previous) -> void
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#121
sig { params(node: ::RBI::Node, previous: ::RBI::Node).void }
def delete_node(node, previous); end
- # : (Indexable node) -> Node?
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#94
sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) }
def previous_definition_for(node); end
class << self
- # : (Tree tree, Index index) -> [Tree, Array[Operation]]
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#61
sig do
params(
@@ -4057,27 +3066,19 @@ end
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#126
class RBI::Rewriters::RemoveKnownDefinitions::Operation
- # : (deleted_node: Node, duplicate_of: Node) -> void
- #
# @return [Operation] a new instance of Operation
#
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#131
sig { params(deleted_node: ::RBI::Node, duplicate_of: ::RBI::Node).void }
def initialize(deleted_node:, duplicate_of:); end
- # : Node
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#128
sig { returns(::RBI::Node) }
def deleted_node; end
- # : Node
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#128
def duplicate_of; end
- # : -> String
- #
# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#137
sig { returns(::String) }
def to_s; end
@@ -4085,34 +3086,24 @@ end
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#6
class RBI::Rewriters::SortNodes < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#9
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (Group::Kind kind) -> Integer
- #
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#74
sig { params(kind: ::RBI::Group::Kind).returns(::Integer) }
def group_rank(kind); end
- # : (Node node) -> String?
- #
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#95
sig { params(node: ::RBI::Node).returns(T.nilable(::String)) }
def node_name(node); end
- # : (Node node) -> Integer
- #
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#46
sig { params(node: ::RBI::Node).returns(::Integer) }
def node_rank(node); end
- # : (Node node) -> void
- #
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#107
sig { params(node: ::RBI::Node).void }
def sort_node_names!(node); end
@@ -4122,28 +3113,20 @@ end
#
# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#7
class RBI::Rewriters::TranslateRBSSigs < ::RBI::Visitor
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#12
sig { override.params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
private
- # : (Method | Attr) -> Array[RBSComment]
- #
# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#34
sig { params(node: T.any(::RBI::Attr, ::RBI::Method)).returns(T::Array[::RBI::RBSComment]) }
def extract_rbs_comments(node); end
- # : (Attr, RBSComment) -> Sig
- #
# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#61
sig { params(node: ::RBI::Attr, comment: ::RBI::RBSComment).returns(::RBI::Sig) }
def translate_rbs_attr_type(node, comment); end
- # : (Method, RBSComment) -> Sig
- #
# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#53
sig { params(node: ::RBI::Method, comment: ::RBI::RBSComment).returns(::RBI::Sig) }
def translate_rbs_method_type(node, comment); end
@@ -4161,28 +3144,22 @@ class RBI::Scope < ::RBI::Tree
abstract!
# Duplicate `self` scope without its body
- # : -> self
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#346
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#363
sig { returns(T.self_type) }
def dup_empty; end
- # : -> String
- #
# @abstract
+ # @raise [NotImplementedError]
#
# source://rbi//lib/rbi/model.rb#166
sig { abstract.returns(::String) }
def fully_qualified_name; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#84
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
# source://rbi//lib/rbi/model.rb#170
sig { override.returns(::String) }
def to_s; end
@@ -4201,50 +3178,38 @@ end
# end
# ~~~
#
-# source://rbi//lib/rbi/rewriters/merge_trees.rb#586
+# source://rbi//lib/rbi/rewriters/merge_trees.rb#603
class RBI::ScopeConflict < ::RBI::Tree
- # : (left: Scope, right: Scope, ?left_name: String, ?right_name: String) -> void
- #
# @return [ScopeConflict] a new instance of ScopeConflict
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#594
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#611
sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void }
def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end
- # : Scope
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#588
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#605
sig { returns(::RBI::Scope) }
def left; end
- # : String
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#591
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#608
sig { returns(::String) }
def left_name; end
- # : Scope
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#588
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#605
def right; end
- # : String
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#591
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#608
def right_name; end
end
# Sends
#
-# source://rbi//lib/rbi/model.rb#752
+# source://rbi//lib/rbi/model.rb#802
class RBI::Send < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String method, ?Array[Arg] args, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Send node) -> void } -> void
- #
# @return [Send] a new instance of Send
#
- # source://rbi//lib/rbi/model.rb#760
+ # source://rbi//lib/rbi/model.rb#810
sig do
params(
method: ::String,
@@ -4256,60 +3221,44 @@ class RBI::Send < ::RBI::NodeWithComments
end
def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Arg arg) -> void
- #
- # source://rbi//lib/rbi/model.rb#768
+ # source://rbi//lib/rbi/model.rb#818
sig { params(arg: ::RBI::Arg).void }
def <<(arg); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#773
+ # source://rbi//lib/rbi/model.rb#823
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : Array[Arg]
- #
- # source://rbi//lib/rbi/model.rb#757
+ # source://rbi//lib/rbi/model.rb#807
sig { returns(T::Array[::RBI::Arg]) }
def args; end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#512
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#529
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#184
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#754
+ # source://rbi//lib/rbi/model.rb#804
sig { returns(::String) }
def method; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#778
+ # source://rbi//lib/rbi/model.rb#828
sig { returns(::String) }
def to_s; end
end
# Sorbet's sigs
#
-# source://rbi//lib/rbi/model.rb#827
+# source://rbi//lib/rbi/model.rb#877
class RBI::Sig < ::RBI::NodeWithComments
- # : (?params: Array[SigParam], ?return_type: (Type | String), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?allow_incompatible_override: bool, ?without_runtime: bool, ?type_params: Array[String], ?checked: Symbol?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Sig node) -> void } -> void
- #
# @return [Sig] a new instance of Sig
#
- # source://rbi//lib/rbi/model.rb#844
+ # source://rbi//lib/rbi/model.rb#926
sig do
params(
params: T::Array[::RBI::SigParam],
@@ -4319,6 +3268,7 @@ class RBI::Sig < ::RBI::NodeWithComments
is_overridable: T::Boolean,
is_final: T::Boolean,
allow_incompatible_override: T::Boolean,
+ allow_incompatible_override_visibility: T::Boolean,
without_runtime: T::Boolean,
type_params: T::Array[::String],
checked: T.nilable(::Symbol),
@@ -4327,129 +3277,97 @@ class RBI::Sig < ::RBI::NodeWithComments
block: T.nilable(T.proc.params(node: ::RBI::Sig).void)
).void
end
- def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), allow_incompatible_override: T.unsafe(nil), without_runtime: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
+ def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), allow_incompatible_override: T.unsafe(nil), allow_incompatible_override_visibility: T.unsafe(nil), without_runtime: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (SigParam param) -> void
- #
- # source://rbi//lib/rbi/model.rb#874
+ # source://rbi//lib/rbi/model.rb#958
sig { params(param: ::RBI::SigParam).void }
def <<(param); end
- # : (Object other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#884
+ # source://rbi//lib/rbi/model.rb#968
sig { params(other: ::Object).returns(T::Boolean) }
def ==(other); end
- # : (String name, (Type | String) type) -> void
- #
- # source://rbi//lib/rbi/model.rb#879
+ # source://rbi//lib/rbi/model.rb#963
sig { params(name: ::String, type: T.any(::RBI::Type, ::String)).void }
def add_param(name, type); end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#897
+ sig { returns(T::Boolean) }
def allow_incompatible_override; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#897
def allow_incompatible_override=(_arg0); end
- # : Symbol?
- #
- # source://rbi//lib/rbi/model.rb#841
+ # source://rbi//lib/rbi/model.rb#900
+ sig { returns(T::Boolean) }
+ def allow_incompatible_override_visibility; end
+
+ # source://rbi//lib/rbi/model.rb#900
+ def allow_incompatible_override_visibility=(_arg0); end
+
+ # source://rbi//lib/rbi/model.rb#909
sig { returns(T.nilable(::Symbol)) }
def checked; end
- # : Symbol?
- #
- # source://rbi//lib/rbi/model.rb#841
+ # source://rbi//lib/rbi/model.rb#909
def checked=(_arg0); end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#885
sig { returns(T::Boolean) }
def is_abstract; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#885
def is_abstract=(_arg0); end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#894
+ sig { returns(T::Boolean) }
def is_final; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#894
def is_final=(_arg0); end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#891
+ sig { returns(T::Boolean) }
def is_overridable; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#891
def is_overridable=(_arg0); end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#888
+ sig { returns(T::Boolean) }
def is_override; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#888
def is_override=(_arg0); end
- # : Array[SigParam]
- #
- # source://rbi//lib/rbi/model.rb#829
+ # source://rbi//lib/rbi/model.rb#879
sig { returns(T::Array[::RBI::SigParam]) }
def params; end
- # : (Type | String)
- #
- # source://rbi//lib/rbi/model.rb#832
+ # source://rbi//lib/rbi/model.rb#882
sig { returns(T.any(::RBI::Type, ::String)) }
def return_type; end
- # : (Type | String)
- #
- # source://rbi//lib/rbi/model.rb#832
+ # source://rbi//lib/rbi/model.rb#882
def return_type=(_arg0); end
- # : Array[String]
- #
- # source://rbi//lib/rbi/model.rb#838
+ # source://rbi//lib/rbi/model.rb#906
sig { returns(T::Array[::String]) }
def type_params; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#903
+ sig { returns(T::Boolean) }
def without_runtime; end
- # : bool
- #
- # source://rbi//lib/rbi/model.rb#835
+ # source://rbi//lib/rbi/model.rb#903
def without_runtime=(_arg0); end
end
-# source://rbi//lib/rbi/model.rb#893
+# source://rbi//lib/rbi/model.rb#977
class RBI::SigParam < ::RBI::NodeWithComments
- # : (String name, (Type | String) type, ?loc: Loc?, ?comments: Array[Comment]) ?{ (SigParam node) -> void } -> void
- #
# @return [SigParam] a new instance of SigParam
#
- # source://rbi//lib/rbi/model.rb#901
+ # source://rbi//lib/rbi/model.rb#985
sig do
params(
name: ::String,
@@ -4461,29 +3379,21 @@ class RBI::SigParam < ::RBI::NodeWithComments
end
def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Object other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#909
+ # source://rbi//lib/rbi/model.rb#993
sig { params(other: ::Object).returns(T::Boolean) }
def ==(other); end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#895
+ # source://rbi//lib/rbi/model.rb#979
sig { returns(::String) }
def name; end
- # : (Type | String)
- #
- # source://rbi//lib/rbi/model.rb#898
+ # source://rbi//lib/rbi/model.rb#982
sig { returns(T.any(::RBI::Type, ::String)) }
def type; end
end
# source://rbi//lib/rbi/model.rb#219
class RBI::SingletonClass < ::RBI::Scope
- # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (SingletonClass node) -> void } -> void
- #
# @return [SingletonClass] a new instance of SingletonClass
#
# source://rbi//lib/rbi/model.rb#221
@@ -4496,8 +3406,6 @@ class RBI::SingletonClass < ::RBI::Scope
end
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : -> String
- #
# source://rbi//lib/rbi/model.rb#228
sig { override.returns(::String) }
def fully_qualified_name; end
@@ -4505,11 +3413,9 @@ end
# source://rbi//lib/rbi/model.rb#233
class RBI::Struct < ::RBI::Scope
- # : (String name, ?members: Array[Symbol], ?keyword_init: bool, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Struct struct) -> void } -> void
- #
# @return [Struct] a new instance of Struct
#
- # source://rbi//lib/rbi/model.rb#244
+ # source://rbi//lib/rbi/model.rb#250
sig do
params(
name: ::String,
@@ -4522,63 +3428,45 @@ class RBI::Struct < ::RBI::Scope
end
def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#387
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#404
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#254
+ # source://rbi//lib/rbi/model.rb#260
sig { override.returns(::String) }
def fully_qualified_name; end
- # : bool
- #
# source://rbi//lib/rbi/model.rb#241
sig { returns(T::Boolean) }
def keyword_init; end
- # : bool
- #
# source://rbi//lib/rbi/model.rb#241
def keyword_init=(_arg0); end
- # : Array[Symbol]
- #
# source://rbi//lib/rbi/model.rb#238
sig { returns(T::Array[::Symbol]) }
def members; end
- # : Array[Symbol]
- #
# source://rbi//lib/rbi/model.rb#238
def members=(_arg0); end
- # : String
- #
# source://rbi//lib/rbi/model.rb#235
sig { returns(::String) }
def name; end
- # : String
- #
# source://rbi//lib/rbi/model.rb#235
def name=(_arg0); end
end
# Sorbet's T::Enum
#
-# source://rbi//lib/rbi/model.rb#992
+# source://rbi//lib/rbi/model.rb#1088
class RBI::TEnum < ::RBI::Class
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnum klass) -> void } -> void
- #
# @return [TEnum] a new instance of TEnum
#
- # source://rbi//lib/rbi/model.rb#994
+ # source://rbi//lib/rbi/model.rb#1090
sig do
params(
name: ::String,
@@ -4590,13 +3478,11 @@ class RBI::TEnum < ::RBI::Class
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
end
-# source://rbi//lib/rbi/model.rb#1000
+# source://rbi//lib/rbi/model.rb#1096
class RBI::TEnumBlock < ::RBI::Scope
- # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumBlock node) -> void } -> void
- #
# @return [TEnumBlock] a new instance of TEnumBlock
#
- # source://rbi//lib/rbi/model.rb#1002
+ # source://rbi//lib/rbi/model.rb#1098
sig do
params(
loc: T.nilable(::RBI::Loc),
@@ -4606,34 +3492,26 @@ class RBI::TEnumBlock < ::RBI::Scope
end
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1009
+ # source://rbi//lib/rbi/model.rb#1105
sig { override.returns(::String) }
def fully_qualified_name; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#214
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1015
+ # source://rbi//lib/rbi/model.rb#1111
sig { override.returns(::String) }
def to_s; end
end
-# source://rbi//lib/rbi/model.rb#1020
+# source://rbi//lib/rbi/model.rb#1116
class RBI::TEnumValue < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumValue node) -> void } -> void
- #
# @return [TEnumValue] a new instance of TEnumValue
#
- # source://rbi//lib/rbi/model.rb#1025
+ # source://rbi//lib/rbi/model.rb#1121
sig do
params(
name: ::String,
@@ -4644,40 +3522,30 @@ class RBI::TEnumValue < ::RBI::NodeWithComments
end
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1032
+ # source://rbi//lib/rbi/model.rb#1128
sig { returns(::String) }
def fully_qualified_name; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#224
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#1022
+ # source://rbi//lib/rbi/model.rb#1118
sig { returns(::String) }
def name; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1038
+ # source://rbi//lib/rbi/model.rb#1134
sig { override.returns(::String) }
def to_s; end
end
# Sorbet's T::Struct
#
-# source://rbi//lib/rbi/model.rb#916
+# source://rbi//lib/rbi/model.rb#1000
class RBI::TStruct < ::RBI::Class
- # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStruct klass) -> void } -> void
- #
# @return [TStruct] a new instance of TStruct
#
- # source://rbi//lib/rbi/model.rb#918
+ # source://rbi//lib/rbi/model.rb#1002
sig do
params(
name: ::String,
@@ -4689,15 +3557,13 @@ class RBI::TStruct < ::RBI::Class
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
end
-# source://rbi//lib/rbi/model.rb#948
+# source://rbi//lib/rbi/model.rb#1032
class RBI::TStructConst < ::RBI::TStructField
include ::RBI::Indexable
- # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructConst node) -> void } -> void
- #
# @return [TStructConst] a new instance of TStructConst
#
- # source://rbi//lib/rbi/model.rb#950
+ # source://rbi//lib/rbi/model.rb#1040
sig do
params(
name: ::String,
@@ -4710,44 +3576,34 @@ class RBI::TStructConst < ::RBI::TStructField
end
def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#528
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#545
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
- # source://rbi//lib/rbi/model.rb#957
+ # source://rbi//lib/rbi/model.rb#1047
sig { override.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#194
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#964
+ # source://rbi//lib/rbi/model.rb#1054
sig { override.returns(::String) }
def to_s; end
end
# @abstract
#
-# source://rbi//lib/rbi/model.rb#925
+# source://rbi//lib/rbi/model.rb#1009
class RBI::TStructField < ::RBI::NodeWithComments
abstract!
- # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [TStructField] a new instance of TStructField
#
- # source://rbi//lib/rbi/model.rb#936
+ # source://rbi//lib/rbi/model.rb#1020
sig do
params(
name: ::String,
@@ -4759,65 +3615,48 @@ class RBI::TStructField < ::RBI::NodeWithComments
end
def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#520
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#537
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : String?
- #
- # source://rbi//lib/rbi/model.rb#933
+ # source://rbi//lib/rbi/model.rb#1017
sig { returns(T.nilable(::String)) }
def default; end
- # : String?
- #
- # source://rbi//lib/rbi/model.rb#933
+ # source://rbi//lib/rbi/model.rb#1017
def default=(_arg0); end
- # : -> Array[String]
- #
# @abstract
+ # @raise [NotImplementedError]
#
- # source://rbi//lib/rbi/model.rb#945
+ # source://rbi//lib/rbi/model.rb#1029
sig { abstract.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#927
+ # source://rbi//lib/rbi/model.rb#1011
sig { returns(::String) }
def name; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#927
+ # source://rbi//lib/rbi/model.rb#1011
def name=(_arg0); end
- # : (Type | String)
- #
- # source://rbi//lib/rbi/model.rb#930
+ # source://rbi//lib/rbi/model.rb#1014
sig { returns(T.any(::RBI::Type, ::String)) }
def type; end
- # : (Type | String)
- #
- # source://rbi//lib/rbi/model.rb#930
+ # source://rbi//lib/rbi/model.rb#1014
def type=(_arg0); end
end
-# source://rbi//lib/rbi/model.rb#969
+# source://rbi//lib/rbi/model.rb#1059
class RBI::TStructProp < ::RBI::TStructField
include ::RBI::Indexable
- # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructProp node) -> void } -> void
- #
# @return [TStructProp] a new instance of TStructProp
#
- # source://rbi//lib/rbi/model.rb#971
+ # source://rbi//lib/rbi/model.rb#1067
sig do
params(
name: ::String,
@@ -4830,37 +3669,27 @@ class RBI::TStructProp < ::RBI::TStructField
end
def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#536
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#553
sig { override.params(other: ::RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
- # : -> Array[String]
- #
- # source://rbi//lib/rbi/model.rb#978
+ # source://rbi//lib/rbi/model.rb#1074
sig { override.returns(T::Array[::String]) }
def fully_qualified_names; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#204
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#985
+ # source://rbi//lib/rbi/model.rb#1081
sig { override.returns(::String) }
def to_s; end
end
# source://rbi//lib/rbi/model.rb#108
class RBI::Tree < ::RBI::NodeWithComments
- # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Tree node) -> void } -> void
- #
# @return [Tree] a new instance of Tree
#
# source://rbi//lib/rbi/model.rb#113
@@ -4873,132 +3702,49 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : (Node node) -> void
- #
# source://rbi//lib/rbi/model.rb#120
sig { params(node: ::RBI::Node).void }
def <<(node); end
- # : (?with_todo_comment: bool) -> void
- #
# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#63
sig { params(with_todo_comment: T::Boolean).void }
def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
- # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void
- #
# source://rbi//lib/rbi/rewriters/annotate.rb#46
sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#38
- sig do
- params(
- name: ::String,
- superclass_name: T.nilable(::String),
- block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)
- ).returns(::RBI::Scope)
- end
- def create_class(name, superclass_name: T.unsafe(nil), &block); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#45
- sig { params(name: ::String, value: ::String).void }
- def create_constant(name, value:); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#55
- sig { params(name: ::String).void }
- def create_extend(name); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#50
- sig { params(name: ::String).void }
- def create_include(name); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#90
- sig do
- params(
- name: ::String,
- parameters: T::Array[::RBI::TypedParam],
- return_type: T.nilable(::String),
- class_method: T::Boolean,
- visibility: ::RBI::Visibility,
- comments: T::Array[::RBI::Comment],
- block: T.nilable(T.proc.params(node: ::RBI::Method).void)
- ).void
- end
- def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#60
- sig { params(name: ::String).void }
- def create_mixes_in_class_methods(name); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#25
- sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
- def create_module(name, &block); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#9
- sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
- def create_path(constant, &block); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#74
- sig do
- params(
- name: ::String,
- type: ::String,
- variance: ::Symbol,
- fixed: T.nilable(::String),
- upper: T.nilable(::String),
- lower: T.nilable(::String)
- ).void
- end
- def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end
-
- # : (String annotation) -> void
- #
# source://rbi//lib/rbi/rewriters/deannotate.rb#38
sig { params(annotation: ::String).void }
def deannotate!(annotation); end
- # : -> bool
- #
# @return [Boolean]
#
# source://rbi//lib/rbi/model.rb#126
sig { returns(T::Boolean) }
def empty?; end
- # : (Gem::Version version) -> void
- #
# source://rbi//lib/rbi/rewriters/filter_versions.rb#113
sig { params(version: ::Gem::Version).void }
def filter_versions!(version); end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#58
sig { void }
def flatten_singleton_methods!; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#57
sig { void }
def flatten_visibilities!; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/group_nodes.rb#78
sig { void }
def group_nodes!; end
- # : -> Index
- #
# source://rbi//lib/rbi/index.rb#62
sig { returns(::RBI::Index) }
def index; end
- # : (Tree other, ?left_name: String, ?right_name: String, ?keep: Rewriters::Merge::Keep) -> MergeTree
- #
- # source://rbi//lib/rbi/rewriters/merge_trees.rb#323
+ # source://rbi//lib/rbi/rewriters/merge_trees.rb#336
sig do
params(
other: ::RBI::Tree,
@@ -5009,57 +3755,33 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#43
sig { void }
def nest_non_public_members!; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#33
sig { void }
def nest_singleton_methods!; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#60
sig { void }
def nest_top_level_members!; end
- # : Array[Node]
- #
# source://rbi//lib/rbi/model.rb#110
sig { returns(T::Array[::RBI::Node]) }
def nodes; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#50
sig { void }
def replace_attributes_with_methods!; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/sort_nodes.rb#118
sig { void }
def sort_nodes!; end
- # : -> void
- #
# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#82
sig { void }
def translate_rbs_sigs!; end
-
- private
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#123
- sig { params(node: ::RBI::Node).returns(::RBI::Node) }
- def create_node(node); end
-
- # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#118
- sig { returns(T::Hash[::String, ::RBI::Node]) }
- def nodes_cache; end
end
# The base class for all RBI types.
@@ -5070,33 +3792,26 @@ end
class RBI::Type
abstract!
- # : -> void
- #
# @return [Type] a new instance of Type
#
- # source://rbi//lib/rbi/type.rb#905
+ # source://rbi//lib/rbi/type.rb#993
sig { void }
def initialize; end
- # : (BasicObject) -> bool
- #
# @abstract
+ # @raise [NotImplementedError]
#
- # source://rbi//lib/rbi/type.rb#976
+ # source://rbi//lib/rbi/type.rb#1064
sig { abstract.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : (BasicObject other) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/type.rb#979
+ # source://rbi//lib/rbi/type.rb#1067
sig { params(other: ::BasicObject).returns(T::Boolean) }
def eql?(other); end
- # : -> Integer
- #
- # source://rbi//lib/rbi/type.rb#985
+ # source://rbi//lib/rbi/type.rb#1073
sig { override.returns(::Integer) }
def hash; end
@@ -5106,21 +3821,19 @@ class RBI::Type
# ```ruby
# type = RBI::Type.simple("String")
# type.to_rbi # => "String"
- # type.nilable.to_rbi # => "T.nilable(String)"
- # type.nilable.nilable.to_rbi # => "T.nilable(String)"
+ # type.nilable.to_rbi # => "::T.nilable(String)"
+ # type.nilable.nilable.to_rbi # => "::T.nilable(String)"
# ```
- # : -> Type
#
- # source://rbi//lib/rbi/type.rb#919
+ # source://rbi//lib/rbi/type.rb#1007
sig { returns(::RBI::Type) }
def nilable; end
# Returns whether the type is nilable.
- # : -> bool
#
# @return [Boolean]
#
- # source://rbi//lib/rbi/type.rb#946
+ # source://rbi//lib/rbi/type.rb#1034
sig { returns(T::Boolean) }
def nilable?; end
@@ -5130,13 +3843,12 @@ class RBI::Type
#
# ```ruby
# type = RBI::Type.nilable(RBI::Type.simple("String"))
- # type.to_rbi # => "T.nilable(String)"
+ # type.to_rbi # => "::T.nilable(String)"
# type.non_nilable.to_rbi # => "String"
# type.non_nilable.non_nilable.to_rbi # => "String"
# ```
- # : -> Type
#
- # source://rbi//lib/rbi/type.rb#934
+ # source://rbi//lib/rbi/type.rb#1022
sig { returns(::RBI::Type) }
def non_nilable; end
@@ -5148,17 +3860,15 @@ class RBI::Type
#
# This is the inverse of `#simplify`.
#
- # : -> Type
#
# @abstract
+ # @raise [NotImplementedError]
#
- # source://rbi//lib/rbi/type.rb#960
+ # source://rbi//lib/rbi/type.rb#1048
sig { abstract.returns(::RBI::Type) }
def normalize; end
- # : -> String
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1240
+ # source://rbi//lib/rbi/rbs_printer.rb#1261
sig { returns(::String) }
def rbs_string; end
@@ -5170,25 +3880,22 @@ class RBI::Type
#
# This is the inverse of `#normalize`.
#
- # : -> Type
#
# @abstract
+ # @raise [NotImplementedError]
#
- # source://rbi//lib/rbi/type.rb#972
+ # source://rbi//lib/rbi/type.rb#1060
sig { abstract.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# @abstract
+ # @raise [NotImplementedError]
#
- # source://rbi//lib/rbi/type.rb#991
+ # source://rbi//lib/rbi/type.rb#1079
sig { abstract.returns(::String) }
def to_rbi; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#995
+ # source://rbi//lib/rbi/type.rb#1083
sig { override.returns(::String) }
def to_s; end
@@ -5197,9 +3904,8 @@ class RBI::Type
#
# Note that this method transforms types such as `T.all(String, String)` into `String`, so
# it may return something other than a `All`.
- # : (Type type1, Type type2, *Type types) -> Type
#
- # source://rbi//lib/rbi/type.rb#847
+ # source://rbi//lib/rbi/type.rb#929
sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) }
def all(type1, type2, *types); end
@@ -5207,44 +3913,38 @@ class RBI::Type
#
# Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so
# it may return something other than a `Any`.
- # : (Type type1, Type type2, *Type types) -> Type
#
- # source://rbi//lib/rbi/type.rb#856
+ # source://rbi//lib/rbi/type.rb#938
sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) }
def any(type1, type2, *types); end
# Builds a type that represents `T.anything`.
- # : -> Anything
#
- # source://rbi//lib/rbi/type.rb#778
+ # source://rbi//lib/rbi/type.rb#854
sig { returns(::RBI::Type::Anything) }
def anything; end
# Builds a type that represents `T.attached_class`.
- # : -> AttachedClass
#
- # source://rbi//lib/rbi/type.rb#784
+ # source://rbi//lib/rbi/type.rb#860
sig { returns(::RBI::Type::AttachedClass) }
def attached_class; end
# Builds a type that represents `T::Boolean`.
- # : -> Boolean
#
- # source://rbi//lib/rbi/type.rb#790
+ # source://rbi//lib/rbi/type.rb#866
sig { returns(::RBI::Type::Boolean) }
def boolean; end
# Builds a type that represents the singleton class of another type like `T.class_of(Foo)`.
- # : (Simple type, ?Type? type_parameter) -> ClassOf
#
- # source://rbi//lib/rbi/type.rb#828
+ # source://rbi//lib/rbi/type.rb#910
sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).returns(::RBI::Type::ClassOf) }
def class_of(type, type_parameter = T.unsafe(nil)); end
# Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`.
- # : (String name, *(Type | Array[Type]) params) -> Generic
#
- # source://rbi//lib/rbi/type.rb#864
+ # source://rbi//lib/rbi/type.rb#946
sig { params(name: ::String, params: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Generic) }
def generic(name, *params); end
@@ -5252,27 +3952,21 @@ class RBI::Type
#
# Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so
# it may return something other than a `RBI::Type::Nilable`.
- # : (Type type) -> Type
#
- # source://rbi//lib/rbi/type.rb#837
+ # source://rbi//lib/rbi/type.rb#919
sig { params(type: ::RBI::Type).returns(::RBI::Type) }
def nilable(type); end
# Builds a type that represents `T.noreturn`.
- # : -> NoReturn
#
- # source://rbi//lib/rbi/type.rb#796
+ # source://rbi//lib/rbi/type.rb#872
sig { returns(::RBI::Type::NoReturn) }
def noreturn; end
- # : (Prism::Node node) -> Type
- #
# source://rbi//lib/rbi/type_parser.rb#26
sig { params(node: ::Prism::Node).returns(::RBI::Type) }
def parse_node(node); end
- # : (String string) -> Type
- #
# @raise [Error]
#
# source://rbi//lib/rbi/type_parser.rb#10
@@ -5280,171 +3974,162 @@ class RBI::Type
def parse_string(string); end
# Builds a type that represents a proc type like `T.proc.void`.
- # : -> Proc
#
- # source://rbi//lib/rbi/type.rb#892
+ # source://rbi//lib/rbi/type.rb#980
sig { returns(::RBI::Type::Proc) }
def proc; end
# Builds a type that represents `T.self_type`.
- # : -> SelfType
#
- # source://rbi//lib/rbi/type.rb#802
+ # source://rbi//lib/rbi/type.rb#878
sig { returns(::RBI::Type::SelfType) }
def self_type; end
# Builds a type that represents a shape type like `{name: String, age: Integer}`.
- # : (?Hash[(String | Symbol), Type] types) -> Shape
#
- # source://rbi//lib/rbi/type.rb#884
+ # source://rbi//lib/rbi/type.rb#972
sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).returns(::RBI::Type::Shape) }
def shape(types = T.unsafe(nil)); end
# Builds a simple type like `String` or `::Foo::Bar`.
#
# It raises a `NameError` if the name is not a valid Ruby class identifier.
- # : (String name) -> Simple
#
# @raise [NameError]
#
- # source://rbi//lib/rbi/type.rb#767
+ # source://rbi//lib/rbi/type.rb#843
sig { params(name: ::String).returns(::RBI::Type::Simple) }
def simple(name); end
# Builds a type that represents the class of another type like `T::Class[Foo]`.
- # : (Type type) -> Class
#
- # source://rbi//lib/rbi/type.rb#822
+ # source://rbi//lib/rbi/type.rb#898
sig { params(type: ::RBI::Type).returns(::RBI::Type::Class) }
def t_class(type); end
+ # Builds a type that represents the module of another type like `T::Module[Foo]`.
+ #
+ # source://rbi//lib/rbi/type.rb#904
+ sig { params(type: ::RBI::Type).returns(::RBI::Type::Module) }
+ def t_module(type); end
+
# Builds a type that represents a tuple type like `[String, Integer]`.
- # : (*(Type | Array[Type]) types) -> Tuple
#
- # source://rbi//lib/rbi/type.rb#878
+ # source://rbi//lib/rbi/type.rb#966
sig { params(types: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Tuple) }
def tuple(*types); end
+ # Builds a type that represents a type alias like `MyTypeAlias`.
+ #
+ # source://rbi//lib/rbi/type.rb#958
+ sig { params(name: ::String, aliased_type: ::RBI::Type).returns(::RBI::Type::TypeAlias) }
+ def type_alias(name, aliased_type); end
+
# Builds a type that represents a type parameter like `T.type_parameter(:U)`.
- # : (Symbol name) -> TypeParameter
#
- # source://rbi//lib/rbi/type.rb#870
+ # source://rbi//lib/rbi/type.rb#952
sig { params(name: ::Symbol).returns(::RBI::Type::TypeParameter) }
def type_parameter(name); end
# Builds a type that represents `T.untyped`.
- # : -> Untyped
#
- # source://rbi//lib/rbi/type.rb#808
+ # source://rbi//lib/rbi/type.rb#884
sig { returns(::RBI::Type::Untyped) }
def untyped; end
# Builds a type that represents `void`.
- # : -> Void
#
- # source://rbi//lib/rbi/type.rb#814
+ # source://rbi//lib/rbi/type.rb#890
sig { returns(::RBI::Type::Void) }
def void; end
private
- # : (Prism::CallNode node) -> Array[Prism::Node]
- #
- # source://rbi//lib/rbi/type_parser.rb#289
+ # source://rbi//lib/rbi/type_parser.rb#322
sig { params(node: ::Prism::CallNode).returns(T::Array[::Prism::Node]) }
def call_chain(node); end
- # : (Prism::CallNode node, Integer count) -> Array[Prism::Node]
- #
- # source://rbi//lib/rbi/type_parser.rb#276
+ # source://rbi//lib/rbi/type_parser.rb#309
sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) }
def check_arguments_at_least!(node, count); end
- # : (Prism::CallNode node, Integer count) -> Array[Prism::Node]
- #
- # source://rbi//lib/rbi/type_parser.rb#261
+ # source://rbi//lib/rbi/type_parser.rb#294
sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) }
def check_arguments_exactly!(node, count); end
- # : (Prism::CallNode node) -> Type
- #
# @raise [Error]
#
- # source://rbi//lib/rbi/type_parser.rb#71
+ # source://rbi//lib/rbi/type_parser.rb#96
sig { params(node: ::Prism::CallNode).returns(::RBI::Type) }
def parse_call(node); end
- # : ((Prism::ConstantReadNode | Prism::ConstantPathNode) node) -> Type
- #
- # source://rbi//lib/rbi/type_parser.rb#54
+ # source://rbi//lib/rbi/type_parser.rb#56
sig { params(node: T.any(::Prism::ConstantPathNode, ::Prism::ConstantReadNode)).returns(::RBI::Type) }
def parse_constant(node); end
- # : (Prism::CallNode node) -> Type
- #
+ # source://rbi//lib/rbi/type_parser.rb#73
+ sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).returns(::RBI::Type) }
+ def parse_constant_assignment(node); end
+
# @raise [Error]
#
- # source://rbi//lib/rbi/type_parser.rb#211
+ # source://rbi//lib/rbi/type_parser.rb#244
sig { params(node: ::Prism::CallNode).returns(::RBI::Type) }
def parse_proc(node); end
- # : ((Prism::HashNode | Prism::KeywordHashNode) node) -> Type
- #
- # source://rbi//lib/rbi/type_parser.rb#190
+ # source://rbi//lib/rbi/type_parser.rb#223
sig { params(node: T.any(::Prism::HashNode, ::Prism::KeywordHashNode)).returns(::RBI::Type) }
def parse_shape(node); end
- # : (Prism::ArrayNode node) -> Type
- #
- # source://rbi//lib/rbi/type_parser.rb#185
+ # source://rbi//lib/rbi/type_parser.rb#218
sig { params(node: ::Prism::ArrayNode).returns(::RBI::Type) }
def parse_tuple(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/type_parser.rb#302
+ # source://rbi//lib/rbi/type_parser.rb#335
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
def t?(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/type_parser.rb#314
+ # source://rbi//lib/rbi/type_parser.rb#354
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
def t_boolean?(node); end
- # : (Prism::ConstantPathNode node) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/type_parser.rb#321
+ # source://rbi//lib/rbi/type_parser.rb#361
sig { params(node: ::Prism::ConstantPathNode).returns(T::Boolean) }
def t_class?(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/type_parser.rb#326
+ # source://rbi//lib/rbi/type_parser.rb#371
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
def t_class_of?(node); end
- # : (Prism::CallNode node) -> bool
+ # @return [Boolean]
#
+ # source://rbi//lib/rbi/type_parser.rb#366
+ sig { params(node: ::Prism::ConstantPathNode).returns(T::Boolean) }
+ def t_module?(node); end
+
# @return [Boolean]
#
- # source://rbi//lib/rbi/type_parser.rb#333
+ # source://rbi//lib/rbi/type_parser.rb#378
sig { params(node: ::Prism::CallNode).returns(T::Boolean) }
def t_proc?(node); end
- # : (String name) -> bool
+ # @return [Boolean]
#
+ # source://rbi//lib/rbi/type_parser.rb#347
+ sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
+ def t_type_alias?(node); end
+
# @return [Boolean]
#
- # source://rbi//lib/rbi/type.rb#899
+ # source://rbi//lib/rbi/type.rb#987
sig { params(name: ::String).returns(T::Boolean) }
def valid_identifier?(name); end
end
@@ -5452,54 +4137,40 @@ end
# A type that is intersection of multiple types like `T.all(String, Integer)`.
#
-# source://rbi//lib/rbi/type.rb#384
+# source://rbi//lib/rbi/type.rb#420
class RBI::Type::All < ::RBI::Type::Composite
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#393
+ # source://rbi//lib/rbi/type.rb#429
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#413
+ # source://rbi//lib/rbi/type.rb#449
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#387
+ # source://rbi//lib/rbi/type.rb#423
sig { override.returns(::String) }
def to_rbi; end
end
# A type that is union of multiple types like `T.any(String, Integer)`.
#
-# source://rbi//lib/rbi/type.rb#426
+# source://rbi//lib/rbi/type.rb#462
class RBI::Type::Any < ::RBI::Type::Composite
- # : -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/type.rb#434
+ # source://rbi//lib/rbi/type.rb#470
sig { returns(T::Boolean) }
def nilable?; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#440
+ # source://rbi//lib/rbi/type.rb#476
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#460
+ # source://rbi//lib/rbi/type.rb#496
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#429
+ # source://rbi//lib/rbi/type.rb#465
sig { override.returns(::String) }
def to_rbi; end
end
@@ -5508,26 +4179,18 @@ end
#
# source://rbi//lib/rbi/type.rb#51
class RBI::Type::Anything < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#54
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#66
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#72
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#60
sig { override.returns(::String) }
def to_rbi; end
@@ -5537,26 +4200,18 @@ end
#
# source://rbi//lib/rbi/type.rb#78
class RBI::Type::AttachedClass < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#81
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#93
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#99
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#87
sig { override.returns(::String) }
def to_rbi; end
@@ -5566,26 +4221,18 @@ end
#
# source://rbi//lib/rbi/type.rb#105
class RBI::Type::Boolean < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#108
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#120
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#126
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#114
sig { override.returns(::String) }
def to_rbi; end
@@ -5595,40 +4242,28 @@ end
#
# source://rbi//lib/rbi/type.rb#242
class RBI::Type::Class < ::RBI::Type
- # : (Type type) -> void
- #
# @return [Class] a new instance of Class
#
# source://rbi//lib/rbi/type.rb#247
sig { params(type: ::RBI::Type).void }
def initialize(type); end
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#254
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#266
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#272
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#260
sig { override.returns(::String) }
def to_rbi; end
- # : Type
- #
# source://rbi//lib/rbi/type.rb#244
sig { returns(::RBI::Type) }
def type; end
@@ -5636,49 +4271,35 @@ end
# The singleton class of another type like `T.class_of(Foo)`.
#
-# source://rbi//lib/rbi/type.rb#278
+# source://rbi//lib/rbi/type.rb#314
class RBI::Type::ClassOf < ::RBI::Type
- # : (Simple type, ?Type? type_parameter) -> void
- #
# @return [ClassOf] a new instance of ClassOf
#
- # source://rbi//lib/rbi/type.rb#286
+ # source://rbi//lib/rbi/type.rb#322
sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).void }
def initialize(type, type_parameter = T.unsafe(nil)); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#294
+ # source://rbi//lib/rbi/type.rb#330
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#310
+ # source://rbi//lib/rbi/type.rb#346
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#316
+ # source://rbi//lib/rbi/type.rb#352
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#300
+ # source://rbi//lib/rbi/type.rb#336
sig { override.returns(::String) }
def to_rbi; end
- # : Simple
- #
- # source://rbi//lib/rbi/type.rb#280
+ # source://rbi//lib/rbi/type.rb#316
sig { returns(::RBI::Type::Simple) }
def type; end
- # : Type?
- #
- # source://rbi//lib/rbi/type.rb#283
+ # source://rbi//lib/rbi/type.rb#319
sig { returns(T.nilable(::RBI::Type)) }
def type_parameter; end
end
@@ -5687,27 +4308,21 @@ end
#
# @abstract
#
-# source://rbi//lib/rbi/type.rb#366
+# source://rbi//lib/rbi/type.rb#402
class RBI::Type::Composite < ::RBI::Type
abstract!
- # : (Array[Type] types) -> void
- #
# @return [Composite] a new instance of Composite
#
- # source://rbi//lib/rbi/type.rb#371
+ # source://rbi//lib/rbi/type.rb#407
sig { params(types: T::Array[::RBI::Type]).void }
def initialize(types); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#378
+ # source://rbi//lib/rbi/type.rb#414
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : Array[Type]
- #
- # source://rbi//lib/rbi/type.rb#368
+ # source://rbi//lib/rbi/type.rb#404
sig { returns(T::Array[::RBI::Type]) }
def types; end
end
@@ -5717,92 +4332,97 @@ class RBI::Type::Error < ::RBI::Error; end
# A generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`.
#
-# source://rbi//lib/rbi/type.rb#511
+# source://rbi//lib/rbi/type.rb#547
class RBI::Type::Generic < ::RBI::Type
- # : (String name, *Type params) -> void
- #
# @return [Generic] a new instance of Generic
#
- # source://rbi//lib/rbi/type.rb#519
+ # source://rbi//lib/rbi/type.rb#555
sig { params(name: ::String, params: ::RBI::Type).void }
def initialize(name, *params); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#527
+ # source://rbi//lib/rbi/type.rb#563
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : String
- #
- # source://rbi//lib/rbi/type.rb#513
+ # source://rbi//lib/rbi/type.rb#549
sig { returns(::String) }
def name; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#539
+ # source://rbi//lib/rbi/type.rb#575
sig { override.returns(::RBI::Type) }
def normalize; end
- # : Array[Type]
- #
- # source://rbi//lib/rbi/type.rb#516
+ # source://rbi//lib/rbi/type.rb#552
sig { returns(T::Array[::RBI::Type]) }
def params; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#545
+ # source://rbi//lib/rbi/type.rb#581
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
+ # source://rbi//lib/rbi/type.rb#569
+ sig { override.returns(::String) }
+ def to_rbi; end
+end
+
+# The module of another type like `T::Module[Foo]`.
+#
+# source://rbi//lib/rbi/type.rb#278
+class RBI::Type::Module < ::RBI::Type
+ # @return [Module] a new instance of Module
#
- # source://rbi//lib/rbi/type.rb#533
+ # source://rbi//lib/rbi/type.rb#283
+ sig { params(type: ::RBI::Type).void }
+ def initialize(type); end
+
+ # source://rbi//lib/rbi/type.rb#290
+ sig { override.params(other: ::BasicObject).returns(T::Boolean) }
+ def ==(other); end
+
+ # source://rbi//lib/rbi/type.rb#302
+ sig { override.returns(::RBI::Type) }
+ def normalize; end
+
+ # source://rbi//lib/rbi/type.rb#308
+ sig { override.returns(::RBI::Type) }
+ def simplify; end
+
+ # source://rbi//lib/rbi/type.rb#296
sig { override.returns(::String) }
def to_rbi; end
+
+ # source://rbi//lib/rbi/type.rb#280
+ sig { returns(::RBI::Type) }
+ def type; end
end
# A type that can be `nil` like `T.nilable(String)`.
#
-# source://rbi//lib/rbi/type.rb#322
+# source://rbi//lib/rbi/type.rb#358
class RBI::Type::Nilable < ::RBI::Type
- # : (Type type) -> void
- #
# @return [Nilable] a new instance of Nilable
#
- # source://rbi//lib/rbi/type.rb#327
+ # source://rbi//lib/rbi/type.rb#363
sig { params(type: ::RBI::Type).void }
def initialize(type); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#334
+ # source://rbi//lib/rbi/type.rb#370
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#346
+ # source://rbi//lib/rbi/type.rb#382
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#352
+ # source://rbi//lib/rbi/type.rb#388
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#340
+ # source://rbi//lib/rbi/type.rb#376
sig { override.returns(::String) }
def to_rbi; end
- # : Type
- #
- # source://rbi//lib/rbi/type.rb#324
+ # source://rbi//lib/rbi/type.rb#360
sig { returns(::RBI::Type) }
def type; end
end
@@ -5811,26 +4431,18 @@ end
#
# source://rbi//lib/rbi/type.rb#132
class RBI::Type::NoReturn < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#135
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#147
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#153
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#141
sig { override.returns(::String) }
def to_rbi; end
@@ -5838,79 +4450,55 @@ end
# A proc type like `T.proc.void`.
#
-# source://rbi//lib/rbi/type.rb#667
+# source://rbi//lib/rbi/type.rb#743
class RBI::Type::Proc < ::RBI::Type
- # : -> void
- #
# @return [Proc] a new instance of Proc
#
- # source://rbi//lib/rbi/type.rb#678
+ # source://rbi//lib/rbi/type.rb#754
sig { void }
def initialize; end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#687
+ # source://rbi//lib/rbi/type.rb#763
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : (untyped type) -> self
- #
- # source://rbi//lib/rbi/type.rb#715
+ # source://rbi//lib/rbi/type.rb#791
sig { params(type: T.untyped).returns(T.self_type) }
def bind(type); end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#747
+ # source://rbi//lib/rbi/type.rb#823
sig { override.returns(::RBI::Type) }
def normalize; end
- # : (**Type params) -> self
- #
- # source://rbi//lib/rbi/type.rb#697
+ # source://rbi//lib/rbi/type.rb#773
sig { params(params: ::RBI::Type).returns(T.self_type) }
def params(**params); end
- # : Type?
- #
- # source://rbi//lib/rbi/type.rb#675
+ # source://rbi//lib/rbi/type.rb#751
sig { returns(T.nilable(::RBI::Type)) }
def proc_bind; end
- # : Hash[Symbol, Type]
- #
- # source://rbi//lib/rbi/type.rb#669
+ # source://rbi//lib/rbi/type.rb#745
sig { returns(T::Hash[::Symbol, ::RBI::Type]) }
def proc_params; end
- # : Type
- #
- # source://rbi//lib/rbi/type.rb#672
+ # source://rbi//lib/rbi/type.rb#748
sig { returns(::RBI::Type) }
def proc_returns; end
- # : (untyped type) -> self
- #
- # source://rbi//lib/rbi/type.rb#703
+ # source://rbi//lib/rbi/type.rb#779
sig { params(type: T.untyped).returns(T.self_type) }
def returns(type); end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#753
+ # source://rbi//lib/rbi/type.rb#829
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#722
+ # source://rbi//lib/rbi/type.rb#798
sig { override.returns(::String) }
def to_rbi; end
- # : -> self
- #
- # source://rbi//lib/rbi/type.rb#709
+ # source://rbi//lib/rbi/type.rb#785
sig { returns(T.self_type) }
def void; end
end
@@ -5919,26 +4507,18 @@ end
#
# source://rbi//lib/rbi/type.rb#159
class RBI::Type::SelfType < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#162
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#174
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#180
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#168
sig { override.returns(::String) }
def to_rbi; end
@@ -5946,43 +4526,31 @@ end
# A shape type like `{name: String, age: Integer}`.
#
-# source://rbi//lib/rbi/type.rb#625
+# source://rbi//lib/rbi/type.rb#701
class RBI::Type::Shape < ::RBI::Type
- # : (Hash[(String | Symbol), Type] types) -> void
- #
# @return [Shape] a new instance of Shape
#
- # source://rbi//lib/rbi/type.rb#630
+ # source://rbi//lib/rbi/type.rb#706
sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).void }
def initialize(types); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#637
+ # source://rbi//lib/rbi/type.rb#713
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#653
+ # source://rbi//lib/rbi/type.rb#729
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#659
+ # source://rbi//lib/rbi/type.rb#735
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#643
+ # source://rbi//lib/rbi/type.rb#719
sig { override.returns(::String) }
def to_rbi; end
- # : Hash[(String | Symbol), Type]
- #
- # source://rbi//lib/rbi/type.rb#627
+ # source://rbi//lib/rbi/type.rb#703
sig { returns(T::Hash[T.any(::String, ::Symbol), ::RBI::Type]) }
def types; end
end
@@ -5993,40 +4561,28 @@ end
#
# source://rbi//lib/rbi/type.rb#13
class RBI::Type::Simple < ::RBI::Type
- # : (String name) -> void
- #
# @return [Simple] a new instance of Simple
#
# source://rbi//lib/rbi/type.rb#18
sig { params(name: ::String).void }
def initialize(name); end
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#25
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : String
- #
# source://rbi//lib/rbi/type.rb#15
sig { returns(::String) }
def name; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#37
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#43
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#31
sig { override.returns(::String) }
def to_rbi; end
@@ -6034,86 +4590,97 @@ end
# A tuple type like `[String, Integer]`.
#
-# source://rbi//lib/rbi/type.rb#589
+# source://rbi//lib/rbi/type.rb#665
class RBI::Type::Tuple < ::RBI::Type
- # : (Array[Type] types) -> void
- #
# @return [Tuple] a new instance of Tuple
#
- # source://rbi//lib/rbi/type.rb#594
+ # source://rbi//lib/rbi/type.rb#670
sig { params(types: T::Array[::RBI::Type]).void }
def initialize(types); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#601
+ # source://rbi//lib/rbi/type.rb#677
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#613
+ # source://rbi//lib/rbi/type.rb#689
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#619
+ # source://rbi//lib/rbi/type.rb#695
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#607
+ # source://rbi//lib/rbi/type.rb#683
sig { override.returns(::String) }
def to_rbi; end
- # : Array[Type]
- #
- # source://rbi//lib/rbi/type.rb#591
+ # source://rbi//lib/rbi/type.rb#667
sig { returns(T::Array[::RBI::Type]) }
def types; end
end
+# A type alias that references another type by name like `MyTypeAlias`.
+#
+# source://rbi//lib/rbi/type.rb#623
+class RBI::Type::TypeAlias < ::RBI::Type
+ # @return [TypeAlias] a new instance of TypeAlias
+ #
+ # source://rbi//lib/rbi/type.rb#631
+ sig { params(name: ::String, aliased_type: ::RBI::Type).void }
+ def initialize(name, aliased_type); end
+
+ # source://rbi//lib/rbi/type.rb#639
+ sig { override.params(other: ::BasicObject).returns(T::Boolean) }
+ def ==(other); end
+
+ # source://rbi//lib/rbi/type.rb#628
+ sig { returns(::RBI::Type) }
+ def aliased_type; end
+
+ # source://rbi//lib/rbi/type.rb#625
+ sig { returns(::String) }
+ def name; end
+
+ # source://rbi//lib/rbi/type.rb#651
+ sig { override.returns(::RBI::Type) }
+ def normalize; end
+
+ # source://rbi//lib/rbi/type.rb#657
+ sig { override.returns(::RBI::Type) }
+ def simplify; end
+
+ # source://rbi//lib/rbi/type.rb#645
+ sig { override.returns(::String) }
+ def to_rbi; end
+end
+
# A type parameter like `T.type_parameter(:U)`.
#
-# source://rbi//lib/rbi/type.rb#551
+# source://rbi//lib/rbi/type.rb#587
class RBI::Type::TypeParameter < ::RBI::Type
- # : (Symbol name) -> void
- #
# @return [TypeParameter] a new instance of TypeParameter
#
- # source://rbi//lib/rbi/type.rb#556
+ # source://rbi//lib/rbi/type.rb#592
sig { params(name: ::Symbol).void }
def initialize(name); end
- # : (BasicObject other) -> bool
- #
- # source://rbi//lib/rbi/type.rb#563
+ # source://rbi//lib/rbi/type.rb#599
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : Symbol
- #
- # source://rbi//lib/rbi/type.rb#553
+ # source://rbi//lib/rbi/type.rb#589
sig { returns(::Symbol) }
def name; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#575
+ # source://rbi//lib/rbi/type.rb#611
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
- # source://rbi//lib/rbi/type.rb#581
+ # source://rbi//lib/rbi/type.rb#617
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
- # source://rbi//lib/rbi/type.rb#569
+ # source://rbi//lib/rbi/type.rb#605
sig { override.returns(::String) }
def to_rbi; end
end
@@ -6122,26 +4689,18 @@ end
#
# source://rbi//lib/rbi/type.rb#186
class RBI::Type::Untyped < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#189
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#201
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#207
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#195
sig { override.returns(::String) }
def to_rbi; end
@@ -6149,119 +4708,85 @@ end
# source://rbi//lib/rbi/type_visitor.rb#6
class RBI::Type::Visitor
- # : (Type node) -> void
- #
# source://rbi//lib/rbi/type_visitor.rb#10
sig { params(node: ::RBI::Type).void }
def visit(node); end
private
- # : (Type::All type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#56
+ # source://rbi//lib/rbi/type_visitor.rb#58
sig { params(type: ::RBI::Type::All).void }
def visit_all(type); end
- # : (Type::Any type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#59
+ # source://rbi//lib/rbi/type_visitor.rb#61
sig { params(type: ::RBI::Type::Any).void }
def visit_any(type); end
- # : (Type::Anything type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#62
+ # source://rbi//lib/rbi/type_visitor.rb#64
sig { params(type: ::RBI::Type::Anything).void }
def visit_anything(type); end
- # : (Type::AttachedClass type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#65
+ # source://rbi//lib/rbi/type_visitor.rb#67
sig { params(type: ::RBI::Type::AttachedClass).void }
def visit_attached_class(type); end
- # : (Type::Boolean type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#68
+ # source://rbi//lib/rbi/type_visitor.rb#70
sig { params(type: ::RBI::Type::Boolean).void }
def visit_boolean(type); end
- # : (Type::Class type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#71
+ # source://rbi//lib/rbi/type_visitor.rb#73
sig { params(type: ::RBI::Type::Class).void }
def visit_class(type); end
- # : (Type::ClassOf type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#74
+ # source://rbi//lib/rbi/type_visitor.rb#76
sig { params(type: ::RBI::Type::ClassOf).void }
def visit_class_of(type); end
- # : (Type::Generic type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#77
+ # source://rbi//lib/rbi/type_visitor.rb#79
sig { params(type: ::RBI::Type::Generic).void }
def visit_generic(type); end
- # : (Type::Nilable type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#80
+ # source://rbi//lib/rbi/type_visitor.rb#82
sig { params(type: ::RBI::Type::Nilable).void }
def visit_nilable(type); end
- # : (Type::NoReturn type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#86
+ # source://rbi//lib/rbi/type_visitor.rb#88
sig { params(type: ::RBI::Type::NoReturn).void }
def visit_no_return(type); end
- # : (Type::Proc type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#89
+ # source://rbi//lib/rbi/type_visitor.rb#91
sig { params(type: ::RBI::Type::Proc).void }
def visit_proc(type); end
- # : (Type::SelfType type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#92
+ # source://rbi//lib/rbi/type_visitor.rb#94
sig { params(type: ::RBI::Type::SelfType).void }
def visit_self_type(type); end
- # : (Type::Shape type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#98
+ # source://rbi//lib/rbi/type_visitor.rb#100
sig { params(type: ::RBI::Type::Shape).void }
def visit_shape(type); end
- # : (Type::Simple type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#83
+ # source://rbi//lib/rbi/type_visitor.rb#85
sig { params(type: ::RBI::Type::Simple).void }
def visit_simple(type); end
- # : (Type::Tuple type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#101
+ # source://rbi//lib/rbi/type_visitor.rb#103
sig { params(type: ::RBI::Type::Tuple).void }
def visit_tuple(type); end
- # : (Type::TypeParameter type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#104
+ # source://rbi//lib/rbi/type_visitor.rb#112
+ sig { params(type: ::RBI::Type::TypeAlias).void }
+ def visit_type_alias(type); end
+
+ # source://rbi//lib/rbi/type_visitor.rb#106
sig { params(type: ::RBI::Type::TypeParameter).void }
def visit_type_parameter(type); end
- # : (Type::Untyped type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#107
+ # source://rbi//lib/rbi/type_visitor.rb#109
sig { params(type: ::RBI::Type::Untyped).void }
def visit_untyped(type); end
- # : (Type::Void type) -> void
- #
- # source://rbi//lib/rbi/type_visitor.rb#95
+ # source://rbi//lib/rbi/type_visitor.rb#97
sig { params(type: ::RBI::Type::Void).void }
def visit_void(type); end
end
@@ -6273,40 +4798,30 @@ class RBI::Type::Visitor::Error < ::RBI::Error; end
#
# source://rbi//lib/rbi/type.rb#213
class RBI::Type::Void < ::RBI::Type
- # : (BasicObject other) -> bool
- #
# source://rbi//lib/rbi/type.rb#216
sig { override.params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#228
sig { override.returns(::RBI::Type) }
def normalize; end
- # : -> Type
- #
# source://rbi//lib/rbi/type.rb#234
sig { override.returns(::RBI::Type) }
def simplify; end
- # : -> String
- #
# source://rbi//lib/rbi/type.rb#222
sig { override.returns(::String) }
def to_rbi; end
end
-# source://rbi//lib/rbi/model.rb#1063
+# source://rbi//lib/rbi/model.rb#1159
class RBI::TypeMember < ::RBI::NodeWithComments
include ::RBI::Indexable
- # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TypeMember node) -> void } -> void
- #
# @return [TypeMember] a new instance of TypeMember
#
- # source://rbi//lib/rbi/model.rb#1068
+ # source://rbi//lib/rbi/model.rb#1164
sig do
params(
name: ::String,
@@ -6318,187 +4833,133 @@ class RBI::TypeMember < ::RBI::NodeWithComments
end
def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1076
+ # source://rbi//lib/rbi/model.rb#1172
sig { returns(::String) }
def fully_qualified_name; end
- # : -> Array[String]
- #
# source://rbi//lib/rbi/index.rb#174
sig { override.returns(T::Array[::String]) }
def index_ids; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#1065
+ # source://rbi//lib/rbi/model.rb#1161
sig { returns(::String) }
def name; end
- # : -> String
- #
- # source://rbi//lib/rbi/model.rb#1084
+ # source://rbi//lib/rbi/model.rb#1180
sig { override.returns(::String) }
def to_s; end
- # : String
- #
- # source://rbi//lib/rbi/model.rb#1065
+ # source://rbi//lib/rbi/model.rb#1161
def value; end
end
-# source://rbi//lib/rbi/rbs_printer.rb#982
+# source://rbi//lib/rbi/rbs_printer.rb#984
class RBI::TypePrinter
- # : (?max_line_length: Integer?) -> void
- #
# @return [TypePrinter] a new instance of TypePrinter
#
- # source://rbi//lib/rbi/rbs_printer.rb#987
+ # source://rbi//lib/rbi/rbs_printer.rb#989
sig { params(max_line_length: T.nilable(::Integer)).void }
def initialize(max_line_length: T.unsafe(nil)); end
- # : String
- #
- # source://rbi//lib/rbi/rbs_printer.rb#984
+ # source://rbi//lib/rbi/rbs_printer.rb#986
sig { returns(::String) }
def string; end
- # : (Type node) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#993
+ # source://rbi//lib/rbi/rbs_printer.rb#995
sig { params(node: ::RBI::Type).void }
def visit(node); end
- # : (Type::All type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1108
+ # source://rbi//lib/rbi/rbs_printer.rb#1112
sig { params(type: ::RBI::Type::All).void }
def visit_all(type); end
- # : (Type::Any type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1118
+ # source://rbi//lib/rbi/rbs_printer.rb#1122
sig { params(type: ::RBI::Type::Any).void }
def visit_any(type); end
- # : (Type::Anything type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1058
+ # source://rbi//lib/rbi/rbs_printer.rb#1062
sig { params(type: ::RBI::Type::Anything).void }
def visit_anything(type); end
- # : (Type::AttachedClass type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1083
+ # source://rbi//lib/rbi/rbs_printer.rb#1087
sig { params(type: ::RBI::Type::AttachedClass).void }
def visit_attached_class(type); end
- # : (Type::Boolean type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1042
+ # source://rbi//lib/rbi/rbs_printer.rb#1046
sig { params(type: ::RBI::Type::Boolean).void }
def visit_boolean(type); end
- # : (Type::Class type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1185
+ # source://rbi//lib/rbi/rbs_printer.rb#1189
sig { params(type: ::RBI::Type::Class).void }
def visit_class(type); end
- # : (Type::ClassOf type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1101
+ # source://rbi//lib/rbi/rbs_printer.rb#1105
sig { params(type: ::RBI::Type::ClassOf).void }
def visit_class_of(type); end
- # : (Type::Generic type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1047
+ # source://rbi//lib/rbi/rbs_printer.rb#1051
sig { params(type: ::RBI::Type::Generic).void }
def visit_generic(type); end
- # : (Type::Nilable type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1088
+ # source://rbi//lib/rbi/rbs_printer.rb#1196
+ sig { params(type: ::RBI::Type::Module).void }
+ def visit_module(type); end
+
+ # source://rbi//lib/rbi/rbs_printer.rb#1092
sig { params(type: ::RBI::Type::Nilable).void }
def visit_nilable(type); end
- # : (Type::NoReturn type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1068
+ # source://rbi//lib/rbi/rbs_printer.rb#1072
sig { params(type: ::RBI::Type::NoReturn).void }
def visit_no_return(type); end
- # : (Type::Proc type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1158
+ # source://rbi//lib/rbi/rbs_printer.rb#1162
sig { params(type: ::RBI::Type::Proc).void }
def visit_proc(type); end
- # : (Type::SelfType type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1078
+ # source://rbi//lib/rbi/rbs_printer.rb#1082
sig { params(type: ::RBI::Type::SelfType).void }
def visit_self_type(type); end
- # : (Type::Shape type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1138
+ # source://rbi//lib/rbi/rbs_printer.rb#1142
sig { params(type: ::RBI::Type::Shape).void }
def visit_shape(type); end
- # : (Type::Simple type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1037
+ # source://rbi//lib/rbi/rbs_printer.rb#1041
sig { params(type: ::RBI::Type::Simple).void }
def visit_simple(type); end
- # : (Type::Tuple type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1128
+ # source://rbi//lib/rbi/rbs_printer.rb#1132
sig { params(type: ::RBI::Type::Tuple).void }
def visit_tuple(type); end
- # : (Type::TypeParameter type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1180
+ # source://rbi//lib/rbi/rbs_printer.rb#1184
sig { params(type: ::RBI::Type::TypeParameter).void }
def visit_type_parameter(type); end
- # : (Type::Untyped type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1073
+ # source://rbi//lib/rbi/rbs_printer.rb#1077
sig { params(type: ::RBI::Type::Untyped).void }
def visit_untyped(type); end
- # : (Type::Void type) -> void
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1063
+ # source://rbi//lib/rbi/rbs_printer.rb#1067
sig { params(type: ::RBI::Type::Void).void }
def visit_void(type); end
private
- # : (String type_name) -> String
- #
- # source://rbi//lib/rbi/rbs_printer.rb#1194
+ # source://rbi//lib/rbi/rbs_printer.rb#1205
sig { params(type_name: ::String).returns(::String) }
def translate_t_type(type_name); end
end
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#5
class RBI::UnexpectedMultipleSigsError < ::RBI::Error
- # : (Node node) -> void
- #
# @return [UnexpectedMultipleSigsError] a new instance of UnexpectedMultipleSigsError
#
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#10
sig { params(node: ::RBI::Node).void }
def initialize(node); end
- # : Node
- #
# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#7
sig { returns(::RBI::Node) }
def node; end
@@ -6506,22 +4967,16 @@ end
# source://rbi//lib/rbi/parser.rb#18
class RBI::UnexpectedParserError < ::RBI::Error
- # : (Exception parent_exception, Loc last_location) -> void
- #
# @return [UnexpectedParserError] a new instance of UnexpectedParserError
#
# source://rbi//lib/rbi/parser.rb#23
sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void }
def initialize(parent_exception, last_location); end
- # : Loc
- #
# source://rbi//lib/rbi/parser.rb#20
sig { returns(::RBI::Loc) }
def last_location; end
- # : (?io: (IO | StringIO)) -> void
- #
# source://rbi//lib/rbi/parser.rb#30
sig { params(io: T.any(::IO, ::StringIO)).void }
def print_debug(io: T.unsafe(nil)); end
@@ -6532,67 +4987,51 @@ RBI::VERSION = T.let(T.unsafe(nil), String)
# @abstract
#
-# source://rbi//lib/rbi/model.rb#693
+# source://rbi//lib/rbi/model.rb#743
class RBI::Visibility < ::RBI::NodeWithComments
abstract!
- # : (Symbol visibility, ?loc: Loc?, ?comments: Array[Comment]) -> void
- #
# @return [Visibility] a new instance of Visibility
#
- # source://rbi//lib/rbi/model.rb#698
+ # source://rbi//lib/rbi/model.rb#748
sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : (Object? other) -> bool
- #
- # source://rbi//lib/rbi/model.rb#704
+ # source://rbi//lib/rbi/model.rb#754
sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
def ==(other); end
- # : -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/model.rb#721
+ # source://rbi//lib/rbi/model.rb#771
sig { returns(T::Boolean) }
def private?; end
- # : -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/model.rb#716
+ # source://rbi//lib/rbi/model.rb#766
sig { returns(T::Boolean) }
def protected?; end
- # : -> bool
- #
# @return [Boolean]
#
- # source://rbi//lib/rbi/model.rb#711
+ # source://rbi//lib/rbi/model.rb#761
sig { returns(T::Boolean) }
def public?; end
- # : Symbol
- #
- # source://rbi//lib/rbi/model.rb#695
+ # source://rbi//lib/rbi/model.rb#745
sig { returns(::Symbol) }
def visibility; end
end
# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#49
class RBI::VisibilityGroup < ::RBI::Tree
- # : (Visibility visibility) -> void
- #
# @return [VisibilityGroup] a new instance of VisibilityGroup
#
# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#54
sig { params(visibility: ::RBI::Visibility).void }
def initialize(visibility); end
- # : Visibility
- #
# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#51
sig { returns(::RBI::Visibility) }
def visibility; end
@@ -6604,286 +5043,192 @@ end
class RBI::Visitor
abstract!
- # : (Node? node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#10
sig { params(node: T.nilable(::RBI::Node)).void }
def visit(node); end
- # : (Array[Node] nodes) -> void
- #
# source://rbi//lib/rbi/visitor.rb#108
sig { params(nodes: T::Array[::RBI::Node]).void }
def visit_all(nodes); end
- # : (File file) -> void
- #
# source://rbi//lib/rbi/visitor.rb#113
sig { params(file: ::RBI::File).void }
def visit_file(file); end
private
- # : (Arg node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#198
sig { params(node: ::RBI::Arg).void }
def visit_arg(node); end
- # : (AttrAccessor node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#147
sig { params(node: ::RBI::AttrAccessor).void }
def visit_attr_accessor(node); end
- # : (AttrReader node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#150
sig { params(node: ::RBI::AttrReader).void }
def visit_attr_reader(node); end
- # : (AttrWriter node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#153
sig { params(node: ::RBI::AttrWriter).void }
def visit_attr_writer(node); end
- # : (BlankLine node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#126
sig { params(node: ::RBI::BlankLine).void }
def visit_blank_line(node); end
- # : (BlockParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#177
sig { params(node: ::RBI::BlockParam).void }
def visit_block_param(node); end
- # : (Class node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#132
sig { params(node: ::RBI::Class).void }
def visit_class(node); end
- # : (Comment node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#120
sig { params(node: ::RBI::Comment).void }
def visit_comment(node); end
- # : (ConflictTree node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#246
sig { params(node: ::RBI::ConflictTree).void }
def visit_conflict_tree(node); end
- # : (Const node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#144
sig { params(node: ::RBI::Const).void }
def visit_const(node); end
- # : (Extend node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#183
sig { params(node: ::RBI::Extend).void }
def visit_extend(node); end
- # : (Group node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#240
sig { params(node: ::RBI::Group).void }
def visit_group(node); end
- # : (Helper node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#228
sig { params(node: ::RBI::Helper).void }
def visit_helper(node); end
- # : (Include node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#180
sig { params(node: ::RBI::Include).void }
def visit_include(node); end
- # : (KwArg node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#201
sig { params(node: ::RBI::KwArg).void }
def visit_kw_arg(node); end
- # : (KwOptParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#171
sig { params(node: ::RBI::KwOptParam).void }
def visit_kw_opt_param(node); end
- # : (KwParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#168
sig { params(node: ::RBI::KwParam).void }
def visit_kw_param(node); end
- # : (KwRestParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#174
sig { params(node: ::RBI::KwRestParam).void }
def visit_kw_rest_param(node); end
- # : (Method node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#156
sig { params(node: ::RBI::Method).void }
def visit_method(node); end
- # : (MixesInClassMethods node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#234
sig { params(node: ::RBI::MixesInClassMethods).void }
def visit_mixes_in_class_methods(node); end
- # : (Module node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#129
sig { params(node: ::RBI::Module).void }
def visit_module(node); end
- # : (OptParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#162
sig { params(node: ::RBI::OptParam).void }
def visit_opt_param(node); end
- # : (Private node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#192
sig { params(node: ::RBI::Private).void }
def visit_private(node); end
- # : (Protected node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#189
sig { params(node: ::RBI::Protected).void }
def visit_protected(node); end
- # : (Public node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#186
sig { params(node: ::RBI::Public).void }
def visit_public(node); end
- # : (RBSComment node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#123
sig { params(node: ::RBI::RBSComment).void }
def visit_rbs_comment(node); end
- # : (ReqParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#159
sig { params(node: ::RBI::ReqParam).void }
def visit_req_param(node); end
- # : (RequiresAncestor node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#237
sig { params(node: ::RBI::RequiresAncestor).void }
def visit_requires_ancestor(node); end
- # : (RestParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#165
sig { params(node: ::RBI::RestParam).void }
def visit_rest_param(node); end
- # : (ScopeConflict node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#249
sig { params(node: ::RBI::ScopeConflict).void }
def visit_scope_conflict(node); end
- # : (Send node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#195
sig { params(node: ::RBI::Send).void }
def visit_send(node); end
- # : (Sig node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#204
sig { params(node: ::RBI::Sig).void }
def visit_sig(node); end
- # : (SigParam node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#207
sig { params(node: ::RBI::SigParam).void }
def visit_sig_param(node); end
- # : (SingletonClass node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#135
sig { params(node: ::RBI::SingletonClass).void }
def visit_singleton_class(node); end
- # : (Struct node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#138
sig { params(node: ::RBI::Struct).void }
def visit_struct(node); end
- # : (TEnum node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#219
sig { params(node: ::RBI::TEnum).void }
def visit_tenum(node); end
- # : (TEnumBlock node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#222
sig { params(node: ::RBI::TEnumBlock).void }
def visit_tenum_block(node); end
- # : (TEnumValue node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#225
sig { params(node: ::RBI::TEnumValue).void }
def visit_tenum_value(node); end
- # : (Tree node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#141
sig { params(node: ::RBI::Tree).void }
def visit_tree(node); end
- # : (TStruct node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#210
sig { params(node: ::RBI::TStruct).void }
def visit_tstruct(node); end
- # : (TStructConst node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#213
sig { params(node: ::RBI::TStructConst).void }
def visit_tstruct_const(node); end
- # : (TStructProp node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#216
sig { params(node: ::RBI::TStructProp).void }
def visit_tstruct_prop(node); end
- # : (TypeMember node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#231
sig { params(node: ::RBI::TypeMember).void }
def visit_type_member(node); end
- # : (VisibilityGroup node) -> void
- #
# source://rbi//lib/rbi/visitor.rb#243
sig { params(node: ::RBI::VisibilityGroup).void }
def visit_visibility_group(node); end
diff --git a/sorbet/rbi/gems/rbs@3.9.4.rbi b/sorbet/rbi/gems/rbs@4.0.0.dev.5.rbi
similarity index 72%
rename from sorbet/rbi/gems/rbs@3.9.4.rbi
rename to sorbet/rbi/gems/rbs@4.0.0.dev.5.rbi
index 681f7787..76198ba9 100644
--- a/sorbet/rbi/gems/rbs@3.9.4.rbi
+++ b/sorbet/rbi/gems/rbs@4.0.0.dev.5.rbi
@@ -5,38 +5,29 @@
# Please instead update this file by running `bin/tapioca gem rbs`.
-# source://rbs//lib/rbs/namespace.rb#120
-module Kernel
- # source://rbs//lib/rbs/namespace.rb#121
- def Namespace(name); end
-
- # source://rbs//lib/rbs/type_name.rb#105
- def TypeName(string); end
-end
-
# source://rbs//lib/rbs/version.rb#3
module RBS
class << self
- # source://rbs//lib/rbs.rb#69
+ # source://rbs//lib/rbs.rb#81
def logger; end
# Returns the value of attribute logger_level.
#
- # source://rbs//lib/rbs.rb#66
+ # source://rbs//lib/rbs.rb#78
def logger_level; end
- # source://rbs//lib/rbs.rb#78
+ # source://rbs//lib/rbs.rb#90
def logger_level=(level); end
# Returns the value of attribute logger_output.
#
- # source://rbs//lib/rbs.rb#67
+ # source://rbs//lib/rbs.rb#79
def logger_output; end
- # source://rbs//lib/rbs.rb#73
+ # source://rbs//lib/rbs.rb#85
def logger_output=(val); end
- # source://rbs//lib/rbs.rb#83
+ # source://rbs//lib/rbs.rb#95
def print_warning; end
end
end
@@ -54,7 +45,7 @@ class RBS::AST::Annotation
# source://rbs//lib/rbs/ast/annotation.rb#14
def ==(other); end
- # source://rbs//lib/rbs/ast/annotation.rb#14
+ # source://rbs//lib/rbs/ast/annotation.rb#18
def eql?(other); end
# source://rbs//lib/rbs/ast/annotation.rb#20
@@ -84,7 +75,7 @@ class RBS::AST::Comment
# source://rbs//lib/rbs/ast/comment.rb#14
def ==(other); end
- # source://rbs//lib/rbs/ast/comment.rb#14
+ # source://rbs//lib/rbs/ast/comment.rb#18
def eql?(other); end
# source://rbs//lib/rbs/ast/comment.rb#20
@@ -127,7 +118,7 @@ class RBS::AST::Declarations::AliasDecl < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#424
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#434
+ # source://rbs//lib/rbs/ast/declarations.rb#440
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#442
@@ -175,7 +166,7 @@ class RBS::AST::Declarations::Class < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#95
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#119
+ # source://rbs//lib/rbs/ast/declarations.rb#127
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#129
@@ -228,7 +219,7 @@ class RBS::AST::Declarations::Class::Super
# source://rbs//lib/rbs/ast/declarations.rb#58
def args; end
- # source://rbs//lib/rbs/ast/declarations.rb#67
+ # source://rbs//lib/rbs/ast/declarations.rb#71
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#73
@@ -274,7 +265,7 @@ class RBS::AST::Declarations::Constant < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#351
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#362
+ # source://rbs//lib/rbs/ast/declarations.rb#368
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#370
@@ -319,7 +310,7 @@ class RBS::AST::Declarations::Global < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#389
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#400
+ # source://rbs//lib/rbs/ast/declarations.rb#406
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#408
@@ -366,7 +357,7 @@ class RBS::AST::Declarations::Interface < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#254
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#278
+ # source://rbs//lib/rbs/ast/declarations.rb#285
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#287
@@ -428,7 +419,7 @@ class RBS::AST::Declarations::Module < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#195
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#220
+ # source://rbs//lib/rbs/ast/declarations.rb#228
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#230
@@ -481,7 +472,7 @@ class RBS::AST::Declarations::Module::Self
# source://rbs//lib/rbs/ast/declarations.rb#150
def args; end
- # source://rbs//lib/rbs/ast/declarations.rb#159
+ # source://rbs//lib/rbs/ast/declarations.rb#163
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#165
@@ -539,7 +530,7 @@ class RBS::AST::Declarations::TypeAlias < ::RBS::AST::Declarations::Base
# source://rbs//lib/rbs/ast/declarations.rb#310
def comment; end
- # source://rbs//lib/rbs/ast/declarations.rb#321
+ # source://rbs//lib/rbs/ast/declarations.rb#328
def eql?(other); end
# source://rbs//lib/rbs/ast/declarations.rb#330
@@ -675,7 +666,7 @@ class RBS::AST::Members::Alias < ::RBS::AST::Members::Base
# source://rbs//lib/rbs/ast/members.rb#405
def comment; end
- # source://rbs//lib/rbs/ast/members.rb#416
+ # source://rbs//lib/rbs/ast/members.rb#423
def eql?(other); end
# source://rbs//lib/rbs/ast/members.rb#425
@@ -757,7 +748,7 @@ module RBS::AST::Members::Attribute
# source://rbs//lib/rbs/ast/members.rb#267
def comment; end
- # source://rbs//lib/rbs/ast/members.rb#281
+ # source://rbs//lib/rbs/ast/members.rb#290
def eql?(other); end
# source://rbs//lib/rbs/ast/members.rb#292
@@ -848,7 +839,7 @@ module RBS::AST::Members::LocationOnly
# source://rbs//lib/rbs/ast/members.rb#372
def ==(other); end
- # source://rbs//lib/rbs/ast/members.rb#372
+ # source://rbs//lib/rbs/ast/members.rb#376
def eql?(other); end
# source://rbs//lib/rbs/ast/members.rb#378
@@ -880,7 +871,7 @@ class RBS::AST::Members::MethodDefinition < ::RBS::AST::Members::Base
# source://rbs//lib/rbs/ast/members.rb#51
def comment; end
- # source://rbs//lib/rbs/ast/members.rb#66
+ # source://rbs//lib/rbs/ast/members.rb#75
def eql?(other); end
# source://rbs//lib/rbs/ast/members.rb#77
@@ -953,7 +944,7 @@ class RBS::AST::Members::MethodDefinition::Overload
# source://rbs//lib/rbs/ast/members.rb#11
def annotations; end
- # source://rbs//lib/rbs/ast/members.rb#18
+ # source://rbs//lib/rbs/ast/members.rb#26
def eql?(other); end
# source://rbs//lib/rbs/ast/members.rb#22
@@ -1053,7 +1044,7 @@ module RBS::AST::Members::Var
# source://rbs//lib/rbs/ast/members.rb#125
def comment; end
- # source://rbs//lib/rbs/ast/members.rb#134
+ # source://rbs//lib/rbs/ast/members.rb#138
def eql?(other); end
# source://rbs//lib/rbs/ast/members.rb#140
@@ -1075,14 +1066,898 @@ module RBS::AST::Members::Var
def type; end
end
+# source://rbs//lib/rbs/ast/ruby/comment_block.rb#5
+module RBS::AST::Ruby; end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#6
+module RBS::AST::Ruby::Annotations; end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#43
+class RBS::AST::Ruby::Annotations::AliasAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [AliasAnnotation] a new instance of AliasAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#46
+ def initialize(location:, prefix_location:, keyword_location:, type_name:, type_name_location:); end
+
+ # Returns the value of attribute keyword_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#44
+ def keyword_location; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#53
+ def map_type_name; end
+
+ # Returns the value of attribute type_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#44
+ def type_name; end
+
+ # Returns the value of attribute type_name_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#44
+ def type_name_location; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#7
+class RBS::AST::Ruby::Annotations::Base
+ # @return [Base] a new instance of Base
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#10
+ def initialize(location, prefix_location); end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#15
+ def buffer; end
+
+ # Returns the value of attribute location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#8
+ def location; end
+
+ # Returns the value of attribute prefix_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#8
+ def prefix_location; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#64
+class RBS::AST::Ruby::Annotations::ClassAliasAnnotation < ::RBS::AST::Ruby::Annotations::AliasAnnotation
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#65
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#82
+class RBS::AST::Ruby::Annotations::ColonMethodTypeAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [ColonMethodTypeAnnotation] a new instance of ColonMethodTypeAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#85
+ def initialize(location:, prefix_location:, annotations:, method_type:); end
+
+ # Returns the value of attribute annotations.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#83
+ def annotations; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#91
+ def map_type_name; end
+
+ # Returns the value of attribute method_type.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#83
+ def method_type; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#100
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#220
+class RBS::AST::Ruby::Annotations::InstanceVariableAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [InstanceVariableAnnotation] a new instance of InstanceVariableAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#223
+ def initialize(location:, prefix_location:, ivar_name:, ivar_name_location:, colon_location:, type:, comment_location:); end
+
+ # Returns the value of attribute colon_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#221
+ def colon_location; end
+
+ # Returns the value of attribute comment_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#221
+ def comment_location; end
+
+ # Returns the value of attribute ivar_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#221
+ def ivar_name; end
+
+ # Returns the value of attribute ivar_name_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#221
+ def ivar_name_location; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#232
+ def map_type_name(&block); end
+
+ # Returns the value of attribute type.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#221
+ def type; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#244
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#109
+class RBS::AST::Ruby::Annotations::MethodTypesAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [MethodTypesAnnotation] a new instance of MethodTypesAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#114
+ def initialize(location:, prefix_location:, overloads:, vertical_bar_locations:); end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#120
+ def map_type_name(&block); end
+
+ # Returns the value of attribute overloads.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#112
+ def overloads; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#131
+ def type_fingerprint; end
+
+ # Returns the value of attribute vertical_bar_locations.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#112
+ def vertical_bar_locations; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#110
+RBS::AST::Ruby::Annotations::MethodTypesAnnotation::Overload = RBS::AST::Members::MethodDefinition::Overload
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#73
+class RBS::AST::Ruby::Annotations::ModuleAliasAnnotation < ::RBS::AST::Ruby::Annotations::AliasAnnotation
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#74
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#20
+class RBS::AST::Ruby::Annotations::NodeTypeAssertion < ::RBS::AST::Ruby::Annotations::Base
+ # @return [NodeTypeAssertion] a new instance of NodeTypeAssertion
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#23
+ def initialize(location:, prefix_location:, type:); end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#28
+ def map_type_name; end
+
+ # Returns the value of attribute type.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#21
+ def type; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#35
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#153
+class RBS::AST::Ruby::Annotations::ReturnTypeAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [ReturnTypeAnnotation] a new instance of ReturnTypeAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#162
+ def initialize(location:, prefix_location:, return_location:, colon_location:, return_type:, comment_location:); end
+
+ # Returns the value of attribute colon_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#156
+ def colon_location; end
+
+ # Returns the value of attribute comment_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#160
+ def comment_location; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#170
+ def map_type_name(&block); end
+
+ # Returns the value of attribute return_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#154
+ def return_location; end
+
+ # Returns the value of attribute return_type.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#158
+ def return_type; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#181
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#139
+class RBS::AST::Ruby::Annotations::SkipAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [SkipAnnotation] a new instance of SkipAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#142
+ def initialize(location:, prefix_location:, skip_location:, comment_location:); end
+
+ # Returns the value of attribute comment_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#140
+ def comment_location; end
+
+ # Returns the value of attribute skip_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#140
+ def skip_location; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#148
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/annotations.rb#190
+class RBS::AST::Ruby::Annotations::TypeApplicationAnnotation < ::RBS::AST::Ruby::Annotations::Base
+ # @return [TypeApplicationAnnotation] a new instance of TypeApplicationAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#193
+ def initialize(location:, prefix_location:, type_args:, close_bracket_location:, comma_locations:); end
+
+ # Returns the value of attribute close_bracket_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#191
+ def close_bracket_location; end
+
+ # Returns the value of attribute comma_locations.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#191
+ def comma_locations; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#200
+ def map_type_name(&block); end
+
+ # Returns the value of attribute type_args.
+ #
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#191
+ def type_args; end
+
+ # source://rbs//lib/rbs/ast/ruby/annotations.rb#212
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/comment_block.rb#6
+class RBS::AST::Ruby::CommentBlock
+ # @return [CommentBlock] a new instance of CommentBlock
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#9
+ def initialize(source_buffer, comments); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#226
+ def as_comment; end
+
+ # Returns the value of attribute comment_buffer.
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7
+ def comment_buffer; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#211
+ def comments; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#98
+ def each_paragraph(variables, &block); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#50
+ def end_line; end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#36
+ def leading?; end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#215
+ def leading_annotation?(index); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#174
+ def line_location(start_line, end_line); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#54
+ def line_starts; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#180
+ def location; end
+
+ # Returns the value of attribute name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7
+ def name; end
+
+ # Returns the value of attribute offsets.
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7
+ def offsets; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#187
+ def parse_annotation_lines(start_line, end_line, variables); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#46
+ def start_line; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#169
+ def text(comment_index); end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#41
+ def trailing?; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#197
+ def trailing_annotation(variables); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#130
+ def yield_annotation(start_line, end_line, current_line, variables, &block); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#110
+ def yield_paragraph(start_line, current_line, variables, &block); end
+
+ class << self
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#60
+ def build(buffer, comments); end
+ end
+end
+
+# source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+class RBS::AST::Ruby::CommentBlock::AnnotationSyntaxError < ::Struct
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def error; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def error=(_); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def location; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def location=(_); end
+
+ class << self
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def [](*_arg0); end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def inspect; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def keyword_init?; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def members; end
+
+ # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96
+ def new(*_arg0); end
+ end
+end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#6
+module RBS::AST::Ruby::Declarations; end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#7
+class RBS::AST::Ruby::Declarations::Base
+ include ::RBS::AST::Ruby::Helpers::ConstantHelper
+ include ::RBS::AST::Ruby::Helpers::LocationHelper
+
+ # @return [Base] a new instance of Base
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#13
+ def initialize(buffer); end
+
+ # Returns the value of attribute buffer.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#8
+ def buffer; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#18
+class RBS::AST::Ruby::Declarations::ClassDecl < ::RBS::AST::Ruby::Declarations::Base
+ # @return [ClassDecl] a new instance of ClassDecl
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#74
+ def initialize(buffer, name, node, super_class); end
+
+ # Returns the value of attribute class_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#66
+ def class_name; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#82
+ def each_decl(&block); end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#94
+ def location; end
+
+ # Returns the value of attribute members.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#68
+ def members; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#98
+ def name_location; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#70
+ def node; end
+
+ # Returns the value of attribute super_class.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#72
+ def super_class; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#102
+ def type_fingerprint; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#92
+ def type_params; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#19
+class RBS::AST::Ruby::Declarations::ClassDecl::SuperClass
+ # @return [SuperClass] a new instance of SuperClass
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#28
+ def initialize(type_name_location, operator_location, type_name, type_annotation); end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#56
+ def args; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#43
+ def location; end
+
+ # Returns the value of attribute type_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#55
+ def name; end
+
+ # Returns the value of attribute operator_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#22
+ def operator_location; end
+
+ # Returns the value of attribute type_annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#26
+ def type_annotation; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#35
+ def type_args; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#58
+ def type_fingerprint; end
+
+ # Returns the value of attribute type_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#24
+ def type_name; end
+
+ # Returns the value of attribute type_name_location.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#20
+ def type_name_location; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#223
+class RBS::AST::Ruby::Declarations::ClassModuleAliasDecl < ::RBS::AST::Ruby::Declarations::Base
+ # @return [ClassModuleAliasDecl] a new instance of ClassModuleAliasDecl
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#230
+ def initialize(buffer, node, new_name, infered_old_name, leading_comment, annotation); end
+
+ # Returns the value of attribute annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#228
+ def annotation; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#264
+ def comment; end
+
+ # Returns the value of attribute infered_old_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#227
+ def infered_old_name; end
+
+ # Returns the value of attribute leading_comment.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#225
+ def leading_comment; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#239
+ def location; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#243
+ def name_location; end
+
+ # Returns the value of attribute new_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#226
+ def new_name; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#224
+ def node; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#252
+ def old_name; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#268
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#161
+class RBS::AST::Ruby::Declarations::ConstantDecl < ::RBS::AST::Ruby::Declarations::Base
+ # @return [ConstantDecl] a new instance of ConstantDecl
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#167
+ def initialize(buffer, constant_name, node, leading_comment, type_annotation); end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#209
+ def comment; end
+
+ # Returns the value of attribute constant_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#163
+ def constant_name; end
+
+ # Returns the value of attribute leading_comment.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#162
+ def leading_comment; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#175
+ def location; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#179
+ def name_location; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#164
+ def node; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#188
+ def type; end
+
+ # Returns the value of attribute type_annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#165
+ def type_annotation; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#213
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/declarations.rb#114
+class RBS::AST::Ruby::Declarations::ModuleDecl < ::RBS::AST::Ruby::Declarations::Base
+ # @return [ModuleDecl] a new instance of ModuleDecl
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#121
+ def initialize(buffer, name, node); end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#128
+ def each_decl(&block); end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#142
+ def location; end
+
+ # Returns the value of attribute members.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#117
+ def members; end
+
+ # Returns the value of attribute module_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#115
+ def module_name; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#146
+ def name_location; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#119
+ def node; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#140
+ def self_types; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#150
+ def type_fingerprint; end
+
+ # source://rbs//lib/rbs/ast/ruby/declarations.rb#138
+ def type_params; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#6
+module RBS::AST::Ruby::Helpers; end
+
+# source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#7
+module RBS::AST::Ruby::Helpers::ConstantHelper
+ private
+
+ # source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#10
+ def constant_as_type_name(node); end
+
+ class << self
+ # source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#10
+ def constant_as_type_name(node); end
+ end
+end
+
+# source://rbs//lib/rbs/ast/ruby/helpers/location_helper.rb#7
+module RBS::AST::Ruby::Helpers::LocationHelper
+ # source://rbs//lib/rbs/ast/ruby/helpers/location_helper.rb#8
+ def rbs_location(location); end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#6
+module RBS::AST::Ruby::Members; end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#338
+class RBS::AST::Ruby::Members::AttrAccessorMember < ::RBS::AST::Ruby::Members::AttributeMember; end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#332
+class RBS::AST::Ruby::Members::AttrReaderMember < ::RBS::AST::Ruby::Members::AttributeMember; end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#335
+class RBS::AST::Ruby::Members::AttrWriterMember < ::RBS::AST::Ruby::Members::AttributeMember; end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#287
+class RBS::AST::Ruby::Members::AttributeMember < ::RBS::AST::Ruby::Members::Base
+ # @return [AttributeMember] a new instance of AttributeMember
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#293
+ def initialize(buffer, node, name_nodes, leading_comment, type_annotation); end
+
+ # Returns the value of attribute leading_comment.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#291
+ def leading_comment; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#307
+ def location; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#311
+ def name_locations; end
+
+ # Returns the value of attribute name_nodes.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#289
+ def name_nodes; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#301
+ def names; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#288
+ def node; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#317
+ def type; end
+
+ # Returns the value of attribute type_annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#290
+ def type_annotation; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#321
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#7
+class RBS::AST::Ruby::Members::Base
+ include ::RBS::AST::Ruby::Helpers::LocationHelper
+
+ # @return [Base] a new instance of Base
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#10
+ def initialize(buffer); end
+
+ # Returns the value of attribute buffer.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#8
+ def buffer; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#195
+class RBS::AST::Ruby::Members::DefMember < ::RBS::AST::Ruby::Members::Base
+ # @return [DefMember] a new instance of DefMember
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#203
+ def initialize(buffer, name, node, method_type, leading_comment); end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#223
+ def annotations; end
+
+ # Returns the value of attribute leading_comment.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#201
+ def leading_comment; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#211
+ def location; end
+
+ # Returns the value of attribute method_type.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#200
+ def method_type; end
+
+ # Returns the value of attribute name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#198
+ def name; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#227
+ def name_location; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#199
+ def node; end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#219
+ def overloading?; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#215
+ def overloads; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#231
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#196
+RBS::AST::Ruby::Members::DefMember::Overload = RBS::AST::Members::MethodDefinition::Overload
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#281
+class RBS::AST::Ruby::Members::ExtendMember < ::RBS::AST::Ruby::Members::MixinMember; end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#278
+class RBS::AST::Ruby::Members::IncludeMember < ::RBS::AST::Ruby::Members::MixinMember; end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#341
+class RBS::AST::Ruby::Members::InstanceVariableMember < ::RBS::AST::Ruby::Members::Base
+ # @return [InstanceVariableMember] a new instance of InstanceVariableMember
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#344
+ def initialize(buffer, annotation); end
+
+ # Returns the value of attribute annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#342
+ def annotation; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#357
+ def location; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#349
+ def name; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#353
+ def type; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#361
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#17
+class RBS::AST::Ruby::Members::MethodTypeAnnotation
+ # @return [MethodTypeAnnotation] a new instance of MethodTypeAnnotation
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#68
+ def initialize(type_annotations:); end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#143
+ def empty?; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#72
+ def map_type_name(&block); end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#147
+ def overloads; end
+
+ # Returns the value of attribute type_annotations.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#66
+ def type_annotations; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#183
+ def type_fingerprint; end
+
+ class << self
+ # source://rbs//lib/rbs/ast/ruby/members.rb#85
+ def build(leading_block, trailing_block, variables); end
+ end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#18
+class RBS::AST::Ruby::Members::MethodTypeAnnotation::DocStyle
+ # @return [DocStyle] a new instance of DocStyle
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#21
+ def initialize; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#25
+ def map_type_name(&block); end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#35
+ def method_type; end
+
+ # Returns the value of attribute return_type_annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#19
+ def return_type_annotation; end
+
+ # Sets the attribute return_type_annotation
+ #
+ # @param value the value to set the attribute return_type_annotation to.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#19
+ def return_type_annotation=(_arg0); end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#31
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#241
+class RBS::AST::Ruby::Members::MixinMember < ::RBS::AST::Ruby::Members::Base
+ # @return [MixinMember] a new instance of MixinMember
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#246
+ def initialize(buffer, node, module_name, annotation); end
+
+ # Returns the value of attribute annotation.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#244
+ def annotation; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#253
+ def location; end
+
+ # Returns the value of attribute module_name.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#243
+ def module_name; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#257
+ def name_location; end
+
+ # Returns the value of attribute node.
+ #
+ # source://rbs//lib/rbs/ast/ruby/members.rb#242
+ def node; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#264
+ def type_args; end
+
+ # source://rbs//lib/rbs/ast/ruby/members.rb#268
+ def type_fingerprint; end
+end
+
+# source://rbs//lib/rbs/ast/ruby/members.rb#284
+class RBS::AST::Ruby::Members::PrependMember < ::RBS::AST::Ruby::Members::MixinMember; end
+
# source://rbs//lib/rbs/ast/type_param.rb#5
class RBS::AST::TypeParam
# @return [TypeParam] a new instance of TypeParam
#
# source://rbs//lib/rbs/ast/type_param.rb#8
- def initialize(name:, variance:, upper_bound:, location:, default_type: T.unsafe(nil), unchecked: T.unsafe(nil)); end
+ def initialize(name:, variance:, upper_bound:, lower_bound:, location:, default_type: T.unsafe(nil), unchecked: T.unsafe(nil)); end
- # source://rbs//lib/rbs/ast/type_param.rb#33
+ # source://rbs//lib/rbs/ast/type_param.rb#41
def ==(other); end
# Returns the value of attribute default_type.
@@ -1090,10 +1965,10 @@ class RBS::AST::TypeParam
# source://rbs//lib/rbs/ast/type_param.rb#6
def default_type; end
- # source://rbs//lib/rbs/ast/type_param.rb#33
+ # source://rbs//lib/rbs/ast/type_param.rb#51
def eql?(other); end
- # source://rbs//lib/rbs/ast/type_param.rb#44
+ # source://rbs//lib/rbs/ast/type_param.rb#53
def hash; end
# Returns the value of attribute location.
@@ -1101,7 +1976,15 @@ class RBS::AST::TypeParam
# source://rbs//lib/rbs/ast/type_param.rb#6
def location; end
- # source://rbs//lib/rbs/ast/type_param.rb#59
+ # source://rbs//lib/rbs/ast/type_param.rb#25
+ def lower_bound; end
+
+ # Returns the value of attribute lower_bound_type.
+ #
+ # source://rbs//lib/rbs/ast/type_param.rb#6
+ def lower_bound_type; end
+
+ # source://rbs//lib/rbs/ast/type_param.rb#69
def map_type(&block); end
# Returns the value of attribute name.
@@ -1109,21 +1992,21 @@ class RBS::AST::TypeParam
# source://rbs//lib/rbs/ast/type_param.rb#6
def name; end
- # source://rbs//lib/rbs/ast/type_param.rb#48
+ # source://rbs//lib/rbs/ast/type_param.rb#57
def to_json(state = T.unsafe(nil)); end
- # source://rbs//lib/rbs/ast/type_param.rb#117
+ # source://rbs//lib/rbs/ast/type_param.rb#133
def to_s; end
- # source://rbs//lib/rbs/ast/type_param.rb#24
+ # source://rbs//lib/rbs/ast/type_param.rb#32
def unchecked!(value = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/ast/type_param.rb#29
+ # source://rbs//lib/rbs/ast/type_param.rb#37
def unchecked?; end
- # source://rbs//lib/rbs/ast/type_param.rb#17
+ # source://rbs//lib/rbs/ast/type_param.rb#18
def upper_bound; end
# Returns the value of attribute upper_bound_type.
@@ -1137,22 +2020,22 @@ class RBS::AST::TypeParam
def variance; end
class << self
- # source://rbs//lib/rbs/ast/type_param.rb#146
+ # source://rbs//lib/rbs/ast/type_param.rb#166
def application(params, args); end
- # source://rbs//lib/rbs/ast/type_param.rb#178
+ # source://rbs//lib/rbs/ast/type_param.rb#198
def normalize_args(params, args); end
- # source://rbs//lib/rbs/ast/type_param.rb#99
+ # source://rbs//lib/rbs/ast/type_param.rb#114
def rename(params, new_names:); end
- # source://rbs//lib/rbs/ast/type_param.rb#77
+ # source://rbs//lib/rbs/ast/type_param.rb#92
def resolve_variables(params); end
- # source://rbs//lib/rbs/ast/type_param.rb#87
+ # source://rbs//lib/rbs/ast/type_param.rb#102
def subst_var(vars, type); end
- # source://rbs//lib/rbs/ast/type_param.rb#199
+ # source://rbs//lib/rbs/ast/type_param.rb#219
def validate(type_params); end
end
end
@@ -1296,28 +2179,52 @@ end
# source://rbs//lib/rbs/ancestor_graph.rb#5
class RBS::AncestorGraph::InstanceNode < ::Struct
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def type_name; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def type_name=(_); end
class << self
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def [](*_arg0); end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def inspect; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def keyword_init?; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def members; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#5
def new(*_arg0); end
end
end
# source://rbs//lib/rbs/ancestor_graph.rb#6
class RBS::AncestorGraph::SingletonNode < ::Struct
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def type_name; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def type_name=(_); end
class << self
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def [](*_arg0); end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def inspect; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def keyword_init?; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def members; end
+
+ # source://rbs//lib/rbs/ancestor_graph.rb#6
def new(*_arg0); end
end
end
@@ -1329,36 +2236,65 @@ class RBS::BaseError < ::StandardError; end
class RBS::Buffer
# @return [Buffer] a new instance of Buffer
#
- # source://rbs//lib/rbs/buffer.rb#8
- def initialize(name:, content:); end
+ # source://rbs//lib/rbs/buffer.rb#9
+ def initialize(content:, name: T.unsafe(nil), parent: T.unsafe(nil)); end
+
+ # source://rbs//lib/rbs/buffer.rb#131
+ def absolute_position(position); end
# Returns the value of attribute content.
#
# source://rbs//lib/rbs/buffer.rb#6
def content; end
- # source://rbs//lib/rbs/buffer.rb#63
+ # source://rbs//lib/rbs/buffer.rb#148
+ def detach; end
+
+ # source://rbs//lib/rbs/buffer.rb#86
def inspect; end
- # source://rbs//lib/rbs/buffer.rb#59
+ # source://rbs//lib/rbs/buffer.rb#78
def last_position; end
- # source://rbs//lib/rbs/buffer.rb#13
+ # source://rbs//lib/rbs/buffer.rb#26
+ def line_count; end
+
+ # source://rbs//lib/rbs/buffer.rb#22
def lines; end
- # source://rbs//lib/rbs/buffer.rb#49
+ # source://rbs//lib/rbs/buffer.rb#68
def loc_to_pos(loc); end
- # Returns the value of attribute name.
- #
- # source://rbs//lib/rbs/buffer.rb#5
- def name; end
+ # Returns the value of attribute name.
+ #
+ # source://rbs//lib/rbs/buffer.rb#5
+ def name; end
+
+ # Returns the value of attribute parent.
+ #
+ # source://rbs//lib/rbs/buffer.rb#7
+ def parent; end
+
+ # source://rbs//lib/rbs/buffer.rb#116
+ def parent_buffer; end
+
+ # source://rbs//lib/rbs/buffer.rb#122
+ def parent_position(position); end
- # source://rbs//lib/rbs/buffer.rb#37
+ # source://rbs//lib/rbs/buffer.rb#56
def pos_to_loc(pos); end
- # source://rbs//lib/rbs/buffer.rb#17
+ # source://rbs//lib/rbs/buffer.rb#30
def ranges; end
+
+ # source://rbs//lib/rbs/buffer.rb#90
+ def rbs_location(location, loc2 = T.unsafe(nil)); end
+
+ # source://rbs//lib/rbs/buffer.rb#98
+ def sub_buffer(lines:); end
+
+ # source://rbs//lib/rbs/buffer.rb#140
+ def top_buffer; end
end
# source://rbs//lib/rbs/builtin_names.rb#4
@@ -1659,61 +2595,61 @@ end
class RBS::Collection::Config::LockfileGenerator
# @return [LockfileGenerator] a new instance of LockfileGenerator
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#43
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#44
def initialize(config:, definition:, with_lockfile:); end
# Returns the value of attribute config.
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#35
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#36
def config; end
# Returns the value of attribute definition.
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#35
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#36
def definition; end
# Returns the value of attribute existing_lockfile.
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#35
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#36
def existing_lockfile; end
# Returns the value of attribute gem_entries.
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#35
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#36
def gem_entries; end
# Returns the value of attribute gem_hash.
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#35
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#36
def gem_hash; end
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#71
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#72
def generate; end
# Returns the value of attribute lockfile.
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#35
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#36
def lockfile; end
private
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#104
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#105
def assign_gem(name:, version:, skip: T.unsafe(nil)); end
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#170
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#171
def assign_stdlib(name:, from_gem: T.unsafe(nil)); end
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#234
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#242
def find_best_version(version:, versions:); end
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#228
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#236
def find_source(name:); end
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#96
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#97
def validate_gemfile_lock_path!(lock:, gemfile_lock_path:); end
class << self
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#37
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#38
def generate(config:, definition:, with_lockfile: T.unsafe(nil)); end
end
end
@@ -1721,14 +2657,14 @@ end
# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#7
RBS::Collection::Config::LockfileGenerator::ALUMNI_STDLIBS = T.let(T.unsafe(nil), Hash)
-# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#19
+# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#20
class RBS::Collection::Config::LockfileGenerator::GemfileLockMismatchError < ::StandardError
# @return [GemfileLockMismatchError] a new instance of GemfileLockMismatchError
#
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#20
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#21
def initialize(expected:, actual:); end
- # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25
+ # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#26
def message; end
end
@@ -1770,113 +2706,113 @@ module RBS::Collection::Sources::Base
def dependencies_of(name, version); end
end
-# source://rbs//lib/rbs/collection/sources/git.rb#10
+# source://rbs//lib/rbs/collection/sources/git.rb#11
class RBS::Collection::Sources::Git
include ::RBS::Collection::Sources::Base
# @return [Git] a new instance of Git
#
- # source://rbs//lib/rbs/collection/sources/git.rb#18
+ # source://rbs//lib/rbs/collection/sources/git.rb#19
def initialize(name:, revision:, remote:, repo_dir:); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/collection/sources/git.rb#26
+ # source://rbs//lib/rbs/collection/sources/git.rb#27
def has?(name, version); end
- # source://rbs//lib/rbs/collection/sources/git.rb#43
+ # source://rbs//lib/rbs/collection/sources/git.rb#44
def install(dest:, name:, version:, stdout:); end
- # source://rbs//lib/rbs/collection/sources/git.rb#223
+ # source://rbs//lib/rbs/collection/sources/git.rb#224
def load_metadata(dir:); end
- # source://rbs//lib/rbs/collection/sources/git.rb#73
+ # source://rbs//lib/rbs/collection/sources/git.rb#74
def manifest_of(name, version); end
- # source://rbs//lib/rbs/collection/sources/git.rb#207
+ # source://rbs//lib/rbs/collection/sources/git.rb#208
def metadata_content(name:, version:); end
# Returns the value of attribute name.
#
- # source://rbs//lib/rbs/collection/sources/git.rb#16
+ # source://rbs//lib/rbs/collection/sources/git.rb#17
def name; end
# Returns the value of attribute remote.
#
- # source://rbs//lib/rbs/collection/sources/git.rb#16
+ # source://rbs//lib/rbs/collection/sources/git.rb#17
def remote; end
# Returns the value of attribute repo_dir.
#
- # source://rbs//lib/rbs/collection/sources/git.rb#16
+ # source://rbs//lib/rbs/collection/sources/git.rb#17
def repo_dir; end
- # source://rbs//lib/rbs/collection/sources/git.rb#172
+ # source://rbs//lib/rbs/collection/sources/git.rb#173
def resolved_revision; end
# Returns the value of attribute revision.
#
- # source://rbs//lib/rbs/collection/sources/git.rb#16
+ # source://rbs//lib/rbs/collection/sources/git.rb#17
def revision; end
- # source://rbs//lib/rbs/collection/sources/git.rb#113
+ # source://rbs//lib/rbs/collection/sources/git.rb#114
def to_lockfile; end
- # source://rbs//lib/rbs/collection/sources/git.rb#36
+ # source://rbs//lib/rbs/collection/sources/git.rb#37
def versions(name); end
- # source://rbs//lib/rbs/collection/sources/git.rb#215
+ # source://rbs//lib/rbs/collection/sources/git.rb#216
def write_metadata(dir:, name:, version:); end
private
- # source://rbs//lib/rbs/collection/sources/git.rb#87
+ # source://rbs//lib/rbs/collection/sources/git.rb#88
def _install(dest:, name:, version:); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/collection/sources/git.rb#183
+ # source://rbs//lib/rbs/collection/sources/git.rb#184
def commit_hash?; end
- # source://rbs//lib/rbs/collection/sources/git.rb#99
+ # source://rbs//lib/rbs/collection/sources/git.rb#100
def cp_r(src, dest); end
- # source://rbs//lib/rbs/collection/sources/git.rb#123
+ # source://rbs//lib/rbs/collection/sources/git.rb#124
def format_config_entry(name, version); end
- # source://rbs//lib/rbs/collection/sources/git.rb#168
+ # source://rbs//lib/rbs/collection/sources/git.rb#169
def gem_repo_dir; end
- # source://rbs//lib/rbs/collection/sources/git.rb#229
+ # source://rbs//lib/rbs/collection/sources/git.rb#230
def gems_versions; end
- # source://rbs//lib/rbs/collection/sources/git.rb#187
+ # source://rbs//lib/rbs/collection/sources/git.rb#188
def git(*cmd, **opt); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/collection/sources/git.rb#191
+ # source://rbs//lib/rbs/collection/sources/git.rb#192
def git?(*cmd, **opt); end
- # source://rbs//lib/rbs/collection/sources/git.rb#158
+ # source://rbs//lib/rbs/collection/sources/git.rb#159
def git_dir; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/collection/sources/git.rb#152
+ # source://rbs//lib/rbs/collection/sources/git.rb#153
def need_to_fetch?(revision); end
- # source://rbs//lib/rbs/collection/sources/git.rb#130
+ # source://rbs//lib/rbs/collection/sources/git.rb#131
def setup!; end
- # source://rbs//lib/rbs/collection/sources/git.rb#197
+ # source://rbs//lib/rbs/collection/sources/git.rb#198
def sh!(*cmd, **opt); end
end
-# source://rbs//lib/rbs/collection/sources/git.rb#14
+# source://rbs//lib/rbs/collection/sources/git.rb#15
class RBS::Collection::Sources::Git::CommandError < ::StandardError; end
-# source://rbs//lib/rbs/collection/sources/git.rb#12
+# source://rbs//lib/rbs/collection/sources/git.rb#13
RBS::Collection::Sources::Git::METADATA_FILENAME = T.let(T.unsafe(nil), String)
# source://rbs//lib/rbs/collection/sources/local.rb#6
@@ -1959,7 +2895,10 @@ class RBS::Collection::Sources::Rubygems
class << self
private
+ # source://rbs//lib/rbs/collection/sources/rubygems.rb#11
def allocate; end
+
+ # source://rbs//lib/rbs/collection/sources/rubygems.rb#11
def new(*_arg0); end
end
end
@@ -1998,7 +2937,10 @@ class RBS::Collection::Sources::Stdlib
class << self
private
+ # source://rbs//lib/rbs/collection/sources/stdlib.rb#11
def allocate; end
+
+ # source://rbs//lib/rbs/collection/sources/stdlib.rb#11
def new(*_arg0); end
end
end
@@ -2021,7 +2963,7 @@ class RBS::Constant
# source://rbs//lib/rbs/constant.rb#7
def entry; end
- # source://rbs//lib/rbs/constant.rb#15
+ # source://rbs//lib/rbs/constant.rb#22
def eql?(other); end
# source://rbs//lib/rbs/constant.rb#24
@@ -2038,51 +2980,51 @@ class RBS::Constant
def type; end
end
-# source://rbs//lib/rbs/errors.rb#577
+# source://rbs//lib/rbs/errors.rb#598
class RBS::CyclicClassAliasDefinitionError < ::RBS::BaseError
include ::RBS::DetailedMessageable
# @return [CyclicClassAliasDefinitionError] a new instance of CyclicClassAliasDefinitionError
#
- # source://rbs//lib/rbs/errors.rb#582
+ # source://rbs//lib/rbs/errors.rb#603
def initialize(entry); end
# Returns the value of attribute alias_entry.
#
- # source://rbs//lib/rbs/errors.rb#580
+ # source://rbs//lib/rbs/errors.rb#601
def alias_entry; end
- # source://rbs//lib/rbs/errors.rb#588
+ # source://rbs//lib/rbs/errors.rb#609
def location; end
end
-# source://rbs//lib/rbs/errors.rb#538
+# source://rbs//lib/rbs/errors.rb#559
class RBS::CyclicTypeParameterBound < ::RBS::BaseError
include ::RBS::DetailedMessageable
# @return [CyclicTypeParameterBound] a new instance of CyclicTypeParameterBound
#
- # source://rbs//lib/rbs/errors.rb#543
+ # source://rbs//lib/rbs/errors.rb#564
def initialize(type_name:, method_name:, params:, location:); end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/errors.rb#541
+ # source://rbs//lib/rbs/errors.rb#562
def location; end
# Returns the value of attribute method_name.
#
- # source://rbs//lib/rbs/errors.rb#541
+ # source://rbs//lib/rbs/errors.rb#562
def method_name; end
# Returns the value of attribute params.
#
- # source://rbs//lib/rbs/errors.rb#541
+ # source://rbs//lib/rbs/errors.rb#562
def params; end
# Returns the value of attribute type_name.
#
- # source://rbs//lib/rbs/errors.rb#541
+ # source://rbs//lib/rbs/errors.rb#562
def type_name; end
end
@@ -2090,170 +3032,170 @@ end
class RBS::Definition
# @return [Definition] a new instance of Definition
#
- # source://rbs//lib/rbs/definition.rb#297
+ # source://rbs//lib/rbs/definition.rb#302
def initialize(type_name:, entry:, self_type:, ancestors:); end
# Returns the value of attribute ancestors.
#
- # source://rbs//lib/rbs/definition.rb#291
+ # source://rbs//lib/rbs/definition.rb#296
def ancestors; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#320
+ # source://rbs//lib/rbs/definition.rb#325
def class?; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#337
+ # source://rbs//lib/rbs/definition.rb#342
def class_type?; end
# Returns the value of attribute class_variables.
#
- # source://rbs//lib/rbs/definition.rb#295
+ # source://rbs//lib/rbs/definition.rb#300
def class_variables; end
- # source://rbs//lib/rbs/definition.rb#384
+ # source://rbs//lib/rbs/definition.rb#389
def each_type(&block); end
# Returns the value of attribute entry.
#
- # source://rbs//lib/rbs/definition.rb#290
+ # source://rbs//lib/rbs/definition.rb#295
def entry; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#341
+ # source://rbs//lib/rbs/definition.rb#346
def instance_type?; end
# Returns the value of attribute instance_variables.
#
- # source://rbs//lib/rbs/definition.rb#294
+ # source://rbs//lib/rbs/definition.rb#299
def instance_variables; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#328
+ # source://rbs//lib/rbs/definition.rb#333
def interface?; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#345
+ # source://rbs//lib/rbs/definition.rb#350
def interface_type?; end
- # source://rbs//lib/rbs/definition.rb#374
+ # source://rbs//lib/rbs/definition.rb#379
def map_method_type(&block); end
# Returns the value of attribute methods.
#
- # source://rbs//lib/rbs/definition.rb#293
+ # source://rbs//lib/rbs/definition.rb#298
def methods; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#324
+ # source://rbs//lib/rbs/definition.rb#329
def module?; end
# Returns the value of attribute self_type.
#
- # source://rbs//lib/rbs/definition.rb#292
+ # source://rbs//lib/rbs/definition.rb#297
def self_type; end
- # source://rbs//lib/rbs/definition.rb#362
+ # source://rbs//lib/rbs/definition.rb#367
def sub(s); end
# Returns the value of attribute type_name.
#
- # source://rbs//lib/rbs/definition.rb#289
+ # source://rbs//lib/rbs/definition.rb#294
def type_name; end
- # source://rbs//lib/rbs/definition.rb#349
+ # source://rbs//lib/rbs/definition.rb#354
def type_params; end
- # source://rbs//lib/rbs/definition.rb#353
+ # source://rbs//lib/rbs/definition.rb#358
def type_params_decl; end
end
-# source://rbs//lib/rbs/definition.rb#204
+# source://rbs//lib/rbs/definition.rb#209
module RBS::Definition::Ancestor; end
-# source://rbs//lib/rbs/definition.rb#205
+# source://rbs//lib/rbs/definition.rb#210
class RBS::Definition::Ancestor::Instance
# @return [Instance] a new instance of Instance
#
- # source://rbs//lib/rbs/definition.rb#208
+ # source://rbs//lib/rbs/definition.rb#213
def initialize(name:, args:, source:); end
- # source://rbs//lib/rbs/definition.rb#214
+ # source://rbs//lib/rbs/definition.rb#219
def ==(other); end
# Returns the value of attribute args.
#
- # source://rbs//lib/rbs/definition.rb#206
+ # source://rbs//lib/rbs/definition.rb#211
def args; end
- # source://rbs//lib/rbs/definition.rb#214
+ # source://rbs//lib/rbs/definition.rb#223
def eql?(other); end
- # source://rbs//lib/rbs/definition.rb#220
+ # source://rbs//lib/rbs/definition.rb#225
def hash; end
# Returns the value of attribute name.
#
- # source://rbs//lib/rbs/definition.rb#206
+ # source://rbs//lib/rbs/definition.rb#211
def name; end
# Returns the value of attribute source.
#
- # source://rbs//lib/rbs/definition.rb#206
+ # source://rbs//lib/rbs/definition.rb#211
def source; end
end
-# source://rbs//lib/rbs/definition.rb#225
+# source://rbs//lib/rbs/definition.rb#230
class RBS::Definition::Ancestor::Singleton
# @return [Singleton] a new instance of Singleton
#
- # source://rbs//lib/rbs/definition.rb#228
+ # source://rbs//lib/rbs/definition.rb#233
def initialize(name:); end
- # source://rbs//lib/rbs/definition.rb#232
+ # source://rbs//lib/rbs/definition.rb#237
def ==(other); end
- # source://rbs//lib/rbs/definition.rb#232
+ # source://rbs//lib/rbs/definition.rb#241
def eql?(other); end
- # source://rbs//lib/rbs/definition.rb#238
+ # source://rbs//lib/rbs/definition.rb#243
def hash; end
# Returns the value of attribute name.
#
- # source://rbs//lib/rbs/definition.rb#226
+ # source://rbs//lib/rbs/definition.rb#231
def name; end
end
-# source://rbs//lib/rbs/definition.rb#244
+# source://rbs//lib/rbs/definition.rb#249
class RBS::Definition::InstanceAncestors
# @return [InstanceAncestors] a new instance of InstanceAncestors
#
- # source://rbs//lib/rbs/definition.rb#249
+ # source://rbs//lib/rbs/definition.rb#254
def initialize(type_name:, params:, ancestors:); end
# Returns the value of attribute ancestors.
#
- # source://rbs//lib/rbs/definition.rb#247
+ # source://rbs//lib/rbs/definition.rb#252
def ancestors; end
- # source://rbs//lib/rbs/definition.rb#255
+ # source://rbs//lib/rbs/definition.rb#260
def apply(args, env:, location:); end
# Returns the value of attribute params.
#
- # source://rbs//lib/rbs/definition.rb#246
+ # source://rbs//lib/rbs/definition.rb#251
def params; end
# Returns the value of attribute type_name.
#
- # source://rbs//lib/rbs/definition.rb#245
+ # source://rbs//lib/rbs/definition.rb#250
def type_name; end
end
@@ -2261,91 +3203,91 @@ end
class RBS::Definition::Method
# @return [Method] a new instance of Method
#
- # source://rbs//lib/rbs/definition.rb#102
+ # source://rbs//lib/rbs/definition.rb#107
def initialize(super_method:, defs:, accessibility:, alias_of:, annotations: T.unsafe(nil), alias_member: T.unsafe(nil)); end
- # source://rbs//lib/rbs/definition.rb#112
+ # source://rbs//lib/rbs/definition.rb#117
def ==(other); end
# Returns the value of attribute accessibility.
#
- # source://rbs//lib/rbs/definition.rb#96
+ # source://rbs//lib/rbs/definition.rb#101
def accessibility; end
# Returns the value of attribute alias_member.
#
- # source://rbs//lib/rbs/definition.rb#100
+ # source://rbs//lib/rbs/definition.rb#105
def alias_member; end
# Returns the value of attribute alias_of.
#
- # source://rbs//lib/rbs/definition.rb#99
+ # source://rbs//lib/rbs/definition.rb#104
def alias_of; end
# Returns the value of attribute annotations.
#
- # source://rbs//lib/rbs/definition.rb#98
+ # source://rbs//lib/rbs/definition.rb#103
def annotations; end
- # source://rbs//lib/rbs/definition.rb#146
+ # source://rbs//lib/rbs/definition.rb#151
def comments; end
- # source://rbs//lib/rbs/definition.rb#128
+ # source://rbs//lib/rbs/definition.rb#133
def defined_in; end
# Returns the value of attribute defs.
#
- # source://rbs//lib/rbs/definition.rb#95
+ # source://rbs//lib/rbs/definition.rb#100
def defs; end
- # source://rbs//lib/rbs/definition.rb#112
+ # source://rbs//lib/rbs/definition.rb#127
def eql?(other); end
# Returns the value of attribute extra_annotations.
#
- # source://rbs//lib/rbs/definition.rb#97
+ # source://rbs//lib/rbs/definition.rb#102
def extra_annotations; end
- # source://rbs//lib/rbs/definition.rb#124
+ # source://rbs//lib/rbs/definition.rb#129
def hash; end
- # source://rbs//lib/rbs/definition.rb#135
+ # source://rbs//lib/rbs/definition.rb#140
def implemented_in; end
- # source://rbs//lib/rbs/definition.rb#185
+ # source://rbs//lib/rbs/definition.rb#190
def map_method_type(&block); end
- # source://rbs//lib/rbs/definition.rb#171
+ # source://rbs//lib/rbs/definition.rb#176
def map_type(&block); end
- # source://rbs//lib/rbs/definition.rb#178
+ # source://rbs//lib/rbs/definition.rb#183
def map_type_bound(&block); end
- # source://rbs//lib/rbs/definition.rb#150
+ # source://rbs//lib/rbs/definition.rb#155
def members; end
- # source://rbs//lib/rbs/definition.rb#142
+ # source://rbs//lib/rbs/definition.rb#147
def method_types; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#158
+ # source://rbs//lib/rbs/definition.rb#163
def private?; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#154
+ # source://rbs//lib/rbs/definition.rb#159
def public?; end
- # source://rbs//lib/rbs/definition.rb#162
+ # source://rbs//lib/rbs/definition.rb#167
def sub(s); end
# Returns the value of attribute super_method.
#
- # source://rbs//lib/rbs/definition.rb#94
+ # source://rbs//lib/rbs/definition.rb#99
def super_method; end
- # source://rbs//lib/rbs/definition.rb#191
+ # source://rbs//lib/rbs/definition.rb#196
def update(super_method: T.unsafe(nil), defs: T.unsafe(nil), accessibility: T.unsafe(nil), alias_of: T.unsafe(nil), annotations: T.unsafe(nil), alias_member: T.unsafe(nil)); end
end
@@ -2372,10 +3314,10 @@ class RBS::Definition::Method::TypeDef
# source://rbs//lib/rbs/definition.rb#34
def defined_in; end
- # source://rbs//lib/rbs/definition.rb#84
+ # source://rbs//lib/rbs/definition.rb#89
def each_annotation(&block); end
- # source://rbs//lib/rbs/definition.rb#50
+ # source://rbs//lib/rbs/definition.rb#58
def eql?(other); end
# source://rbs//lib/rbs/definition.rb#60
@@ -2398,7 +3340,7 @@ class RBS::Definition::Method::TypeDef
# @return [Boolean]
#
- # source://rbs//lib/rbs/definition.rb#75
+ # source://rbs//lib/rbs/definition.rb#80
def overload?; end
# Returns the value of attribute overload_annotations.
@@ -2411,25 +3353,25 @@ class RBS::Definition::Method::TypeDef
# source://rbs//lib/rbs/definition.rb#32
def type; end
- # source://rbs//lib/rbs/definition.rb#68
+ # source://rbs//lib/rbs/definition.rb#73
def update(type: T.unsafe(nil), member: T.unsafe(nil), defined_in: T.unsafe(nil), implemented_in: T.unsafe(nil)); end
end
-# source://rbs//lib/rbs/definition.rb#279
+# source://rbs//lib/rbs/definition.rb#284
class RBS::Definition::SingletonAncestors
# @return [SingletonAncestors] a new instance of SingletonAncestors
#
- # source://rbs//lib/rbs/definition.rb#283
+ # source://rbs//lib/rbs/definition.rb#288
def initialize(type_name:, ancestors:); end
# Returns the value of attribute ancestors.
#
- # source://rbs//lib/rbs/definition.rb#281
+ # source://rbs//lib/rbs/definition.rb#286
def ancestors; end
# Returns the value of attribute type_name.
#
- # source://rbs//lib/rbs/definition.rb#280
+ # source://rbs//lib/rbs/definition.rb#285
def type_name; end
end
@@ -2476,18 +3418,18 @@ class RBS::DefinitionBuilder
# source://rbs//lib/rbs/definition_builder.rb#6
def ancestor_builder; end
- # source://rbs//lib/rbs/definition_builder.rb#172
+ # source://rbs//lib/rbs/definition_builder.rb#195
def build_instance(type_name); end
# source://rbs//lib/rbs/definition_builder.rb#43
def build_interface(type_name); end
- # source://rbs//lib/rbs/definition_builder.rb#304
+ # source://rbs//lib/rbs/definition_builder.rb#327
def build_singleton(type_name); end
# Builds a definition for singleton without .new method.
#
- # source://rbs//lib/rbs/definition_builder.rb#234
+ # source://rbs//lib/rbs/definition_builder.rb#257
def build_singleton0(type_name); end
# source://rbs//lib/rbs/definition_builder.rb#85
@@ -2496,7 +3438,7 @@ class RBS::DefinitionBuilder
# source://rbs//lib/rbs/definition_builder.rb#33
def define_interface(definition, type_name, subst); end
- # source://rbs//lib/rbs/definition_builder.rb#642
+ # source://rbs//lib/rbs/definition_builder.rb#682
def define_method(methods, definition, method, subst, self_type_methods, defined_in:, implemented_in: T.unsafe(nil)); end
# source://rbs//lib/rbs/definition_builder.rb#25
@@ -2507,19 +3449,19 @@ class RBS::DefinitionBuilder
# source://rbs//lib/rbs/definition_builder.rb#5
def env; end
- # source://rbs//lib/rbs/definition_builder.rb#826
+ # source://rbs//lib/rbs/definition_builder.rb#950
def expand_alias(type_name); end
- # source://rbs//lib/rbs/definition_builder.rb#830
+ # source://rbs//lib/rbs/definition_builder.rb#954
def expand_alias1(type_name); end
- # source://rbs//lib/rbs/definition_builder.rb#837
+ # source://rbs//lib/rbs/definition_builder.rb#961
def expand_alias2(type_name, args); end
- # source://rbs//lib/rbs/definition_builder.rb#581
+ # source://rbs//lib/rbs/definition_builder.rb#621
def import_methods(definition, module_name, module_methods, interfaces_methods, subst, self_type_methods); end
- # source://rbs//lib/rbs/definition_builder.rb#543
+ # source://rbs//lib/rbs/definition_builder.rb#570
def insert_variable(type_name, variables, name:, type:, source:); end
# Returns the value of attribute instance_cache.
@@ -2532,7 +3474,7 @@ class RBS::DefinitionBuilder
# source://rbs//lib/rbs/definition_builder.rb#12
def interface_cache; end
- # source://rbs//lib/rbs/definition_builder.rb#417
+ # source://rbs//lib/rbs/definition_builder.rb#440
def interface_methods(interface_ancestors); end
# Returns the value of attribute method_builder.
@@ -2550,33 +3492,33 @@ class RBS::DefinitionBuilder
# source://rbs//lib/rbs/definition_builder.rb#10
def singleton_cache; end
- # source://rbs//lib/rbs/definition_builder.rb#447
+ # source://rbs//lib/rbs/definition_builder.rb#470
def source_location(source, decl); end
# source://rbs//lib/rbs/definition_builder.rb#66
def tapp_subst(name, args); end
- # source://rbs//lib/rbs/definition_builder.rb#822
+ # source://rbs//lib/rbs/definition_builder.rb#946
def try_cache(type_name, cache:); end
- # source://rbs//lib/rbs/definition_builder.rb#861
+ # source://rbs//lib/rbs/definition_builder.rb#985
def update(env:, except:, ancestor_builder:); end
- # source://rbs//lib/rbs/definition_builder.rb#437
+ # source://rbs//lib/rbs/definition_builder.rb#460
def validate_params_with(type_params, result:); end
# @raise [NoTypeFoundError]
#
- # source://rbs//lib/rbs/definition_builder.rb#890
+ # source://rbs//lib/rbs/definition_builder.rb#1014
def validate_type_name(name, location); end
- # source://rbs//lib/rbs/definition_builder.rb#461
+ # source://rbs//lib/rbs/definition_builder.rb#488
def validate_type_params(definition, ancestors:, methods:); end
- # source://rbs//lib/rbs/definition_builder.rb#879
+ # source://rbs//lib/rbs/definition_builder.rb#1003
def validate_type_presence(type); end
- # source://rbs//lib/rbs/definition_builder.rb#553
+ # source://rbs//lib/rbs/definition_builder.rb#581
def validate_variable(var); end
end
@@ -2592,10 +3534,10 @@ class RBS::DefinitionBuilder::AncestorBuilder
# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#151
def env; end
- # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#608
+ # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#664
def fill_ancestor_source(ancestor, name:, source:, &block); end
- # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#436
+ # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#492
def instance_ancestors(type_name, building_ancestors: T.unsafe(nil)); end
# Returns the value of attribute instance_ancestors_cache.
@@ -2603,7 +3545,7 @@ class RBS::DefinitionBuilder::AncestorBuilder
# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#154
def instance_ancestors_cache; end
- # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#572
+ # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#628
def interface_ancestors(type_name, building_ancestors: T.unsafe(nil)); end
# Returns the value of attribute interface_ancestors_cache.
@@ -2611,7 +3553,7 @@ class RBS::DefinitionBuilder::AncestorBuilder
# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#160
def interface_ancestors_cache; end
- # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#416
+ # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#474
def mixin_ancestors(entry, type_name, included_modules:, included_interfaces:, extended_modules:, prepended_modules:, extended_interfaces:); end
# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#350
@@ -2641,7 +3583,7 @@ class RBS::DefinitionBuilder::AncestorBuilder
# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#156
def one_singleton_ancestors_cache; end
- # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#517
+ # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#573
def singleton_ancestors(type_name, building_ancestors: T.unsafe(nil)); end
# Returns the value of attribute singleton_ancestors_cache.
@@ -2750,26 +3692,29 @@ class RBS::DefinitionBuilder::MethodBuilder
# source://rbs//lib/rbs/definition_builder/method_builder.rb#91
def initialize(env:); end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#194
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#211
def build_alias(methods, type, member:); end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#199
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#216
def build_attribute(methods, type, member:, accessibility:); end
# source://rbs//lib/rbs/definition_builder/method_builder.rb#99
def build_instance(type_name); end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#174
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#191
def build_interface(type_name); end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#215
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#250
def build_method(methods, type, member:, accessibility:); end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#145
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#232
+ def build_ruby_attribute(methods, type, member:, accessibility:); end
+
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#162
def build_singleton(type_name); end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#226
- def each_member_with_accessibility(members, accessibility: T.unsafe(nil)); end
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#261
+ def each_rbs_member_with_accessibility(members, accessibility: T.unsafe(nil)); end
# Returns the value of attribute env.
#
@@ -2791,7 +3736,7 @@ class RBS::DefinitionBuilder::MethodBuilder
# source://rbs//lib/rbs/definition_builder/method_builder.rb#88
def singleton_methods; end
- # source://rbs//lib/rbs/definition_builder/method_builder.rb#239
+ # source://rbs//lib/rbs/definition_builder/method_builder.rb#274
def update(env:, except:); end
end
@@ -2884,7 +3829,7 @@ class RBS::Diff
# source://rbs//lib/rbs/diff.rb#49
def build_methods(path); end
- # source://rbs//lib/rbs/diff.rb#116
+ # source://rbs//lib/rbs/diff.rb#122
def constant_to_s(constant); end
# source://rbs//lib/rbs/diff.rb#100
@@ -2897,21 +3842,21 @@ class RBS::Diff
def each_diff_methods(kind, before_methods, after_methods); end
end
-# source://rbs//lib/rbs/errors.rb#418
+# source://rbs//lib/rbs/errors.rb#419
class RBS::DuplicatedDeclarationError < ::RBS::LoadingError
# @return [DuplicatedDeclarationError] a new instance of DuplicatedDeclarationError
#
- # source://rbs//lib/rbs/errors.rb#422
+ # source://rbs//lib/rbs/errors.rb#423
def initialize(name, *decls); end
# Returns the value of attribute decls.
#
- # source://rbs//lib/rbs/errors.rb#420
+ # source://rbs//lib/rbs/errors.rb#421
def decls; end
# Returns the value of attribute name.
#
- # source://rbs//lib/rbs/errors.rb#419
+ # source://rbs//lib/rbs/errors.rb#420
def name; end
end
@@ -2990,330 +3935,340 @@ end
class RBS::Environment
# @return [Environment] a new instance of Environment
#
- # source://rbs//lib/rbs/environment.rb#145
+ # source://rbs//lib/rbs/environment.rb#48
def initialize; end
- # source://rbs//lib/rbs/environment.rb#470
- def <<(decl); end
-
- # source://rbs//lib/rbs/environment.rb#807
+ # source://rbs//lib/rbs/environment.rb#981
def absolute_type(resolver, map, type, context:); end
- # source://rbs//lib/rbs/environment.rb#802
+ # source://rbs//lib/rbs/environment.rb#976
def absolute_type_name(resolver, map, type_name, context:); end
- # source://rbs//lib/rbs/environment.rb#476
- def add_signature(buffer:, directives:, decls:); end
+ # source://rbs//lib/rbs/environment.rb#455
+ def add_source(source); end
- # source://rbs//lib/rbs/environment.rb#539
+ # source://rbs//lib/rbs/environment.rb#568
def append_context(context, decl); end
- # source://rbs//lib/rbs/environment.rb#818
+ # source://rbs//lib/rbs/environment.rb#992
def buffers; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#218
+ # source://rbs//lib/rbs/environment.rb#117
def class_alias?(name); end
# Returns the value of attribute class_alias_decls.
#
- # source://rbs//lib/rbs/environment.rb#12
+ # source://rbs//lib/rbs/environment.rb#10
def class_alias_decls; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#202
+ # source://rbs//lib/rbs/environment.rb#101
def class_decl?(name); end
# Returns the value of attribute class_decls.
#
- # source://rbs//lib/rbs/environment.rb#7
+ # source://rbs//lib/rbs/environment.rb#5
def class_decls; end
- # source://rbs//lib/rbs/environment.rb#226
- def class_entry(type_name); end
+ # source://rbs//lib/rbs/environment.rb#125
+ def class_entry(type_name, normalized: T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#198
+ # source://rbs//lib/rbs/environment.rb#97
def constant_decl?(name); end
# Returns the value of attribute constant_decls.
#
- # source://rbs//lib/rbs/environment.rb#10
+ # source://rbs//lib/rbs/environment.rb#8
def constant_decls; end
- # source://rbs//lib/rbs/environment.rb#274
- def constant_entry(type_name); end
+ # source://rbs//lib/rbs/environment.rb#167
+ def constant_entry(type_name, normalized: T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#194
+ # source://rbs//lib/rbs/environment.rb#93
def constant_name?(name); end
- # Returns the value of attribute declarations.
- #
- # source://rbs//lib/rbs/environment.rb#5
+ # source://rbs//lib/rbs/environment.rb#14
def declarations; end
+ # source://rbs//lib/rbs/environment.rb#470
+ def each_rbs_source(&block); end
+
+ # source://rbs//lib/rbs/environment.rb#482
+ def each_ruby_source(&block); end
+
# Returns the value of attribute global_decls.
#
- # source://rbs//lib/rbs/environment.rb#11
+ # source://rbs//lib/rbs/environment.rb#9
def global_decls; end
- # source://rbs//lib/rbs/environment.rb#373
- def insert_decl(decl, outer:, namespace:); end
+ # source://rbs//lib/rbs/environment.rb#277
+ def insert_rbs_decl(decl, context:, namespace:); end
- # source://rbs//lib/rbs/environment.rb#813
+ # source://rbs//lib/rbs/environment.rb#374
+ def insert_ruby_decl(decl, context:, namespace:); end
+
+ # source://rbs//lib/rbs/environment.rb#987
def inspect; end
# Returns the value of attribute interface_decls.
#
- # source://rbs//lib/rbs/environment.rb#8
+ # source://rbs//lib/rbs/environment.rb#6
def interface_decls; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#176
+ # source://rbs//lib/rbs/environment.rb#75
def interface_name?(name); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#210
+ # source://rbs//lib/rbs/environment.rb#109
def module_alias?(name); end
- # source://rbs//lib/rbs/environment.rb#266
- def module_class_entry(type_name); end
+ # source://rbs//lib/rbs/environment.rb#154
+ def module_class_entry(type_name, normalized: T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#206
+ # source://rbs//lib/rbs/environment.rb#105
def module_decl?(name); end
- # source://rbs//lib/rbs/environment.rb#235
- def module_entry(type_name); end
+ # source://rbs//lib/rbs/environment.rb#132
+ def module_entry(type_name, normalized: T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#184
+ # source://rbs//lib/rbs/environment.rb#83
def module_name?(name); end
- # source://rbs//lib/rbs/environment.rb#332
+ # source://rbs//lib/rbs/environment.rb#269
def normalize_module_name(name); end
+ # source://rbs//lib/rbs/environment.rb#273
+ def normalize_module_name!(name); end
+
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#336
+ # source://rbs//lib/rbs/environment.rb#241
def normalize_module_name?(name); end
- # source://rbs//lib/rbs/environment.rb#328
+ # source://rbs//lib/rbs/environment.rb#219
def normalize_type_name(name); end
- # source://rbs//lib/rbs/environment.rb#297
+ # source://rbs//lib/rbs/environment.rb#206
def normalize_type_name!(name); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#278
+ # source://rbs//lib/rbs/environment.rb#187
def normalize_type_name?(name); end
- # source://rbs//lib/rbs/environment.rb#244
+ # source://rbs//lib/rbs/environment.rb#139
def normalized_class_entry(type_name); end
- # source://rbs//lib/rbs/environment.rb#270
+ # source://rbs//lib/rbs/environment.rb#163
def normalized_module_class_entry(type_name); end
- # source://rbs//lib/rbs/environment.rb#255
+ # source://rbs//lib/rbs/environment.rb#150
def normalized_module_entry(type_name); end
- # source://rbs//lib/rbs/environment.rb#323
+ # source://rbs//lib/rbs/environment.rb#236
def normalized_type_name!(name); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#310
+ # source://rbs//lib/rbs/environment.rb#223
def normalized_type_name?(type_name); end
- # source://rbs//lib/rbs/environment.rb#548
- def resolve_declaration(resolver, map, decl, outer:, prefix:); end
+ # source://rbs//lib/rbs/environment.rb#577
+ def resolve_declaration(resolver, map, decl, context:, prefix:); end
- # source://rbs//lib/rbs/environment.rb#688
+ # source://rbs//lib/rbs/environment.rb#862
def resolve_member(resolver, map, member, context:); end
- # source://rbs//lib/rbs/environment.rb#788
+ # source://rbs//lib/rbs/environment.rb#962
def resolve_method_type(resolver, map, type, context:); end
- # source://rbs//lib/rbs/environment.rb#489
+ # source://rbs//lib/rbs/environment.rb#713
+ def resolve_ruby_decl(resolver, decl, context:, prefix:); end
+
+ # source://rbs//lib/rbs/environment.rb#790
+ def resolve_ruby_member(resolver, member, context:); end
+
+ # source://rbs//lib/rbs/environment.rb#500
def resolve_signature(resolver, table, dirs, decls, only: T.unsafe(nil)); end
- # source://rbs//lib/rbs/environment.rb#511
+ # source://rbs//lib/rbs/environment.rb#522
def resolve_type_names(only: T.unsafe(nil)); end
- # source://rbs//lib/rbs/environment.rb#796
+ # source://rbs//lib/rbs/environment.rb#970
def resolve_type_params(resolver, map, params, context:); end
- # source://rbs//lib/rbs/environment.rb#533
+ # source://rbs//lib/rbs/environment.rb#562
def resolver_context(*nesting); end
- # Returns the value of attribute signatures.
+ # Returns the value of attribute sources.
#
- # source://rbs//lib/rbs/environment.rb#14
- def signatures; end
+ # source://rbs//lib/rbs/environment.rb#12
+ def sources; end
# Returns the value of attribute type_alias_decls.
#
- # source://rbs//lib/rbs/environment.rb#9
+ # source://rbs//lib/rbs/environment.rb#7
def type_alias_decls; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#180
+ # source://rbs//lib/rbs/environment.rb#79
def type_alias_name?(name); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#188
+ # source://rbs//lib/rbs/environment.rb#87
def type_name?(name); end
- # source://rbs//lib/rbs/environment.rb#822
- def unload(buffers); end
+ # source://rbs//lib/rbs/environment.rb#996
+ def unload(paths); end
- # source://rbs//lib/rbs/environment.rb#483
+ # source://rbs//lib/rbs/environment.rb#494
def validate_type_params; end
private
- # source://rbs//lib/rbs/environment.rb#158
+ # source://rbs//lib/rbs/environment.rb#59
def initialize_copy(other); end
class << self
- # source://rbs//lib/rbs/environment.rb#170
+ # source://rbs//lib/rbs/environment.rb#69
def from_loader(loader); end
end
end
-# source://rbs//lib/rbs/environment.rb#130
+# source://rbs//lib/rbs/environment.rb#33
class RBS::Environment::ClassAliasEntry < ::RBS::Environment::SingleEntry; end
-# source://rbs//lib/rbs/environment.rb#100
-class RBS::Environment::ClassEntry < ::RBS::Environment::MultiEntry
- # source://rbs//lib/rbs/environment.rb#101
- def primary; end
-end
+# source://rbs//lib/rbs/environment/class_entry.rb#5
+class RBS::Environment::ClassEntry
+ # @return [ClassEntry] a new instance of ClassEntry
+ #
+ # source://rbs//lib/rbs/environment/class_entry.rb#10
+ def initialize(name); end
-# source://rbs//lib/rbs/environment.rb#139
-class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end
+ # source://rbs//lib/rbs/environment/class_entry.rb#15
+ def <<(context_decl); end
+
+ # Returns the value of attribute context_decls.
+ #
+ # source://rbs//lib/rbs/environment/class_entry.rb#8
+ def context_decls; end
+
+ # source://rbs//lib/rbs/environment/class_entry.rb#21
+ def each_decl(&block); end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/environment/class_entry.rb#31
+ def empty?; end
+
+ # Returns the value of attribute name.
+ #
+ # source://rbs//lib/rbs/environment/class_entry.rb#6
+ def name; end
+
+ # source://rbs//lib/rbs/environment/class_entry.rb#35
+ def primary_decl; end
+
+ # source://rbs//lib/rbs/environment/class_entry.rb#47
+ def type_params; end
-# source://rbs//lib/rbs/environment.rb#16
-module RBS::Environment::ContextUtil
- # source://rbs//lib/rbs/environment.rb#17
- def calculate_context(decls); end
+ # source://rbs//lib/rbs/environment/class_entry.rb#52
+ def validate_type_params; end
end
-# source://rbs//lib/rbs/environment.rb#142
+# source://rbs//lib/rbs/environment.rb#42
+class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end
+
+# source://rbs//lib/rbs/environment.rb#45
class RBS::Environment::GlobalEntry < ::RBS::Environment::SingleEntry; end
-# source://rbs//lib/rbs/environment.rb#133
+# source://rbs//lib/rbs/environment.rb#36
class RBS::Environment::InterfaceEntry < ::RBS::Environment::SingleEntry; end
-# source://rbs//lib/rbs/environment.rb#127
+# source://rbs//lib/rbs/environment.rb#30
class RBS::Environment::ModuleAliasEntry < ::RBS::Environment::SingleEntry; end
-# source://rbs//lib/rbs/environment.rb#85
-class RBS::Environment::ModuleEntry < ::RBS::Environment::MultiEntry
- # source://rbs//lib/rbs/environment.rb#92
- def primary; end
+# source://rbs//lib/rbs/environment/module_entry.rb#5
+class RBS::Environment::ModuleEntry
+ # @return [ModuleEntry] a new instance of ModuleEntry
+ #
+ # source://rbs//lib/rbs/environment/module_entry.rb#10
+ def initialize(name); end
- # source://rbs//lib/rbs/environment.rb#86
- def self_types; end
-end
+ # source://rbs//lib/rbs/environment/module_entry.rb#15
+ def <<(context_decl); end
-# source://rbs//lib/rbs/environment.rb#29
-class RBS::Environment::MultiEntry
- # @return [MultiEntry] a new instance of MultiEntry
+ # Returns the value of attribute context_decls.
#
- # source://rbs//lib/rbs/environment.rb#43
- def initialize(name:); end
+ # source://rbs//lib/rbs/environment/module_entry.rb#8
+ def context_decls; end
- # @return [Boolean]
- #
- # source://rbs//lib/rbs/environment.rb#70
- def compatible_params?(ps1, ps2); end
+ # source://rbs//lib/rbs/environment/module_entry.rb#20
+ def each_decl(&block); end
- # Returns the value of attribute decls.
+ # @return [Boolean]
#
- # source://rbs//lib/rbs/environment.rb#41
- def decls; end
-
- # source://rbs//lib/rbs/environment.rb#48
- def insert(decl:, outer:); end
+ # source://rbs//lib/rbs/environment/module_entry.rb#30
+ def empty?; end
# Returns the value of attribute name.
#
- # source://rbs//lib/rbs/environment.rb#40
+ # source://rbs//lib/rbs/environment/module_entry.rb#6
def name; end
- # source://rbs//lib/rbs/environment.rb#80
- def primary; end
+ # source://rbs//lib/rbs/environment/module_entry.rb#34
+ def primary_decl; end
+
+ # source://rbs//lib/rbs/environment/module_entry.rb#43
+ def self_types; end
- # source://rbs//lib/rbs/environment.rb#76
+ # source://rbs//lib/rbs/environment/module_entry.rb#38
def type_params; end
- # source://rbs//lib/rbs/environment.rb#53
+ # source://rbs//lib/rbs/environment/module_entry.rb#49
def validate_type_params; end
end
-# source://rbs//lib/rbs/environment.rb#30
-class RBS::Environment::MultiEntry::D < ::Struct
- include ::RBS::Environment::ContextUtil
-
- # source://rbs//lib/rbs/environment.rb#35
- def context; end
-
- def decl; end
- def decl=(_); end
- def outer; end
- def outer=(_); end
-
- class << self
- def [](*_arg0); end
- def inspect; end
- def keyword_init?; end
- def members; end
- def new(*_arg0); end
- end
-end
-
-# source://rbs//lib/rbs/environment.rb#109
+# source://rbs//lib/rbs/environment.rb#18
class RBS::Environment::SingleEntry
- include ::RBS::Environment::ContextUtil
-
# @return [SingleEntry] a new instance of SingleEntry
#
- # source://rbs//lib/rbs/environment.rb#114
- def initialize(name:, decl:, outer:); end
+ # source://rbs//lib/rbs/environment.rb#23
+ def initialize(name:, decl:, context:); end
- # source://rbs//lib/rbs/environment.rb#122
+ # Returns the value of attribute context.
+ #
+ # source://rbs//lib/rbs/environment.rb#20
def context; end
# Returns the value of attribute decl.
#
- # source://rbs//lib/rbs/environment.rb#112
+ # source://rbs//lib/rbs/environment.rb#21
def decl; end
# Returns the value of attribute name.
#
- # source://rbs//lib/rbs/environment.rb#110
+ # source://rbs//lib/rbs/environment.rb#19
def name; end
-
- # Returns the value of attribute outer.
- #
- # source://rbs//lib/rbs/environment.rb#111
- def outer; end
end
-# source://rbs//lib/rbs/environment.rb#136
+# source://rbs//lib/rbs/environment.rb#39
class RBS::Environment::TypeAliasEntry < ::RBS::Environment::SingleEntry; end
# source://rbs//lib/rbs/environment/use_map.rb#5
@@ -3373,7 +4328,7 @@ class RBS::EnvironmentLoader
# source://rbs//lib/rbs/environment_loader.rb#48
def add(path: T.unsafe(nil), library: T.unsafe(nil), version: T.unsafe(nil), resolve_dependencies: T.unsafe(nil)); end
- # source://rbs//lib/rbs/environment_loader.rb#80
+ # source://rbs//lib/rbs/environment_loader.rb#74
def add_collection(lockfile); end
# Returns the value of attribute core_root.
@@ -3386,15 +4341,15 @@ class RBS::EnvironmentLoader
# source://rbs//lib/rbs/environment_loader.rb#24
def dirs; end
- # source://rbs//lib/rbs/environment_loader.rb#131
+ # source://rbs//lib/rbs/environment_loader.rb#125
def each_dir; end
- # source://rbs//lib/rbs/environment_loader.rb#154
+ # source://rbs//lib/rbs/environment_loader.rb#148
def each_signature; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/environment_loader.rb#104
+ # source://rbs//lib/rbs/environment_loader.rb#98
def has_library?(library:, version:); end
# Returns the value of attribute libs.
@@ -3402,7 +4357,7 @@ class RBS::EnvironmentLoader
# source://rbs//lib/rbs/environment_loader.rb#23
def libs; end
- # source://rbs//lib/rbs/environment_loader.rb#112
+ # source://rbs//lib/rbs/environment_loader.rb#106
def load(env:); end
# Returns the value of attribute repository.
@@ -3410,7 +4365,7 @@ class RBS::EnvironmentLoader
# source://rbs//lib/rbs/environment_loader.rb#21
def repository; end
- # source://rbs//lib/rbs/environment_loader.rb#65
+ # source://rbs//lib/rbs/environment_loader.rb#59
def resolve_dependencies(library:, version:); end
class << self
@@ -3478,42 +4433,78 @@ end
# source://rbs//lib/rbs/environment_walker.rb#5
class RBS::EnvironmentWalker::InstanceNode < ::Struct
+ # source://rbs//lib/rbs/environment_walker.rb#5
def type_name; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#5
def type_name=(_); end
class << self
+ # source://rbs//lib/rbs/environment_walker.rb#5
def [](*_arg0); end
+
+ # source://rbs//lib/rbs/environment_walker.rb#5
def inspect; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#5
def keyword_init?; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#5
def members; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#5
def new(*_arg0); end
end
end
# source://rbs//lib/rbs/environment_walker.rb#6
class RBS::EnvironmentWalker::SingletonNode < ::Struct
+ # source://rbs//lib/rbs/environment_walker.rb#6
def type_name; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#6
def type_name=(_); end
class << self
+ # source://rbs//lib/rbs/environment_walker.rb#6
def [](*_arg0); end
+
+ # source://rbs//lib/rbs/environment_walker.rb#6
def inspect; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#6
def keyword_init?; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#6
def members; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#6
def new(*_arg0); end
end
end
# source://rbs//lib/rbs/environment_walker.rb#7
class RBS::EnvironmentWalker::TypeNameNode < ::Struct
+ # source://rbs//lib/rbs/environment_walker.rb#7
def type_name; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#7
def type_name=(_); end
class << self
+ # source://rbs//lib/rbs/environment_walker.rb#7
def [](*_arg0); end
+
+ # source://rbs//lib/rbs/environment_walker.rb#7
def inspect; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#7
def keyword_init?; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#7
def members; end
+
+ # source://rbs//lib/rbs/environment_walker.rb#7
def new(*_arg0); end
end
end
@@ -3532,63 +4523,319 @@ module RBS::FileFinder
end
end
-# source://rbs//lib/rbs/errors.rb#407
-class RBS::GenericParameterMismatchError < ::RBS::LoadingError
- # @return [GenericParameterMismatchError] a new instance of GenericParameterMismatchError
- #
- # source://rbs//lib/rbs/errors.rb#411
- def initialize(name:, decl:); end
+# source://rbs//lib/rbs/errors.rb#407
+class RBS::GenericParameterMismatchError < ::RBS::LoadingError
+ # @return [GenericParameterMismatchError] a new instance of GenericParameterMismatchError
+ #
+ # source://rbs//lib/rbs/errors.rb#411
+ def initialize(name:, decl:, location: T.unsafe(nil)); end
+
+ # Returns the value of attribute decl.
+ #
+ # source://rbs//lib/rbs/errors.rb#409
+ def decl; end
+
+ # Returns the value of attribute name.
+ #
+ # source://rbs//lib/rbs/errors.rb#408
+ def name; end
+end
+
+# source://rbs//lib/rbs/errors.rb#574
+class RBS::InconsistentClassModuleAliasError < ::RBS::BaseError
+ include ::RBS::DetailedMessageable
+
+ # @return [InconsistentClassModuleAliasError] a new instance of InconsistentClassModuleAliasError
+ #
+ # source://rbs//lib/rbs/errors.rb#579
+ def initialize(entry); end
+
+ # Returns the value of attribute alias_entry.
+ #
+ # source://rbs//lib/rbs/errors.rb#577
+ def alias_entry; end
+
+ # source://rbs//lib/rbs/errors.rb#593
+ def location; end
+end
+
+# source://rbs//lib/rbs/errors.rb#187
+class RBS::InheritModuleError < ::RBS::DefinitionError
+ include ::RBS::DetailedMessageable
+
+ # @return [InheritModuleError] a new instance of InheritModuleError
+ #
+ # source://rbs//lib/rbs/errors.rb#192
+ def initialize(super_decl); end
+
+ # source://rbs//lib/rbs/errors.rb#198
+ def location; end
+
+ # Returns the value of attribute super_decl.
+ #
+ # source://rbs//lib/rbs/errors.rb#190
+ def super_decl; end
+
+ class << self
+ # source://rbs//lib/rbs/errors.rb#202
+ def check!(super_decl, env:); end
+ end
+end
+
+# source://rbs//lib/rbs/inline_parser.rb#4
+class RBS::InlineParser
+ class << self
+ # source://rbs//lib/rbs/inline_parser.rb#45
+ def parse(buffer, prism); end
+ end
+end
+
+# source://rbs//lib/rbs/inline_parser/comment_association.rb#5
+class RBS::InlineParser::CommentAssociation
+ # @return [CommentAssociation] a new instance of CommentAssociation
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#8
+ def initialize(blocks); end
+
+ # Returns the value of attribute associated_blocks.
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#6
+ def associated_blocks; end
+
+ # Returns the value of attribute blocks.
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#6
+ def blocks; end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#84
+ def each_enclosed_block(node); end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#104
+ def each_unassociated_block; end
+
+ # Returns the value of attribute end_line_map.
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#6
+ def end_line_map; end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#47
+ def leading_block(node); end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#55
+ def leading_block!(node); end
+
+ # Returns the value of attribute start_line_map.
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#6
+ def start_line_map; end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#63
+ def trailing_block(node); end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#76
+ def trailing_block!(node); end
+
+ class << self
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#24
+ def build(buffer, result); end
+ end
+end
+
+# source://rbs//lib/rbs/inline_parser/comment_association.rb#29
+class RBS::InlineParser::CommentAssociation::Reference
+ # @return [Reference] a new instance of Reference
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#32
+ def initialize(block, association); end
+
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#37
+ def associate!; end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#42
+ def associated?; end
+
+ # Returns the value of attribute block.
+ #
+ # source://rbs//lib/rbs/inline_parser/comment_association.rb#30
+ def block; end
+end
+
+# source://rbs//lib/rbs/inline_parser.rb#20
+module RBS::InlineParser::Diagnostic; end
+
+# source://rbs//lib/rbs/inline_parser.rb#38
+class RBS::InlineParser::Diagnostic::AnnotationSyntaxError < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#41
+class RBS::InlineParser::Diagnostic::AttributeNonSymbolName < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#21
+class RBS::InlineParser::Diagnostic::Base
+ # @return [Base] a new instance of Base
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#24
+ def initialize(location, message); end
+
+ # Returns the value of attribute location.
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#22
+ def location; end
+
+ # Returns the value of attribute message.
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#22
+ def message; end
+end
+
+# source://rbs//lib/rbs/inline_parser.rb#42
+class RBS::InlineParser::Diagnostic::ClassModuleAliasDeclarationMissingTypeName < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#39
+class RBS::InlineParser::Diagnostic::MixinMultipleArguments < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#40
+class RBS::InlineParser::Diagnostic::MixinNonConstantModule < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#31
+class RBS::InlineParser::Diagnostic::NonConstantClassName < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#36
+class RBS::InlineParser::Diagnostic::NonConstantConstantDeclaration < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#32
+class RBS::InlineParser::Diagnostic::NonConstantModuleName < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#33
+class RBS::InlineParser::Diagnostic::NonConstantSuperClassName < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#30
+class RBS::InlineParser::Diagnostic::NotImplementedYet < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#35
+class RBS::InlineParser::Diagnostic::TopLevelAttributeDefinition < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#34
+class RBS::InlineParser::Diagnostic::TopLevelMethodDefinition < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#37
+class RBS::InlineParser::Diagnostic::UnusedInlineAnnotation < ::RBS::InlineParser::Diagnostic::Base; end
+
+# source://rbs//lib/rbs/inline_parser.rb#57
+class RBS::InlineParser::Parser < ::Prism::Visitor
+ include ::RBS::AST::Ruby::Helpers::ConstantHelper
+ include ::RBS::AST::Ruby::Helpers::LocationHelper
+
+ # @return [Parser] a new instance of Parser
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#63
+ def initialize(result); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#69
+ def buffer; end
+
+ # Returns the value of attribute comments.
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#58
+ def comments; end
+
+ # source://rbs//lib/rbs/inline_parser.rb#73
+ def current_module; end
+
+ # source://rbs//lib/rbs/inline_parser.rb#77
+ def current_module!; end
+
+ # source://rbs//lib/rbs/inline_parser.rb#81
+ def diagnostics; end
- # Returns the value of attribute decl.
- #
- # source://rbs//lib/rbs/errors.rb#409
- def decl; end
+ # source://rbs//lib/rbs/inline_parser.rb#472
+ def insert_declaration(decl); end
- # Returns the value of attribute name.
+ # Returns the value of attribute module_nesting.
#
- # source://rbs//lib/rbs/errors.rb#408
- def name; end
-end
+ # source://rbs//lib/rbs/inline_parser.rb#58
+ def module_nesting; end
-# source://rbs//lib/rbs/errors.rb#553
-class RBS::InconsistentClassModuleAliasError < ::RBS::BaseError
- include ::RBS::DetailedMessageable
+ # source://rbs//lib/rbs/inline_parser.rb#315
+ def parse_attribute_call(node); end
- # @return [InconsistentClassModuleAliasError] a new instance of InconsistentClassModuleAliasError
+ # source://rbs//lib/rbs/inline_parser.rb#375
+ def parse_constant_declaration(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#259
+ def parse_mixin_call(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#508
+ def parse_super_class(super_class_expr, inheritance_operator_loc); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#85
+ def push_module_nesting(mod); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#480
+ def report_unused_annotation(*annotations); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#495
+ def report_unused_block(block); end
+
+ # Returns the value of attribute result.
#
- # source://rbs//lib/rbs/errors.rb#558
- def initialize(entry); end
+ # source://rbs//lib/rbs/inline_parser.rb#58
+ def result; end
- # Returns the value of attribute alias_entry.
+ # @return [Boolean]
#
- # source://rbs//lib/rbs/errors.rb#556
- def alias_entry; end
+ # source://rbs//lib/rbs/inline_parser.rb#92
+ def skip_node?(node); end
- # source://rbs//lib/rbs/errors.rb#572
- def location; end
+ # source://rbs//lib/rbs/inline_parser.rb#217
+ def visit_call_node(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#103
+ def visit_class_node(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#253
+ def visit_constant_path_write_node(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#246
+ def visit_constant_write_node(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#178
+ def visit_def_node(node); end
+
+ # source://rbs//lib/rbs/inline_parser.rb#156
+ def visit_module_node(node); end
end
-# source://rbs//lib/rbs/errors.rb#187
-class RBS::InheritModuleError < ::RBS::DefinitionError
- include ::RBS::DetailedMessageable
+# source://rbs//lib/rbs/inline_parser.rb#5
+class RBS::InlineParser::Result
+ # @return [Result] a new instance of Result
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#8
+ def initialize(buffer, prism); end
- # @return [InheritModuleError] a new instance of InheritModuleError
+ # Returns the value of attribute buffer.
#
- # source://rbs//lib/rbs/errors.rb#192
- def initialize(super_decl); end
+ # source://rbs//lib/rbs/inline_parser.rb#6
+ def buffer; end
- # source://rbs//lib/rbs/errors.rb#198
- def location; end
+ # Returns the value of attribute declarations.
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#6
+ def declarations; end
- # Returns the value of attribute super_decl.
+ # Returns the value of attribute diagnostics.
#
- # source://rbs//lib/rbs/errors.rb#190
- def super_decl; end
+ # source://rbs//lib/rbs/inline_parser.rb#6
+ def diagnostics; end
- class << self
- # source://rbs//lib/rbs/errors.rb#202
- def check!(super_decl, env:); end
- end
+ # Returns the value of attribute prism_result.
+ #
+ # source://rbs//lib/rbs/inline_parser.rb#6
+ def prism_result; end
+
+ # source://rbs//lib/rbs/inline_parser.rb#15
+ def type_fingerprint; end
end
# source://rbs//lib/rbs/errors.rb#341
@@ -3671,28 +4918,28 @@ class RBS::InvalidTypeApplicationError < ::RBS::DefinitionError
end
end
-# source://rbs//lib/rbs/errors.rb#431
+# source://rbs//lib/rbs/errors.rb#432
class RBS::InvalidVarianceAnnotationError < ::RBS::DefinitionError
include ::RBS::DetailedMessageable
# @return [InvalidVarianceAnnotationError] a new instance of InvalidVarianceAnnotationError
#
- # source://rbs//lib/rbs/errors.rb#438
+ # source://rbs//lib/rbs/errors.rb#439
def initialize(type_name:, param:, location:); end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/errors.rb#436
+ # source://rbs//lib/rbs/errors.rb#437
def location; end
# Returns the value of attribute param.
#
- # source://rbs//lib/rbs/errors.rb#435
+ # source://rbs//lib/rbs/errors.rb#436
def param; end
# Returns the value of attribute type_name.
#
- # source://rbs//lib/rbs/errors.rb#434
+ # source://rbs//lib/rbs/errors.rb#435
def type_name; end
end
@@ -3701,42 +4948,64 @@ class RBS::LoadingError < ::RBS::BaseError; end
# source://rbs//lib/rbs/location_aux.rb#4
class RBS::Location
+ # source://rbs//lib/rbs.rb#72
def initialize(_arg0, _arg1, _arg2); end
- # source://rbs//lib/rbs/location_aux.rb#71
+ # source://rbs//lib/rbs/location_aux.rb#79
def ==(other); end
+ # source://rbs//lib/rbs.rb#72
def [](_arg0); end
+
+ # source://rbs//lib/rbs.rb#72
def _add_optional_child(_arg0, _arg1, _arg2); end
+
+ # source://rbs//lib/rbs.rb#72
def _add_optional_no_child(_arg0); end
+
+ # source://rbs//lib/rbs.rb#72
def _add_required_child(_arg0, _arg1, _arg2); end
+
+ # source://rbs//lib/rbs.rb#72
+ def _end_pos; end
+
+ # source://rbs//lib/rbs.rb#72
def _optional_keys; end
+
+ # source://rbs//lib/rbs.rb#72
def _required_keys; end
- # source://rbs//lib/rbs/location_aux.rb#102
+ # source://rbs//lib/rbs.rb#72
+ def _start_pos; end
+
+ # source://rbs//lib/rbs/location_aux.rb#110
def add_optional_child(name, range); end
- # source://rbs//lib/rbs/location_aux.rb#98
+ # source://rbs//lib/rbs/location_aux.rb#106
def add_required_child(name, range); end
+ # source://rbs//lib/rbs/location_aux.rb#27
def aref(_arg0); end
+
+ # source://rbs//lib/rbs.rb#72
def buffer; end
- # source://rbs//lib/rbs/location_aux.rb#110
+ # source://rbs//lib/rbs/location_aux.rb#118
def each_optional_key(&block); end
- # source://rbs//lib/rbs/location_aux.rb#118
+ # source://rbs//lib/rbs/location_aux.rb#126
def each_required_key(&block); end
- # source://rbs//lib/rbs/location_aux.rb#47
+ # source://rbs//lib/rbs/location_aux.rb#55
def end_column; end
- # source://rbs//lib/rbs/location_aux.rb#43
+ # source://rbs//lib/rbs/location_aux.rb#51
def end_line; end
- # source://rbs//lib/rbs/location_aux.rb#55
+ # source://rbs//lib/rbs/location_aux.rb#63
def end_loc; end
+ # source://rbs//lib/rbs/location_aux.rb#35
def end_pos; end
# source://rbs//lib/rbs/location_aux.rb#5
@@ -3744,54 +5013,62 @@ class RBS::Location
# @return [Boolean]
#
- # source://rbs//lib/rbs/location_aux.rb#126
+ # source://rbs//lib/rbs/location_aux.rb#134
def key?(name); end
- # source://rbs//lib/rbs/location_aux.rb#31
+ # source://rbs//lib/rbs/location_aux.rb#146
+ def local_location; end
+
+ # source://rbs//lib/rbs/location_aux.rb#166
+ def local_source; end
+
+ # source://rbs//lib/rbs/location_aux.rb#39
def name; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/location_aux.rb#130
+ # source://rbs//lib/rbs/location_aux.rb#138
def optional_key?(name); end
- # source://rbs//lib/rbs/location_aux.rb#59
+ # source://rbs//lib/rbs/location_aux.rb#67
def range; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/location_aux.rb#134
+ # source://rbs//lib/rbs/location_aux.rb#142
def required_key?(name); end
- # source://rbs//lib/rbs/location_aux.rb#63
+ # source://rbs//lib/rbs/location_aux.rb#71
def source; end
- # source://rbs//lib/rbs/location_aux.rb#39
+ # source://rbs//lib/rbs/location_aux.rb#47
def start_column; end
- # source://rbs//lib/rbs/location_aux.rb#35
+ # source://rbs//lib/rbs/location_aux.rb#43
def start_line; end
- # source://rbs//lib/rbs/location_aux.rb#51
+ # source://rbs//lib/rbs/location_aux.rb#59
def start_loc; end
+ # source://rbs//lib/rbs/location_aux.rb#31
def start_pos; end
- # source://rbs//lib/rbs/location_aux.rb#78
+ # source://rbs//lib/rbs/location_aux.rb#86
def to_json(state = T.unsafe(nil)); end
- # source://rbs//lib/rbs/location_aux.rb#67
+ # source://rbs//lib/rbs/location_aux.rb#75
def to_s; end
private
+ # source://rbs//lib/rbs.rb#72
def initialize_copy(_arg0); end
class << self
# source://rbs//lib/rbs/location_aux.rb#16
def new(buffer_ = T.unsafe(nil), start_pos_ = T.unsafe(nil), end_pos_ = T.unsafe(nil), buffer: T.unsafe(nil), start_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
- # source://rbs//lib/rbs/location_aux.rb#94
+ # source://rbs//lib/rbs/location_aux.rb#102
def to_string(location, default: T.unsafe(nil)); end
end
end
@@ -3833,7 +5110,7 @@ class RBS::Locator
# source://rbs//lib/rbs/locator.rb#42
def find_in_directive(pos, dir, array); end
- # source://rbs//lib/rbs/locator.rb#208
+ # source://rbs//lib/rbs/locator.rb#212
def find_in_loc(pos, location:, array:); end
# source://rbs//lib/rbs/locator.rb#131
@@ -3842,13 +5119,13 @@ class RBS::Locator
# source://rbs//lib/rbs/locator.rb#154
def find_in_method_type(pos, method_type:, array:); end
- # source://rbs//lib/rbs/locator.rb#192
+ # source://rbs//lib/rbs/locator.rb#196
def find_in_type(pos, type:, array:); end
# source://rbs//lib/rbs/locator.rb#172
def find_in_type_param(pos, type_param:, array:); end
- # source://rbs//lib/rbs/locator.rb#235
+ # source://rbs//lib/rbs/locator.rb#239
def test_loc(pos, location:); end
end
@@ -3931,35 +5208,38 @@ class RBS::MethodType
def with_nonreturn_void?; end
end
-# source://rbs//lib/rbs/errors.rb#467
+# source://rbs//lib/rbs/errors.rb#468
class RBS::MixinClassError < ::RBS::DefinitionError
include ::RBS::DetailedMessageable
# @return [MixinClassError] a new instance of MixinClassError
#
- # source://rbs//lib/rbs/errors.rb#473
+ # source://rbs//lib/rbs/errors.rb#474
def initialize(type_name:, member:); end
- # source://rbs//lib/rbs/errors.rb#480
+ # source://rbs//lib/rbs/errors.rb#481
def location; end
# Returns the value of attribute member.
#
- # source://rbs//lib/rbs/errors.rb#471
+ # source://rbs//lib/rbs/errors.rb#472
def member; end
# Returns the value of attribute type_name.
#
- # source://rbs//lib/rbs/errors.rb#470
+ # source://rbs//lib/rbs/errors.rb#471
def type_name; end
private
- # source://rbs//lib/rbs/errors.rb#492
+ # source://rbs//lib/rbs/errors.rb#502
+ def member_name(member); end
+
+ # source://rbs//lib/rbs/errors.rb#513
def mixin_name; end
class << self
- # source://rbs//lib/rbs/errors.rb#484
+ # source://rbs//lib/rbs/errors.rb#485
def check!(type_name:, env:, member:); end
end
end
@@ -3996,7 +5276,7 @@ class RBS::Namespace
# source://rbs//lib/rbs/namespace.rb#55
def empty?; end
- # source://rbs//lib/rbs/namespace.rb#59
+ # source://rbs//lib/rbs/namespace.rb#63
def eql?(other); end
# source://rbs//lib/rbs/namespace.rb#65
@@ -4140,43 +5420,65 @@ class RBS::NoTypeFoundError < ::RBS::DefinitionError
end
end
-# source://rbs//lib/rbs/errors.rb#524
+# source://rbs//lib/rbs/errors.rb#545
class RBS::NonregularTypeAliasError < ::RBS::BaseError
include ::RBS::DetailedMessageable
# @return [NonregularTypeAliasError] a new instance of NonregularTypeAliasError
#
- # source://rbs//lib/rbs/errors.rb#530
+ # source://rbs//lib/rbs/errors.rb#551
def initialize(diagnostic:, location:); end
# Returns the value of attribute diagnostic.
#
- # source://rbs//lib/rbs/errors.rb#527
+ # source://rbs//lib/rbs/errors.rb#548
def diagnostic; end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/errors.rb#528
+ # source://rbs//lib/rbs/errors.rb#549
def location; end
end
# source://rbs//lib/rbs/parser/lex_result.rb#4
class RBS::Parser
class << self
+ # source://rbs//lib/rbs.rb#72
def _lex(_arg0, _arg1); end
+
+ # source://rbs//lib/rbs.rb#72
+ def _parse_inline_leading_annotation(_arg0, _arg1, _arg2, _arg3); end
+
+ # source://rbs//lib/rbs.rb#72
+ def _parse_inline_trailing_annotation(_arg0, _arg1, _arg2, _arg3); end
+
+ # source://rbs//lib/rbs.rb#72
def _parse_method_type(_arg0, _arg1, _arg2, _arg3, _arg4); end
+
+ # source://rbs//lib/rbs.rb#72
def _parse_signature(_arg0, _arg1, _arg2); end
- def _parse_type(_arg0, _arg1, _arg2, _arg3, _arg4); end
- # source://rbs//lib/rbs/parser_aux.rb#71
+ # source://rbs//lib/rbs.rb#72
+ def _parse_type(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6); end
+
+ # source://rbs//lib/rbs.rb#72
+ def _parse_type_params(_arg0, _arg1, _arg2, _arg3); end
+
+ # source://rbs//lib/rbs/parser_aux.rb#76
def buffer(source); end
- # source://rbs//lib/rbs/parser_aux.rb#62
+ # source://rbs//lib/rbs/parser_aux.rb#67
def lex(source); end
- # source://rbs//lib/rbs/parser_aux.rb#38
+ # source://rbs//lib/rbs/parser_aux.rb#43
def magic_comment(buf); end
+ # source://rbs//lib/rbs/parser_aux.rb#119
+ def parse_inline_leading_annotation(source, range, variables: T.unsafe(nil)); end
+
+ # source://rbs//lib/rbs/parser_aux.rb#124
+ def parse_inline_trailing_annotation(source, range, variables: T.unsafe(nil)); end
+
# source://rbs//lib/rbs/parser_aux.rb#13
def parse_method_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end
@@ -4184,11 +5486,14 @@ class RBS::Parser
def parse_signature(source); end
# source://rbs//lib/rbs/parser_aux.rb#8
- def parse_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end
+ def parse_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil), void_allowed: T.unsafe(nil), self_allowed: T.unsafe(nil)); end
+
+ # source://rbs//lib/rbs/parser_aux.rb#38
+ def parse_type_params(source, module_type_params: T.unsafe(nil)); end
end
end
-# source://rbs//lib/rbs/parser_aux.rb#80
+# source://rbs//lib/rbs/parser_aux.rb#85
RBS::Parser::KEYWORDS = T.let(T.unsafe(nil), Hash)
# source://rbs//lib/rbs/parser/lex_result.rb#5
@@ -4374,7 +5679,7 @@ class RBS::Prototype::RB
# backward compatible
#
- # source://rbs//lib/rbs/prototype/rb.rb#719
+ # source://rbs//lib/rbs/prototype/rb.rb#762
def node_type(node, default: T.unsafe(nil)); end
# source://rbs//lib/rbs/prototype/rb.rb#719
@@ -4449,10 +5754,10 @@ class RBS::Prototype::RBI
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/rbi.rb#562
+ # source://rbs//lib/rbs/prototype/rbi.rb#564
def call_node?(node, name:, receiver: T.unsafe(nil), args: T.unsafe(nil)); end
- # source://rbs//lib/rbs/prototype/rbi.rb#566
+ # source://rbs//lib/rbs/prototype/rbi.rb#568
def const_to_name(node); end
# source://rbs//lib/rbs/prototype/rbi.rb#90
@@ -4469,10 +5774,10 @@ class RBS::Prototype::RBI
# source://rbs//lib/rbs/prototype/rbi.rb#8
def decls; end
- # source://rbs//lib/rbs/prototype/rbi.rb#602
+ # source://rbs//lib/rbs/prototype/rbi.rb#604
def each_arg(array, &block); end
- # source://rbs//lib/rbs/prototype/rbi.rb#616
+ # source://rbs//lib/rbs/prototype/rbi.rb#618
def each_child(node); end
# source://rbs//lib/rbs/prototype/rbi.rb#112
@@ -4483,7 +5788,7 @@ class RBS::Prototype::RBI
# source://rbs//lib/rbs/prototype/rbi.rb#10
def last_sig; end
- # source://rbs//lib/rbs/prototype/rbi.rb#280
+ # source://rbs//lib/rbs/prototype/rbi.rb#281
def method_type(args_node, type_node, variables:, overloads:); end
# Returns the value of attribute modules.
@@ -4494,13 +5799,13 @@ class RBS::Prototype::RBI
# source://rbs//lib/rbs/prototype/rbi.rb#42
def nested_name(name); end
- # source://rbs//lib/rbs/prototype/rbi.rb#624
+ # source://rbs//lib/rbs/prototype/rbi.rb#626
def node_to_hash(node); end
# source://rbs//lib/rbs/prototype/rbi.rb#18
def parse(string); end
- # source://rbs//lib/rbs/prototype/rbi.rb#352
+ # source://rbs//lib/rbs/prototype/rbi.rb#354
def parse_params(args_node, args, method_type, variables:, overloads:); end
# source://rbs//lib/rbs/prototype/rbi.rb#106
@@ -4508,7 +5813,7 @@ class RBS::Prototype::RBI
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/rbi.rb#554
+ # source://rbs//lib/rbs/prototype/rbi.rb#556
def proc_type?(type_node); end
# source://rbs//lib/rbs/prototype/rbi.rb#117
@@ -4523,10 +5828,10 @@ class RBS::Prototype::RBI
# source://rbs//lib/rbs/prototype/rbi.rb#98
def push_sig(node); end
- # source://rbs//lib/rbs/prototype/rbi.rb#477
+ # source://rbs//lib/rbs/prototype/rbi.rb#479
def type_of(type_node, variables:); end
- # source://rbs//lib/rbs/prototype/rbi.rb#490
+ # source://rbs//lib/rbs/prototype/rbi.rb#492
def type_of0(type_node, variables:); end
end
@@ -4537,119 +5842,119 @@ class RBS::Prototype::Runtime
# @return [Runtime] a new instance of Runtime
#
- # source://rbs//lib/rbs/prototype/runtime.rb#71
+ # source://rbs//lib/rbs/prototype/runtime.rb#79
def initialize(patterns:, env:, merge:, todo: T.unsafe(nil), owners_included: T.unsafe(nil)); end
- # source://rbs//lib/rbs/prototype/runtime.rb#654
+ # source://rbs//lib/rbs/prototype/runtime.rb#662
def block_from_ast_of(method); end
- # source://rbs//lib/rbs/prototype/runtime.rb#101
+ # source://rbs//lib/rbs/prototype/runtime.rb#109
def builder; end
- # source://rbs//lib/rbs/prototype/runtime.rb#109
+ # source://rbs//lib/rbs/prototype/runtime.rb#117
def decls; end
# Generate/find outer module declarations
# This is broken down into another method to comply with `DRY`
# This generates/finds declarations in nested form & returns the last array of declarations
#
- # source://rbs//lib/rbs/prototype/runtime.rb#583
+ # source://rbs//lib/rbs/prototype/runtime.rb#591
def ensure_outer_module_declarations(mod); end
# Returns the value of attribute env.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#65
+ # source://rbs//lib/rbs/prototype/runtime.rb#73
def env; end
- # source://rbs//lib/rbs/prototype/runtime.rb#488
+ # source://rbs//lib/rbs/prototype/runtime.rb#496
def generate_class(mod); end
- # source://rbs//lib/rbs/prototype/runtime.rb#425
+ # source://rbs//lib/rbs/prototype/runtime.rb#433
def generate_constants(mod, decls); end
- # source://rbs//lib/rbs/prototype/runtime.rb#301
+ # source://rbs//lib/rbs/prototype/runtime.rb#309
def generate_methods(mod, module_name, members); end
- # source://rbs//lib/rbs/prototype/runtime.rb#565
+ # source://rbs//lib/rbs/prototype/runtime.rb#573
def generate_mixin(mod, decl, type_name, type_name_absolute); end
- # source://rbs//lib/rbs/prototype/runtime.rb#527
+ # source://rbs//lib/rbs/prototype/runtime.rb#535
def generate_module(mod); end
- # source://rbs//lib/rbs/prototype/runtime.rb#473
+ # source://rbs//lib/rbs/prototype/runtime.rb#481
def generate_super_class(mod); end
# Returns the value of attribute merge.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#66
+ # source://rbs//lib/rbs/prototype/runtime.rb#74
def merge; end
- # source://rbs//lib/rbs/prototype/runtime.rb#240
+ # source://rbs//lib/rbs/prototype/runtime.rb#248
def merge_rbs(module_name, members, instance: T.unsafe(nil), singleton: T.unsafe(nil)); end
- # source://rbs//lib/rbs/prototype/runtime.rb#171
+ # source://rbs//lib/rbs/prototype/runtime.rb#179
def method_type(method); end
# Returns the value of attribute outline.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#69
+ # source://rbs//lib/rbs/prototype/runtime.rb#77
def outline; end
# Sets the attribute outline
#
# @param value the value to set the attribute outline to.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#69
+ # source://rbs//lib/rbs/prototype/runtime.rb#77
def outline=(_arg0); end
# Returns the value of attribute owners_included.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#68
+ # source://rbs//lib/rbs/prototype/runtime.rb#76
def owners_included; end
- # source://rbs//lib/rbs/prototype/runtime.rb#105
+ # source://rbs//lib/rbs/prototype/runtime.rb#113
def parse(file); end
# Returns the value of attribute patterns.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#64
+ # source://rbs//lib/rbs/prototype/runtime.rb#72
def patterns; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/runtime.rb#84
+ # source://rbs//lib/rbs/prototype/runtime.rb#92
def target?(const); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/runtime.rb#288
+ # source://rbs//lib/rbs/prototype/runtime.rb#296
def target_method?(mod, instance: T.unsafe(nil), singleton: T.unsafe(nil)); end
# Returns the value of attribute todo.
#
- # source://rbs//lib/rbs/prototype/runtime.rb#67
+ # source://rbs//lib/rbs/prototype/runtime.rb#75
def todo; end
- # source://rbs//lib/rbs/prototype/runtime.rb#97
+ # source://rbs//lib/rbs/prototype/runtime.rb#105
def todo_object; end
- # source://rbs//lib/rbs/prototype/runtime.rb#637
+ # source://rbs//lib/rbs/prototype/runtime.rb#645
def type_args(type_name); end
- # source://rbs//lib/rbs/prototype/runtime.rb#645
+ # source://rbs//lib/rbs/prototype/runtime.rb#653
def type_params(mod); end
private
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/runtime.rb#415
+ # source://rbs//lib/rbs/prototype/runtime.rb#423
def can_alias?(mod, method); end
- # source://rbs//lib/rbs/prototype/runtime.rb#129
+ # source://rbs//lib/rbs/prototype/runtime.rb#137
def each_mixined_module(type_name, mod); end
- # source://rbs//lib/rbs/prototype/runtime.rb#138
+ # source://rbs//lib/rbs/prototype/runtime.rb#146
def each_mixined_module_one(type_name, mod); end
end
@@ -4757,12 +6062,12 @@ class RBS::Prototype::Runtime::Todo
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/runtime.rb#42
+ # source://rbs//lib/rbs/prototype/runtime.rb#50
def skip_constant?(module_name:, name:); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/prototype/runtime.rb#33
+ # source://rbs//lib/rbs/prototype/runtime.rb#37
def skip_instance_method?(module_name:, method:, accessibility:); end
# @return [Boolean]
@@ -4777,7 +6082,7 @@ class RBS::Prototype::Runtime::Todo
private
- # source://rbs//lib/rbs/prototype/runtime.rb#49
+ # source://rbs//lib/rbs/prototype/runtime.rb#57
def mixin_decls(type_name); end
end
@@ -4807,102 +6112,26 @@ class RBS::Prototype::Runtime::ValueObjectBase
def build_s_members; end
end
-# source://rbs//lib/rdoc_plugin/parser.rb#6
-module RBS::RDocPlugin; end
-
-# source://rbs//lib/rdoc_plugin/parser.rb#7
-class RBS::RDocPlugin::Parser
- # @return [Parser] a new instance of Parser
- #
- # source://rbs//lib/rdoc_plugin/parser.rb#11
- def initialize(top_level, content); end
-
- # Returns the value of attribute content.
- #
- # source://rbs//lib/rdoc_plugin/parser.rb#9
- def content; end
-
- # Sets the attribute content
- #
- # @param value the value to set the attribute content to.
- #
- # source://rbs//lib/rdoc_plugin/parser.rb#9
- def content=(_arg0); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#94
- def parse_attr_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#53
- def parse_class_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#67
- def parse_constant_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#125
- def parse_extend_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#109
- def parse_include_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#24
- def parse_member(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#88
- def parse_method_alias_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#73
- def parse_method_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#60
- def parse_module_decl(decl:, context:, outer_name: T.unsafe(nil)); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#16
- def scan; end
-
- # Returns the value of attribute top_level.
- #
- # source://rbs//lib/rdoc_plugin/parser.rb#9
- def top_level; end
-
- # Sets the attribute top_level
- #
- # @param value the value to set the attribute top_level to.
- #
- # source://rbs//lib/rdoc_plugin/parser.rb#9
- def top_level=(_arg0); end
-
- private
-
- # source://rbs//lib/rdoc_plugin/parser.rb#149
- def comment_string(with_comment); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#143
- def construct_comment(context:, comment:); end
-
- # source://rbs//lib/rdoc_plugin/parser.rb#154
- def fully_qualified_name(outer_name:, decl:); end
-end
-
-# source://rbs//lib/rbs/errors.rb#447
+# source://rbs//lib/rbs/errors.rb#448
class RBS::RecursiveAliasDefinitionError < ::RBS::DefinitionError
include ::RBS::DetailedMessageable
# @return [RecursiveAliasDefinitionError] a new instance of RecursiveAliasDefinitionError
#
- # source://rbs//lib/rbs/errors.rb#453
+ # source://rbs//lib/rbs/errors.rb#454
def initialize(type:, defs:); end
# Returns the value of attribute defs.
#
- # source://rbs//lib/rbs/errors.rb#451
+ # source://rbs//lib/rbs/errors.rb#452
def defs; end
- # source://rbs//lib/rbs/errors.rb#460
+ # source://rbs//lib/rbs/errors.rb#461
def location; end
# Returns the value of attribute type.
#
- # source://rbs//lib/rbs/errors.rb#450
+ # source://rbs//lib/rbs/errors.rb#451
def type; end
end
@@ -4929,26 +6158,26 @@ class RBS::RecursiveAncestorError < ::RBS::DefinitionError
end
end
-# source://rbs//lib/rbs/errors.rb#506
+# source://rbs//lib/rbs/errors.rb#527
class RBS::RecursiveTypeAliasError < ::RBS::BaseError
include ::RBS::DetailedMessageable
# @return [RecursiveTypeAliasError] a new instance of RecursiveTypeAliasError
#
- # source://rbs//lib/rbs/errors.rb#512
+ # source://rbs//lib/rbs/errors.rb#533
def initialize(alias_names:, location:); end
# Returns the value of attribute alias_names.
#
- # source://rbs//lib/rbs/errors.rb#509
+ # source://rbs//lib/rbs/errors.rb#530
def alias_names; end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/errors.rb#510
+ # source://rbs//lib/rbs/errors.rb#531
def location; end
- # source://rbs//lib/rbs/errors.rb#519
+ # source://rbs//lib/rbs/errors.rb#540
def name; end
end
@@ -5033,18 +6262,38 @@ end
# source://rbs//lib/rbs/repository.rb#69
class RBS::Repository::VersionPath < ::Struct
+ # source://rbs//lib/rbs/repository.rb#69
def gem; end
+
+ # source://rbs//lib/rbs/repository.rb#69
def gem=(_); end
+
+ # source://rbs//lib/rbs/repository.rb#69
def path; end
+
+ # source://rbs//lib/rbs/repository.rb#69
def path=(_); end
+
+ # source://rbs//lib/rbs/repository.rb#69
def version; end
+
+ # source://rbs//lib/rbs/repository.rb#69
def version=(_); end
class << self
+ # source://rbs//lib/rbs/repository.rb#69
def [](*_arg0); end
+
+ # source://rbs//lib/rbs/repository.rb#69
def inspect; end
+
+ # source://rbs//lib/rbs/repository.rb#69
def keyword_init?; end
+
+ # source://rbs//lib/rbs/repository.rb#69
def members; end
+
+ # source://rbs//lib/rbs/repository.rb#69
def new(*_arg0); end
end
end
@@ -5147,7 +6396,17 @@ class RBS::Resolver::TypeNameResolver
# @return [TypeNameResolver] a new instance of TypeNameResolver
#
# source://rbs//lib/rbs/resolver/type_name_resolver.rb#10
- def initialize(env); end
+ def initialize(all_names, aliases); end
+
+ # @return [Boolean]
+ #
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#82
+ def aliased_name?(type_name); end
+
+ # Returns the value of attribute aliases.
+ #
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#8
+ def aliases; end
# Returns the value of attribute all_names.
#
@@ -5159,27 +6418,102 @@ class RBS::Resolver::TypeNameResolver
# source://rbs//lib/rbs/resolver/type_name_resolver.rb#7
def cache; end
- # Returns the value of attribute env.
- #
- # source://rbs//lib/rbs/resolver/type_name_resolver.rb#8
- def env; end
-
# @return [Boolean]
#
- # source://rbs//lib/rbs/resolver/type_name_resolver.rb#84
- def has_name?(full_name); end
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#76
+ def has_type_name?(full_name); end
- # source://rbs//lib/rbs/resolver/type_name_resolver.rb#51
- def partition(type_name); end
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#121
+ def normalize_namespace(type_name, rhs, context, visited); end
- # source://rbs//lib/rbs/resolver/type_name_resolver.rb#28
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#39
def resolve(type_name, context:); end
- # source://rbs//lib/rbs/resolver/type_name_resolver.rb#69
- def resolve_in(head, context); end
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#104
+ def resolve_head_namespace(head, context); end
+
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#62
+ def resolve_namespace(type_name, context:); end
- # source://rbs//lib/rbs/resolver/type_name_resolver.rb#21
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#136
+ def resolve_namespace0(type_name, context, visited); end
+
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#88
+ def resolve_type_name(type_name, context); end
+
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#32
def try_cache(query); end
+
+ class << self
+ # source://rbs//lib/rbs/resolver/type_name_resolver.rb#16
+ def build(env); end
+ end
+end
+
+# source://rbs//lib/rbs/source.rb#4
+module RBS::Source; end
+
+# source://rbs//lib/rbs/source.rb#5
+class RBS::Source::RBS
+ # @return [RBS] a new instance of RBS
+ #
+ # source://rbs//lib/rbs/source.rb#8
+ def initialize(buffer, directives, decls); end
+
+ # Returns the value of attribute buffer.
+ #
+ # source://rbs//lib/rbs/source.rb#6
+ def buffer; end
+
+ # Returns the value of attribute declarations.
+ #
+ # source://rbs//lib/rbs/source.rb#6
+ def declarations; end
+
+ # Returns the value of attribute directives.
+ #
+ # source://rbs//lib/rbs/source.rb#6
+ def directives; end
+
+ # source://rbs//lib/rbs/source.rb#25
+ def each_declaration_type_name(names, decl, &block); end
+
+ # source://rbs//lib/rbs/source.rb#14
+ def each_type_name(&block); end
+end
+
+# source://rbs//lib/rbs/source.rb#52
+class RBS::Source::Ruby
+ # @return [Ruby] a new instance of Ruby
+ #
+ # source://rbs//lib/rbs/source.rb#58
+ def initialize(buffer, prism, declarations, diagnostics); end
+
+ # Returns the value of attribute buffer.
+ #
+ # source://rbs//lib/rbs/source.rb#53
+ def buffer; end
+
+ # Returns the value of attribute declarations.
+ #
+ # source://rbs//lib/rbs/source.rb#55
+ def declarations; end
+
+ # Returns the value of attribute diagnostics.
+ #
+ # source://rbs//lib/rbs/source.rb#56
+ def diagnostics; end
+
+ # source://rbs//lib/rbs/source.rb#76
+ def each_declaration_type_name(names, decl, &block); end
+
+ # source://rbs//lib/rbs/source.rb#65
+ def each_type_name(&block); end
+
+ # Returns the value of attribute prism_result.
+ #
+ # source://rbs//lib/rbs/source.rb#54
+ def prism_result; end
end
# source://rbs//lib/rbs/substitution.rb#4
@@ -5192,7 +6526,7 @@ class RBS::Substitution
# source://rbs//lib/rbs/substitution.rb#66
def +(other); end
- # source://rbs//lib/rbs/substitution.rb#37
+ # source://rbs//lib/rbs/substitution.rb#53
def [](ty); end
# source://rbs//lib/rbs/substitution.rb#16
@@ -5244,26 +6578,26 @@ class RBS::Subtractor
private
- # source://rbs//lib/rbs/subtractor.rb#177
+ # source://rbs//lib/rbs/subtractor.rb#180
def absolute_typename(name, context:); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/subtractor.rb#160
+ # source://rbs//lib/rbs/subtractor.rb#163
def access_modifier?(decl); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/subtractor.rb#118
+ # source://rbs//lib/rbs/subtractor.rb#120
def cvar_exist?(owner, name); end
- # source://rbs//lib/rbs/subtractor.rb#127
+ # source://rbs//lib/rbs/subtractor.rb#129
def each_member(owner, &block); end
# source://rbs//lib/rbs/subtractor.rb#48
def filter_members(decl, context:); end
- # source://rbs//lib/rbs/subtractor.rb#148
+ # source://rbs//lib/rbs/subtractor.rb#151
def filter_redundant_access_modifiers(decls); end
# @return [Boolean]
@@ -5283,13 +6617,13 @@ class RBS::Subtractor
# @return [Boolean]
#
- # source://rbs//lib/rbs/subtractor.rb#137
+ # source://rbs//lib/rbs/subtractor.rb#140
def mixin_exist?(owner, mixin, context:); end
- # source://rbs//lib/rbs/subtractor.rb#186
+ # source://rbs//lib/rbs/subtractor.rb#189
def typename_candidates(name, context:); end
- # source://rbs//lib/rbs/subtractor.rb#164
+ # source://rbs//lib/rbs/subtractor.rb#167
def update_decl(decl, members:); end
end
@@ -5469,7 +6803,7 @@ class RBS::TypeName
# source://rbs//lib/rbs/type_name.rb#47
def class?; end
- # source://rbs//lib/rbs/type_name.rb#25
+ # source://rbs//lib/rbs/type_name.rb#29
def eql?(other); end
# source://rbs//lib/rbs/type_name.rb#31
@@ -5519,27 +6853,27 @@ class RBS::TypeName
end
end
-# source://rbs//lib/rbs/errors.rb#604
+# source://rbs//lib/rbs/errors.rb#625
class RBS::TypeParamDefaultReferenceError < ::RBS::DefinitionError
include ::RBS::DetailedMessageable
# @return [TypeParamDefaultReferenceError] a new instance of TypeParamDefaultReferenceError
#
- # source://rbs//lib/rbs/errors.rb#610
+ # source://rbs//lib/rbs/errors.rb#631
def initialize(type_param, location:); end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/errors.rb#608
+ # source://rbs//lib/rbs/errors.rb#629
def location; end
# Returns the value of attribute type_param.
#
- # source://rbs//lib/rbs/errors.rb#607
+ # source://rbs//lib/rbs/errors.rb#628
def type_param; end
class << self
- # source://rbs//lib/rbs/errors.rb#616
+ # source://rbs//lib/rbs/errors.rb#637
def check!(type_params); end
end
end
@@ -5587,7 +6921,7 @@ module RBS::Types::Application
# source://rbs//lib/rbs/types.rb#284
def each_type(&block); end
- # source://rbs//lib/rbs/types.rb#258
+ # source://rbs//lib/rbs/types.rb#262
def eql?(other); end
# source://rbs//lib/rbs/types.rb#268
@@ -5649,7 +6983,7 @@ class RBS::Types::Bases::Base
# source://rbs//lib/rbs/types.rb#49
def ==(other); end
- # source://rbs//lib/rbs/types.rb#49
+ # source://rbs//lib/rbs/types.rb#57
def eql?(other); end
# @return [Boolean]
@@ -5713,13 +7047,18 @@ class RBS::Types::Bases::Void < ::RBS::Types::Bases::Base; end
class RBS::Types::Block
# @return [Block] a new instance of Block
#
- # source://rbs//lib/rbs/types.rb#1343
- def initialize(type:, required:, self_type: T.unsafe(nil)); end
+ # source://rbs//lib/rbs/types.rb#1344
+ def initialize(type:, required:, location: T.unsafe(nil), self_type: T.unsafe(nil)); end
- # source://rbs//lib/rbs/types.rb#1349
+ # source://rbs//lib/rbs/types.rb#1351
def ==(other); end
- # source://rbs//lib/rbs/types.rb#1374
+ # Returns the value of attribute location.
+ #
+ # source://rbs//lib/rbs/types.rb#1342
+ def location; end
+
+ # source://rbs//lib/rbs/types.rb#1376
def map_type(&block); end
# Returns the value of attribute required.
@@ -5732,10 +7071,10 @@ class RBS::Types::Block
# source://rbs//lib/rbs/types.rb#1341
def self_type; end
- # source://rbs//lib/rbs/types.rb#1364
+ # source://rbs//lib/rbs/types.rb#1366
def sub(s); end
- # source://rbs//lib/rbs/types.rb#1356
+ # source://rbs//lib/rbs/types.rb#1358
def to_json(state = T.unsafe(nil)); end
# Returns the value of attribute type.
@@ -5785,7 +7124,7 @@ class RBS::Types::ClassSingleton
# source://rbs//lib/rbs/types.rb#211
def ==(other); end
- # source://rbs//lib/rbs/types.rb#211
+ # source://rbs//lib/rbs/types.rb#215
def eql?(other); end
# @return [Boolean]
@@ -5865,7 +7204,7 @@ class RBS::Types::Function
# source://rbs//lib/rbs/types.rb#1153
def empty?; end
- # source://rbs//lib/rbs/types.rb#972
+ # source://rbs//lib/rbs/types.rb#984
def eql?(other); end
# source://rbs//lib/rbs/types.rb#998
@@ -5977,7 +7316,7 @@ class RBS::Types::Function::Param
# source://rbs//lib/rbs/types.rb#917
def ==(other); end
- # source://rbs//lib/rbs/types.rb#917
+ # source://rbs//lib/rbs/types.rb#921
def eql?(other); end
# source://rbs//lib/rbs/types.rb#923
@@ -6048,7 +7387,7 @@ class RBS::Types::Intersection
# source://rbs//lib/rbs/types.rb#869
def each_type(&block); end
- # source://rbs//lib/rbs/types.rb#831
+ # source://rbs//lib/rbs/types.rb#835
def eql?(other); end
# source://rbs//lib/rbs/types.rb#841
@@ -6098,7 +7437,7 @@ class RBS::Types::Intersection
def with_nonreturn_void?; end
end
-# source://rbs//lib/rbs/types.rb#1518
+# source://rbs//lib/rbs/types.rb#1520
class RBS::Types::Literal
include ::RBS::Types::NoFreeVariables
include ::RBS::Types::NoSubst
@@ -6107,56 +7446,56 @@ class RBS::Types::Literal
# @return [Literal] a new instance of Literal
#
- # source://rbs//lib/rbs/types.rb#1522
+ # source://rbs//lib/rbs/types.rb#1524
def initialize(literal:, location:); end
- # source://rbs//lib/rbs/types.rb#1527
+ # source://rbs//lib/rbs/types.rb#1529
def ==(other); end
- # source://rbs//lib/rbs/types.rb#1527
+ # source://rbs//lib/rbs/types.rb#1533
def eql?(other); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/types.rb#1554
+ # source://rbs//lib/rbs/types.rb#1556
def has_classish_type?; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/types.rb#1550
+ # source://rbs//lib/rbs/types.rb#1552
def has_self_type?; end
- # source://rbs//lib/rbs/types.rb#1533
+ # source://rbs//lib/rbs/types.rb#1535
def hash; end
# Returns the value of attribute literal.
#
- # source://rbs//lib/rbs/types.rb#1519
+ # source://rbs//lib/rbs/types.rb#1521
def literal; end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/types.rb#1520
+ # source://rbs//lib/rbs/types.rb#1522
def location; end
- # source://rbs//lib/rbs/types.rb#1542
+ # source://rbs//lib/rbs/types.rb#1544
def to_json(state = T.unsafe(nil)); end
- # source://rbs//lib/rbs/types.rb#1546
+ # source://rbs//lib/rbs/types.rb#1548
def to_s(level = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/types.rb#1558
+ # source://rbs//lib/rbs/types.rb#1560
def with_nonreturn_void?; end
class << self
- # source://rbs//lib/rbs/types.rb#1578
+ # source://rbs//lib/rbs/types.rb#1580
def unescape_string(string, is_double_quote); end
end
end
-# source://rbs//lib/rbs/types.rb#1562
+# source://rbs//lib/rbs/types.rb#1564
RBS::Types::Literal::TABLE = T.let(T.unsafe(nil), Hash)
# source://rbs//lib/rbs/types.rb#5
@@ -6190,7 +7529,7 @@ class RBS::Types::Optional
# source://rbs//lib/rbs/types.rb#692
def each_type; end
- # source://rbs//lib/rbs/types.rb#654
+ # source://rbs//lib/rbs/types.rb#658
def eql?(other); end
# source://rbs//lib/rbs/types.rb#664
@@ -6240,76 +7579,76 @@ class RBS::Types::Optional
def with_nonreturn_void?; end
end
-# source://rbs//lib/rbs/types.rb#1395
+# source://rbs//lib/rbs/types.rb#1397
class RBS::Types::Proc
# @return [Proc] a new instance of Proc
#
- # source://rbs//lib/rbs/types.rb#1401
+ # source://rbs//lib/rbs/types.rb#1403
def initialize(location:, type:, block:, self_type: T.unsafe(nil)); end
- # source://rbs//lib/rbs/types.rb#1408
+ # source://rbs//lib/rbs/types.rb#1410
def ==(other); end
# Returns the value of attribute block.
#
- # source://rbs//lib/rbs/types.rb#1397
+ # source://rbs//lib/rbs/types.rb#1399
def block; end
- # source://rbs//lib/rbs/types.rb#1462
+ # source://rbs//lib/rbs/types.rb#1464
def each_type(&block); end
- # source://rbs//lib/rbs/types.rb#1408
+ # source://rbs//lib/rbs/types.rb#1414
def eql?(other); end
- # source://rbs//lib/rbs/types.rb#1418
+ # source://rbs//lib/rbs/types.rb#1420
def free_variables(set = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://rbs//lib/rbs/types.rb#1501
+ # source://rbs//lib/rbs/types.rb#1503
def has_classish_type?; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/types.rb#1497
+ # source://rbs//lib/rbs/types.rb#1499
def has_self_type?; end
- # source://rbs//lib/rbs/types.rb#1414
+ # source://rbs//lib/rbs/types.rb#1416
def hash; end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/types.rb#1399
+ # source://rbs//lib/rbs/types.rb#1401
def location; end
- # source://rbs//lib/rbs/types.rb#1484
+ # source://rbs//lib/rbs/types.rb#1486
def map_type(&block); end
- # source://rbs//lib/rbs/types.rb#1475
+ # source://rbs//lib/rbs/types.rb#1477
def map_type_name(&block); end
# Returns the value of attribute self_type.
#
- # source://rbs//lib/rbs/types.rb#1398
+ # source://rbs//lib/rbs/types.rb#1400
def self_type; end
- # source://rbs//lib/rbs/types.rb#1435
+ # source://rbs//lib/rbs/types.rb#1437
def sub(s); end
- # source://rbs//lib/rbs/types.rb#1425
+ # source://rbs//lib/rbs/types.rb#1427
def to_json(state = T.unsafe(nil)); end
- # source://rbs//lib/rbs/types.rb#1446
+ # source://rbs//lib/rbs/types.rb#1448
def to_s(level = T.unsafe(nil)); end
# Returns the value of attribute type.
#
- # source://rbs//lib/rbs/types.rb#1396
+ # source://rbs//lib/rbs/types.rb#1398
def type; end
# @return [Boolean]
#
- # source://rbs//lib/rbs/types.rb#1505
+ # source://rbs//lib/rbs/types.rb#1507
def with_nonreturn_void?; end
end
@@ -6331,7 +7670,7 @@ class RBS::Types::Record
# source://rbs//lib/rbs/types.rb#605
def each_type(&block); end
- # source://rbs//lib/rbs/types.rb#555
+ # source://rbs//lib/rbs/types.rb#559
def eql?(other); end
# Returns the value of attribute fields.
@@ -6386,15 +7725,15 @@ class RBS::Types::Record
def with_nonreturn_void?; end
end
-# source://rbs//lib/rbs/types.rb#1383
+# source://rbs//lib/rbs/types.rb#1385
module RBS::Types::SelfTypeBindingHelper
private
- # source://rbs//lib/rbs/types.rb#1386
+ # source://rbs//lib/rbs/types.rb#1388
def self_type_binding_to_s(t); end
class << self
- # source://rbs//lib/rbs/types.rb#1386
+ # source://rbs//lib/rbs/types.rb#1388
def self_type_binding_to_s(t); end
end
end
@@ -6412,7 +7751,7 @@ class RBS::Types::Tuple
# source://rbs//lib/rbs/types.rb#488
def each_type(&block); end
- # source://rbs//lib/rbs/types.rb#451
+ # source://rbs//lib/rbs/types.rb#455
def eql?(other); end
# source://rbs//lib/rbs/types.rb#461
@@ -6475,7 +7814,7 @@ class RBS::Types::Union
# source://rbs//lib/rbs/types.rb#786
def each_type(&block); end
- # source://rbs//lib/rbs/types.rb#740
+ # source://rbs//lib/rbs/types.rb#744
def eql?(other); end
# source://rbs//lib/rbs/types.rb#750
@@ -6546,7 +7885,7 @@ class RBS::Types::UntypedFunction
# source://rbs//lib/rbs/types.rb#1302
def empty?; end
- # source://rbs//lib/rbs/types.rb#1326
+ # source://rbs//lib/rbs/types.rb#1330
def eql?(other); end
# source://rbs//lib/rbs/types.rb#1248
@@ -6613,7 +7952,7 @@ class RBS::Types::Variable
# source://rbs//lib/rbs/types.rb#144
def ==(other); end
- # source://rbs//lib/rbs/types.rb#144
+ # source://rbs//lib/rbs/types.rb#148
def eql?(other); end
# source://rbs//lib/rbs/types.rb#154
@@ -6876,18 +8215,18 @@ class RBS::Vendorer
def vendor_dir; end
end
-# source://rbs//lib/rbs/errors.rb#593
+# source://rbs//lib/rbs/errors.rb#614
class RBS::WillSyntaxError < ::RBS::DefinitionError
include ::RBS::DetailedMessageable
# @return [WillSyntaxError] a new instance of WillSyntaxError
#
- # source://rbs//lib/rbs/errors.rb#598
+ # source://rbs//lib/rbs/errors.rb#619
def initialize(message, location:); end
# Returns the value of attribute location.
#
- # source://rbs//lib/rbs/errors.rb#596
+ # source://rbs//lib/rbs/errors.rb#617
def location; end
end
@@ -6970,9 +8309,3 @@ class RBS::Writer
# source://rbs//lib/rbs/writer.rb#102
def write_use_directive(dir); end
end
-
-# source://rbs//lib/rdoc/discover.rb#8
-class RDoc::Parser::RBS < ::RDoc::Parser
- # source://rbs//lib/rdoc/discover.rb#10
- def scan; end
-end
diff --git a/sorbet/rbi/gems/regexp_parser@2.10.0.rbi b/sorbet/rbi/gems/regexp_parser@2.10.0.rbi
index f1d81748..dc2a2711 100644
--- a/sorbet/rbi/gems/regexp_parser@2.10.0.rbi
+++ b/sorbet/rbi/gems/regexp_parser@2.10.0.rbi
@@ -10,13 +10,13 @@ module Regexp::Expression; end
# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5
class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
+ # source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#8
def alternatives; end
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#9
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#130
def match_length; end
end
@@ -42,7 +42,7 @@ Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString
# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#3
class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#147
def match_length; end
end
@@ -111,7 +111,7 @@ module Regexp::Expression::Assertion; end
# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#65
class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#147
def match_length; end
end
@@ -181,7 +181,7 @@ class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backrefere
# Returns the value of attribute name.
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#16
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#17
def reference; end
end
@@ -221,7 +221,7 @@ class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backrefe
# Returns the value of attribute number.
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#6
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#7
def reference; end
end
@@ -269,7 +269,7 @@ class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::
# Returns the value of attribute effective_number.
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#26
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#27
def reference; end
end
@@ -284,12 +284,12 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/base.rb#5
def initialize(token, options = T.unsafe(nil)); end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#11
def =~(string, offset = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#28
def a?; end
# @return [Boolean]
@@ -297,7 +297,7 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25
def ascii_classes?; end
- # source://regexp_parser//lib/regexp_parser/expression/base.rb#60
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#74
def attributes; end
# @return [Boolean]
@@ -305,21 +305,21 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8
def case_insensitive?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def conditional_level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def conditional_level=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def custom_to_s_handling; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def custom_to_s_handling=(_arg0); end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#23
def d?; end
# @return [Boolean]
@@ -329,7 +329,7 @@ class Regexp::Expression::Base
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#18
def extended?; end
# @return [Boolean]
@@ -344,28 +344,28 @@ class Regexp::Expression::Base
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#11
def i?; end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#12
def ignore_case?; end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/base.rb#51
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#54
def lazy?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def level=(_arg0); end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#6
def m?; end
# source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8
@@ -378,7 +378,7 @@ class Regexp::Expression::Base
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#6
def matches?(string); end
# @return [Boolean]
@@ -386,19 +386,19 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3
def multiline?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def nesting_level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def options; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def options=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def parent; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def parent=(_arg0); end
# @return [Boolean]
@@ -406,13 +406,13 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/base.rb#56
def possessive?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def pre_quantifier_decorations; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def pre_quantifier_decorations=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def quantifier; end
# source://regexp_parser//lib/regexp_parser/expression/base.rb#17
@@ -431,10 +431,10 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/base.rb#31
def repetitions; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def set_level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def set_level=(_arg0); end
# %l Level (depth) of the expression. Returns 'root' for the root
@@ -470,7 +470,7 @@ class Regexp::Expression::Base
# %m Most info, same as '%b %q'
# %a All info, same as '%m %t'
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37
+ # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#98
def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end
# %l Level (depth) of the expression. Returns 'root' for the root
@@ -509,16 +509,16 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37
def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def te; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def te=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def text; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def text=(_arg0); end
# source://regexp_parser//lib/regexp_parser/expression/base.rb#60
@@ -527,27 +527,27 @@ class Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/base.rb#9
def to_re(format = T.unsafe(nil)); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def token; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def token=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def ts; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def ts=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def type; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#3
def type=(_arg0); end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#33
def u?; end
# @return [Boolean]
@@ -560,7 +560,7 @@ class Regexp::Expression::Base
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#17
def x?; end
end
@@ -588,10 +588,10 @@ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
# Returns the value of attribute closed.
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#4
def closed?; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#12
@@ -621,7 +621,7 @@ class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expressi
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
end
@@ -630,7 +630,7 @@ class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::Seq
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
end
@@ -650,7 +650,7 @@ class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpress
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
# source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#16
@@ -671,7 +671,7 @@ end
# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#3
class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
# source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#17
@@ -733,7 +733,7 @@ class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#147
def match_length; end
# Name or number of the referenced capturing group that determines state.
@@ -760,7 +760,7 @@ class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexp
# @raise [TooManyBranches]
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#30
def branch(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end
# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#41
@@ -775,7 +775,7 @@ class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexp
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#130
def match_length; end
# source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#17
@@ -838,7 +838,7 @@ class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/escape_sequence_char.rb#2
def char; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
end
@@ -966,7 +966,7 @@ end
# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#2
class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#147
def match_length; end
# @raise [Regexp::Parser::Error]
@@ -1008,7 +1008,7 @@ class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base
# Returns the value of attribute number.
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#42
def identifier; end
# Returns the value of attribute number.
@@ -1067,7 +1067,7 @@ class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture
# Returns the value of attribute name.
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#47
def identifier; end
# Returns the value of attribute name.
@@ -1141,7 +1141,7 @@ class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39
def human_name; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#147
def match_length; end
end
@@ -1165,7 +1165,7 @@ Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty
# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2
class Regexp::Expression::PosixClass < ::Regexp::Expression::Base
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3
@@ -1200,28 +1200,28 @@ class Regexp::Expression::Quantifier
# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11
def initialize(*args); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def conditional_level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def conditional_level=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def custom_to_s_handling; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def custom_to_s_handling=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#30
def greedy?; end
- # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#36
def lazy?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def level=(_arg0); end
# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#42
@@ -1233,73 +1233,73 @@ class Regexp::Expression::Quantifier
# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#46
def mode; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def nesting_level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def options; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def options=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def parent; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def parent=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#30
def possessive?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def pre_quantifier_decorations; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def pre_quantifier_decorations=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def quantifier; end
- # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#30
def reluctant?; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def set_level; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def set_level=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def te; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def te=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def text; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def text=(_arg0); end
# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#19
def to_h; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def token; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def token=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def ts; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def ts=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def type; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#7
def type=(_arg0); end
private
@@ -1379,16 +1379,16 @@ class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpressio
# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#16
def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#5
def operands; end
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#6
def operator; end
# source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#22
def parts; end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#4
def sequences; end
# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8
@@ -1417,7 +1417,7 @@ module Regexp::Expression::Shared
# When changing the conditions, please make sure to update
# #pretty_print_instance_variables so that it includes all relevant values.
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#108
def ===(other); end
# source://regexp_parser//lib/regexp_parser/expression/shared.rb#51
@@ -1443,7 +1443,7 @@ module Regexp::Expression::Shared
# When changing the conditions, please make sure to update
# #pretty_print_instance_variables so that it includes all relevant values.
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#109
def eql?(other); end
# source://regexp_parser//lib/regexp_parser/expression/shared.rb#55
@@ -1609,7 +1609,7 @@ module Regexp::Expression::Shared
# lit.to_s(:base) # => 'a' # without quantifier
# lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations
#
- # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#82
def to_str(format = T.unsafe(nil)); end
# source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#37
@@ -1693,16 +1693,16 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#20
def <<(exp); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def [](*args, &block); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def at(*args, &block); end
# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#33
def dig(*indices); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def each(*args, &block); end
# Traverses the expression, passing each recursive child to the
@@ -1713,7 +1713,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#8
def each_expression(include_self = T.unsafe(nil), &block); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def empty?(*args, &block); end
# Returns the value of attribute expressions.
@@ -1731,7 +1731,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#50
def extract_quantifier_target(quantifier_description); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def fetch(*args, &block); end
# Returns a new array with the results of calling the given block once
@@ -1741,19 +1741,19 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#56
def flat_map(include_self = T.unsafe(nil), &block); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def index(*args, &block); end
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#118
def inner_match_length; end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def join(*args, &block); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def last(*args, &block); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def length(*args, &block); end
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#111
@@ -1762,7 +1762,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#21
def parts; end
- # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102
+ # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#112
def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end
# source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102
@@ -1790,7 +1790,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32
def traverse(include_self = T.unsafe(nil), &block); end
- # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#26
def values_at(*args, &block); end
# Traverses the subexpression (depth-first, pre-order) and calls the given
@@ -1806,7 +1806,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
#
# Returns self.
#
- # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32
+ # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#51
def walk(include_self = T.unsafe(nil), &block); end
protected
@@ -1853,7 +1853,7 @@ class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::Unic
# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3
class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base
- # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#97
def match_length; end
# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4
@@ -2237,7 +2237,7 @@ class Regexp::Lexer
# source://regexp_parser//lib/regexp_parser/lexer.rb#16
def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end
- # source://regexp_parser//lib/regexp_parser/lexer.rb#16
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#82
def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end
end
end
@@ -3034,12 +3034,12 @@ class Regexp::Syntax::Base
# @raise [NotImplementedError]
#
- # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#44
def check!(type, token); end
# @return [Boolean]
#
- # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#34
def check?(type, token); end
# source://regexp_parser//lib/regexp_parser/syntax/base.rb#26
@@ -3736,13 +3736,19 @@ Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array)
# source://regexp_parser//lib/regexp_parser/token.rb#13
class Regexp::Token < ::Struct
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def conditional_level; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def conditional_level=(_); end
# source://regexp_parser//lib/regexp_parser/token.rb#20
def length; end
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def level; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def level=(_); end
# Returns the value of attribute next.
@@ -3772,24 +3778,56 @@ class Regexp::Token < ::Struct
# source://regexp_parser//lib/regexp_parser/token.rb#14
def previous=(_arg0); end
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def set_level; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def set_level=(_); end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def te; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def te=(_); end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def text; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def text=(_); end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def token; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def token=(_); end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def ts; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def ts=(_); end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def type; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def type=(_); end
class << self
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def [](*_arg0); end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def inspect; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def keyword_init?; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def members; end
+
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
def new(*_arg0); end
end
end
diff --git a/sorbet/rbi/gems/require-hooks@0.2.3.rbi b/sorbet/rbi/gems/require-hooks@0.2.3.rbi
new file mode 100644
index 00000000..a1b3d289
--- /dev/null
+++ b/sorbet/rbi/gems/require-hooks@0.2.3.rbi
@@ -0,0 +1,110 @@
+# typed: true
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `require-hooks` gem.
+# Please instead update this file by running `bin/tapioca gem require-hooks`.
+
+
+# source://require-hooks//lib/require-hooks/api.rb#3
+module RequireHooks
+ class << self
+ # Define a block to wrap the code loading.
+ # The return value MUST be a result of calling the passed block.
+ # For example, you can use such hooks for instrumentation, debugging purposes.
+ #
+ # RequireHooks.around_load do |path, &block|
+ # puts "Loading #{path}"
+ # block.call.tap { puts "Loaded #{path}" }
+ # end
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#71
+ def around_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end
+
+ # source://require-hooks//lib/require-hooks/api.rb#107
+ def context_for(path); end
+
+ # This hook should be used to manually compile byte code to be loaded by the VM.
+ # The arguments are (path, source = nil), where source is only defined if transformations took place.
+ # Otherwise, you MUST read the source code from the file yourself.
+ #
+ # The return value MUST be either nil (continue to the next hook or default behavior) or a platform-specific bytecode object (e.g., RubyVM::InstructionSequence).
+ #
+ # RequireHooks.hijack_load do |path, source|
+ # source ||= File.read(path)
+ # if defined?(RubyVM::InstructionSequence)
+ # RubyVM::InstructionSequence.compile(source)
+ # elsif defined?(JRUBY_VERSION)
+ # JRuby.compile(source)
+ # end
+ # end
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#103
+ def hijack_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end
+
+ # Returns the value of attribute print_warnings.
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#61
+ def print_warnings; end
+
+ # Sets the attribute print_warnings
+ #
+ # @param value the value to set the attribute print_warnings to.
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#61
+ def print_warnings=(_arg0); end
+
+ # Define hooks to perform source-to-source transformations.
+ # The return value MUST be either String (new source code) or nil (indicating that no transformations were performed).
+ #
+ # NOTE: The second argument (`source`) MAY be nil, indicating that no transformer tried to transform the source code.
+ #
+ #
+ # RequireHooks.source_transform do |path, source|
+ # end
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#85
+ def source_transform(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end
+ end
+end
+
+# source://require-hooks//lib/require-hooks/api.rb#8
+class RequireHooks::Context
+ # @return [Context] a new instance of Context
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#9
+ def initialize(around_load, source_transform, hijack_load); end
+
+ # @return [Boolean]
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#15
+ def empty?; end
+
+ # @return [Boolean]
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#23
+ def hijack?; end
+
+ # source://require-hooks//lib/require-hooks/api.rb#37
+ def perform_source_transform(path); end
+
+ # source://require-hooks//lib/require-hooks/api.rb#27
+ def run_around_load_callbacks(path); end
+
+ # @return [Boolean]
+ #
+ # source://require-hooks//lib/require-hooks/api.rb#19
+ def source_transform?; end
+
+ # source://require-hooks//lib/require-hooks/api.rb#49
+ def try_hijack_load(path, source); end
+end
+
+# source://require-hooks//lib/require-hooks/mode/load_iseq.rb#4
+module RequireHooks::LoadIseq
+ # source://require-hooks//lib/require-hooks/mode/load_iseq.rb#5
+ def load_iseq(path); end
+end
+
+class RubyVM::InstructionSequence
+ extend ::RequireHooks::LoadIseq
+end
diff --git a/sorbet/rbi/gems/rexml@3.4.2.rbi b/sorbet/rbi/gems/rexml@3.4.2.rbi
index 5bd32093..d367e715 100644
--- a/sorbet/rbi/gems/rexml@3.4.2.rbi
+++ b/sorbet/rbi/gems/rexml@3.4.2.rbi
@@ -274,7 +274,7 @@ class REXML::Attributes < ::Hash
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
# attrs.include?('baz') # => true
#
- # source://rexml//lib/rexml/element.rb#2516
+ # source://rexml//lib/rexml/element.rb#2520
def <<(attribute); end
# :call-seq:
@@ -549,7 +549,7 @@ class REXML::Attributes < ::Hash
# ele = d.root.elements['//ele'] # =>
# ele.attributes.length # => 3
#
- # source://rexml//lib/rexml/element.rb#2214
+ # source://rexml//lib/rexml/element.rb#2219
def size; end
# :call-seq:
@@ -660,7 +660,7 @@ class REXML::Child
# source://rexml//lib/rexml/child.rb#85
def document; end
- # source://rexml//lib/rexml/node.rb#11
+ # source://rexml//lib/rexml/child.rb#58
def next_sibling; end
# Sets the next sibling of this child. This can be used to insert a child
@@ -691,7 +691,7 @@ class REXML::Child
# source://rexml//lib/rexml/child.rb#52
def parent=(other); end
- # source://rexml//lib/rexml/node.rb#17
+ # source://rexml//lib/rexml/child.rb#59
def previous_sibling; end
# Sets the previous sibling of this child. This can be used to insert a
@@ -770,7 +770,7 @@ class REXML::Comment < ::REXML::Child
# The content text
#
- # source://rexml//lib/rexml/comment.rb#14
+ # source://rexml//lib/rexml/comment.rb#58
def to_s; end
# == DEPRECATED
@@ -1041,7 +1041,7 @@ class REXML::Document < ::REXML::Element
# d.add(REXML::Element.new('foo'))
# d.to_s # => " "
#
- # source://rexml//lib/rexml/document.rb#172
+ # source://rexml//lib/rexml/document.rb#203
def <<(child); end
# :call-seq:
@@ -1168,7 +1168,7 @@ class REXML::Document < ::REXML::Element
# d = doc_type
# d ? d.name : "UNDEFINED"
#
- # source://rexml//lib/rexml/document.rb#131
+ # source://rexml//lib/rexml/document.rb#136
def name; end
# :call-seq:
@@ -2789,7 +2789,7 @@ class REXML::Elements
# element.parent # => ... >
# element.context # => {:raw=>:all}
#
- # source://rexml//lib/rexml/element.rb#1915
+ # source://rexml//lib/rexml/element.rb#1927
def <<(element = T.unsafe(nil)); end
# :call-seq:
@@ -3756,8 +3756,8 @@ class REXML::Instruction < ::REXML::Child
# be a Parent if the target argument is a Source. Otherwise, this
# String is set as the content of this instruction.
#
- # @param target can be one of a number of things. If String, then
# @param content Must be either a String, or a Parent. Can only
+ # @param target can be one of a number of things. If String, then
# @return [Instruction] a new instance of Instruction
#
# source://rexml//lib/rexml/instruction.rb#25
@@ -3940,6 +3940,11 @@ module REXML::Namespace
# source://rexml//lib/rexml/namespace.rb#43
def has_name?(other, ns = T.unsafe(nil)); end
+ # The name of the object, valid if set
+ #
+ # source://rexml//lib/rexml/namespace.rb#53
+ def local_name; end
+
# The name of the object, valid if set
#
# source://rexml//lib/rexml/namespace.rb#9
@@ -4094,7 +4099,7 @@ class REXML::Parent < ::REXML::Child
# source://rexml//lib/rexml/parent.rb#13
def initialize(parent = T.unsafe(nil)); end
- # source://rexml//lib/rexml/parent.rb#18
+ # source://rexml//lib/rexml/parent.rb#25
def <<(object); end
# Fetches a child at a given index
@@ -4106,9 +4111,9 @@ class REXML::Parent < ::REXML::Child
# Set an index entry. See Array.[]=
#
+ # @param child if opt is an Integer, this is the child to set
# @param index the index of the element to set
# @param opt either the object to set, or an Integer length
- # @param child if opt is an Integer, this is the child to set
# @return the parent (self)
#
# source://rexml//lib/rexml/parent.rb#70
@@ -4117,7 +4122,7 @@ class REXML::Parent < ::REXML::Child
# source://rexml//lib/rexml/parent.rb#18
def add(object); end
- # source://rexml//lib/rexml/parent.rb#115
+ # source://rexml//lib/rexml/parent.rb#160
def children; end
# Deeply clones this object. This creates a complete duplicate of this
@@ -4138,7 +4143,7 @@ class REXML::Parent < ::REXML::Child
# source://rexml//lib/rexml/parent.rb#39
def each(&block); end
- # source://rexml//lib/rexml/parent.rb#39
+ # source://rexml//lib/rexml/parent.rb#61
def each_child(&block); end
# source://rexml//lib/rexml/parent.rb#51
@@ -4179,7 +4184,7 @@ class REXML::Parent < ::REXML::Child
# @return the number of children of this parent
#
- # source://rexml//lib/rexml/parent.rb#130
+ # source://rexml//lib/rexml/parent.rb#134
def length; end
# @return [Boolean]
@@ -4187,14 +4192,14 @@ class REXML::Parent < ::REXML::Child
# source://rexml//lib/rexml/parent.rb#162
def parent?; end
- # source://rexml//lib/rexml/parent.rb#18
+ # source://rexml//lib/rexml/parent.rb#24
def push(object); end
# Replaces one child with another, making sure the nodelist is correct
# Child)
#
- # @param to_replace the child to replace (must be a Child)
# @param replacement the child to insert into the nodelist (must be a
+ # @param to_replace the child to replace (must be a Child)
#
# source://rexml//lib/rexml/parent.rb#140
def replace_child(to_replace, replacement); end
@@ -4548,7 +4553,7 @@ class REXML::Parsers::XPathParser
# For backward compatibility
#
- # source://rexml//lib/rexml/parsers/xpathparser.rb#174
+ # source://rexml//lib/rexml/parsers/xpathparser.rb#221
def preciate_to_string(parsed, &block); end
# source://rexml//lib/rexml/parsers/xpathparser.rb#36
@@ -4559,32 +4564,18 @@ class REXML::Parsers::XPathParser
private
- # | AdditiveExpr ('+' | '-') MultiplicativeExpr
- # | MultiplicativeExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#505
def AdditiveExpr(path, parsed); end
- # | AndExpr S 'and' S EqualityExpr
- # | EqualityExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#438
def AndExpr(path, parsed); end
- # | EqualityExpr ('=' | '!=') RelationalExpr
- # | RelationalExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#457
def EqualityExpr(path, parsed); end
- # | FilterExpr Predicate
- # | PrimaryExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#608
def FilterExpr(path, parsed); end
- # | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')'
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#663
def FunctionCall(rest, parsed); end
@@ -4596,24 +4587,15 @@ class REXML::Parsers::XPathParser
# source://rexml//lib/rexml/parsers/xpathparser.rb#243
def LocationPath(path, parsed); end
- # | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr
- # | UnaryExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#528
def MultiplicativeExpr(path, parsed); end
# source://rexml//lib/rexml/parsers/xpathparser.rb#343
def NodeTest(path, parsed); end
- # | OrExpr S 'or' S AndExpr
- # | AndExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#419
def OrExpr(path, parsed); end
- # | LocationPath
- # | FilterExpr ('/' | '//') RelativeLocationPath
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#590
def PathExpr(path, parsed); end
@@ -4625,24 +4607,15 @@ class REXML::Parsers::XPathParser
# source://rexml//lib/rexml/parsers/xpathparser.rb#626
def PrimaryExpr(path, parsed); end
- # | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr
- # | AdditiveExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#480
def RelationalExpr(path, parsed); end
# source://rexml//lib/rexml/parsers/xpathparser.rb#267
def RelativeLocationPath(path, parsed); end
- # | '-' UnaryExpr
- # | UnionExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#553
def UnaryExpr(path, parsed); end
- # | UnionExpr '|' PathExpr
- # | PathExpr
- #
# source://rexml//lib/rexml/parsers/xpathparser.rb#571
def UnionExpr(path, parsed); end
@@ -5086,12 +5059,12 @@ class REXML::XMLDecl < ::REXML::Child
# source://rexml//lib/rexml/xmldecl.rb#98
def nowrite; end
- # source://rexml//lib/rexml/encoding.rb#7
+ # source://rexml//lib/rexml/xmldecl.rb#74
def old_enc=(encoding); end
# Returns the value of attribute standalone.
#
- # source://rexml//lib/rexml/xmldecl.rb#17
+ # source://rexml//lib/rexml/xmldecl.rb#73
def stand_alone?; end
# Returns the value of attribute standalone.
diff --git a/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi b/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi
index 2870ade3..7936ede4 100644
--- a/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi
+++ b/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi
@@ -192,7 +192,7 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
#
# @return [Array] an array of value nodes
#
- # source://ast/2.4.3/lib/ast/node.rb#56
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#18
def values; end
end
@@ -216,7 +216,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
#
# @return [Symbol] the name of the variable being assigned
#
- # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
+ # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#15
def lhs; end
# The name of the variable being assigned as a symbol.
@@ -230,7 +230,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
#
# @return [Node] the expression being assigned.
#
- # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
+ # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#23
def rhs; end
end
@@ -628,17 +628,17 @@ class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
def expression; end
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
+ # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12
def lhs; end
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
+ # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#11
def name; end
# The expression being assigned to the variable.
#
# @return [Node] the expression being assigned.
#
- # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
+ # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#20
def rhs; end
end
@@ -676,514 +676,514 @@ end
module RuboCop::AST::CollectionNode
extend ::RuboCop::SimpleForwardable
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def &(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def *(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def +(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def -(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def <<(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def [](*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def []=(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def all?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def any?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def append(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def assoc(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def at(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def bsearch(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def bsearch_index(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def chain(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def chunk(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def chunk_while(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def clear(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def collect(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def collect!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def collect_concat(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def combination(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def compact(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def compact!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def compact_blank(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def compact_blank!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def concat(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def count(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def cycle(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def deconstruct(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def delete(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def delete_at(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def delete_if(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def detect(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def difference(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def dig(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def drop(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def drop_while(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each_cons(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each_entry(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each_index(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each_slice(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each_with_index(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def each_with_object(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def empty?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def entries(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def exclude?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def excluding(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def extract!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def extract_options!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def fetch(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def fetch_values(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def fifth(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def fill(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def filter(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def filter!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def filter_map(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def find(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def find_all(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def find_index(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def first(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def flat_map(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def flatten(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def flatten!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def forty_two(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def fourth(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def from(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def grep(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def grep_v(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def group_by(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def in_groups(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def in_groups_of(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def in_order_of(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def include?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def including(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def index(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def index_by(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def index_with(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def inject(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def inquiry(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def insert(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def intersect?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def intersection(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def join(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def keep_if(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def last(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def lazy(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def length(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def many?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def map(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def map!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def max(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def max_by(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def maximum(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def member?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def min(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def min_by(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def minimum(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def minmax(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def minmax_by(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def none?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def one?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def pack(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def partition(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def permutation(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def pick(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def place(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def pluck(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def pop(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def prepend(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def product(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def push(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def rassoc(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def reduce(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def reject(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def reject!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def repeated_combination(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def repeated_permutation(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def replace(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def reverse(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def reverse!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def reverse_each(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def rindex(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def rotate(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def rotate!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sample(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def second(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def second_to_last(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def select(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def select!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def shelljoin(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def shift(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def shuffle(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def shuffle!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def size(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def slice(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def slice!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def slice_after(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def slice_before(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def slice_when(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sole(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sort(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sort!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sort_by(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sort_by!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def split(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def sum(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def take(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def take_while(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def tally(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def third(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def third_to_last(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_ary(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_formatted_s(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_fs(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_h(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_sentence(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_set(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def to_xml(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def transpose(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def union(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def uniq(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def uniq!(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def unshift(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def values_at(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def without(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def zip(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13
def |(*_arg0, **_arg1, &_arg2); end
end
@@ -1252,7 +1252,7 @@ module RuboCop::AST::ConstantNode
# Note: some classes might have uppercase in which case this method
# returns false
#
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#24
def class_name?; end
# Yield nodes for the namespace
@@ -1373,7 +1373,7 @@ class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node
include ::RuboCop::AST::MethodIdentifierPredicates
include ::RuboCop::AST::MethodDispatchNode
- # source://ast/2.4.3/lib/ast/node.rb#56
+ # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#16
def arguments; end
# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12
@@ -2301,7 +2301,7 @@ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node
#
# @return [Node] the right hand side of a multiple assignment.
#
- # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#42
def rhs; end
# In contrast to `expression`, `values` always returns a Ruby array
@@ -2355,7 +2355,7 @@ module RuboCop::AST::MethodDispatchNode
#
# @return [Boolean] whether the dispatched method is a setter
#
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#110
def assignment?; end
# Checks whether the dispatched method is a bare access modifier that
@@ -2846,16 +2846,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#148
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def __ENCODING___type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def __FILE___type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def __LINE___type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def alias_type?; end
# Returns an array of ancestor nodes.
@@ -2866,10 +2866,10 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#313
def ancestors; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def and_asgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def and_type?; end
# @return [Boolean]
@@ -2887,13 +2887,13 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#546
def any_match_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def arg_expr_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def arg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def args_type?; end
# @return [Boolean]
@@ -2906,13 +2906,13 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#526
def argument_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def array_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def array_pattern_with_tail_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def array_type?; end
# @return [Boolean]
@@ -2925,7 +2925,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#420
def assignment_or_similar?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def back_ref_type?; end
# @return [Boolean]
@@ -2938,19 +2938,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#428
def basic_literal?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def begin_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def block_pass_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def block_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def blockarg_expr_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def blockarg_type?; end
# @return [Boolean]
@@ -2958,7 +2958,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#530
def boolean_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def break_type?; end
# @return [Boolean]
@@ -2966,16 +2966,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#510
def call_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def case_match_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def case_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def casgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def cbase_type?; end
# @return [Boolean]
@@ -2989,7 +2989,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#612
def class_definition?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def class_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#210
@@ -3000,7 +3000,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#215
def complete?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def complex_type?; end
# @return [Boolean]
@@ -3011,22 +3011,22 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#359
def const_name; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def const_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def const_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def csend_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def cvar_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def cvasgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def def_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#379
@@ -3035,16 +3035,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#384
def defined_module_name; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def defined_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def defs_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def dstr_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def dsym_type?; end
# Calls the given block for each ancestor node from parent to root.
@@ -3060,10 +3060,10 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#301
def each_ancestor(*types, &block); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def eflipflop_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def empty_else_type?; end
# @return [Boolean]
@@ -3071,7 +3071,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#414
def empty_source?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def ensure_type?; end
# @return [Boolean]
@@ -3079,10 +3079,10 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#462
def equals_asgn?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def erange_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def false_type?; end
# @return [Boolean]
@@ -3090,31 +3090,31 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#436
def falsey_literal?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def find_pattern_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#327
def first_line; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def float_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def for_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def forward_arg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def forward_args_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def forwarded_args_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def forwarded_kwrestarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def forwarded_restarg_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#591
@@ -3125,28 +3125,28 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#550
def guard_clause?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def gvar_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def gvasgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def hash_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def hash_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def ident_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def if_guard_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def if_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def iflipflop_type?; end
# @return [Boolean]
@@ -3154,34 +3154,34 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#444
def immutable_literal?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def in_match_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def in_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def index_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def indexasgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def int_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def irange_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def itarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def itblock_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def ivar_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def ivasgn_type?; end
# @return [Boolean]
@@ -3189,25 +3189,25 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#491
def keyword?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwargs_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwbegin_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwnilarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwoptarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwrestarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def kwsplat_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#585
@@ -3216,7 +3216,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#588
def lambda_or_proc?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def lambda_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#331
@@ -3268,55 +3268,55 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#487
def loop_keyword?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def lvar_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def lvasgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def masgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_alt_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_as_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_current_line_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#573
def match_guard_clause?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_nil_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_pattern_p_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_pattern_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_rest_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_var_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_with_lvasgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def match_with_trailing_comma_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def mlhs_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#619
def module_definition?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def module_type?; end
# Predicates
@@ -3334,10 +3334,10 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#750
def new_class_or_module_block?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def next_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def nil_type?; end
# Common destructuring method. This can be used to normalize
@@ -3347,22 +3347,22 @@ class RuboCop::AST::Node < ::Parser::AST::Node
#
# @return [Array] the different parts of the ndde
#
- # source://ast/2.4.3/lib/ast/node.rb#56
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#284
def node_parts; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#341
def nonempty_line_count; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def not_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def nth_ref_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def numargs_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def numblock_type?; end
# @return [Boolean]
@@ -3370,16 +3370,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#534
def numeric_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def objc_kwarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def objc_restarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def objc_varargs_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def op_asgn_type?; end
# @return [Boolean]
@@ -3387,16 +3387,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#502
def operator_keyword?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def optarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def or_asgn_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def or_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def pair_type?; end
# Returns the parent node, or `nil` if the receiver is a root node.
@@ -3421,7 +3421,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#506
def parenthesized_call?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def pin_type?; end
# @return [Boolean]
@@ -3429,16 +3429,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#482
def post_condition_loop?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def postexe_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def preexe_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#578
def proc?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def procarg0_type?; end
# Some expressions are evaluated for their value, some for their side
@@ -3459,7 +3459,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#538
def range_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def rational_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#352
@@ -3467,15 +3467,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# @return [Boolean]
#
- # source://rubocop-ast//lib/rubocop/ast/node.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#131
def recursive_basic_literal?; end
# @return [Boolean]
#
- # source://rubocop-ast//lib/rubocop/ast/node.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#131
def recursive_literal?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def redo_type?; end
# @return [Boolean]
@@ -3483,28 +3483,28 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#458
def reference?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def regexp_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def regopt_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def resbody_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def rescue_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def restarg_expr_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def restarg_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def retry_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def return_type?; end
# Use is discouraged, this is a potentially slow method and can lead
@@ -3528,10 +3528,10 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#206
def root?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def sclass_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def self_type?; end
# Most nodes are of 'send' type, so this method is defined
@@ -3542,7 +3542,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#185
def send_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def shadowarg_type?; end
# @return [Boolean]
@@ -3582,13 +3582,13 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#498
def special_keyword?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def splat_type?; end
# source://rubocop-ast//lib/rubocop/ast/node.rb#357
def str_content(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def str_type?; end
# @deprecated Use `:class_constructor?`
@@ -3596,13 +3596,13 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#607
def struct_constructor?(param0 = T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def super_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def sym_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def true_type?; end
# @return [Boolean]
@@ -3619,16 +3619,16 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#167
def type?(*types); end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def undef_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def unless_guard_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def until_post_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def until_type?; end
# Override `AST::Node#updated` so that `AST::Processor` does not try to
@@ -3658,22 +3658,22 @@ class RuboCop::AST::Node < ::Parser::AST::Node
# source://rubocop-ast//lib/rubocop/ast/node.rb#454
def variable?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def when_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def while_post_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def while_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def xstr_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def yield_type?; end
- # source://rubocop-ast//lib/rubocop/ast/node.rb#177
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#176
def zsuper_type?; end
protected
@@ -3885,13 +3885,13 @@ class RuboCop::AST::NodePattern
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
def ast; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75
def captures(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
def encode_with(coder); end
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#93
def eql?(other); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119
@@ -3914,7 +3914,7 @@ class RuboCop::AST::NodePattern
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
def match_code; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75
def named_parameters(*_arg0, **_arg1, &_arg2); end
# Returns the value of attribute pattern.
@@ -3922,7 +3922,7 @@ class RuboCop::AST::NodePattern
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
def pattern; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75
def positional_parameters(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
@@ -4006,7 +4006,7 @@ class RuboCop::AST::NodePattern::Comment
# Returns the value of attribute location.
#
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#9
def loc; end
# Returns the value of attribute location.
@@ -4035,7 +4035,7 @@ class RuboCop::AST::NodePattern::Compiler
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
def initialize; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#24
def bind(*_arg0, **_arg1, &_arg2); end
# Returns the value of attribute binding.
@@ -4118,7 +4118,7 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32
def visit_named_parameter; end
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#24
def visit_number; end
# Assumes other types are node patterns.
@@ -4129,13 +4129,13 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36
def visit_positional_parameter; end
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#26
def visit_regexp; end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40
def visit_set; end
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#25
def visit_string; end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21
@@ -4182,7 +4182,7 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#118
def initialize; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#131
def comments(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
@@ -4196,7 +4196,7 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#127
def parser; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#131
def tokens(*_arg0, **_arg1, &_arg2); end
end
@@ -4271,12 +4271,16 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
# Returns the value of attribute colorizer
#
# @return [Object] the current value of colorizer
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def colorizer; end
# Sets the attribute colorizer
#
# @param value [Object] the value to set the attribute colorizer to.
# @return [Object] the newly set value
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def colorizer=(_); end
# @api private
@@ -4294,34 +4298,46 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
# Returns the value of attribute returned
#
# @return [Object] the current value of returned
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def returned; end
# Sets the attribute returned
#
# @param value [Object] the value to set the attribute returned to.
# @return [Object] the newly set value
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def returned=(_); end
# Returns the value of attribute ruby_ast
#
# @return [Object] the current value of ruby_ast
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def ruby_ast; end
# Sets the attribute ruby_ast
#
# @param value [Object] the value to set the attribute ruby_ast to.
# @return [Object] the newly set value
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def ruby_ast=(_); end
# Returns the value of attribute trace
#
# @return [Object] the current value of trace
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def trace; end
# Sets the attribute trace
#
# @param value [Object] the value to set the attribute trace to.
# @return [Object] the newly set value
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def trace=(_); end
private
@@ -4337,10 +4353,19 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
def color_map_for(node, color); end
class << self
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def [](*_arg0); end
+
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def inspect; end
+
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def keyword_init?; end
+
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def members; end
+
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
def new(*_arg0); end
end
end
@@ -4507,7 +4532,7 @@ end
# Doc on how this fits in the compiling process:
# /docs/modules/ROOT/pages/node_pattern.adoc
#
-# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#16
+# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17
class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
# Calls `compile_sequence`; the actual `compile` method
# will be used for the different terms of the sequence.
@@ -4545,7 +4570,7 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST:
private
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#59
def compile(node); end
# Compilation helpers
@@ -4799,7 +4824,7 @@ class RuboCop::AST::NodePattern::LexerRex
# The StringScanner for this lexer.
#
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#55
def match; end
# The match groups for the current scan.
@@ -5061,7 +5086,7 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
#
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98
def arity(*_arg0, **_arg1, &_arg2); end
# @return [Boolean]
@@ -5075,7 +5100,7 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104
def nb_captures; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98
def rest?(*_arg0, **_arg1, &_arg2); end
end
@@ -5316,28 +5341,28 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
def _reduce_none(val, _values); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46
def emit_atom(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46
def emit_call(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46
def emit_capture(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46
def emit_list(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46
def emit_unary_op(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46
def emit_union(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
def inspect; end
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#48
def next_token(*_arg0, **_arg1, &_arg2); end
# (Similar API to `parser` gem)
@@ -5832,7 +5857,7 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
# @return [AsgnNode] the assignment node
#
- # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#13
def lhs; end
# The name of the variable being assigned as a symbol.
@@ -5853,7 +5878,7 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
#
# @return [Node] the expression being assigned.
#
- # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#35
def rhs; end
end
@@ -6017,7 +6042,7 @@ module RuboCop::AST::ParameterizedNode
#
# @return [Boolean] whether the node is a splat argument
#
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#52
def rest_argument?; end
# Checks whether any argument of the node is a splat
@@ -6209,7 +6234,7 @@ class RuboCop::AST::ProcessedSource
# @deprecated use contains_comment?
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161
def commented?(source_range); end
# Returns the value of attribute comments.
@@ -6734,7 +6759,7 @@ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node
include ::RuboCop::AST::MethodIdentifierPredicates
include ::RuboCop::AST::MethodDispatchNode
- # source://ast/2.4.3/lib/ast/node.rb#56
+ # source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#20
def arguments; end
# Custom destructuring method. This can be used to normalize
@@ -6921,397 +6946,397 @@ RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
module RuboCop::AST::Traversal
extend ::RuboCop::AST::Traversal::CallbackCompiler
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#183
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on___ENCODING__(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on___FILE__(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on___LINE__(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_alias(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_and(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_and_asgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_arg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_arg_expr(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_args(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_array(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_array_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_array_pattern_with_tail(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_back_ref(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_begin(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#160
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_block(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_block_pass(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_blockarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_break(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_case(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_case_match(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_casgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_cbase(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#156
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_class(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_complex(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#154
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_const(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_const_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#165
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_csend(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_cvar(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_cvasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#157
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_def(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_defined?(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#163
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_defs(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_dstr(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_dsym(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_eflipflop(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_empty_else(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_ensure(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_erange(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_false(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_find_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_float(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_for(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_forward_arg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_forward_args(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_forwarded_args(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_forwarded_kwrestarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_forwarded_restarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_gvar(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_gvasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_hash(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_hash_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#159
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_if(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_if_guard(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_iflipflop(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_in_match(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_in_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_index(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_indexasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_int(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_irange(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#162
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_itblock(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_ivar(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_ivasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwargs(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwbegin(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwnilarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#141
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwoptarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwrestarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_kwsplat(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_lambda(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_lvar(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_lvasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_masgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_alt(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_as(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_current_line(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_nil_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_pattern(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_pattern_p(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_rest(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_var(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_with_lvasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_match_with_trailing_comma(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_mlhs(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_module(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_mrasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_next(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_nil(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_not(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_nth_ref(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#161
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_numblock(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#158
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_op_asgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#141
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_optarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_or(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_or_asgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_pair(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_pin(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_postexe(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_preexe(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_procarg0(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_rasgn(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_rational(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_redo(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_regexp(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#144
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_regopt(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_resbody(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_rescue(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_restarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_retry(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_return(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_sclass(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_self(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#165
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_send(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_shadowarg(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_splat(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_str(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_super(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_sym(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_true(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_undef(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_unless_guard(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_until(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_until_post(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_when(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43
def on_while(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_while_post(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_xstr(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_yield(node); end
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50
def on_zsuper(node); end
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#17
@@ -7497,7 +7522,7 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
include ::RuboCop::AST::MethodIdentifierPredicates
include ::RuboCop::AST::MethodDispatchNode
- # source://ast/2.4.3/lib/ast/node.rb#56
+ # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#20
def arguments; end
# Custom destructuring method. This can be used to normalize
@@ -7509,343 +7534,9 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
def node_parts; end
end
-class RuboCop::CommentConfig
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#34
- def initialize(processed_source); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#63
- def comment_only_line?(line_number); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def config(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#51
- def cop_disabled_line_ranges; end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#39
- def cop_enabled_at_line?(cop, line_number); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#47
- def cop_opted_in?(cop); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#55
- def extra_enabled_comments; end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#30
- def processed_source; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def registry(*_arg0, **_arg1, &_arg2); end
-
- private
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#96
- def analyze; end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#124
- def analyze_cop(analysis, directive); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#144
- def analyze_disabled(analysis, directive); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#155
- def analyze_rest(analysis, directive); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#135
- def analyze_single_line(analysis, directive); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#164
- def cop_line_ranges(analysis); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#170
- def each_directive; end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#69
- def extra_enabled_comments_with_names(extras:, names:); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#190
- def handle_enable_all(directive, names, extras); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#204
- def handle_switch(directive, names, extras); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#115
- def inject_disabled_cops_directives(analyses); end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#183
- def non_comment_token_line_numbers; end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#83
- def opt_in_cops; end
-
- # source://rubocop/1.77.0/lib/rubocop/comment_config.rb#179
- def qualified_cop_name(cop_name); end
-end
-
-class RuboCop::Config
- # source://rubocop/1.77.0/lib/rubocop/config.rb#31
- def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def [](*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def []=(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#212
- def active_support_extensions_enabled?; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#127
- def add_excludes_from_higher_level(highest_config); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#239
- def allowed_camel_case_file?(file); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#283
- def base_dir_for_path_parameters; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#313
- def bundler_lock_file_path; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#85
- def check; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#180
- def clusivity_config_for_badge?(badge); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#200
- def cop_enabled?(name); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def delete(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#139
- def deprecation_check; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def dig(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#204
- def disabled_new_cops?; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def each(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def each_key(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#208
- def enabled_new_cops?; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def fetch(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#261
- def file_to_exclude?(file); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#220
- def file_to_include?(file); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#196
- def for_all_cops; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#166
- def for_badge(badge); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#153
- def for_cop(cop); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#191
- def for_department(department_name); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#160
- def for_enabled_cop(cop); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#338
- def gem_versions_in_target; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#342
- def inspect; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#110
- def internal?; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def key?(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def keys(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#81
- def loaded_features; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#21
- def loaded_path; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#77
- def loaded_plugins; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#115
- def make_excludes_absolute; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def map(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def merge(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#293
- def parser_engine; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#274
- def path_relative_to_config(path); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#270
- def patterns_to_exclude; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#266
- def patterns_to_include; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#324
- def pending_cops; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#253
- def possibly_include_hidden?; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def replace(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#105
- def signature; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#308
- def smart_loaded_path; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#216
- def string_literals_frozen_by_default?; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#297
- def target_rails_version; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def target_ruby_version(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def to_h(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def to_hash(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#101
- def to_s; end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def transform_values(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def validate(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#92
- def validate_after_resolution; end
-
- private
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#392
- def department_of(qualified_cop_name); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#380
- def enable_cop?(qualified_cop_name, cop_options); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#367
- def gem_version_to_major_minor_float(gem_version); end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#373
- def read_gem_versions_from_target_lockfile; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#354
- def read_rails_version_from_bundler_lock_file; end
-
- # source://rubocop/1.77.0/lib/rubocop/config.rb#349
- def target_rails_version_from_bundler_lock_file; end
-
- class << self
- # source://rubocop/1.77.0/lib/rubocop/config.rb#23
- def create(hash, path, check: T.unsafe(nil)); end
- end
-end
-
-class RuboCop::ConfigValidator
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#28
- def initialize(config); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def for_all_cops(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
- def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#65
- def target_ruby_version; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#34
- def validate; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#61
- def validate_after_resolution; end
-
- private
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#100
- def alert_about_unrecognized_cops(invalid_cop_names); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#263
- def check_cop_config_value(hash, parent = T.unsafe(nil)); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#73
- def check_obsoletions; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#80
- def check_target_ruby; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#205
- def each_invalid_parameter(cop_name); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#116
- def list_unknown_cops(invalid_cop_names); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#284
- def param_error_message(parent, key, value, supposed_values); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#252
- def reject_conflicting_safe_settings; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#243
- def reject_mutually_exclusive_defaults; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#139
- def suggestion(name); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#71
- def target_ruby; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#217
- def validate_enforced_styles(valid_cop_names); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#166
- def validate_new_cops_parameter; end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#191
- def validate_parameter_names(valid_cop_names); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#177
- def validate_parameter_shape(valid_cop_names); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#237
- def validate_support_and_has_list(name, formats, valid); end
-
- # source://rubocop/1.77.0/lib/rubocop/config_validator.rb#155
- def validate_syntax_cop; end
-end
+class RuboCop::CommentConfig; end
+class RuboCop::Config; end
+class RuboCop::ConfigValidator; end
# Similar to `Forwardable#def_delegators`, but simpler & faster
#
diff --git a/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi b/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi
index ce5154b0..d003d27d 100644
--- a/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi
+++ b/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi
@@ -33,7 +33,7 @@ class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Base
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#55
def on_block(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#55
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#72
def on_numblock(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/allow_incompatible_override.rb#49
@@ -169,7 +169,7 @@ class RuboCop::Cop::Sorbet::BlockMethodDefinition < ::RuboCop::Cop::Base
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/block_method_definition.rb#80
def on_block(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/block_method_definition.rb#80
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/block_method_definition.rb#94
def on_numblock(node); end
private
@@ -432,7 +432,7 @@ RuboCop::Cop::Sorbet::CheckedTrueInSignature::MESSAGE = T.let(T.unsafe(nil), Str
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#36
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#47
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#50
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/constants_from_strings.rb#47
@@ -990,7 +990,7 @@ class RuboCop::Cop::Sorbet::ForbidMixesInClassMethods < ::RuboCop::Cop::Base
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_mixes_in_class_methods.rb#38
def mixes_in_class_methods?(param0 = T.unsafe(nil)); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_mixes_in_class_methods.rb#42
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_mixes_in_class_methods.rb#45
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_mixes_in_class_methods.rb#42
@@ -1157,7 +1157,7 @@ RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), S
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_absurd.rb#17
class RuboCop::Cop::Sorbet::ForbidTAbsurd < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_absurd.rb#24
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_absurd.rb#27
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_absurd.rb#24
@@ -1185,7 +1185,7 @@ RuboCop::Cop::Sorbet::ForbidTAbsurd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_bind.rb#17
class RuboCop::Cop::Sorbet::ForbidTBind < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_bind.rb#24
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_bind.rb#27
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_bind.rb#24
@@ -1213,7 +1213,7 @@ RuboCop::Cop::Sorbet::ForbidTBind::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_cast.rb#17
class RuboCop::Cop::Sorbet::ForbidTCast < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_cast.rb#24
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_cast.rb#27
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_cast.rb#24
@@ -1272,7 +1272,7 @@ RuboCop::Cop::Sorbet::ForbidTEnum::MSG = T.let(T.unsafe(nil), String)
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_let.rb#17
class RuboCop::Cop::Sorbet::ForbidTLet < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_let.rb#24
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_let.rb#27
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_let.rb#24
@@ -1300,7 +1300,7 @@ RuboCop::Cop::Sorbet::ForbidTLet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_must.rb#17
class RuboCop::Cop::Sorbet::ForbidTMust < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_must.rb#24
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_must.rb#27
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_must.rb#24
@@ -1490,7 +1490,7 @@ class RuboCop::Cop::Sorbet::ForbidTTypeAlias < ::RuboCop::Cop::Base
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_type_alias.rb#23
def on_block(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_type_alias.rb#23
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_type_alias.rb#26
def on_numblock(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_type_alias.rb#21
@@ -1512,7 +1512,7 @@ RuboCop::Cop::Sorbet::ForbidTTypeAlias::MSG = T.let(T.unsafe(nil), String)
#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#17
class RuboCop::Cop::Sorbet::ForbidTUnsafe < ::RuboCop::Cop::Base
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#24
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#27
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_unsafe.rb#24
@@ -1577,7 +1577,7 @@ class RuboCop::Cop::Sorbet::ForbidTypeAliasedShapes < ::RuboCop::Cop::Base
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_type_aliased_shapes.rb#36
def on_block(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_type_aliased_shapes.rb#36
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_type_aliased_shapes.rb#40
def on_numblock(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_type_aliased_shapes.rb#28
@@ -1706,7 +1706,7 @@ class RuboCop::Cop::Sorbet::ImplicitConversionMethod < ::RuboCop::Cop::Base
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/implicit_conversion_method.rb#42
def on_def(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/implicit_conversion_method.rb#42
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/implicit_conversion_method.rb#48
def on_defs(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/implicit_conversion_method.rb#50
@@ -1942,7 +1942,7 @@ RuboCop::Cop::Sorbet::Refinement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Sorbet::SelectByIsA < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/select_by_is_a.rb#43
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/select_by_is_a.rb#58
def on_csend(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/select_by_is_a.rb#43
@@ -2014,7 +2014,7 @@ module RuboCop::Cop::Sorbet::SignatureHelp
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/signature_help.rb#42
def on_block(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/signature_help.rb#42
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/signature_help.rb#46
def on_numblock(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/mixin/signature_help.rb#48
@@ -2046,7 +2046,7 @@ end
class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#22
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#30
def on_class(node); end
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/rbi/single_line_rbi_class_module_definitions.rb#22
diff --git a/sorbet/rbi/gems/rubocop@1.77.0.rbi b/sorbet/rbi/gems/rubocop@1.77.0.rbi
index 55701f39..bb7a3d34 100644
--- a/sorbet/rbi/gems/rubocop@1.77.0.rbi
+++ b/sorbet/rbi/gems/rubocop@1.77.0.rbi
@@ -506,19 +506,32 @@ class RuboCop::CLI::Command::ShowCops::ExactMatcher < ::Struct
# Returns the value of attribute pattern
#
# @return [Object] the current value of pattern
+ #
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def pattern; end
# Sets the attribute pattern
#
# @param value [Object] the value to set the attribute pattern to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def pattern=(_); end
class << self
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def inspect; end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def members; end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12
def new(*_arg0); end
end
end
@@ -536,19 +549,32 @@ class RuboCop::CLI::Command::ShowCops::WildcardMatcher < ::Struct
# Returns the value of attribute pattern
#
# @return [Object] the current value of pattern
+ #
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def pattern; end
# Sets the attribute pattern
#
# @param value [Object] the value to set the attribute pattern to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def pattern=(_); end
class << self
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def inspect; end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def members; end
+
+ # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18
def new(*_arg0); end
end
end
@@ -840,7 +866,7 @@ class RuboCop::CommentConfig
# source://rubocop//lib/rubocop/comment_config.rb#63
def comment_only_line?(line_number); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/comment_config.rb#32
def config(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/comment_config.rb#51
@@ -864,7 +890,7 @@ class RuboCop::CommentConfig
# source://rubocop//lib/rubocop/comment_config.rb#30
def processed_source; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/comment_config.rb#32
def registry(*_arg0, **_arg1, &_arg2); end
private
@@ -951,19 +977,32 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < ::
# Returns the value of attribute line
#
# @return [Object] the current value of line
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def line; end
# Sets the attribute line
#
# @param value [Object] the value to set the attribute line to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def line=(_); end
class << self
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def inspect; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def members; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#19
def new(*_arg0); end
end
end
@@ -973,19 +1012,32 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct
# Returns the value of attribute expression
#
# @return [Object] the current value of expression
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def expression; end
# Sets the attribute expression
#
# @param value [Object] the value to set the attribute expression to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def expression=(_); end
class << self
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def inspect; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def members; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#18
def new(*_arg0); end
end
end
@@ -995,30 +1047,47 @@ class RuboCop::CommentConfig::CopAnalysis < ::Struct
# Returns the value of attribute line_ranges
#
# @return [Object] the current value of line_ranges
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def line_ranges; end
# Sets the attribute line_ranges
#
# @param value [Object] the value to set the attribute line_ranges to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def line_ranges=(_); end
# Returns the value of attribute start_line_number
#
# @return [Object] the current value of start_line_number
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def start_line_number; end
# Sets the attribute start_line_number
#
# @param value [Object] the value to set the attribute start_line_number to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def start_line_number=(_); end
class << self
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def inspect; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def members; end
+
+ # source://rubocop//lib/rubocop/comment_config.rb#28
def new(*_arg0); end
end
end
@@ -1040,10 +1109,10 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#31
def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def [](*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def []=(*_arg0, **_arg1, &_arg2); end
# @return [Boolean]
@@ -1087,13 +1156,13 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#200
def cop_enabled?(name); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def delete(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config.rb#139
def deprecation_check; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def dig(*_arg0, **_arg1, &_arg2); end
# @return [Boolean]
@@ -1101,10 +1170,10 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#204
def disabled_new_cops?; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def each(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def each_key(*_arg0, **_arg1, &_arg2); end
# @return [Boolean]
@@ -1112,7 +1181,7 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#208
def enabled_new_cops?; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def fetch(*_arg0, **_arg1, &_arg2); end
# @return [Boolean]
@@ -1174,10 +1243,10 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#110
def internal?; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def key?(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def keys(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config.rb#81
@@ -1194,10 +1263,10 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#115
def make_excludes_absolute; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def map(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def merge(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config.rb#293
@@ -1223,7 +1292,7 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#253
def possibly_include_hidden?; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def replace(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config.rb#105
@@ -1240,22 +1309,22 @@ class RuboCop::Config
# source://rubocop//lib/rubocop/config.rb#297
def target_rails_version; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#99
def target_ruby_version(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def to_h(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def to_hash(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config.rb#101
def to_s; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#97
def transform_values(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config.rb#99
def validate(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config.rb#92
@@ -1301,30 +1370,47 @@ class RuboCop::Config::CopConfig < ::Struct
# Returns the value of attribute metadata
#
# @return [Object] the current value of metadata
+ #
+ # source://rubocop//lib/rubocop/config.rb#17
def metadata; end
# Sets the attribute metadata
#
# @param value [Object] the value to set the attribute metadata to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/config.rb#17
def metadata=(_); end
# Returns the value of attribute name
#
# @return [Object] the current value of name
+ #
+ # source://rubocop//lib/rubocop/config.rb#17
def name; end
# Sets the attribute name
#
# @param value [Object] the value to set the attribute name to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/config.rb#17
def name=(_); end
class << self
+ # source://rubocop//lib/rubocop/config.rb#17
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/config.rb#17
def inspect; end
+
+ # source://rubocop//lib/rubocop/config.rb#17
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/config.rb#17
def members; end
+
+ # source://rubocop//lib/rubocop/config.rb#17
def new(*_arg0); end
end
end
@@ -1478,7 +1564,7 @@ class RuboCop::ConfigLoader
# Returns the value of attribute debug.
#
- # source://rubocop//lib/rubocop/config_loader.rb#33
+ # source://rubocop//lib/rubocop/config_loader.rb#38
def debug?; end
# source://rubocop//lib/rubocop/config_loader.rb#162
@@ -1529,7 +1615,7 @@ class RuboCop::ConfigLoader
# Returns the value of attribute ignore_parent_exclusion.
#
- # source://rubocop//lib/rubocop/config_loader.rb#33
+ # source://rubocop//lib/rubocop/config_loader.rb#39
def ignore_parent_exclusion?; end
# Returns the value of attribute ignore_unrecognized_cops.
@@ -2419,7 +2505,7 @@ class RuboCop::ConfigStore
# Returns the value of attribute validated.
#
- # source://rubocop//lib/rubocop/config_store.rb#7
+ # source://rubocop//lib/rubocop/config_store.rb#8
def validated?; end
end
@@ -2435,10 +2521,10 @@ class RuboCop::ConfigValidator
# source://rubocop//lib/rubocop/config_validator.rb#28
def initialize(config); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config_validator.rb#26
def for_all_cops(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/config_validator.rb#26
def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/config_validator.rb#65
@@ -3059,7 +3145,7 @@ class RuboCop::Cop::Badge
# source://rubocop//lib/rubocop/cop/badge.rb#13
def department_name; end
- # source://rubocop//lib/rubocop/cop/badge.rb#41
+ # source://rubocop//lib/rubocop/cop/badge.rb#44
def eql?(other); end
# source://rubocop//lib/rubocop/cop/badge.rb#46
@@ -3234,7 +3320,7 @@ class RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/base.rb#183
def message(_range = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/base.rb#238
+ # source://rubocop//lib/rubocop/cop/base.rb#242
def name; end
# @deprecated Make potential errors with previous API more obvious
@@ -3514,52 +3600,77 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct
# Returns the value of attribute cop
#
# @return [Object] the current value of cop
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def cop; end
# Sets the attribute cop
#
# @param value [Object] the value to set the attribute cop to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def cop=(_); end
# Returns the value of attribute corrector
#
# @return [Object] the current value of corrector
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def corrector; end
# Sets the attribute corrector
#
# @param value [Object] the value to set the attribute corrector to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def corrector=(_); end
# Returns the value of attribute offenses
#
# @return [Object] the current value of offenses
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def offenses; end
# Sets the attribute offenses
#
# @param value [Object] the value to set the attribute offenses to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def offenses=(_); end
# Returns the value of attribute processed_source
#
# @return [Object] the current value of processed_source
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def processed_source; end
# Sets the attribute processed_source
#
# @param value [Object] the value to set the attribute processed_source to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def processed_source=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def members; end
+
+ # source://rubocop//lib/rubocop/cop/base.rb#48
def new(*_arg0); end
end
end
@@ -3750,24 +3861,6 @@ RuboCop::Cop::Bundler::DuplicatedGroup::SOURCE_BLOCK_NAMES = T.let(T.unsafe(nil)
# see https://bundler.io/man/gemfile.5.html
# .
#
-# @example OnlyFor: [] (default)
-# # bad
-#
-# gem 'foo'
-#
-# # good
-#
-# # Helpers for the foo things.
-# gem 'foo'
-# @example OnlyFor: ['version_specifiers']
-# # bad
-#
-# gem 'foo', '< 2.1'
-#
-# # good
-#
-# # Version 2.1 introduces breaking change baz
-# gem 'foo', '< 2.1'
# @example OnlyFor: ['restrictive_version_specifiers']
# # bad
#
@@ -3793,6 +3886,24 @@ RuboCop::Cop::Bundler::DuplicatedGroup::SOURCE_BLOCK_NAMES = T.let(T.unsafe(nil)
#
# # Version 2.1 introduces breaking change baz
# gem 'bar', '< 2.1'
+# @example OnlyFor: ['version_specifiers']
+# # bad
+#
+# gem 'foo', '< 2.1'
+#
+# # good
+#
+# # Version 2.1 introduces breaking change baz
+# gem 'foo', '< 2.1'
+# @example OnlyFor: [] (default)
+# # bad
+#
+# gem 'foo'
+#
+# # good
+#
+# # Helpers for the foo things.
+# gem 'foo'
#
# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#83
class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base
@@ -3971,47 +4082,47 @@ RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_REQUIRED = T.let(T.unsafe(nil),
# Enforce that Gem version specifications or a commit reference (branch,
# ref, or tag) are either required or forbidden.
#
-# @example EnforcedStyle: required (default)
-# # bad
+# @example EnforcedStyle: forbidden
+# # good
# gem 'rubocop'
#
-# # good
+# # bad
# gem 'rubocop', '~> 1.12'
#
-# # good
+# # bad
# gem 'rubocop', '>= 1.10.0'
#
-# # good
+# # bad
# gem 'rubocop', '>= 1.5.0', '< 1.10.0'
#
-# # good
+# # bad
# gem 'rubocop', branch: 'feature-branch'
#
-# # good
+# # bad
# gem 'rubocop', ref: '74b5bfbb2c4b6fd6cdbbc7254bd7084b36e0c85b'
#
-# # good
+# # bad
# gem 'rubocop', tag: 'v1.17.0'
-# @example EnforcedStyle: forbidden
-# # good
+# @example EnforcedStyle: required (default)
+# # bad
# gem 'rubocop'
#
-# # bad
+# # good
# gem 'rubocop', '~> 1.12'
#
-# # bad
+# # good
# gem 'rubocop', '>= 1.10.0'
#
-# # bad
+# # good
# gem 'rubocop', '>= 1.5.0', '< 1.10.0'
#
-# # bad
+# # good
# gem 'rubocop', branch: 'feature-branch'
#
-# # bad
+# # good
# gem 'rubocop', ref: '74b5bfbb2c4b6fd6cdbbc7254bd7084b36e0c85b'
#
-# # bad
+# # good
# gem 'rubocop', tag: 'v1.17.0'
#
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#53
@@ -4108,14 +4219,14 @@ RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(
#
# # good
# source 'https://rubygems.org' # strongly recommended
-# @example AllowHttpProtocol: true (default)
-#
-# # good
-# source 'http://rubygems.org' # use only if HTTPS is unavailable
# @example AllowHttpProtocol: false
#
# # bad
# source 'http://rubygems.org'
+# @example AllowHttpProtocol: true (default)
+#
+# # good
+# source 'http://rubygems.org' # use only if HTTPS is unavailable
#
# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#41
class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base
@@ -4159,14 +4270,14 @@ RuboCop::Cop::Bundler::InsecureProtocolSource::RESTRICT_ON_SEND = T.let(T.unsafe
# gem 'rubocop'
#
# gem 'rspec'
-# @example TreatCommentsAsGroupSeparators: true (default)
-# # good
+# @example TreatCommentsAsGroupSeparators: false
+# # bad
# # For code quality
# gem 'rubocop'
# # For tests
# gem 'rspec'
-# @example TreatCommentsAsGroupSeparators: false
-# # bad
+# @example TreatCommentsAsGroupSeparators: true (default)
+# # good
# # For code quality
# gem 'rubocop'
# # For tests
@@ -4196,31 +4307,31 @@ RuboCop::Cop::Bundler::OrderedGems::MSG = T.let(T.unsafe(nil), String)
#
# source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#6
module RuboCop::Cop::CheckAssignment
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#17
def on_and_asgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#13
def on_casgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#11
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#12
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#10
def on_ivasgn(node); end
# source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
def on_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#14
def on_masgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#15
def on_op_asgn(node); end
- # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7
+ # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#16
def on_or_asgn(node); end
# source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#19
@@ -4407,7 +4518,7 @@ end
module RuboCop::Cop::CodeLength
extend ::RuboCop::ExcludeLimit
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#11
def max=(value); end
private
@@ -4508,388 +4619,388 @@ class RuboCop::Cop::Commissioner
# source://rubocop//lib/rubocop/cop/commissioner.rb#79
def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on___ENCODING__(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on___FILE__(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on___LINE__(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_alias(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_and(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_and_asgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_arg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_arg_expr(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_args(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_array_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_array_pattern_with_tail(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_back_ref(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_begin(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_block_pass(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_blockarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_break(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_case(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_case_match(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_casgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_cbase(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_complex(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_const(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_const_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_cvar(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_defined?(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_defs(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_dstr(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_dsym(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_eflipflop(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_empty_else(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_ensure(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_erange(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_false(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_find_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_float(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_for(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_forward_arg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_forward_args(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_forwarded_args(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_forwarded_kwrestarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_forwarded_restarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_gvar(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_hash(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_hash_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_if_guard(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_iflipflop(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_in_match(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_in_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_index(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_indexasgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_int(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_irange(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_ivar(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_ivasgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwargs(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwbegin(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwnilarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwoptarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwrestarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_kwsplat(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_lambda(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_lvar(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_masgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_alt(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_as(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_current_line(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_nil_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_pattern(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_pattern_p(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_rest(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_var(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_with_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_match_with_trailing_comma(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_mlhs(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_next(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_nil(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_not(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_nth_ref(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_op_asgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_optarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_or(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_or_asgn(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_pair(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_pin(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_postexe(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_preexe(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_procarg0(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_rational(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_redo(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_regexp(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_regopt(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_resbody(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_rescue(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_restarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_retry(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_return(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_sclass(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_self(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_shadowarg(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_splat(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_str(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_super(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_sym(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_true(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_undef(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_unless_guard(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_until_post(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_when(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_while(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_while_post(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_xstr(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_yield(node); end
- # source://rubocop//lib/rubocop/cop/commissioner.rb#68
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#67
def on_zsuper(node); end
private
@@ -4945,12 +5056,16 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct
# Returns the value of attribute cop_reports
#
# @return [Object] the current value of cop_reports
+ #
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def cop_reports; end
# Sets the attribute cop_reports
#
# @param value [Object] the value to set the attribute cop_reports to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def cop_reports=(_); end
# source://rubocop//lib/rubocop/cop/commissioner.rb#19
@@ -4962,12 +5077,16 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct
# Returns the value of attribute errors
#
# @return [Object] the current value of errors
+ #
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def errors; end
# Sets the attribute errors
#
# @param value [Object] the value to set the attribute errors to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def errors=(_); end
# source://rubocop//lib/rubocop/cop/commissioner.rb#35
@@ -4982,19 +5101,32 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct
# Returns the value of attribute processed_source
#
# @return [Object] the current value of processed_source
+ #
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def processed_source; end
# Sets the attribute processed_source
#
# @param value [Object] the value to set the attribute processed_source to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def processed_source=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def members; end
+
+ # source://rubocop//lib/rubocop/cop/commissioner.rb#18
def new(*_arg0); end
end
end
@@ -5030,7 +5162,7 @@ module RuboCop::Cop::ConfigurableEnforcedStyle
# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#19
def ambiguous_style_detected(*possibilities); end
- # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60
+ # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#72
def conflicting_styles_detected; end
# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#11
@@ -5073,7 +5205,7 @@ module RuboCop::Cop::ConfigurableEnforcedStyle
# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#15
def unexpected_style_detected(unexpected); end
- # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60
+ # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#73
def unrecognized_style_detected; end
end
@@ -5260,41 +5392,62 @@ class RuboCop::Cop::Cop::Correction < ::Struct
# Returns the value of attribute cop
#
# @return [Object] the current value of cop
+ #
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def cop; end
# Sets the attribute cop
#
# @param value [Object] the value to set the attribute cop to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def cop=(_); end
# Returns the value of attribute lambda
#
# @return [Object] the current value of lambda
+ #
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def lambda; end
# Sets the attribute lambda
#
# @param value [Object] the value to set the attribute lambda to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def lambda=(_); end
# Returns the value of attribute node
#
# @return [Object] the current value of node
+ #
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def node; end
# Sets the attribute node
#
# @param value [Object] the value to set the attribute node to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def node=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def members; end
+
+ # source://rubocop//lib/rubocop/cop/cop.rb#17
def new(*_arg0); end
end
end
@@ -5347,7 +5500,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter
# Legacy
#
- # source://parser/3.3.8.0/lib/parser/source/tree_rewriter.rb#252
+ # source://rubocop//lib/rubocop/cop/corrector.rb#45
def rewrite; end
# Swaps sources at the given ranges.
@@ -5928,7 +6081,7 @@ end
module RuboCop::Cop::FrozenStringLiteral
private
- # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#36
+ # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#41
def frozen_heredoc?(node); end
# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#20
@@ -6087,47 +6240,47 @@ RuboCop::Cop::Gemspec::AttributeAssignment::MSG = T.let(T.unsafe(nil), String)
# Enforce that gem dependency version specifications or a commit reference (branch,
# ref, or tag) are either required or forbidden.
#
-# @example EnforcedStyle: required (default)
+# @example EnforcedStyle: forbidden
#
# # bad
# Gem::Specification.new do |spec|
-# spec.add_dependency 'parser'
+# spec.add_dependency 'parser', '>= 2.3.3.1', '< 3.0'
# end
#
# # bad
# Gem::Specification.new do |spec|
-# spec.add_development_dependency 'parser'
+# spec.add_development_dependency 'parser', '>= 2.3.3.1', '< 3.0'
# end
#
# # good
# Gem::Specification.new do |spec|
-# spec.add_dependency 'parser', '>= 2.3.3.1', '< 3.0'
+# spec.add_dependency 'parser'
# end
#
# # good
# Gem::Specification.new do |spec|
-# spec.add_development_dependency 'parser', '>= 2.3.3.1', '< 3.0'
+# spec.add_development_dependency 'parser'
# end
-# @example EnforcedStyle: forbidden
+# @example EnforcedStyle: required (default)
#
# # bad
# Gem::Specification.new do |spec|
-# spec.add_dependency 'parser', '>= 2.3.3.1', '< 3.0'
+# spec.add_dependency 'parser'
# end
#
# # bad
# Gem::Specification.new do |spec|
-# spec.add_development_dependency 'parser', '>= 2.3.3.1', '< 3.0'
+# spec.add_development_dependency 'parser'
# end
#
# # good
# Gem::Specification.new do |spec|
-# spec.add_dependency 'parser'
+# spec.add_dependency 'parser', '>= 2.3.3.1', '< 3.0'
# end
#
# # good
# Gem::Specification.new do |spec|
-# spec.add_development_dependency 'parser'
+# spec.add_development_dependency 'parser', '>= 2.3.3.1', '< 3.0'
# end
#
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#53
@@ -6472,14 +6625,14 @@ RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String)
# spec.add_runtime_dependency 'rubocop'
#
# spec.add_runtime_dependency 'rspec'
-# @example TreatCommentsAsGroupSeparators: true (default)
-# # good
+# @example TreatCommentsAsGroupSeparators: false
+# # bad
# # For code quality
# spec.add_dependency 'rubocop'
# # For tests
# spec.add_dependency 'rspec'
-# @example TreatCommentsAsGroupSeparators: false
-# # bad
+# @example TreatCommentsAsGroupSeparators: true (default)
+# # good
# # For code quality
# spec.add_dependency 'rubocop'
# # For tests
@@ -7203,22 +7356,35 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
# Returns the value of attribute node
#
# @return [Object] the current value of node
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def node; end
# Sets the attribute node
#
# @param value [Object] the value to set the attribute node to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def node=(_); end
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#15
def selector; end
class << self
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def members; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14
def new(*_arg0); end
end
end
@@ -7241,7 +7407,7 @@ module RuboCop::Cop::HashSubset
# source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#21
def block_with_first_arg_check?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#36
+ # source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#47
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/mixin/hash_subset.rb#36
@@ -7417,34 +7583,46 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct
# Returns the value of attribute block_node
#
# @return [Object] the current value of block_node
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def block_node; end
# Sets the attribute block_node
#
# @param value [Object] the value to set the attribute block_node to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def block_node=(_); end
# Returns the value of attribute leading
#
# @return [Object] the current value of leading
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def leading; end
# Sets the attribute leading
#
# @param value [Object] the value to set the attribute leading to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def leading=(_); end
# Returns the value of attribute match
#
# @return [Object] the current value of match
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def match; end
# Sets the attribute match
#
# @param value [Object] the value to set the attribute match to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def match=(_); end
# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#72
@@ -7462,15 +7640,20 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct
# Returns the value of attribute trailing
#
# @return [Object] the current value of trailing
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def trailing; end
# Sets the attribute trailing
#
# @param value [Object] the value to set the attribute trailing to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def trailing=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def [](*_arg0); end
# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#32
@@ -7485,9 +7668,16 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct
# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#52
def from_to_h(node, match); end
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def members; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#31
def new(*_arg0); end
end
end
@@ -7509,34 +7699,46 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct
# Returns the value of attribute transformed_argname
#
# @return [Object] the current value of transformed_argname
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def transformed_argname; end
# Sets the attribute transformed_argname
#
# @param value [Object] the value to set the attribute transformed_argname to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def transformed_argname=(_); end
# Returns the value of attribute transforming_body_expr
#
# @return [Object] the current value of transforming_body_expr
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def transforming_body_expr; end
# Sets the attribute transforming_body_expr
#
# @param value [Object] the value to set the attribute transforming_body_expr to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def transforming_body_expr=(_); end
# Returns the value of attribute unchanged_body_expr
#
# @return [Object] the current value of unchanged_body_expr
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def unchanged_body_expr; end
# Sets the attribute unchanged_body_expr
#
# @param value [Object] the value to set the attribute unchanged_body_expr to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def unchanged_body_expr=(_); end
# @return [Boolean]
@@ -7545,10 +7747,19 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct
def use_transformed_argname?; end
class << self
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def members; end
+
+ # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13
def new(*_arg0); end
end
end
@@ -7560,7 +7771,7 @@ RuboCop::Cop::HashTransformMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
#
# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#6
module RuboCop::Cop::Heredoc
- # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9
+ # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#14
def on_dstr(node); end
# @raise [NotImplementedError]
@@ -7571,7 +7782,7 @@ module RuboCop::Cop::Heredoc
# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9
def on_str(node); end
- # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9
+ # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#15
def on_xstr(node); end
private
@@ -7678,16 +7889,16 @@ module RuboCop::Cop::Interpolation
# source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9
def on_dstr(node); end
- # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9
+ # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#14
def on_dsym(node); end
# source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#17
def on_node_with_interpolations(node); end
- # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9
+ # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#15
def on_regexp(node); end
- # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9
+ # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#13
def on_xstr(node); end
end
@@ -7817,16 +8028,16 @@ class RuboCop::Cop::Layout::AccessModifierIndentation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43
+ # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#50
def on_block(node); end
# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43
+ # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#49
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43
+ # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#48
def on_sclass(node); end
private
@@ -7900,7 +8111,7 @@ class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Alignment
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#54
+ # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#63
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#54
@@ -8078,7 +8289,7 @@ RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String)
# align with the start of the line, it defaults to `EnforcedStyleAlignWith: start_of_line`.
# These style can be configured by each cop.
#
-# @example EnforcedStyleAlignWith: start_of_line (default)
+# @example EnforcedStyleAlignWith: begin
# # bad
# foo ||= begin
# do_something
@@ -8088,7 +8299,7 @@ RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String)
# foo ||= begin
# do_something
# end
-# @example EnforcedStyleAlignWith: begin
+# @example EnforcedStyleAlignWith: start_of_line (default)
# # bad
# foo ||= begin
# do_something
@@ -8194,10 +8405,10 @@ class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#84
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#84
+ # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#89
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#84
+ # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#88
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#91
@@ -8297,10 +8508,10 @@ class RuboCop::Cop::Layout::BlockEndNewline < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33
+ # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#46
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33
+ # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#45
def on_numblock(node); end
private
@@ -8660,7 +8871,7 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base
# Validates code style on class declaration.
# Add offense when find a node out of expected order.
#
- # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#193
+ # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#204
def on_sclass(class_node); end
private
@@ -8928,13 +9139,13 @@ class RuboCop::Cop::Layout::ClosingParenthesisIndentation < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#84
def on_begin(node); end
- # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79
+ # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#82
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#91
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79
@@ -9118,7 +9329,7 @@ class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#27
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33
+ # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#36
def on_until(node); end
# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33
@@ -9145,7 +9356,7 @@ RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String)
# keyword is. If it's set to `def`, the `end` shall be aligned with the
# `def` keyword.
#
-# @example EnforcedStyleAlignWith: start_of_line (default)
+# @example EnforcedStyleAlignWith: def
# # bad
#
# private def foo
@@ -9155,7 +9366,7 @@ RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String)
#
# private def foo
# end
-# @example EnforcedStyleAlignWith: def
+# @example EnforcedStyleAlignWith: start_of_line (default)
# # bad
#
# private def foo
@@ -9176,7 +9387,7 @@ class RuboCop::Cop::Layout::DefEndAlignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43
+ # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#46
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#48
@@ -9216,7 +9427,7 @@ class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34
+ # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#45
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34
@@ -9362,8 +9573,8 @@ RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String)
# #
# class Foo
# end
-# @example AllowBorderComment: true (default)
-# # good
+# @example AllowBorderComment: false
+# # bad
#
# def foo
# end
@@ -9372,8 +9583,8 @@ RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String)
#
# def bar
# end
-# @example AllowBorderComment: false
-# # bad
+# @example AllowBorderComment: true (default)
+# # good
#
# def foo
# end
@@ -9382,16 +9593,16 @@ RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String)
#
# def bar
# end
-# @example AllowMarginComment: true (default)
-# # good
+# @example AllowMarginComment: false
+# # bad
#
# #
# # Description of `Foo` class.
# #
# class Foo
# end
-# @example AllowMarginComment: false
-# # bad
+# @example AllowMarginComment: true (default)
+# # good
#
# #
# # Description of `Foo` class.
@@ -9707,10 +9918,10 @@ class RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition < ::RuboCop::Cop::B
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#93
def on_rescue(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70
+ # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#73
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75
+ # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#80
def on_until_post(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70
@@ -9756,21 +9967,32 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
# `AllowAdjacentOneLineDefs` configures whether adjacent
# one-line definitions are considered an offense.
#
-# @example EmptyLineBetweenMethodDefs: true (default)
-# # checks for empty lines between method definitions.
+# @example AllowAdjacentOneLineDefs: false
#
# # bad
-# def a
-# end
-# def b
-# end
+# class ErrorA < BaseError; end
+# class ErrorB < BaseError; end
+# class ErrorC < BaseError; end
#
# # good
-# def a
-# end
+# class ErrorA < BaseError; end
#
-# def b
-# end
+# class ErrorB < BaseError; end
+#
+# class ErrorC < BaseError; end
+# @example AllowAdjacentOneLineDefs: true (default)
+#
+# # good
+# class ErrorA < BaseError; end
+# class ErrorB < BaseError; end
+# class ErrorC < BaseError; end
+#
+# # good
+# class ErrorA < BaseError; end
+#
+# class ErrorB < BaseError; end
+#
+# class ErrorC < BaseError; end
# @example EmptyLineBetweenClassDefs: true (default)
# # checks for empty lines between class definitions.
#
@@ -9791,6 +10013,21 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
#
# def b
# end
+# @example EmptyLineBetweenMethodDefs: true (default)
+# # checks for empty lines between method definitions.
+#
+# # bad
+# def a
+# end
+# def b
+# end
+#
+# # good
+# def a
+# end
+#
+# def b
+# end
# @example EmptyLineBetweenModuleDefs: true (default)
# # checks for empty lines between module definitions.
#
@@ -9811,32 +10048,6 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
#
# def b
# end
-# @example AllowAdjacentOneLineDefs: true (default)
-#
-# # good
-# class ErrorA < BaseError; end
-# class ErrorB < BaseError; end
-# class ErrorC < BaseError; end
-#
-# # good
-# class ErrorA < BaseError; end
-#
-# class ErrorB < BaseError; end
-#
-# class ErrorC < BaseError; end
-# @example AllowAdjacentOneLineDefs: false
-#
-# # bad
-# class ErrorA < BaseError; end
-# class ErrorB < BaseError; end
-# class ErrorC < BaseError; end
-#
-# # good
-# class ErrorA < BaseError; end
-#
-# class ErrorB < BaseError; end
-#
-# class ErrorC < BaseError; end
#
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#102
class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base
@@ -10049,13 +10260,13 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#62
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#86
def on_itblock(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#71
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#85
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#76
@@ -10205,7 +10416,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#57
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47
@@ -10264,24 +10475,24 @@ RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), Stri
#
# def do_something
# end
-# @example AllowAliasSyntax: true (default)
-# # good
+# @example AllowAliasSyntax: false
+# # bad
# attr_accessor :foo
# alias :foo? :foo
#
# def do_something
# end
-# @example AllowAliasSyntax: false
-# # bad
+#
+# # good
# attr_accessor :foo
+#
# alias :foo? :foo
#
# def do_something
# end
-#
+# @example AllowAliasSyntax: true (default)
# # good
# attr_accessor :foo
-#
# alias :foo? :foo
#
# def do_something
@@ -10389,19 +10600,19 @@ RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), Str
# Checks if empty lines around the bodies of blocks match
# the configuration.
#
-# @example EnforcedStyle: no_empty_lines (default)
+# @example EnforcedStyle: empty_lines
# # good
#
# foo do |bar|
+#
# # ...
+#
# end
-# @example EnforcedStyle: empty_lines
+# @example EnforcedStyle: no_empty_lines (default)
# # good
#
# foo do |bar|
-#
# # ...
-#
# end
#
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#24
@@ -10414,10 +10625,10 @@ class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#37
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#36
def on_numblock(node); end
end
@@ -10508,10 +10719,11 @@ RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), S
# Checks if empty lines around the bodies of classes match
# the configuration.
#
-# @example EnforcedStyle: no_empty_lines (default)
+# @example EnforcedStyle: beginning_only
# # good
#
# class Foo
+#
# def bar
# # ...
# end
@@ -10543,23 +10755,22 @@ RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), S
# def bar; end
#
# end
-# @example EnforcedStyle: beginning_only
+# @example EnforcedStyle: ending_only
# # good
#
# class Foo
-#
# def bar
# # ...
# end
+#
# end
-# @example EnforcedStyle: ending_only
+# @example EnforcedStyle: no_empty_lines (default)
# # good
#
# class Foo
# def bar
# # ...
# end
-#
# end
#
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#67
@@ -10642,19 +10853,19 @@ class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCo
include ::RuboCop::Cop::Layout::EmptyLinesAroundBody
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#71
def on_block(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#70
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#74
def on_kwbegin(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#72
def on_numblock(node); end
private
@@ -10714,7 +10925,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29
+ # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#39
def on_defs(node); end
private
@@ -10737,14 +10948,6 @@ RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), St
# Checks if empty lines around the bodies of modules match
# the configuration.
#
-# @example EnforcedStyle: no_empty_lines (default)
-# # good
-#
-# module Foo
-# def bar
-# # ...
-# end
-# end
# @example EnforcedStyle: empty_lines
# # good
#
@@ -10772,6 +10975,14 @@ RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), St
# def bar; end
#
# end
+# @example EnforcedStyle: no_empty_lines (default)
+# # good
+#
+# module Foo
+# def bar
+# # ...
+# end
+# end
#
# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#47
class RuboCop::Cop::Layout::EmptyLinesAroundModuleBody < ::RuboCop::Cop::Base
@@ -10822,37 +11033,37 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St
# variable =
# if true
# end
-# @example EnforcedStyleAlignWith: variable
+# @example EnforcedStyleAlignWith: start_of_line
# # bad
#
# variable = if true
# end
#
+# puts(if true
+# end)
+#
# # good
#
# variable = if true
# end
#
+# puts(if true
+# end)
+#
# variable =
# if true
# end
-# @example EnforcedStyleAlignWith: start_of_line
+# @example EnforcedStyleAlignWith: variable
# # bad
#
# variable = if true
# end
#
-# puts(if true
-# end)
-#
# # good
#
# variable = if true
# end
#
-# puts(if true
-# end)
-#
# variable =
# if true
# end
@@ -10868,7 +11079,7 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111
def on_case(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#118
def on_case_match(node); end
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#83
@@ -10918,17 +11129,15 @@ end
# Checks for Windows-style line endings in the source code.
#
-# @example EnforcedStyle: native (default)
-# # The `native` style means that CR+LF (Carriage Return + Line Feed) is
-# # enforced on Windows, and LF is enforced on other platforms.
+# @example EnforcedStyle: crlf
+# # The `crlf` style means that CR+LF (Carriage Return + Line Feed) is
+# # enforced on all platforms.
#
# # bad
-# puts 'Hello' # Return character is LF on Windows.
-# puts 'Hello' # Return character is CR+LF on other than Windows.
+# puts 'Hello' # Return character is LF on all platforms.
#
# # good
-# puts 'Hello' # Return character is CR+LF on Windows.
-# puts 'Hello' # Return character is LF on other than Windows.
+# puts 'Hello' # Return character is CR+LF on all platforms.
# @example EnforcedStyle: lf
# # The `lf` style means that LF (Line Feed) is enforced on
# # all platforms.
@@ -10938,15 +11147,17 @@ end
#
# # good
# puts 'Hello' # Return character is LF on all platforms.
-# @example EnforcedStyle: crlf
-# # The `crlf` style means that CR+LF (Carriage Return + Line Feed) is
-# # enforced on all platforms.
+# @example EnforcedStyle: native (default)
+# # The `native` style means that CR+LF (Carriage Return + Line Feed) is
+# # enforced on Windows, and LF is enforced on other platforms.
#
# # bad
-# puts 'Hello' # Return character is LF on all platforms.
+# puts 'Hello' # Return character is LF on Windows.
+# puts 'Hello' # Return character is CR+LF on other than Windows.
#
# # good
-# puts 'Hello' # Return character is CR+LF on all platforms.
+# puts 'Hello' # Return character is CR+LF on Windows.
+# puts 'Hello' # Return character is LF on other than Windows.
#
# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#40
class RuboCop::Cop::Layout::EndOfLine < ::RuboCop::Cop::Base
@@ -11111,10 +11322,9 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin
# some_method nested_call(
# nested_first_param),
# second_param
-# @example EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
-# # Same as `special_for_inner_method_call` except that the special rule
-# # only applies if the outer method call encloses its arguments in
-# # parentheses.
+# @example EnforcedStyle: consistent
+# # The first argument should always be indented one step more than the
+# # preceding line.
#
# # good
# some_method(
@@ -11137,9 +11347,9 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin
# some_method nested_call(
# nested_first_param),
# second_param
-# @example EnforcedStyle: consistent
-# # The first argument should always be indented one step more than the
-# # preceding line.
+# @example EnforcedStyle: consistent_relative_to_receiver
+# # The first argument should always be indented one level relative to
+# # the parent that is receiving the argument
#
# # good
# some_method(
@@ -11161,10 +11371,12 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin
#
# some_method nested_call(
# nested_first_param),
-# second_param
-# @example EnforcedStyle: consistent_relative_to_receiver
-# # The first argument should always be indented one level relative to
-# # the parent that is receiving the argument
+# second_params
+# @example EnforcedStyle: special_for_inner_method_call
+# # The first argument should normally be indented one step more than
+# # the preceding line, but if it's an argument for a method call that
+# # is itself an argument in a method call, then the inner argument
+# # should be indented relative to the inner method.
#
# # good
# some_method(
@@ -11186,12 +11398,11 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin
#
# some_method nested_call(
# nested_first_param),
-# second_params
-# @example EnforcedStyle: special_for_inner_method_call
-# # The first argument should normally be indented one step more than
-# # the preceding line, but if it's an argument for a method call that
-# # is itself an argument in a method call, then the inner argument
-# # should be indented relative to the inner method.
+# second_param
+# @example EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
+# # Same as `special_for_inner_method_call` except that the special rule
+# # only applies if the outer method call encloses its arguments in
+# # parentheses.
#
# # good
# some_method(
@@ -11225,13 +11436,13 @@ class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#222
def eligible_method_call?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155
+ # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#165
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155
+ # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#166
def on_super(node); end
private
@@ -11315,27 +11526,19 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
# This default style is called 'special_inside_parentheses'. Alternative
# styles are 'consistent' and 'align_brackets'. Here are examples:
#
-# @example EnforcedStyle: special_inside_parentheses (default)
-# # The `special_inside_parentheses` style enforces that the first
-# # element in an array literal where the opening bracket and first
-# # element are on separate lines is indented one step (two spaces) more
-# # than the position inside the opening parenthesis.
+# @example EnforcedStyle: align_brackets
+# # The `align_brackets` style enforces that the opening and closing
+# # brackets are indented to the same position.
#
# # bad
-# array = [
-# :value
+# and_now_for_something = [
+# :completely_different
# ]
-# and_in_a_method_call([
-# :no_difference
-# ])
#
# # good
-# array = [
-# :value
+# and_now_for_something = [
+# :completely_different
# ]
-# but_in_a_method_call([
-# :its_like_this
-# ])
# @example EnforcedStyle: consistent
# # The `consistent` style enforces that the first element in an array
# # literal where the opening bracket and the first element are on
@@ -11357,19 +11560,27 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
# and_in_a_method_call([
# :no_difference
# ])
-# @example EnforcedStyle: align_brackets
-# # The `align_brackets` style enforces that the opening and closing
-# # brackets are indented to the same position.
+# @example EnforcedStyle: special_inside_parentheses (default)
+# # The `special_inside_parentheses` style enforces that the first
+# # element in an array literal where the opening bracket and first
+# # element are on separate lines is indented one step (two spaces) more
+# # than the position inside the opening parenthesis.
#
# # bad
-# and_now_for_something = [
-# :completely_different
+# array = [
+# :value
# ]
+# and_in_a_method_call([
+# :no_difference
+# ])
#
# # good
-# and_now_for_something = [
-# :completely_different
+# array = [
+# :value
# ]
+# but_in_a_method_call([
+# :its_like_this
+# ])
#
# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#82
class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base
@@ -11381,7 +11592,7 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#97
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#104
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#97
@@ -11496,19 +11707,14 @@ RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), Str
# This default style is called 'special_inside_parentheses'. Alternative
# styles are 'consistent' and 'align_braces'. Here are examples:
#
-# @example EnforcedStyle: special_inside_parentheses (default)
-# # The `special_inside_parentheses` style enforces that the first key
-# # in a hash literal where the opening brace and the first key are on
-# # separate lines is indented one step (two spaces) more than the
-# # position inside the opening parentheses.
+# @example EnforcedStyle: align_braces
+# # The `align_brackets` style enforces that the opening and closing
+# # braces are indented to the same position.
#
# # bad
-# hash = {
-# key: :value
+# and_now_for_something = {
+# completely: :different
# }
-# and_in_a_method_call({
-# no: :difference
-# })
# takes_multi_pairs_hash(x: {
# a: 1,
# b: 2
@@ -11519,13 +11725,9 @@ RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), Str
# })
#
# # good
-# special_inside_parentheses
-# hash = {
-# key: :value
+# and_now_for_something = {
+# completely: :different
# }
-# but_in_a_method_call({
-# its_like: :this
-# })
# takes_multi_pairs_hash(x: {
# a: 1,
# b: 2
@@ -11555,14 +11757,19 @@ RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), Str
# and_in_a_method_call({
# no: :difference
# })
-# @example EnforcedStyle: align_braces
-# # The `align_brackets` style enforces that the opening and closing
-# # braces are indented to the same position.
+# @example EnforcedStyle: special_inside_parentheses (default)
+# # The `special_inside_parentheses` style enforces that the first key
+# # in a hash literal where the opening brace and the first key are on
+# # separate lines is indented one step (two spaces) more than the
+# # position inside the opening parentheses.
#
# # bad
-# and_now_for_something = {
-# completely: :different
+# hash = {
+# key: :value
# }
+# and_in_a_method_call({
+# no: :difference
+# })
# takes_multi_pairs_hash(x: {
# a: 1,
# b: 2
@@ -11573,9 +11780,13 @@ RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), Str
# })
#
# # good
-# and_now_for_something = {
-# completely: :different
+# special_inside_parentheses
+# hash = {
+# key: :value
# }
+# but_in_a_method_call({
+# its_like: :this
+# })
# takes_multi_pairs_hash(x: {
# a: 1,
# b: 2
@@ -11592,7 +11803,7 @@ class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::MultilineElementIndentation
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126
+ # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#133
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#122
@@ -11769,13 +11980,13 @@ class RuboCop::Cop::Layout::FirstMethodArgumentLineBreak < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedMethods
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78
+ # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#94
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78
+ # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#95
def on_super(node); end
private
@@ -11845,7 +12056,7 @@ class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62
+ # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#65
def on_defs(node); end
private
@@ -11875,9 +12086,9 @@ RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil),
# second_param)
# 123
# end
-# @example EnforcedStyle: consistent (default)
+# @example EnforcedStyle: align_parentheses
# # The first parameter should always be indented one step more than the
-# # preceding line.
+# # opening parenthesis.
#
# # good
# def some_method(
@@ -11885,9 +12096,9 @@ RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil),
# second_param)
# 123
# end
-# @example EnforcedStyle: align_parentheses
+# @example EnforcedStyle: consistent (default)
# # The first parameter should always be indented one step more than the
-# # opening parenthesis.
+# # preceding line.
#
# # good
# def some_method(
@@ -11906,7 +12117,7 @@ class RuboCop::Cop::Layout::FirstParameterIndentation < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53
+ # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#59
def on_defs(node); end
private
@@ -11950,84 +12161,100 @@ RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), Stri
# Alternatively you can specify multiple allowed styles. That's done by
# passing a list of styles to EnforcedHashRocketStyle and EnforcedColonStyle.
#
-# @example EnforcedLastArgumentHashStyle: ignore_explicit
-# # Ignore only explicit hashes.
-#
-# # bad
-# do_something(foo: 1,
-# bar: 2)
-#
-# # good
-# do_something({foo: 1,
-# bar: 2})
-# @example EnforcedHashRocketStyle: separator
+# @example EnforcedColonStyle: key (default)
# # bad
# {
-# :foo => bar,
-# :ba => baz
+# foo: bar,
+# ba: baz
# }
# {
-# :foo => bar,
-# :ba => baz
+# foo: bar,
+# ba: baz
# }
#
# # good
# {
-# :foo => bar,
-# :ba => baz
+# foo: bar,
+# ba: baz
# }
-# @example EnforcedHashRocketStyle: table
+# @example EnforcedColonStyle: separator
# # bad
# {
-# :foo => bar,
-# :ba => baz
+# foo: bar,
+# ba: baz
# }
#
# # good
# {
-# :foo => bar,
-# :ba => baz
+# foo: bar,
+# ba: baz
# }
-# @example EnforcedColonStyle: key (default)
+# @example EnforcedColonStyle: table
# # bad
# {
# foo: bar,
# ba: baz
# }
+#
+# # good
# {
# foo: bar,
# ba: baz
# }
+# @example EnforcedHashRocketStyle: key (default)
+# # bad
+# {
+# :foo => bar,
+# :ba => baz
+# }
+# {
+# :foo => bar,
+# :ba => baz
+# }
#
# # good
# {
-# foo: bar,
-# ba: baz
+# :foo => bar,
+# :ba => baz
# }
-# @example EnforcedColonStyle: separator
+# @example EnforcedHashRocketStyle: separator
# # bad
# {
-# foo: bar,
-# ba: baz
+# :foo => bar,
+# :ba => baz
+# }
+# {
+# :foo => bar,
+# :ba => baz
# }
#
# # good
# {
-# foo: bar,
-# ba: baz
+# :foo => bar,
+# :ba => baz
# }
-# @example EnforcedColonStyle: table
+# @example EnforcedHashRocketStyle: table
# # bad
# {
-# foo: bar,
-# ba: baz
+# :foo => bar,
+# :ba => baz
# }
#
# # good
# {
-# foo: bar,
-# ba: baz
+# :foo => bar,
+# :ba => baz
# }
+# @example EnforcedLastArgumentHashStyle: always_ignore
+# # Ignore both implicit and explicit hashes.
+#
+# # good
+# do_something(foo: 1,
+# bar: 2)
+#
+# # good
+# do_something({foo: 1,
+# bar: 2})
# @example EnforcedLastArgumentHashStyle: always_inspect (default)
# # Inspect both implicit and explicit hashes.
#
@@ -12058,10 +12285,10 @@ RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), Stri
# foo: 1,
# bar: 2
# })
-# @example EnforcedLastArgumentHashStyle: always_ignore
-# # Ignore both implicit and explicit hashes.
+# @example EnforcedLastArgumentHashStyle: ignore_explicit
+# # Ignore only explicit hashes.
#
-# # good
+# # bad
# do_something(foo: 1,
# bar: 2)
#
@@ -12078,22 +12305,6 @@ RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), Stri
# # good
# do_something(foo: 1,
# bar: 2)
-# @example EnforcedHashRocketStyle: key (default)
-# # bad
-# {
-# :foo => bar,
-# :ba => baz
-# }
-# {
-# :foo => bar,
-# :ba => baz
-# }
-#
-# # good
-# {
-# :foo => bar,
-# :ba => baz
-# }
#
# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#178
class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base
@@ -12125,7 +12336,7 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#219
def offenses_by=(_arg0); end
- # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195
+ # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#205
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#209
@@ -12134,10 +12345,10 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195
+ # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#206
def on_super(node); end
- # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195
+ # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#207
def on_yield(node); end
private
@@ -12273,7 +12484,7 @@ class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop::
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64
+ # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#78
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64
@@ -12526,7 +12737,7 @@ RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), Strin
# Other than that, both styles mean that entities on the same logical
# depth shall have the same indentation.
#
-# @example EnforcedStyle: normal (default)
+# @example EnforcedStyle: indented_internal_methods
# # bad
# class A
# def test
@@ -12578,7 +12789,7 @@ RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), Strin
# def bar
# end
# end
-# @example EnforcedStyle: indented_internal_methods
+# @example EnforcedStyle: normal (default)
# # bad
# class A
# def test
@@ -12749,38 +12960,38 @@ RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String)
#
# See also the `Layout/IndentationConsistency` cop which is the companion to this one.
#
-# @example Width: 2 (default)
+# @example AllowedPatterns: ['^\s*module']
# # bad
-# class A
+# module A
+# class B
# def test
# puts 'hello'
# end
# end
+# end
#
# # good
-# class A
+# module A
+# class B
# def test
# puts 'hello'
# end
# end
-# @example AllowedPatterns: ['^\s*module']
+# end
+# @example Width: 2 (default)
# # bad
-# module A
-# class B
+# class A
# def test
# puts 'hello'
# end
# end
-# end
#
# # good
-# module A
-# class B
+# class A
# def test
# puts 'hello'
# end
# end
-# end
#
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#44
class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base
@@ -12807,34 +13018,34 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#96
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#105
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#120
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#122
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#122
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#127
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#69
def on_ensure(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#64
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#67
def on_for(node); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#157
def on_if(node, base = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#94
def on_itblock(node); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#73
def on_kwbegin(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#96
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#103
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#93
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#64
@@ -12843,13 +13054,13 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#60
def on_rescue(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#96
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#102
def on_sclass(node); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#105
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#129
+ # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#137
def on_until(node, base = T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#129
@@ -12989,15 +13200,13 @@ RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String)
# `#:nodoc`, `=begin`- and `=end` comments, "shebang" directives,
# or rackup options.
#
-# @example AllowSteepAnnotation: true
-#
-# # good
+# @example
#
-# [1, 2, 3].each_with_object([]) do |n, list| #$ Array[Integer]
-# list << n
-# end
+# # bad
+# #Some comment
#
-# name = 'John' #: String
+# # good
+# # Some comment
# @example AllowDoxygenCommentStyle: false (default)
#
# # bad
@@ -13062,13 +13271,15 @@ RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String)
# end
#
# name = 'John' #: String
-# @example
-#
-# # bad
-# #Some comment
+# @example AllowSteepAnnotation: true
#
# # good
-# # Some comment
+#
+# [1, 2, 3].each_with_object([]) do |n, list| #$ Array[Integer]
+# list << n
+# end
+#
+# name = 'John' #: String
#
# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#101
class RuboCop::Cop::Layout::LeadingCommentSpace < ::RuboCop::Cop::Base
@@ -13202,22 +13413,6 @@ RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String)
# trailing spaces instead of leading spaces (default) or leading spaces
# instead of trailing spaces.
#
-# @example EnforcedStyle: trailing (default)
-# # bad
-# 'this text contains a lot of' \
-# ' spaces'
-#
-# # good
-# 'this text contains a lot of ' \
-# 'spaces'
-#
-# # bad
-# 'this text is too' \
-# ' long'
-#
-# # good
-# 'this text is too ' \
-# 'long'
# @example EnforcedStyle: leading
# # bad
# 'this text contains a lot of ' \
@@ -13234,6 +13429,22 @@ RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String)
# # good
# 'this text is too' \
# ' long'
+# @example EnforcedStyle: trailing (default)
+# # bad
+# 'this text contains a lot of' \
+# ' spaces'
+#
+# # good
+# 'this text contains a lot of ' \
+# 'spaces'
+#
+# # bad
+# 'this text is too' \
+# ' long'
+#
+# # good
+# 'this text is too ' \
+# 'long'
#
# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#43
class RuboCop::Cop::Layout::LineContinuationLeadingSpace < ::RuboCop::Cop::Base
@@ -13306,25 +13517,25 @@ RuboCop::Cop::Layout::LineContinuationLeadingSpace::TRAILING_STYLE_OFFENSE = T.l
# Checks that the backslash of a line continuation is separated from
# preceding text by exactly one space (default) or zero spaces.
#
-# @example EnforcedStyle: space (default)
+# @example EnforcedStyle: no_space
# # bad
-# 'a'\
+# 'a' \
# 'b' \
# 'c'
#
# # good
-# 'a' \
-# 'b' \
+# 'a'\
+# 'b'\
# 'c'
-# @example EnforcedStyle: no_space
+# @example EnforcedStyle: space (default)
# # bad
-# 'a' \
+# 'a'\
# 'b' \
# 'c'
#
# # good
-# 'a'\
-# 'b'\
+# 'a' \
+# 'b' \
# 'c'
#
# source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#30
@@ -13559,46 +13770,46 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base
include ::RuboCop::Cop::LineLengthHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#70
def max=(value); end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#91
def on_array(node); end
# source://rubocop//lib/rubocop/cop/layout/line_length.rb#74
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#94
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#95
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#96
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/layout/line_length.rb#84
def on_dstr(node); end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#92
def on_hash(node); end
# source://rubocop//lib/rubocop/cop/layout/line_length.rb#104
def on_investigation_end; end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#78
def on_itblock(node); end
# source://rubocop//lib/rubocop/cop/layout/line_length.rb#98
def on_new_investigation; end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#77
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
def on_potential_breakable_node(node); end
- # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88
+ # source://rubocop//lib/rubocop/cop/layout/line_length.rb#93
def on_send(node); end
# source://rubocop//lib/rubocop/cop/layout/line_length.rb#80
@@ -13772,26 +13983,6 @@ RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String)
# The closing brace of a multi-line array literal must be on the same
# line as the last element of the array.
#
-# @example EnforcedStyle: symmetrical (default)
-# # bad
-# [ :a,
-# :b
-# ]
-#
-# # bad
-# [
-# :a,
-# :b ]
-#
-# # good
-# [ :a,
-# :b ]
-#
-# # good
-# [
-# :a,
-# :b
-# ]
# @example EnforcedStyle: new_line
# # bad
# [
@@ -13832,6 +14023,26 @@ RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String)
# # good
# [ :a,
# :b ]
+# @example EnforcedStyle: symmetrical (default)
+# # bad
+# [ :a,
+# :b
+# ]
+#
+# # bad
+# [
+# :a,
+# :b ]
+#
+# # good
+# [ :a,
+# :b ]
+#
+# # good
+# [
+# :a,
+# :b
+# ]
#
# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#91
class RuboCop::Cop::Layout::MultilineArrayBraceLayout < ::RuboCop::Cop::Base
@@ -14049,10 +14260,10 @@ class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59
+ # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#72
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59
+ # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#71
def on_numblock(node); end
private
@@ -14126,26 +14337,6 @@ RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Int
# The closing brace of a multi-line hash literal must be on the same
# line as the last element of the hash.
#
-# @example EnforcedStyle: symmetrical (default)
-#
-# # bad
-# { a: 1,
-# b: 2
-# }
-# # bad
-# {
-# a: 1,
-# b: 2 }
-#
-# # good
-# { a: 1,
-# b: 2 }
-#
-# # good
-# {
-# a: 1,
-# b: 2
-# }
# @example EnforcedStyle: new_line
# # bad
# {
@@ -14186,6 +14377,26 @@ RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Int
# # good
# { a: 1,
# b: 2 }
+# @example EnforcedStyle: symmetrical (default)
+#
+# # bad
+# { a: 1,
+# b: 2
+# }
+# # bad
+# {
+# a: 1,
+# b: 2 }
+#
+# # good
+# { a: 1,
+# b: 2 }
+#
+# # good
+# {
+# a: 1,
+# b: 2
+# }
#
# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#91
class RuboCop::Cop::Layout::MultilineHashBraceLayout < ::RuboCop::Cop::Base
@@ -14348,7 +14559,7 @@ class RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks < ::RuboCop::Cop::
include ::RuboCop::Cop::MultilineElementLineBreaks
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#86
+ # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#102
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#86
@@ -14388,26 +14599,6 @@ RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(ni
# The closing brace of a multi-line method call must be on the same
# line as the last argument of the call.
#
-# @example EnforcedStyle: symmetrical (default)
-# # bad
-# foo(a,
-# b
-# )
-#
-# # bad
-# foo(
-# a,
-# b)
-#
-# # good
-# foo(a,
-# b)
-#
-# # good
-# foo(
-# a,
-# b
-# )
# @example EnforcedStyle: new_line
# # bad
# foo(
@@ -14448,6 +14639,26 @@ RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(ni
# # good
# foo(a,
# b)
+# @example EnforcedStyle: symmetrical (default)
+# # bad
+# foo(a,
+# b
+# )
+#
+# # bad
+# foo(
+# a,
+# b)
+#
+# # good
+# foo(a,
+# b)
+#
+# # good
+# foo(
+# a,
+# b
+# )
#
# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#91
class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Base
@@ -14455,7 +14666,7 @@ class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Bas
include ::RuboCop::Cop::MultilineLiteralBraceLayout
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109
+ # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#112
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109
@@ -14652,30 +14863,6 @@ end
# The closing brace of a multi-line method definition must be on the same
# line as the last parameter of the definition.
#
-# @example EnforcedStyle: symmetrical (default)
-# # bad
-# def foo(a,
-# b
-# )
-# end
-#
-# # bad
-# def foo(
-# a,
-# b)
-# end
-#
-# # good
-# def foo(a,
-# b)
-# end
-#
-# # good
-# def foo(
-# a,
-# b
-# )
-# end
# @example EnforcedStyle: new_line
# # bad
# def foo(
@@ -14724,6 +14911,30 @@ end
# def foo(a,
# b)
# end
+# @example EnforcedStyle: symmetrical (default)
+# # bad
+# def foo(a,
+# b
+# )
+# end
+#
+# # bad
+# def foo(
+# a,
+# b)
+# end
+#
+# # good
+# def foo(a,
+# b)
+# end
+#
+# # good
+# def foo(
+# a,
+# b
+# )
+# end
#
# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#103
class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Cop::Base
@@ -14734,7 +14945,7 @@ class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Co
# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121
+ # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#124
def on_defs(node); end
end
@@ -14807,7 +15018,7 @@ class RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks < ::RuboCop::Cop:
# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63
+ # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#68
def on_defs(node); end
private
@@ -14975,7 +15186,7 @@ class RuboCop::Cop::Layout::ParameterAlignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#80
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#80
+ # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#85
def on_defs(node); end
private
@@ -15051,7 +15262,7 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CheckSingleLineSuitability
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#60
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#70
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#56
@@ -15237,7 +15448,7 @@ class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#36
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32
@@ -15351,7 +15562,7 @@ class RuboCop::Cop::Layout::SpaceAfterMethodName < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23
+ # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#35
def on_defs(node); end
end
@@ -15502,24 +15713,24 @@ end
# Checks that the equals signs in parameter default assignments
# have or don't have surrounding space depending on configuration.
#
-# @example EnforcedStyle: space (default)
+# @example EnforcedStyle: no_space
# # bad
-# def some_method(arg1=:default, arg2=nil, arg3=[])
+# def some_method(arg1 = :default, arg2 = nil, arg3 = [])
# # do something...
# end
#
# # good
-# def some_method(arg1 = :default, arg2 = nil, arg3 = [])
+# def some_method(arg1=:default, arg2=nil, arg3=[])
# # do something...
# end
-# @example EnforcedStyle: no_space
+# @example EnforcedStyle: space (default)
# # bad
-# def some_method(arg1 = :default, arg2 = nil, arg3 = [])
+# def some_method(arg1=:default, arg2=nil, arg3=[])
# # do something...
# end
#
# # good
-# def some_method(arg1=:default, arg2=nil, arg3=[])
+# def some_method(arg1 = :default, arg2 = nil, arg3 = [])
# # do something...
# end
#
@@ -15811,7 +16022,7 @@ class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#53
def on_const(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45
+ # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#51
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45
@@ -15857,14 +16068,14 @@ RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.uns
# total = 3 * 4
# "apple" + "juice"
# my_number = 38 / 4
-# @example AllowForAlignment: true (default)
-# # good
+# @example AllowForAlignment: false
+# # bad
# {
# 1 => 2,
# 11 => 3
# }
-# @example AllowForAlignment: false
-# # bad
+# @example AllowForAlignment: true (default)
+# # good
# {
# 1 => 2,
# 11 => 3
@@ -15901,10 +16112,10 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RationalLiteral
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#132
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#155
def on_and(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#163
def on_and_asgn(node); end
# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
@@ -15913,40 +16124,40 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#132
def on_binary(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#157
def on_casgn(node); end
# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#124
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#160
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#161
def on_gvasgn(node); end
# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#92
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#159
def on_ivasgn(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#156
def on_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#158
def on_masgn(node); end
# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#148
def on_match_pattern(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#164
def on_op_asgn(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#132
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#154
def on_or(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#162
def on_or_asgn(node); end
# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#84
@@ -16046,38 +16257,38 @@ RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(n
# Checks that block braces have or don't have a space before the opening
# brace depending on configuration.
#
-# @example EnforcedStyle: space (default)
+# @example EnforcedStyle: no_space
# # bad
-# foo.map{ |a|
+# foo.map { |a|
# a.bar.to_s
# }
#
# # good
-# foo.map { |a|
+# foo.map{ |a|
# a.bar.to_s
# }
-# @example EnforcedStyle: no_space
+# @example EnforcedStyle: space (default)
# # bad
-# foo.map { |a|
+# foo.map{ |a|
# a.bar.to_s
# }
#
# # good
-# foo.map{ |a|
+# foo.map { |a|
# a.bar.to_s
# }
-# @example EnforcedStyleForEmptyBraces: space (default)
-# # bad
-# 7.times{}
-#
-# # good
-# 7.times {}
# @example EnforcedStyleForEmptyBraces: no_space
# # bad
# 7.times {}
#
# # good
# 7.times{}
+# @example EnforcedStyleForEmptyBraces: space (default)
+# # bad
+# 7.times{}
+#
+# # good
+# 7.times {}
#
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#44
class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base
@@ -16088,10 +16299,10 @@ class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#80
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#79
def on_numblock(node); end
private
@@ -16236,7 +16447,7 @@ class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35
+ # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#47
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35
@@ -16345,6 +16556,24 @@ RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(n
#
# Array pattern matching is handled in the same way.
#
+# @example EnforcedStyle: compact
+# # The `compact` style normally requires a space inside
+# # array brackets, with the exception that successive left
+# # or right brackets are collapsed together in nested arrays.
+#
+# # bad
+# array = [a, b, c, d]
+# array = [ a, [ b, c ] ]
+# array = [
+# [ a ],
+# [ b, c ]
+# ]
+#
+# # good
+# array = [ a, b, c, d ]
+# array = [ a, [ b, c ]]
+# array = [[ a ],
+# [ b, c ]]
# @example EnforcedStyle: no_space (default)
# # The `no_space` style enforces that array literals have
# # no surrounding space.
@@ -16367,24 +16596,6 @@ RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(n
# # good
# array = [ a, b, c, d ]
# array = [ a, [ b, c ] ]
-# @example EnforcedStyle: compact
-# # The `compact` style normally requires a space inside
-# # array brackets, with the exception that successive left
-# # or right brackets are collapsed together in nested arrays.
-#
-# # bad
-# array = [a, b, c, d]
-# array = [ a, [ b, c ] ]
-# array = [
-# [ a ],
-# [ b, c ]
-# ]
-#
-# # good
-# array = [ a, b, c, d ]
-# array = [ a, [ b, c ]]
-# array = [[ a ],
-# [ b, c ]]
# @example EnforcedStyleForEmptyBrackets: no_space (default)
# # The `no_space` EnforcedStyleForEmptyBrackets style enforces that
# # empty array brackets do not contain spaces.
@@ -16418,7 +16629,7 @@ class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < ::RuboCop::Cop::Ba
# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#86
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#86
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#102
def on_array_pattern(node); end
private
@@ -16536,15 +16747,6 @@ RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_IT
# left brace has or doesn't have trailing space depending on
# configuration.
#
-# @example EnforcedStyle: space (default)
-# # The `space` style enforces that block braces have
-# # surrounding space.
-#
-# # bad
-# some_array.each {puts e}
-#
-# # good
-# some_array.each { puts e }
# @example EnforcedStyle: no_space
# # The `no_space` style enforces that block braces don't
# # have surrounding space.
@@ -16554,6 +16756,15 @@ RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_IT
#
# # good
# some_array.each {puts e}
+# @example EnforcedStyle: space (default)
+# # The `space` style enforces that block braces have
+# # surrounding space.
+#
+# # bad
+# some_array.each {puts e}
+#
+# # good
+# some_array.each { puts e }
# @example EnforcedStyleForEmptyBraces: no_space (default)
# # The `no_space` EnforcedStyleForEmptyBraces style enforces that
# # block braces don't have a space in between when empty.
@@ -16576,16 +16787,6 @@ RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_IT
# some_array.each { }
# some_array.each { }
# some_array.each { }
-# @example SpaceBeforeBlockParameters: true (default)
-# # The SpaceBeforeBlockParameters style set to `true` enforces that
-# # there is a space between `{` and `|`. Overrides `EnforcedStyle`
-# # if there is a conflict.
-#
-# # bad
-# [1, 2, 3].each {|n| n * 2 }
-#
-# # good
-# [1, 2, 3].each { |n| n * 2 }
# @example SpaceBeforeBlockParameters: false
# # The SpaceBeforeBlockParameters style set to `false` enforces that
# # there is no space between `{` and `|`. Overrides `EnforcedStyle`
@@ -16596,6 +16797,16 @@ RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_IT
#
# # good
# [1, 2, 3].each {|n| n * 2 }
+# @example SpaceBeforeBlockParameters: true (default)
+# # The SpaceBeforeBlockParameters style set to `true` enforces that
+# # there is a space between `{` and `|`. Overrides `EnforcedStyle`
+# # if there is a conflict.
+#
+# # bad
+# [1, 2, 3].each {|n| n * 2 }
+#
+# # good
+# [1, 2, 3].each { |n| n * 2 }
#
# source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#79
class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base
@@ -16607,10 +16818,10 @@ class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#106
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#105
def on_numblock(node); end
private
@@ -16680,17 +16891,18 @@ end
#
# Hash pattern matching is handled in the same way.
#
-# @example EnforcedStyle: space (default)
-# # The `space` style enforces that hash literals have
-# # surrounding space.
+# @example EnforcedStyle: compact
+# # The `compact` style normally requires a space inside
+# # hash braces, with the exception that successive left
+# # braces or right braces are collapsed together in nested hashes.
#
# # bad
-# h = {a: 1, b: 2}
-# foo = {{ a: 1 } => { b: { c: 2 }}}
+# h = { a: { b: 2 } }
+# foo = { { a: 1 } => { b: { c: 2 } } }
#
# # good
-# h = { a: 1, b: 2 }
-# foo = { { a: 1 } => { b: { c: 2 } } }
+# h = { a: { b: 2 }}
+# foo = {{ a: 1 } => { b: { c: 2 }}}
# @example EnforcedStyle: no_space
# # The `no_space` style enforces that hash literals have
# # no surrounding space.
@@ -16702,18 +16914,17 @@ end
# # good
# h = {a: 1, b: 2}
# foo = {{a: 1} => {b: {c: 2}}}
-# @example EnforcedStyle: compact
-# # The `compact` style normally requires a space inside
-# # hash braces, with the exception that successive left
-# # braces or right braces are collapsed together in nested hashes.
+# @example EnforcedStyle: space (default)
+# # The `space` style enforces that hash literals have
+# # surrounding space.
#
# # bad
-# h = { a: { b: 2 } }
-# foo = { { a: 1 } => { b: { c: 2 } } }
+# h = {a: 1, b: 2}
+# foo = {{ a: 1 } => { b: { c: 2 }}}
#
# # good
-# h = { a: { b: 2 }}
-# foo = {{ a: 1 } => { b: { c: 2 }}}
+# h = { a: 1, b: 2 }
+# foo = { { a: 1 } => { b: { c: 2 } } }
# @example EnforcedStyleForEmptyBraces: no_space (default)
# # The `no_space` EnforcedStyleForEmptyBraces style enforces that
# # empty hash braces do not contain spaces.
@@ -16751,7 +16962,7 @@ class RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#84
def on_hash(node); end
- # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#84
+ # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#92
def on_hash_pattern(node); end
private
@@ -16807,6 +17018,26 @@ RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), S
# Checks for spaces inside ordinary round parentheses.
#
+# @example EnforcedStyle: compact
+# # The `compact` style enforces that parentheses have a space at the
+# # beginning with the exception that successive parentheses are allowed.
+# # Note: Empty parentheses should not have spaces.
+#
+# # bad
+# f(3)
+# g = (a + 3)
+# y( )
+# g( f( x ) )
+# g( f( x( 3 ) ), 5 )
+# g( ( ( 3 + 5 ) * f) ** x, 5 )
+#
+# # good
+# f( 3 )
+# g = ( a + 3 )
+# y()
+# g( f( x ))
+# g( f( x( 3 )), 5 )
+# g((( 3 + 5 ) * f ) ** x, 5 )
# @example EnforcedStyle: no_space (default)
# # The `no_space` style enforces that parentheses do not have spaces.
#
@@ -16833,26 +17064,6 @@ RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), S
# f( 3 )
# g = ( a + 3 )
# y()
-# @example EnforcedStyle: compact
-# # The `compact` style enforces that parentheses have a space at the
-# # beginning with the exception that successive parentheses are allowed.
-# # Note: Empty parentheses should not have spaces.
-#
-# # bad
-# f(3)
-# g = (a + 3)
-# y( )
-# g( f( x ) )
-# g( f( x( 3 ) ), 5 )
-# g( ( ( 3 + 5 ) * f) ** x, 5 )
-#
-# # good
-# f( 3 )
-# g = ( a + 3 )
-# y()
-# g( f( x ))
-# g( f( x( 3 )), 5 )
-# g((( 3 + 5 ) * f ) ** x, 5 )
#
# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#57
class RuboCop::Cop::Layout::SpaceInsideParens < ::RuboCop::Cop::Base
@@ -17147,12 +17358,12 @@ RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil),
# Looks for trailing blank lines and a final newline in the
# source code.
#
-# @example EnforcedStyle: final_newline (default)
-# # `final_newline` looks for one newline at the end of files.
+# @example EnforcedStyle: final_blank_line
+# # `final_blank_line` looks for one blank line followed by a new line
+# # at the end of files.
#
# # bad
# class Foo; end
-#
# # EOF
#
# # bad
@@ -17160,13 +17371,14 @@ RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil),
#
# # good
# class Foo; end
+#
# # EOF
-# @example EnforcedStyle: final_blank_line
-# # `final_blank_line` looks for one blank line followed by a new line
-# # at the end of files.
+# @example EnforcedStyle: final_newline (default)
+# # `final_newline` looks for one newline at the end of files.
#
# # bad
# class Foo; end
+#
# # EOF
#
# # bad
@@ -17174,7 +17386,6 @@ RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil),
#
# # good
# class Foo; end
-#
# # EOF
#
# source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#40
@@ -17466,19 +17677,19 @@ class RuboCop::Cop::Lint::AmbiguousAssignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30
def on_asgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40
def on_casgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40
def on_ivasgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#40
def on_lvasgn(node); end
private
@@ -17528,15 +17739,15 @@ RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsaf
#
# # good
# expect { do_something }.to change { object.attribute }
-# @example AllowedPatterns: [] (default)
-#
-# # bad
-# expect { do_something }.to change { object.attribute }
# @example AllowedPatterns: ['change']
#
# # good
# expect { do_something }.to change { object.attribute }
# expect { do_something }.to not_change { object.attribute }
+# @example AllowedPatterns: [] (default)
+#
+# # bad
+# expect { do_something }.to change { object.attribute }
#
# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#52
class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base
@@ -17544,7 +17755,7 @@ class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedPattern
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#75
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62
@@ -17752,7 +17963,7 @@ class RuboCop::Cop::Lint::AmbiguousRange < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RationalLiteral
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#68
+ # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#77
def on_erange(node); end
# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#68
@@ -17930,13 +18141,13 @@ RuboCop::Cop::Lint::ArrayLiteralInRegexp::MSG_UNKNOWN = T.let(T.unsafe(nil), Str
# if some_var == value
# do_something
# end
-# @example AllowSafeAssignment: true (default)
-# # good
+# @example AllowSafeAssignment: false
+# # bad
# if (some_var = value)
# do_something
# end
-# @example AllowSafeAssignment: false
-# # bad
+# @example AllowSafeAssignment: true (default)
+# # good
# if (some_var = value)
# do_something
# end
@@ -17949,10 +18160,10 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
+ # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#68
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
+ # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#67
def on_while(node); end
private
@@ -18050,7 +18261,7 @@ class RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands < ::RuboCop::Cop::
# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#57
def on_and(node); end
- # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#57
+ # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#62
def on_or(node); end
# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#50
@@ -18224,7 +18435,7 @@ class RuboCop::Cop::Lint::ConstantDefinitionInBlock < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85
+ # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#90
def on_module(node); end
private
@@ -18416,28 +18627,28 @@ RuboCop::Cop::Lint::ConstantReassignment::RESTRICT_ON_SEND = T.let(T.unsafe(nil)
#
# # good
# ::User::Login
-# @example Only: ['Login']
-# # Restrict this cop to only being concerned about certain constants
+# @example Ignore: ['Login']
+# # Restrict this cop not being concerned about certain constants
#
# # bad
-# Login
+# User
#
# # good
-# ::Login
+# ::User::Login
#
# # good
-# User::Login
-# @example Ignore: ['Login']
-# # Restrict this cop not being concerned about certain constants
+# Login
+# @example Only: ['Login']
+# # Restrict this cop to only being concerned about certain constants
#
# # bad
-# User
+# Login
#
# # good
-# ::User::Login
+# ::Login
#
# # good
-# Login
+# User::Login
#
# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#62
class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base
@@ -18955,14 +19166,6 @@ RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil
# rescue FooError, BarError
# handle_error
# end
-# @example IgnoreLiteralBranches: true
-# # good
-# case size
-# when "small" then 100
-# when "medium" then 250
-# when "large" then 1000
-# else 250
-# end
# @example IgnoreConstantBranches: true
# # good
# case size
@@ -18980,22 +19183,30 @@ RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil
# else
# do_foo
# end
+# @example IgnoreLiteralBranches: true
+# # good
+# case size
+# when "small" then 100
+# when "medium" then 250
+# when "large" then 1000
+# else 250
+# end
#
# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#99
class RuboCop::Cop::Lint::DuplicateBranch < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102
def on_branching_statement(node); end
- # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102
+ # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#110
def on_case(node); end
- # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102
+ # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#111
def on_case_match(node); end
# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#114
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102
+ # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#112
def on_rescue(node); end
private
@@ -19615,7 +19826,7 @@ RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DuplicateSetElement < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#54
+ # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#71
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#54
@@ -19656,7 +19867,7 @@ class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25
def each_with_object?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29
+ # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#36
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29
@@ -19745,22 +19956,22 @@ RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String)
#
# # good
# items.each { |item| puts item }
-# @example AllowComments: true (default)
-# # good
+# @example AllowComments: false
+# # bad
# items.each do |item|
# # TODO: implement later (inner comment)
# end
#
# items.each { |item| } # TODO: implement later (inline comment)
-# @example AllowComments: false
-# # bad
+# @example AllowComments: true (default)
+# # good
# items.each do |item|
# # TODO: implement later (inner comment)
# end
#
# items.each { |item| } # TODO: implement later (inline comment)
-# @example AllowEmptyLambdas: true (default)
-# # good
+# @example AllowEmptyLambdas: false
+# # bad
# allow(subject).to receive(:callable).and_return(-> {})
#
# placeholder = lambda do
@@ -19770,8 +19981,8 @@ RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String)
# proc { }
#
# Proc.new { }
-# @example AllowEmptyLambdas: false
-# # bad
+# @example AllowEmptyLambdas: true (default)
+# # good
# allow(subject).to receive(:callable).and_return(-> {})
#
# placeholder = lambda do
@@ -19936,15 +20147,15 @@ RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String)
# elsif other_condition
# do_something_else
# end
-# @example AllowComments: true (default)
-# # good
+# @example AllowComments: false
+# # bad
# if condition
# do_something
# elsif other_condition
# # noop
# end
-# @example AllowComments: false
-# # bad
+# @example AllowComments: true (default)
+# # good
# if condition
# do_something
# elsif other_condition
@@ -20078,12 +20289,12 @@ RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String)
#
# # good
# # File containing non commented source lines
-# @example AllowComments: true (default)
-# # good
-# # File consisting only of comments
# @example AllowComments: false
# # bad
# # File consisting only of comments
+# @example AllowComments: true (default)
+# # good
+# # File consisting only of comments
#
# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#23
class RuboCop::Cop::Lint::EmptyFile < ::RuboCop::Cop::Base
@@ -20129,18 +20340,18 @@ RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String)
# in [a, b]
# nil
# end
-# @example AllowComments: true (default)
+# @example AllowComments: false
#
-# # good
+# # bad
# case condition
# in [a]
# do_something
# in [a, b]
# # noop
# end
-# @example AllowComments: false
+# @example AllowComments: true (default)
#
-# # bad
+# # good
# case condition
# in [a]
# do_something
@@ -20200,23 +20411,23 @@ RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String)
# when bar
# nil
# end
-# @example AllowComments: true (default)
+# @example AllowComments: false
#
-# # good
+# # bad
# case condition
# when foo
# do_something
# when bar
-# # noop
+# # do nothing
# end
-# @example AllowComments: false
+# @example AllowComments: true (default)
#
-# # bad
+# # good
# case condition
# when foo
# do_something
# when bar
-# # do nothing
+# # noop
# end
#
# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#45
@@ -20460,7 +20671,7 @@ class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#78
def on_case(node); end
- # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#65
+ # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#76
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#65
@@ -20691,7 +20902,7 @@ class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37
def id_as_hash_key?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41
+ # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#44
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41
@@ -20774,7 +20985,7 @@ class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37
+ # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#46
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37
@@ -21022,7 +21233,7 @@ class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52
+ # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#55
def on_module(node); end
# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48
@@ -21066,7 +21277,7 @@ RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String
# It is configurable to suggest using either `StandardError` (default) or
# `RuntimeError` instead.
#
-# @example EnforcedStyle: standard_error (default)
+# @example EnforcedStyle: runtime_error
# # bad
#
# class C < Exception; end
@@ -21075,10 +21286,10 @@ RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String
#
# # good
#
-# class C < StandardError; end
+# class C < RuntimeError; end
#
-# C = Class.new(StandardError)
-# @example EnforcedStyle: runtime_error
+# C = Class.new(RuntimeError)
+# @example EnforcedStyle: standard_error (default)
# # bad
#
# class C < Exception; end
@@ -21087,9 +21298,9 @@ RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String
#
# # good
#
-# class C < RuntimeError; end
+# class C < StandardError; end
#
-# C = Class.new(RuntimeError)
+# C = Class.new(StandardError)
#
# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#40
class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base
@@ -21396,10 +21607,10 @@ class RuboCop::Cop::Lint::LiteralAssignmentInCondition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#52
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#51
def on_while(node); end
private
@@ -21809,7 +22020,7 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#55
def each_unsafe_regexp_range(node); end
- # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37
+ # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#43
def on_erange(node); end
# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37
@@ -21967,7 +22178,7 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe
# end
# end
# end
-# @example AllowedMethods: [] (default)
+# @example AllowedMethods: ['has_many']
# # bad
# def do_something
# has_many :articles do
@@ -21975,7 +22186,7 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe
# end
# end
# end
-# @example AllowedMethods: ['has_many']
+# @example AllowedMethods: [] (default)
# # bad
# def do_something
# has_many :articles do
@@ -21983,16 +22194,16 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe
# end
# end
# end
-# @example AllowedPatterns: [] (default)
-# # bad
+# @example AllowedPatterns: ['baz']
+# # good
# def foo(obj)
# obj.do_baz do
# def bar
# end
# end
# end
-# @example AllowedPatterns: ['baz']
-# # good
+# @example AllowedPatterns: [] (default)
+# # bad
# def foo(obj)
# obj.do_baz do
# def bar
@@ -22014,7 +22225,7 @@ class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97
+ # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#111
def on_defs(node); end
private
@@ -22120,7 +22331,7 @@ class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38
def on_block_body_of_reduce(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#24
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#33
def on_numblock(node); end
private
@@ -22169,10 +22380,10 @@ class RuboCop::Cop::Lint::NoReturnInBeginEndBlocks < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41
def on_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41
+ # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#49
def on_op_asgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41
+ # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#48
def on_or_asgn(node); end
end
@@ -22527,14 +22738,14 @@ RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String)
#
# # good
# 10.minutes.to_i
-# @example AllowedPatterns: [] (default)
-#
-# # bad
-# 10.minutes.to_i
# @example AllowedPatterns: ['min*']
#
# # good
# 10.minutes.to_i
+# @example AllowedPatterns: [] (default)
+#
+# # bad
+# 10.minutes.to_i
# @example IgnoredClasses: [Time, DateTime] (default)
#
# # good
@@ -22546,7 +22757,7 @@ class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedPattern
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#106
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#110
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#106
@@ -22700,7 +22911,7 @@ class RuboCop::Cop::Lint::NumericOperationWithConstantResult < ::RuboCop::Cop::B
# source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#56
def abbreviated_assignment_with_constant_result?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#59
+ # source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#67
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#69
@@ -22811,7 +23022,7 @@ RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String)
#
# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#38
class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base
- # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55
+ # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#64
def after_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55
@@ -22889,7 +23100,7 @@ class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24
+ # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#35
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24
@@ -23728,14 +23939,14 @@ RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), R
# else
# baz
# end
-# @example AllowPercentLiteralArrayArgument: true (default)
-#
-# # good
-# do_something(*%w[foo bar baz])
# @example AllowPercentLiteralArrayArgument: false
#
# # bad
# do_something(*%w[foo bar baz])
+# @example AllowPercentLiteralArrayArgument: true (default)
+#
+# # good
+# do_something(*%w[foo bar baz])
#
# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#71
class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Base
@@ -23966,7 +24177,7 @@ class RuboCop::Cop::Lint::RedundantTypeConversion < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#135
def integer_constructor?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#189
+ # source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#205
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/redundant_type_conversion.rb#189
@@ -24077,10 +24288,10 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#56
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#55
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#61
@@ -24132,10 +24343,10 @@ class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#52
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#51
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#57
@@ -24242,7 +24453,7 @@ RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
- # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31
+ # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#40
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31
@@ -24296,7 +24507,7 @@ RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String)
#
# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#40
class RuboCop::Cop::Lint::RequireRangeParentheses < ::RuboCop::Cop::Base
- # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43
+ # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#53
def on_erange(node); end
# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43
@@ -24596,7 +24807,7 @@ class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#48
def on_and(node); end
- # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#48
+ # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#63
def on_or(node); end
private
@@ -24759,22 +24970,22 @@ RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String)
#
# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#34
class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#82
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#87
def on_and_asgn(node); end
# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#67
def on_casgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#44
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#55
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#64
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#55
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#65
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#55
+ # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#63
def on_ivasgn(node); end
# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#55
@@ -25310,71 +25521,71 @@ RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil)
# rescue
# handle_exception
# end
-# @example AllowComments: true (default)
+# @example AllowComments: false
#
-# # good
+# # bad
# def some_method
# do_something
# rescue
# # do nothing
# end
#
-# # good
+# # bad
# begin
# do_something
# rescue
# # do nothing
# end
-# @example AllowComments: false
+# @example AllowComments: true (default)
#
-# # bad
+# # good
# def some_method
# do_something
# rescue
# # do nothing
# end
#
-# # bad
+# # good
# begin
# do_something
# rescue
# # do nothing
# end
-# @example AllowNil: true (default)
+# @example AllowNil: false
#
-# # good
+# # bad
# def some_method
# do_something
# rescue
# nil
# end
#
-# # good
+# # bad
# begin
# do_something
# rescue
-# # do nothing
+# nil
# end
#
-# # good
+# # bad
# do_something rescue nil
-# @example AllowNil: false
+# @example AllowNil: true (default)
#
-# # bad
+# # good
# def some_method
# do_something
# rescue
# nil
# end
#
-# # bad
+# # good
# begin
# do_something
# rescue
-# nil
+# # do nothing
# end
#
-# # bad
+# # good
# do_something rescue nil
#
# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#105
@@ -25481,21 +25692,6 @@ RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion::MSG = T.let(T.unsafe(
# :underscored_symbol
# :'hyphenated-string'
# :"string_#{interpolation}"
-# @example EnforcedStyle: strict (default)
-#
-# # bad
-# {
-# 'a': 1,
-# "b": 2,
-# 'c-d': 3
-# }
-#
-# # good (don't quote keys that don't require quoting)
-# {
-# a: 1,
-# b: 2,
-# 'c-d': 3
-# }
# @example EnforcedStyle: consistent
#
# # bad
@@ -25515,6 +25711,21 @@ RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion::MSG = T.let(T.unsafe(
# a: 1,
# b: 2
# }
+# @example EnforcedStyle: strict (default)
+#
+# # bad
+# {
+# 'a': 1,
+# "b": 2,
+# 'c-d': 3
+# }
+#
+# # good (don't quote keys that don't require quoting)
+# {
+# a: 1,
+# b: 2,
+# 'c-d': 3
+# }
#
# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#68
class RuboCop::Cop::Lint::SymbolConversion < ::RuboCop::Cop::Base
@@ -25970,10 +26181,10 @@ class RuboCop::Cop::Lint::UnexpectedBlockArity < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44
+ # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#56
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44
+ # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#55
def on_numblock(node); end
private
@@ -26103,7 +26314,7 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115
+ # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#122
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#70
@@ -26214,13 +26425,13 @@ class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#41
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#41
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#46
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#52
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#62
def on_kwbegin(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#41
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#45
def on_numblock(node); end
private
@@ -26348,25 +26559,25 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#98
def on_for(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#105
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#104
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#95
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#97
def on_until_post(node); end
# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92
def on_while(node); end
- # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92
+ # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#96
def on_while_post(node); end
private
@@ -26453,12 +26664,6 @@ end
# define_method(:foo) do |_bar|
# puts :baz
# end
-# @example IgnoreEmptyBlocks: true (default)
-# # good
-# do_something { |unused| }
-# @example IgnoreEmptyBlocks: false
-# # bad
-# do_something { |unused| }
# @example AllowUnusedKeywordArguments: false (default)
# # bad
# do_something do |unused: 42|
@@ -26469,6 +26674,12 @@ end
# do_something do |unused: 42|
# foo
# end
+# @example IgnoreEmptyBlocks: false
+# # bad
+# do_something { |unused| }
+# @example IgnoreEmptyBlocks: true (default)
+# # good
+# do_something { |unused| }
#
# source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#55
class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base
@@ -26544,14 +26755,15 @@ end
# Checks for unused method arguments.
#
-# @example IgnoreNotImplementedMethods: false
+# @example
# # bad
-# def do_something(unused)
-# raise NotImplementedError
+# def some_method(used, unused, _unused_but_allowed)
+# puts used
# end
#
-# def do_something_else(unused)
-# fail "TODO"
+# # good
+# def some_method(used, _unused, _unused_but_allowed)
+# puts used
# end
# @example AllowUnusedKeywordArguments: false (default)
# # bad
@@ -26563,19 +26775,17 @@ end
# def do_something(used, unused: 42)
# used
# end
-# @example IgnoreEmptyMethods: true (default)
-# # good
-# def do_something(unused)
-# end
# @example IgnoreEmptyMethods: false
# # bad
# def do_something(unused)
# end
-# @example IgnoreNotImplementedMethods: true (default)
-# # with default value of `NotImplementedExceptions: ['NotImplementedError']`
-#
+# @example IgnoreEmptyMethods: true (default)
# # good
# def do_something(unused)
+# end
+# @example IgnoreNotImplementedMethods: false
+# # bad
+# def do_something(unused)
# raise NotImplementedError
# end
#
@@ -26589,15 +26799,16 @@ end
# def do_something(unused)
# raise AbstractMethodError
# end
-# @example
-# # bad
-# def some_method(used, unused, _unused_but_allowed)
-# puts used
-# end
+# @example IgnoreNotImplementedMethods: true (default)
+# # with default value of `NotImplementedExceptions: ['NotImplementedError']`
#
# # good
-# def some_method(used, _unused, _unused_but_allowed)
-# puts used
+# def do_something(unused)
+# raise NotImplementedError
+# end
+#
+# def do_something_else(unused)
+# fail "TODO"
# end
#
# source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#70
@@ -26875,16 +27086,16 @@ class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#145
+ # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#152
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139
+ # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#142
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#145
+ # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#151
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139
+ # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#143
def on_sclass(node); end
# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#174
@@ -27150,7 +27361,7 @@ class RuboCop::Cop::Lint::UselessDefaultValueArgument < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#59
def default_value_argument_and_block(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#69
+ # source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#80
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/useless_default_value_argument.rb#69
@@ -27289,7 +27500,7 @@ class RuboCop::Cop::Lint::UselessMethodDefinition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43
+ # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#53
def on_defs(node); end
private
@@ -27343,7 +27554,7 @@ RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessNumericOperation < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#43
+ # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#53
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#55
@@ -27639,7 +27850,7 @@ class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37
+ # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#54
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#59
@@ -27824,13 +28035,13 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/void.rb#96
def on_ensure(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#81
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#89
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#91
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#94
def on_kwbegin(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#81
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#88
def on_numblock(node); end
private
@@ -27978,8 +28189,8 @@ class RuboCop::Cop::MessageAnnotator
# :DisplayStyleGuide [Boolean] Include styleguide and reference URLs
# :ExtraDetails [Boolean] Include cop details
# :DisplayCopNames [Boolean] Include cop name
- # @param cop_name [String] for specific cop name
# @param cop_config [Hash] configs for specific cop, from config#for_cop
+ # @param cop_name [String] for specific cop name
# @param options [Hash, nil] optional
# @return [MessageAnnotator] a new instance of MessageAnnotator
#
@@ -28078,7 +28289,7 @@ module RuboCop::Cop::MethodComplexity
# source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#38
def define_method?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#15
def max=(value); end
# @api private
@@ -28093,17 +28304,17 @@ module RuboCop::Cop::MethodComplexity
# @api private
#
- # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17
+ # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#22
def on_defs(node); end
# @api private
#
- # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24
+ # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#33
def on_itblock(node); end
# @api private
#
- # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24
+ # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#32
def on_numblock(node); end
private
@@ -28240,10 +28451,10 @@ class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52
+ # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#60
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52
+ # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#59
def on_numblock(node); end
private
@@ -28271,7 +28482,7 @@ RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String)
#
# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#14
class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#17
def max=(value); end
# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#19
@@ -28414,7 +28625,7 @@ class RuboCop::Cop::Metrics::CollectionLiteralLength < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#60
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#60
+ # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#63
def on_hash(node); end
# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#65
@@ -28542,13 +28753,13 @@ class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#50
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#50
+ # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#55
def on_defs(node); end
- # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#57
+ # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#66
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#57
+ # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#65
def on_numblock(node); end
private
@@ -28642,13 +28853,11 @@ end
# This cop also checks for the maximum number of optional parameters.
# This can be configured using the `MaxOptionalParameters` config option.
#
-# @example Max: 3
-# # good
-# def foo(a, b, c = 1)
-# end
-# @example Max: 2
-# # bad
-# def foo(a, b, c = 1)
+# @example CountKeywordArgs: false
+# # don't count keyword args towards the maximum
+#
+# # good (assuming Max is 3)
+# def foo(a, b, c, d: 1)
# end
# @example CountKeywordArgs: true (default)
# # counts keyword args towards the maximum
@@ -28660,30 +28869,32 @@ end
# # good (assuming Max is 3)
# def foo(a, b, c: 1)
# end
-# @example CountKeywordArgs: false
-# # don't count keyword args towards the maximum
-#
-# # good (assuming Max is 3)
-# def foo(a, b, c, d: 1)
+# @example Max: 2
+# # bad
+# def foo(a, b, c = 1)
# end
-# @example MaxOptionalParameters: 3 (default)
+# @example Max: 3
# # good
-# def foo(a = 1, b = 2, c = 3)
+# def foo(a, b, c = 1)
# end
# @example MaxOptionalParameters: 2
# # bad
# def foo(a = 1, b = 2, c = 3)
# end
+# @example MaxOptionalParameters: 3 (default)
+# # good
+# def foo(a = 1, b = 2, c = 3)
+# end
#
# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#70
class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#121
def argument_to_lambda_or_proc?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#71
def max=(value); end
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#72
def max_optional_parameters=(value); end
# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#104
@@ -28692,7 +28903,7 @@ class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90
+ # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#102
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#81
@@ -28781,13 +28992,13 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
# @return [AbcSizeCalculator] a new instance of AbcSizeCalculator
#
- # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#37
+ # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#34
def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#42
def calculate; end
- # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#60
+ # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#76
def calculate_node(node); end
# @return [Boolean]
@@ -28795,7 +29006,7 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#65
def else_branch?(node); end
- # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#54
+ # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#51
def evaluate_branch_nodes(node); end
# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#60
@@ -29252,7 +29463,7 @@ end
#
# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#7
module RuboCop::Cop::MultilineExpressionIndentation
- # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14
+ # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#25
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14
@@ -29599,7 +29810,7 @@ class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42
+ # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#50
def on_defs(node); end
private
@@ -29661,14 +29872,14 @@ RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), Stri
#
# # good
# params[:width_gteq]
-# @example AsciiConstants: true (default)
-# # bad
+# @example AsciiConstants: false
+# # good
# class Foö
# end
#
# FOÖ = "foo"
-# @example AsciiConstants: false
-# # good
+# @example AsciiConstants: true (default)
+# # bad
# class Foö
# end
#
@@ -29796,7 +30007,7 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#68
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#68
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87
def on_defs(node); end
private
@@ -29925,7 +30136,7 @@ class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32
+ # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#41
def on_module(node); end
end
@@ -30137,16 +30348,6 @@ RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp)
# Checks that your heredocs are using the configured case.
# By default it is configured to enforce uppercase heredocs.
#
-# @example EnforcedStyle: uppercase (default)
-# # bad
-# <<-sql
-# SELECT * FROM foo
-# sql
-#
-# # good
-# <<-SQL
-# SELECT * FROM foo
-# SQL
# @example EnforcedStyle: lowercase
# # bad
# <<-SQL
@@ -30157,6 +30358,16 @@ RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp)
# <<-sql
# SELECT * FROM foo
# sql
+# @example EnforcedStyle: uppercase (default)
+# # bad
+# <<-sql
+# SELECT * FROM foo
+# sql
+#
+# # good
+# <<-SQL
+# SELECT * FROM foo
+# SQL
#
# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#30
class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Base
@@ -30250,14 +30461,14 @@ RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String)
# The cop supports autocorrection when there is only one suggestion. When there are multiple
# suggestions, the best suggestion cannot be identified and will not be autocorrected.
#
-# @example FlaggedTerms: { whitelist: { Suggestions: ['allowlist'] } }
-# # Suggest replacing identifier whitelist with allowlist
+# @example FlaggedTerms: { master: { AllowedRegex: 'master\'?s degree' } }
+# # Specify allowed uses of the flagged term as a string or regexp.
#
# # bad
-# whitelist_users = %w(user1 user1)
+# # They had a masters
#
# # good
-# allowlist_users = %w(user1 user2)
+# # They had a master's degree
# @example FlaggedTerms: { master: { Suggestions: ['main', 'primary', 'leader'] } }
# # Suggest replacing master in an instance variable name with main, primary, or leader
#
@@ -30266,6 +30477,14 @@ RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String)
#
# # good
# @primary_node = 'node1.example.com'
+# @example FlaggedTerms: { slave: { WholeWord: true } }
+# # Specify that only terms that are full matches will be flagged.
+#
+# # bad
+# Slave
+#
+# # good (won't be flagged despite containing `slave`)
+# TeslaVehicle
# @example FlaggedTerms: { whitelist: { Regex: !ruby/regexp '/white[-_\s]?list' } }
# # Identify problematic terms using a Regexp
#
@@ -30274,22 +30493,14 @@ RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String)
#
# # good
# allow_list = %w(user1 user2)
-# @example FlaggedTerms: { master: { AllowedRegex: 'master\'?s degree' } }
-# # Specify allowed uses of the flagged term as a string or regexp.
+# @example FlaggedTerms: { whitelist: { Suggestions: ['allowlist'] } }
+# # Suggest replacing identifier whitelist with allowlist
#
# # bad
-# # They had a masters
+# whitelist_users = %w(user1 user1)
#
# # good
-# # They had a master's degree
-# @example FlaggedTerms: { slave: { WholeWord: true } }
-# # Specify that only terms that are full matches will be flagged.
-#
-# # bad
-# Slave
-#
-# # good (won't be flagged despite containing `slave`)
-# TeslaVehicle
+# allowlist_users = %w(user1 user2)
#
# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#74
class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base
@@ -30389,30 +30600,47 @@ class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct
# Returns the value of attribute position
#
# @return [Object] the current value of position
+ #
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def position; end
# Sets the attribute position
#
# @param value [Object] the value to set the attribute position to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def position=(_); end
# Returns the value of attribute word
#
# @return [Object] the current value of word
+ #
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def word; end
# Sets the attribute word
#
# @param value [Object] the value to set the attribute word to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def word=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def members; end
+
+ # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82
def new(*_arg0); end
end
end
@@ -30428,6 +30656,42 @@ end
# convention that is used to implicitly indicate that an ivar should not
# be set or referenced outside of the memoization method.
#
+# @example EnforcedStyleForLeadingUnderscores :optional
+# # bad
+# def foo
+# @something ||= calculate_expensive_thing
+# end
+#
+# # good
+# def foo
+# @foo ||= calculate_expensive_thing
+# end
+#
+# # good
+# def foo
+# @_foo ||= calculate_expensive_thing
+# end
+#
+# # good
+# def _foo
+# @_foo ||= calculate_expensive_thing
+# end
+#
+# # good
+# def foo
+# return @_foo if defined?(@_foo)
+# @_foo = calculate_expensive_thing
+# end
+#
+# # good
+# define_method(:foo) do
+# @foo ||= calculate_expensive_thing
+# end
+#
+# # good
+# define_method(:foo) do
+# @_foo ||= calculate_expensive_thing
+# end
# @example EnforcedStyleForLeadingUnderscores: disallowed (default)
# # bad
# # Method foo is memoized using an instance variable that is
@@ -30515,42 +30779,6 @@ end
# return @_foo if defined?(@_foo)
# @_foo = calculate_expensive_thing
# end
-# @example EnforcedStyleForLeadingUnderscores :optional
-# # bad
-# def foo
-# @something ||= calculate_expensive_thing
-# end
-#
-# # good
-# def foo
-# @foo ||= calculate_expensive_thing
-# end
-#
-# # good
-# def foo
-# @_foo ||= calculate_expensive_thing
-# end
-#
-# # good
-# def _foo
-# @_foo ||= calculate_expensive_thing
-# end
-#
-# # good
-# def foo
-# return @_foo if defined?(@_foo)
-# @_foo = calculate_expensive_thing
-# end
-#
-# # good
-# define_method(:foo) do
-# @foo ||= calculate_expensive_thing
-# end
-#
-# # good
-# define_method(:foo) do
-# @_foo ||= calculate_expensive_thing
-# end
#
# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#148
class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Base
@@ -30635,18 +30863,18 @@ RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let(
# - '_gen1\z'
# ----
#
-# @example EnforcedStyle: snake_case (default)
-# # bad
-# def fooBar; end
-#
-# # good
-# def foo_bar; end
# @example EnforcedStyle: camelCase
# # bad
# def foo_bar; end
#
# # good
# def fooBar; end
+# @example EnforcedStyle: snake_case (default)
+# # bad
+# def fooBar; end
+#
+# # good
+# def foo_bar; end
# @example ForbiddenIdentifiers: ['def', 'super']
# # bad
# def def; end
@@ -30669,7 +30897,7 @@ class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/method_name.rb#90
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/method_name.rb#90
+ # source://rubocop//lib/rubocop/cop/naming/method_name.rb#99
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/naming/method_name.rb#75
@@ -30755,7 +30983,7 @@ class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49
+ # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#54
def on_defs(node); end
end
@@ -30785,6 +31013,22 @@ end
# The cop can furthermore be configured to allow all bang methods (method names
# ending with `!`), with `AllowBangMethods: true` (default false).
#
+# @example AllowBangMethods: false (default)
+# # bad
+# def save!
+# true
+# end
+# @example AllowBangMethods: true
+# # good
+# def save!
+# true
+# end
+# @example Mode: aggressive
+# # bad - the method returns nil in some cases
+# def foo?
+# return unless bar?
+# true
+# end
# @example Mode: conservative (default)
# # bad
# def foo
@@ -30856,22 +31100,6 @@ end
# def foo
# bar?
# end
-# @example Mode: aggressive
-# # bad - the method returns nil in some cases
-# def foo?
-# return unless bar?
-# true
-# end
-# @example AllowBangMethods: false (default)
-# # bad
-# def save!
-# true
-# end
-# @example AllowBangMethods: true
-# # good
-# def save!
-# true
-# end
#
# source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#123
class RuboCop::Cop::Naming::PredicateMethod < ::RuboCop::Cop::Base
@@ -30881,7 +31109,7 @@ class RuboCop::Cop::Naming::PredicateMethod < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#130
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#130
+ # source://rubocop//lib/rubocop/cop/naming/predicate_method.rb#142
def on_defs(node); end
private
@@ -30979,34 +31207,54 @@ RuboCop::Cop::Naming::PredicateMethod::MSG_PREDICATE = T.let(T.unsafe(nil), Stri
# offenses if the method has a Sorbet `sig` with a return type of
# `T::Boolean`. Dynamic methods are not supported with this configuration.
#
+# @example AllowedMethods: ['is_a?'] (default)
+# # Despite starting with the `is_` prefix, this method is allowed
+# # good
+# def is_a?(value)
+# end
+# @example AllowedMethods: ['is_even?']
+# # good
+# def is_even?(value)
+# end
# @example MethodDefinitionMacros: ['def_node_matcher']
# # bad
# def_node_matcher(:is_even) { |value| }
#
# # good
# def_node_matcher(:even?) { |value| }
-# @example NamePrefix: ['seems_to_be_']
+# @example MethodDefinitionMacros: ['define_method', 'define_singleton_method'] (default)
# # bad
-# def seems_to_be_even(value)
+# define_method(:is_even) { |value| }
+#
+# # good
+# define_method(:even?) { |value| }
+# @example NamePrefix: ['is_', 'has_', 'have_'] (default)
+# # bad
+# def is_even(value)
# end
#
-# # When ForbiddenPrefixes: ['seems_to_be_']
+# # When ForbiddenPrefixes: ['is_', 'has_', 'have_'] (default)
# # good
# def even?(value)
# end
#
# # When ForbiddenPrefixes: []
# # good
-# def seems_to_be_even?(value)
+# def is_even?(value)
# end
-# @example AllowedMethods: ['is_a?'] (default)
-# # Despite starting with the `is_` prefix, this method is allowed
+# @example NamePrefix: ['seems_to_be_']
+# # bad
+# def seems_to_be_even(value)
+# end
+#
+# # When ForbiddenPrefixes: ['seems_to_be_']
# # good
-# def is_a?(value)
+# def even?(value)
# end
-# @example AllowedMethods: ['is_even?']
+#
+# # When ForbiddenPrefixes: []
# # good
-# def is_even?(value)
+# def seems_to_be_even?(value)
# end
# @example UseSorbetSigs: false (default)
# # bad
@@ -31030,26 +31278,6 @@ RuboCop::Cop::Naming::PredicateMethod::MSG_PREDICATE = T.let(T.unsafe(nil), Stri
# sig { returns(T::Boolean) }
# def odd?(value)
# end
-# @example MethodDefinitionMacros: ['define_method', 'define_singleton_method'] (default)
-# # bad
-# define_method(:is_even) { |value| }
-#
-# # good
-# define_method(:even?) { |value| }
-# @example NamePrefix: ['is_', 'has_', 'have_'] (default)
-# # bad
-# def is_even(value)
-# end
-#
-# # When ForbiddenPrefixes: ['is_', 'has_', 'have_'] (default)
-# # good
-# def even?(value)
-# end
-#
-# # When ForbiddenPrefixes: []
-# # good
-# def is_even?(value)
-# end
#
# source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#103
class RuboCop::Cop::Naming::PredicatePrefix < ::RuboCop::Cop::Base
@@ -31061,7 +31289,7 @@ class RuboCop::Cop::Naming::PredicatePrefix < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#126
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#126
+ # source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#139
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/naming/predicate_prefix.rb#113
@@ -31220,24 +31448,24 @@ RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil),
#
# Method definitions and method calls are not affected by this cop.
#
-# @example EnforcedStyle: snake_case (default)
-# # bad
+# @example AllowedIdentifiers: ['fooBar']
+# # good (with EnforcedStyle: snake_case)
# fooBar = 1
-#
-# # good
-# foo_bar = 1
+# @example AllowedPatterns: ['_v\d+\z']
+# # good (with EnforcedStyle: camelCase)
+# release_v1 = true
# @example EnforcedStyle: camelCase
# # bad
# foo_bar = 1
#
# # good
# fooBar = 1
-# @example AllowedIdentifiers: ['fooBar']
-# # good (with EnforcedStyle: snake_case)
+# @example EnforcedStyle: snake_case (default)
+# # bad
# fooBar = 1
-# @example AllowedPatterns: ['_v\d+\z']
-# # good (with EnforcedStyle: camelCase)
-# release_v1 = true
+#
+# # good
+# foo_bar = 1
# @example ForbiddenIdentifiers: ['fooBar']
# # bad (in all cases)
# fooBar = 1
@@ -31261,13 +31489,13 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ForbiddenIdentifiers
include ::RuboCop::Cop::ForbiddenPattern
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#78
def on_arg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#84
def on_blockarg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#77
def on_cvasgn(node); end
# Only forbidden names are checked for global variable assignment
@@ -31275,28 +31503,28 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#88
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#76
def on_ivasgn(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#82
def on_kwarg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#81
def on_kwoptarg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#83
def on_kwrestarg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#85
def on_lvar(node); end
# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
def on_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#79
def on_optarg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#66
+ # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#80
def on_restarg(node); end
# @return [Boolean]
@@ -31332,25 +31560,24 @@ RuboCop::Cop::Naming::VariableName::MSG_FORBIDDEN = T.let(T.unsafe(nil), String)
# can be used to specify whether method names and symbols should be checked.
# Both are enabled by default.
#
+# @example AllowedIdentifiers: [capture3]
+# # good
+# expect(Open3).to receive(:capture3)
# @example AllowedPatterns: ['_v\d+\z']
# # good
# :some_sym_v1
-# @example EnforcedStyle: snake_case
+# @example CheckMethodNames: false
+# # good
+# def some_method_1; end
+# @example CheckMethodNames: true (default)
# # bad
-# :some_sym1
-# variable1 = 1
-#
-# def some_method1; end
-#
-# def some_method_1(arg1); end
-#
+# def some_method_1; end
+# @example CheckSymbols: false
# # good
# :some_sym_1
-# variable_1 = 1
-#
-# def some_method_1; end
-#
-# def some_method_1(arg_1); end
+# @example CheckSymbols: true (default)
+# # bad
+# :some_sym_1
# @example EnforcedStyle: non_integer
# # bad
# :some_sym1
@@ -31381,21 +31608,6 @@ RuboCop::Cop::Naming::VariableName::MSG_FORBIDDEN = T.let(T.unsafe(nil), String)
# def some_methodone(arg_one); end
#
# # In the following examples, we assume `EnforcedStyle: normalcase` (default).
-# @example CheckMethodNames: true (default)
-# # bad
-# def some_method_1; end
-# @example CheckMethodNames: false
-# # good
-# def some_method_1; end
-# @example CheckSymbols: true (default)
-# # bad
-# :some_sym_1
-# @example CheckSymbols: false
-# # good
-# :some_sym_1
-# @example AllowedIdentifiers: [capture3]
-# # good
-# expect(Open3).to receive(:capture3)
# @example EnforcedStyle: normalcase (default)
# # bad
# :some_sym_1
@@ -31412,6 +31624,22 @@ RuboCop::Cop::Naming::VariableName::MSG_FORBIDDEN = T.let(T.unsafe(nil), String)
# def some_method1; end
#
# def some_method1(arg1); end
+# @example EnforcedStyle: snake_case
+# # bad
+# :some_sym1
+# variable1 = 1
+#
+# def some_method1; end
+#
+# def some_method_1(arg1); end
+#
+# # good
+# :some_sym_1
+# variable_1 = 1
+#
+# def some_method_1; end
+#
+# def some_method_1(arg_1); end
#
# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#103
class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base
@@ -31424,22 +31652,22 @@ class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114
def on_arg(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114
+ # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#122
def on_cvasgn(node); end
# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#125
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#125
+ # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#131
def on_defs(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114
+ # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#123
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114
+ # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#121
def on_ivasgn(node); end
- # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114
+ # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#120
def on_lvasgn(node); end
# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#133
@@ -31585,7 +31813,7 @@ class RuboCop::Cop::Offense
# @api public
# @return [Boolean] returns `true` if two offenses contain same attributes
#
- # source://rubocop//lib/rubocop/cop/offense.rb#210
+ # source://rubocop//lib/rubocop/cop/offense.rb#216
def eql?(other); end
# @api private
@@ -31678,23 +31906,31 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct
# Returns the value of attribute begin_pos
#
# @return [Object] the current value of begin_pos
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def begin_pos; end
# Sets the attribute begin_pos
#
# @param value [Object] the value to set the attribute begin_pos to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def begin_pos=(_); end
# Returns the value of attribute column
#
# @return [Object] the current value of column
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def column; end
# Sets the attribute column
#
# @param value [Object] the value to set the attribute column to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def column=(_); end
# source://rubocop//lib/rubocop/cop/offense.rb#69
@@ -31703,41 +31939,55 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct
# Returns the value of attribute end_pos
#
# @return [Object] the current value of end_pos
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def end_pos; end
# Sets the attribute end_pos
#
# @param value [Object] the value to set the attribute end_pos to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def end_pos=(_); end
# Returns the value of attribute line
#
# @return [Object] the current value of line
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#65
def first_line; end
# Returns the value of attribute column
#
# @return [Object] the current value of column
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#67
def last_column; end
# Returns the value of attribute line
#
# @return [Object] the current value of line
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#66
def last_line; end
- # source://rubocop//lib/rubocop/cop/offense.rb#73
+ # source://rubocop//lib/rubocop/cop/offense.rb#76
def length; end
# Returns the value of attribute line
#
# @return [Object] the current value of line
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def line; end
# Sets the attribute line
#
# @param value [Object] the value to set the attribute line to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def line=(_); end
# source://rubocop//lib/rubocop/cop/offense.rb#73
@@ -31746,19 +31996,32 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct
# Returns the value of attribute source_line
#
# @return [Object] the current value of source_line
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def source_line; end
# Sets the attribute source_line
#
# @param value [Object] the value to set the attribute source_line to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def source_line=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def members; end
+
+ # source://rubocop//lib/rubocop/cop/offense.rb#63
def new(*_arg0); end
end
end
@@ -31914,8 +32177,8 @@ module RuboCop::Cop::PercentArray
# source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#26
def allowed_bracket_array?(node); end
- # @param node [RuboCop::AST::ArrayNode]
# @param elements [Array]
+ # @param node [RuboCop::AST::ArrayNode]
# @return [String]
#
# source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#83
@@ -32439,14 +32702,14 @@ class RuboCop::Cop::Registry
# Convert a user provided cop name into a properly namespaced name
#
- # @example gives back a correctly qualified cop name
- #
- # registry = RuboCop::Cop::Registry
- # registry.qualified_cop_name('Layout/EndOfLine', '') # => 'Layout/EndOfLine'
# @example fixes incorrect namespaces
#
# registry = RuboCop::Cop::Registry
# registry.qualified_cop_name('Lint/EndOfLine', '') # => 'Layout/EndOfLine'
+ # @example gives back a correctly qualified cop name
+ #
+ # registry = RuboCop::Cop::Registry
+ # registry.qualified_cop_name('Layout/EndOfLine', '') # => 'Layout/EndOfLine'
# @example namespaces bare cop identifiers
#
# registry = RuboCop::Cop::Registry
@@ -32674,10 +32937,10 @@ class RuboCop::Cop::Security::CompoundHash < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#64
def monuple_hash?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#88
+ # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#103
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#88
+ # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#104
def on_op_asgn(node); end
# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#88
@@ -33242,42 +33505,23 @@ module RuboCop::Cop::Style; end
# private alias_method :qux, :foo
#
# end
-# @example EnforcedStyle: inline
-# # bad
-# class Foo
-#
-# private
-#
-# def bar; end
-# def baz; end
-#
-# end
-#
-# # good
-# class Foo
-#
-# private def bar; end
-# private def baz; end
-#
-# end
-# @example AllowModifiersOnSymbols: true (default)
+# @example AllowModifiersOnAliasMethod: true (default)
# # good
# class Foo
#
-# private :bar, :baz
-# private *%i[qux quux]
-# private *METHOD_NAMES
-# private *private_methods
+# public alias_method :bar, :foo
+# protected alias_method :baz, :foo
+# private alias_method :qux, :foo
#
# end
-# @example AllowModifiersOnSymbols: false
+# @example AllowModifiersOnAttrs: false
# # bad
# class Foo
#
-# private :bar, :baz
-# private *%i[qux quux]
-# private *METHOD_NAMES
-# private *private_methods
+# public attr_reader :bar
+# protected attr_writer :baz
+# private attr_accessor :qux
+# private attr :quux
#
# end
# @example AllowModifiersOnAttrs: true (default)
@@ -33296,23 +33540,24 @@ module RuboCop::Cop::Style; end
# def private_method; end
#
# end
-# @example AllowModifiersOnAttrs: false
+# @example AllowModifiersOnSymbols: false
# # bad
# class Foo
#
-# public attr_reader :bar
-# protected attr_writer :baz
-# private attr_accessor :qux
-# private attr :quux
+# private :bar, :baz
+# private *%i[qux quux]
+# private *METHOD_NAMES
+# private *private_methods
#
# end
-# @example AllowModifiersOnAliasMethod: true (default)
+# @example AllowModifiersOnSymbols: true (default)
# # good
# class Foo
#
-# public alias_method :bar, :foo
-# protected alias_method :baz, :foo
-# private alias_method :qux, :foo
+# private :bar, :baz
+# private *%i[qux quux]
+# private *METHOD_NAMES
+# private *private_methods
#
# end
# @example EnforcedStyle: group (default)
@@ -33333,6 +33578,24 @@ module RuboCop::Cop::Style; end
# def baz; end
#
# end
+# @example EnforcedStyle: inline
+# # bad
+# class Foo
+#
+# private
+#
+# def bar; end
+# def baz; end
+#
+# end
+#
+# # good
+# class Foo
+#
+# private def bar; end
+# private def baz; end
+#
+# end
#
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#135
class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base
@@ -33516,10 +33779,10 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62
+ # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#70
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62
+ # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#69
def on_sclass(node); end
private
@@ -33735,7 +33998,10 @@ RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition::MSG = T.let(T.unsafe(nil)
# `||` instead. It can be configured to check only in conditions or in
# all contexts.
#
-# @example EnforcedStyle: conditionals (default)
+# @example EnforcedStyle: always
+# # bad
+# foo.save and return
+#
# # bad
# if foo and bar
# end
@@ -33744,15 +34010,9 @@ RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition::MSG = T.let(T.unsafe(nil)
# foo.save && return
#
# # good
-# foo.save and return
-#
-# # good
# if foo && bar
# end
-# @example EnforcedStyle: always
-# # bad
-# foo.save and return
-#
+# @example EnforcedStyle: conditionals (default)
# # bad
# if foo and bar
# end
@@ -33761,6 +34021,9 @@ RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition::MSG = T.let(T.unsafe(nil)
# foo.save && return
#
# # good
+# foo.save and return
+#
+# # good
# if foo && bar
# end
#
@@ -33776,19 +34039,19 @@ class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/and_or.rb#56
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/style/and_or.rb#51
+ # source://rubocop//lib/rubocop/cop/style/and_or.rb#54
def on_or(node); end
- # source://rubocop//lib/rubocop/cop/style/and_or.rb#56
+ # source://rubocop//lib/rubocop/cop/style/and_or.rb#61
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/style/and_or.rb#56
+ # source://rubocop//lib/rubocop/cop/style/and_or.rb#62
def on_until_post(node); end
- # source://rubocop//lib/rubocop/cop/style/and_or.rb#56
+ # source://rubocop//lib/rubocop/cop/style/and_or.rb#59
def on_while(node); end
- # source://rubocop//lib/rubocop/cop/style/and_or.rb#56
+ # source://rubocop//lib/rubocop/cop/style/and_or.rb#60
def on_while_post(node); end
private
@@ -33876,39 +34139,25 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# ----
# ====
#
-# @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default)
-# # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`.
-# def foo(&block)
-# bar(&block)
+# @example
+# # bad
+# def foo(*args, &block)
+# bar(*args, &block)
# end
#
-# # good
-# def foo(&)
-# bar(&)
-# end
-# @example UseAnonymousForwarding: true (default, only relevant for Ruby >= 3.2)
# # bad
# def foo(*args, **kwargs, &block)
-# args_only(*args)
-# kwargs_only(**kwargs)
-# block_only(&block)
+# bar(*args, **kwargs, &block)
# end
#
# # good
-# def foo(*, **, &)
-# args_only(*)
-# kwargs_only(**)
-# block_only(&)
-# end
-# @example UseAnonymousForwarding: false (only relevant for Ruby >= 3.2)
-# # good
-# def foo(*args, **kwargs, &block)
-# args_only(*args)
-# kwargs_only(**kwargs)
-# block_only(&block)
+# def foo(...)
+# bar(...)
# end
-# @example AllowOnlyRestArgument: true (default, only relevant for Ruby < 3.2)
-# # good
+# @example AllowOnlyRestArgument: false (only relevant for Ruby < 3.2)
+# # bad
+# # The following code can replace the arguments with `...`,
+# # but it will change the behavior. Because `...` forwards block also.
# def foo(*args)
# bar(*args)
# end
@@ -33916,10 +34165,8 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# def foo(**kwargs)
# bar(**kwargs)
# end
-# @example AllowOnlyRestArgument: false (only relevant for Ruby < 3.2)
-# # bad
-# # The following code can replace the arguments with `...`,
-# # but it will change the behavior. Because `...` forwards block also.
+# @example AllowOnlyRestArgument: true (default, only relevant for Ruby < 3.2)
+# # good
# def foo(*args)
# bar(*args)
# end
@@ -33927,15 +34174,15 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# def foo(**kwargs)
# bar(**kwargs)
# end
-# @example RedundantRestArgumentNames: ['args', 'arguments'] (default)
-# # bad
-# def foo(*args)
-# bar(*args)
+# @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default)
+# # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`.
+# def foo(&block)
+# bar(&block)
# end
#
# # good
-# def foo(*)
-# bar(*)
+# def foo(&)
+# bar(&)
# end
# @example RedundantKeywordRestArgumentNames: ['kwargs', 'options', 'opts'] (default)
# # bad
@@ -33947,20 +34194,36 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# def foo(**)
# bar(**)
# end
-# @example
+# @example RedundantRestArgumentNames: ['args', 'arguments'] (default)
# # bad
-# def foo(*args, &block)
-# bar(*args, &block)
+# def foo(*args)
+# bar(*args)
# end
#
+# # good
+# def foo(*)
+# bar(*)
+# end
+# @example UseAnonymousForwarding: false (only relevant for Ruby >= 3.2)
+# # good
+# def foo(*args, **kwargs, &block)
+# args_only(*args)
+# kwargs_only(**kwargs)
+# block_only(&block)
+# end
+# @example UseAnonymousForwarding: true (default, only relevant for Ruby >= 3.2)
# # bad
# def foo(*args, **kwargs, &block)
-# bar(*args, **kwargs, &block)
+# args_only(*args)
+# kwargs_only(**kwargs)
+# block_only(&block)
# end
#
# # good
-# def foo(...)
-# bar(...)
+# def foo(*, **, &)
+# args_only(*)
+# kwargs_only(**)
+# block_only(&)
# end
#
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#141
@@ -33972,7 +34235,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#160
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#160
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#180
def on_defs(node); end
private
@@ -34271,7 +34534,7 @@ RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ArrayFirstLast < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#35
+ # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#52
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/array_first_last.rb#35
@@ -34357,7 +34620,7 @@ class RuboCop::Cop::Style::ArrayIntersect < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#70
def bad_intersection_check?(param0 = T.unsafe(nil), param1); end
- # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#86
+ # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#99
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#86
@@ -34647,26 +34910,26 @@ class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base
# happens in `after_class` because a macro might have multiple attributes
# rewritten from it
#
- # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55
+ # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#70
def after_module(class_node); end
# Each offending macro is captured and registered in `on_class` but correction
# happens in `after_class` because a macro might have multiple attributes
# rewritten from it
#
- # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55
+ # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#69
def after_sclass(class_node); end
# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33
def on_class(class_node); end
- # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33
+ # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#50
def on_module(class_node); end
# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#29
def on_new_investigation; end
- # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33
+ # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#49
def on_sclass(class_node); end
private
@@ -34873,6 +35136,16 @@ RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String)
# `lambda`, `proc`, and `it` are their defaults.
# Additional methods can be added to the `AllowedMethods`.
#
+# @example AllowedMethods: ['lambda', 'proc', 'it' ] (default)
+#
+# # good
+# foo = lambda do |x|
+# puts "Hello, #{x}"
+# end
+#
+# foo = lambda do |x|
+# x * 100
+# end
# @example AllowedPatterns: ['map']
#
# # good
@@ -34880,6 +35153,76 @@ RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String)
# something = thing.some_method
# process(something)
# }
+# @example AllowedPatterns: [] (default)
+#
+# # bad
+# things.map { |thing|
+# something = thing.some_method
+# process(something)
+# }
+# @example BracesRequiredMethods: ['sig']
+#
+# # Methods listed in the BracesRequiredMethods list, such as 'sig'
+# # in this example, will require `{...}` braces. This option takes
+# # precedence over all other configurations except AllowedMethods.
+#
+# # bad
+# sig do
+# params(
+# foo: string,
+# ).void
+# end
+# def bar(foo)
+# puts foo
+# end
+#
+# # good
+# sig {
+# params(
+# foo: string,
+# ).void
+# }
+# def bar(foo)
+# puts foo
+# end
+# @example EnforcedStyle: always_braces
+# # bad
+# words.each do |word|
+# word.flip.flop
+# end
+#
+# # good
+# words.each { |word|
+# word.flip.flop
+# }
+# @example EnforcedStyle: braces_for_chaining
+# # bad
+# words.each do |word|
+# word.flip.flop
+# end.join("-")
+#
+# # good
+# words.each { |word|
+# word.flip.flop
+# }.join("-")
+# @example EnforcedStyle: line_count_based (default)
+# # bad - single line block
+# items.each do |item| item / 5 end
+#
+# # good - single line block
+# items.each { |item| item / 5 }
+#
+# # bad - multi-line block
+# things.map { |thing|
+# something = thing.some_method
+# process(something)
+# }
+#
+# # good - multi-line block
+# things.map do |thing|
+# something = thing.some_method
+# process(something)
+# end
# @example EnforcedStyle: semantic
# # Prefer `do...end` over `{...}` for procedural blocks.
#
@@ -34938,86 +35281,6 @@ RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String)
#
# # also good
# collection.each do |element| puts element end
-# @example EnforcedStyle: braces_for_chaining
-# # bad
-# words.each do |word|
-# word.flip.flop
-# end.join("-")
-#
-# # good
-# words.each { |word|
-# word.flip.flop
-# }.join("-")
-# @example EnforcedStyle: always_braces
-# # bad
-# words.each do |word|
-# word.flip.flop
-# end
-#
-# # good
-# words.each { |word|
-# word.flip.flop
-# }
-# @example BracesRequiredMethods: ['sig']
-#
-# # Methods listed in the BracesRequiredMethods list, such as 'sig'
-# # in this example, will require `{...}` braces. This option takes
-# # precedence over all other configurations except AllowedMethods.
-#
-# # bad
-# sig do
-# params(
-# foo: string,
-# ).void
-# end
-# def bar(foo)
-# puts foo
-# end
-#
-# # good
-# sig {
-# params(
-# foo: string,
-# ).void
-# }
-# def bar(foo)
-# puts foo
-# end
-# @example AllowedMethods: ['lambda', 'proc', 'it' ] (default)
-#
-# # good
-# foo = lambda do |x|
-# puts "Hello, #{x}"
-# end
-#
-# foo = lambda do |x|
-# x * 100
-# end
-# @example AllowedPatterns: [] (default)
-#
-# # bad
-# things.map { |thing|
-# something = thing.some_method
-# process(something)
-# }
-# @example EnforcedStyle: line_count_based (default)
-# # bad - single line block
-# items.each do |item| item / 5 end
-#
-# # good - single line block
-# items.each { |item| item / 5 }
-#
-# # bad - multi-line block
-# things.map { |thing|
-# something = thing.some_method
-# process(something)
-# }
-#
-# # good - multi-line block
-# things.map do |thing|
-# something = thing.some_method
-# process(something)
-# end
#
# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#168
class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base
@@ -35030,13 +35293,13 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#200
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#183
+ # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#198
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#200
+ # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#211
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#200
+ # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#210
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#183
@@ -35489,6 +35752,11 @@ RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String)
#
# The compact style is only forced for classes/modules with one child.
#
+# @example EnforcedStyle: compact
+# # good
+# # combine definitions as much as possible
+# class Foo::Bar
+# end
# @example EnforcedStyle: nested (default)
# # good
# # have each child on its own line
@@ -35496,11 +35764,6 @@ RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String)
# class Bar
# end
# end
-# @example EnforcedStyle: compact
-# # good
-# # combine definitions as much as possible
-# class Foo::Bar
-# end
#
# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#45
class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base
@@ -35621,7 +35884,7 @@ class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/class_check.rb#45
def message(node); end
- # source://rubocop//lib/rubocop/cop/style/class_check.rb#33
+ # source://rubocop//lib/rubocop/cop/style/class_check.rb#43
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/class_check.rb#33
@@ -35661,13 +35924,13 @@ RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# def eql?(other)
# self.class.eql?(other.class) && name.eql?(other.name)
# end
-# @example AllowedPatterns: [] (default)
-# # bad
+# @example AllowedPatterns: ['eq']
+# # good
# def eq(other)
# self.class.eq(other.class) && name.eq(other.name)
# end
-# @example AllowedPatterns: ['eq']
-# # good
+# @example AllowedPatterns: [] (default)
+# # bad
# def eq(other)
# self.class.eq(other.class) && name.eq(other.name)
# end
@@ -35746,7 +36009,7 @@ class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/class_methods.rb#28
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28
+ # source://rubocop//lib/rubocop/cop/style/class_methods.rb#37
def on_module(node); end
private
@@ -35956,7 +36219,7 @@ class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#86
def grep_v_with_nil?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#90
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#101
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#90
@@ -36040,13 +36303,13 @@ class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#55
+ # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#60
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49
+ # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#53
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49
+ # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#52
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#55
@@ -36341,10 +36604,10 @@ class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#85
def on_for(node); end
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#68
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#83
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#68
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#82
def on_numblock(node); end
private
@@ -36376,6 +36639,18 @@ RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String)
# Enforces using `` or %x around command literals.
#
+# @example AllowInnerBackticks: false (default)
+# # If `false`, the cop will always recommend using `%x` if one or more
+# # backticks are found in the command string.
+#
+# # bad
+# `echo \`ls\``
+#
+# # good
+# %x(echo `ls`)
+# @example AllowInnerBackticks: true
+# # good
+# `echo \`ls\``
# @example EnforcedStyle: backticks (default)
# # bad
# folders = %x(find . -type d).split
@@ -36430,18 +36705,6 @@ RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String)
# ln -s foo.example.yml foo.example
# ln -s bar.example.yml bar.example
# )
-# @example AllowInnerBackticks: false (default)
-# # If `false`, the cop will always recommend using `%x` if one or more
-# # backticks are found in the command string.
-#
-# # bad
-# `echo \`ls\``
-#
-# # good
-# %x(echo `ls`)
-# @example AllowInnerBackticks: true
-# # good
-# `echo \`ls\``
#
# source://rubocop//lib/rubocop/cop/style/command_literal.rb#78
class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Base
@@ -36526,48 +36789,48 @@ RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), St
# incorrect registering of keywords (eg. `review`) inside a paragraph as an
# annotation.
#
-# @example RequireColon: true (default)
+# @example RequireColon: false
# # bad
-# # TODO make better
-#
-# # good
# # TODO: make better
#
-# # bad
-# # TODO:make better
-#
# # good
-# # TODO: make better
+# # TODO make better
#
# # bad
-# # fixme: does not work
+# # fixme does not work
#
# # good
-# # FIXME: does not work
+# # FIXME does not work
#
# # bad
# # Optimize does not work
#
# # good
-# # OPTIMIZE: does not work
-# @example RequireColon: false
+# # OPTIMIZE does not work
+# @example RequireColon: true (default)
# # bad
+# # TODO make better
+#
+# # good
# # TODO: make better
#
+# # bad
+# # TODO:make better
+#
# # good
-# # TODO make better
+# # TODO: make better
#
# # bad
-# # fixme does not work
+# # fixme: does not work
#
# # good
-# # FIXME does not work
+# # FIXME: does not work
#
# # bad
# # Optimize does not work
#
# # good
-# # OPTIMIZE does not work
+# # OPTIMIZE: does not work
#
# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#61
class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Base
@@ -36833,7 +37096,7 @@ RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#66
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34
@@ -36866,30 +37129,8 @@ RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil)
# both the assignment and comparison of the same variable
# when using the return of the condition can be used instead.
#
-# @example EnforcedStyle: assign_to_condition (default)
+# @example EnforcedStyle: assign_inside_condition
# # bad
-# if foo
-# bar = 1
-# else
-# bar = 2
-# end
-#
-# case foo
-# when 'a'
-# bar += 1
-# else
-# bar += 2
-# end
-#
-# if foo
-# some_method
-# bar = 1
-# else
-# some_other_method
-# bar = 2
-# end
-#
-# # good
# bar = if foo
# 1
# else
@@ -36910,30 +37151,30 @@ RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil)
# some_other_method
# 2
# end
-# @example EnforcedStyle: assign_inside_condition
-# # bad
-# bar = if foo
-# 1
+#
+# # good
+# if foo
+# bar = 1
# else
-# 2
+# bar = 2
# end
#
-# bar += case foo
+# case foo
# when 'a'
-# 1
+# bar += 1
# else
-# 2
+# bar += 2
# end
#
-# bar << if foo
+# if foo
# some_method
-# 1
+# bar = 1
# else
# some_other_method
-# 2
+# bar = 2
# end
-#
-# # good
+# @example EnforcedStyle: assign_to_condition (default)
+# # bad
# if foo
# bar = 1
# else
@@ -36955,6 +37196,28 @@ RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil)
# bar = 2
# end
#
+# # good
+# bar = if foo
+# 1
+# else
+# 2
+# end
+#
+# bar += case foo
+# when 'a'
+# 1
+# else
+# 2
+# end
+#
+# bar << if foo
+# some_method
+# 1
+# else
+# some_other_method
+# 2
+# end
+#
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#207
class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Style::ConditionalAssignmentHelper
@@ -37448,7 +37711,7 @@ class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/date_time.rb#61
def historic_date?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/date_time.rb#70
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#78
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/date_time.rb#70
@@ -37518,7 +37781,7 @@ class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47
+ # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#55
def on_defs(node); end
private
@@ -37552,7 +37815,7 @@ class RuboCop::Cop::Style::DigChain < ::RuboCop::Cop::Base
include ::RuboCop::Cop::DigHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/dig_chain.rb#33
+ # source://rubocop//lib/rubocop/cop/style/dig_chain.rb#44
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/dig_chain.rb#33
@@ -38028,6 +38291,16 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String)
# def foo.bar
# puts baz
# end
+# @example AllowedMethods: ['method_missing', 'respond_to_missing?']
+#
+# # good
+# class Foo
+# def method_missing(name, *args)
+# end
+#
+# def respond_to_missing?(symbol, include_private)
+# end
+# end
# @example RequireForNonPublicMethods: false (default)
# # good
# class Foo
@@ -38069,16 +38342,6 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String)
# def do_something
# end
# end
-# @example AllowedMethods: ['method_missing', 'respond_to_missing?']
-#
-# # good
-# class Foo
-# def method_missing(name, *args)
-# end
-#
-# def respond_to_missing?(symbol, include_private)
-# end
-# end
#
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109
class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base
@@ -38092,7 +38355,7 @@ class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120
+ # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#126
def on_defs(node); end
private
@@ -38468,13 +38731,13 @@ RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.un
# Checks for empty else-clauses, possibly including comments and/or an
# explicit `nil` depending on the EnforcedStyle.
#
-# @example EnforcedStyle: both (default)
-# # warn on empty else and else with nil in it
+# @example AllowComments: false (default)
#
# # bad
# if condition
# statement
# else
+# # something comment
# nil
# end
#
@@ -38482,33 +38745,38 @@ RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.un
# if condition
# statement
# else
+# # something comment
# end
+# @example AllowComments: true
#
# # good
# if condition
# statement
# else
-# statement
+# # something comment
+# nil
# end
#
# # good
# if condition
# statement
+# else
+# # something comment
# end
-# @example EnforcedStyle: empty
-# # warn only on empty else
+# @example EnforcedStyle: both (default)
+# # warn on empty else and else with nil in it
#
# # bad
# if condition
# statement
# else
+# nil
# end
#
-# # good
+# # bad
# if condition
# statement
# else
-# nil
# end
#
# # good
@@ -38522,20 +38790,20 @@ RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.un
# if condition
# statement
# end
-# @example EnforcedStyle: nil
-# # warn on else with nil in it
+# @example EnforcedStyle: empty
+# # warn only on empty else
#
# # bad
# if condition
# statement
# else
-# nil
# end
#
# # good
# if condition
# statement
# else
+# nil
# end
#
# # good
@@ -38549,37 +38817,32 @@ RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.un
# if condition
# statement
# end
-# @example AllowComments: false (default)
+# @example EnforcedStyle: nil
+# # warn on else with nil in it
#
# # bad
# if condition
# statement
# else
-# # something comment
# nil
# end
#
-# # bad
+# # good
# if condition
# statement
# else
-# # something comment
# end
-# @example AllowComments: true
#
# # good
# if condition
# statement
# else
-# # something comment
-# nil
+# statement
# end
#
# # good
# if condition
# statement
-# else
-# # something comment
# end
#
# source://rubocop//lib/rubocop/cop/style/empty_else.rb#127
@@ -38865,7 +39128,7 @@ class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/empty_method.rb#54
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54
+ # source://rubocop//lib/rubocop/cop/style/empty_method.rb#65
def on_defs(node); end
private
@@ -38922,30 +39185,30 @@ RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String)
# While this cop would also apply to variables that are only going to be used as strings,
# RuboCop can't detect that, so we only check inside of string interpolation.
#
-# @example EnforcedStyle: trailing_conditional (default)
+# @example EnforcedStyle: ternary
# # bad
-# "#{condition ? 'foo' : ''}"
+# "#{'foo' if condition}"
#
# # good
-# "#{'foo' if condition}"
+# "#{condition ? 'foo' : ''}"
#
# # bad
-# "#{condition ? '' : 'foo'}"
+# "#{'foo' unless condition}"
#
# # good
-# "#{'foo' unless condition}"
-# @example EnforcedStyle: ternary
+# "#{condition ? '' : 'foo'}"
+# @example EnforcedStyle: trailing_conditional (default)
# # bad
-# "#{'foo' if condition}"
+# "#{condition ? 'foo' : ''}"
#
# # good
-# "#{condition ? 'foo' : ''}"
+# "#{'foo' if condition}"
#
# # bad
-# "#{'foo' unless condition}"
+# "#{condition ? '' : 'foo'}"
#
# # good
-# "#{condition ? '' : 'foo'}"
+# "#{'foo' unless condition}"
#
# source://rubocop//lib/rubocop/cop/style/empty_string_inside_interpolation.rb#40
class RuboCop::Cop::Style::EmptyStringInsideInterpolation < ::RuboCop::Cop::Base
@@ -39063,12 +39326,7 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String)
# NOTE: Incorrect endless method definitions will always be
# corrected to a multi-line definition.
#
-# @example EnforcedStyle: allow_single_line (default)
-# # bad, multi-line endless method
-# def my_method = x.foo
-# .bar
-# .baz
-#
+# @example EnforcedStyle: allow_always
# # good
# def my_method
# x
@@ -39078,12 +39336,22 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String)
# def my_method = x
#
# # good
+# def my_method = x.foo
+# .bar
+# .baz
+#
+# # good
# def my_method
# x.foo
# .bar
# .baz
# end
-# @example EnforcedStyle: allow_always
+# @example EnforcedStyle: allow_single_line (default)
+# # bad, multi-line endless method
+# def my_method = x.foo
+# .bar
+# .baz
+#
# # good
# def my_method
# x
@@ -39093,11 +39361,6 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String)
# def my_method = x
#
# # good
-# def my_method = x.foo
-# .bar
-# .baz
-#
-# # good
# def my_method
# x.foo
# .bar
@@ -39123,46 +39386,46 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String)
# .bar
# .baz
# end
-# @example EnforcedStyle: require_single_line
+# @example EnforcedStyle: require_always
# # bad
# def my_method
# x
# end
#
# # bad
-# def my_method = x.foo
+# def my_method
+# x.foo
# .bar
# .baz
+# end
#
# # good
# def my_method = x
#
# # good
-# def my_method
-# x.foo
+# def my_method = x.foo
# .bar
# .baz
-# end
-# @example EnforcedStyle: require_always
+# @example EnforcedStyle: require_single_line
# # bad
# def my_method
# x
# end
#
# # bad
-# def my_method
-# x.foo
+# def my_method = x.foo
# .bar
# .baz
-# end
#
# # good
# def my_method = x
#
# # good
-# def my_method = x.foo
+# def my_method
+# x.foo
# .bar
# .baz
+# end
#
# source://rubocop//lib/rubocop/cop/style/endless_method.rb#132
class RuboCop::Cop::Style::EndlessMethod < ::RuboCop::Cop::Base
@@ -39455,7 +39718,7 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32
def exact_regexp_match(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#52
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
@@ -39677,20 +39940,6 @@ RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String)
# * `integral` which enforces the mantissa to always be a whole number without
# trailing zeroes.
#
-# @example EnforcedStyle: scientific (default)
-# # Enforces a mantissa between 1 (inclusive) and 10 (exclusive).
-#
-# # bad
-# 10e6
-# 0.3e4
-# 11.7e5
-# 3.14e0
-#
-# # good
-# 1e7
-# 3e3
-# 1.17e6
-# 3.14
# @example EnforcedStyle: engineering
# # Enforces using multiple of 3 exponents,
# # mantissa should be between 0.1 (inclusive) and 1000 (exclusive)
@@ -39719,6 +39968,20 @@ RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String)
# 32e6
# 1e4
# 12e5
+# @example EnforcedStyle: scientific (default)
+# # Enforces a mantissa between 1 (inclusive) and 10 (exclusive).
+#
+# # bad
+# 10e6
+# 0.3e4
+# 11.7e5
+# 3.14e0
+#
+# # good
+# 1e7
+# 3e3
+# 1.17e6
+# 3.14
#
# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#60
class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Base
@@ -39762,26 +40025,26 @@ RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash)
# On the other hand, `ENV.fetch` raises `KeyError` or returns the explicitly
# specified default value.
#
-# @example DefaultToNil: true (default)
+# @example DefaultToNil: false
# # bad
# ENV['X']
# x = ENV['X']
#
# # good
-# ENV.fetch('X', nil)
-# x = ENV.fetch('X', nil)
+# ENV.fetch('X')
+# x = ENV.fetch('X')
#
# # also good
# !ENV['X']
# ENV['X'].some_method # (e.g. `.nil?`)
-# @example DefaultToNil: false
+# @example DefaultToNil: true (default)
# # bad
# ENV['X']
# x = ENV['X']
#
# # good
-# ENV.fetch('X')
-# x = ENV.fetch('X')
+# ENV.fetch('X', nil)
+# x = ENV.fetch('X', nil)
#
# # also good
# !ENV['X']
@@ -40199,13 +40462,14 @@ RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Se
# It is recommended to either always use `fdiv` or coerce one side only.
# This cop also provides other options for code consistency.
#
-# @example EnforcedStyle: single_coerce (default)
+# @example EnforcedStyle: fdiv
# # bad
+# a / b.to_f
+# a.to_f / b
# a.to_f / b.to_f
#
# # good
-# a.to_f / b
-# a / b.to_f
+# a.fdiv(b)
# @example EnforcedStyle: left_coerce
# # bad
# a / b.to_f
@@ -40220,14 +40484,13 @@ RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Se
#
# # good
# a / b.to_f
-# @example EnforcedStyle: fdiv
+# @example EnforcedStyle: single_coerce (default)
# # bad
-# a / b.to_f
-# a.to_f / b
# a.to_f / b.to_f
#
# # good
-# a.fdiv(b)
+# a.to_f / b
+# a / b.to_f
#
# source://rubocop//lib/rubocop/cop/style/float_division.rb#53
class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Base
@@ -40326,10 +40589,10 @@ class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/for.rb#53
def on_for(node); end
- # source://rubocop//lib/rubocop/cop/style/for.rb#64
+ # source://rubocop//lib/rubocop/cop/style/for.rb#80
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/for.rb#64
+ # source://rubocop//lib/rubocop/cop/style/for.rb#79
def on_numblock(node); end
private
@@ -40376,20 +40639,20 @@ RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String)
#
# # good
# puts format('%10s', 'foo')
-# @example EnforcedStyle: sprintf
+# @example EnforcedStyle: percent
# # bad
# puts format('%10s', 'foo')
-# puts '%10s' % 'foo'
+# puts sprintf('%10s', 'foo')
#
# # good
-# puts sprintf('%10s', 'foo')
-# @example EnforcedStyle: percent
+# puts '%10s' % 'foo'
+# @example EnforcedStyle: sprintf
# # bad
# puts format('%10s', 'foo')
-# puts sprintf('%10s', 'foo')
+# puts '%10s' % 'foo'
#
# # good
-# puts '%10s' % 'foo'
+# puts sprintf('%10s', 'foo')
#
# source://rubocop//lib/rubocop/cop/style/format_string.rb#50
class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base
@@ -40465,19 +40728,30 @@ RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
# if the number of them is less than or equals to
# `MaxUnannotatedPlaceholdersAllowed`.
#
-# @example Mode: conservative, EnforcedStyle: annotated
-# # In `conservative` mode, offenses are only registered for strings
-# # given to a known formatting method.
+# @example AllowedMethods: [] (default)
+#
+# # bad
+# redirect('foo/%{bar_id}')
+# @example AllowedMethods: [redirect]
#
# # good
-# "%{greeting}"
-# foo("%{greeting}")
+# redirect('foo/%{bar_id}')
+# @example AllowedPatterns: ['redirect']
+#
+# # good
+# redirect('foo/%{bar_id}')
+# @example AllowedPatterns: [] (default)
#
# # bad
-# format("%{greeting}", greeting: 'Hello')
-# printf("%{greeting}", greeting: 'Hello')
-# sprintf("%{greeting}", greeting: 'Hello')
-# "%{greeting}" % { greeting: 'Hello' }
+# redirect('foo/%{bar_id}')
+# @example EnforcedStyle: annotated (default)
+#
+# # bad
+# format('%{greeting}', greeting: 'Hello')
+# format('%s', 'Hello')
+#
+# # good
+# format('%s', greeting: 'Hello')
# @example EnforcedStyle: template
#
# # bad
@@ -40509,30 +40783,19 @@ RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
#
# # good
# format('%06d', 10)
-# @example AllowedMethods: [] (default)
-#
-# # bad
-# redirect('foo/%{bar_id}')
-# @example AllowedMethods: [redirect]
-#
-# # good
-# redirect('foo/%{bar_id}')
-# @example AllowedPatterns: [] (default)
-#
-# # bad
-# redirect('foo/%{bar_id}')
-# @example AllowedPatterns: ['redirect']
+# @example Mode: conservative, EnforcedStyle: annotated
+# # In `conservative` mode, offenses are only registered for strings
+# # given to a known formatting method.
#
# # good
-# redirect('foo/%{bar_id}')
-# @example EnforcedStyle: annotated (default)
+# "%{greeting}"
+# foo("%{greeting}")
#
# # bad
-# format('%{greeting}', greeting: 'Hello')
-# format('%s', 'Hello')
-#
-# # good
-# format('%s', greeting: 'Hello')
+# format("%{greeting}", greeting: 'Hello')
+# printf("%{greeting}", greeting: 'Hello')
+# sprintf("%{greeting}", greeting: 'Hello')
+# "%{greeting}" % { greeting: 'Hello' }
#
# source://rubocop//lib/rubocop/cop/style/format_string_token.rb#107
class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base
@@ -40641,20 +40904,6 @@ end
# module Bar
# # ...
# end
-# @example EnforcedStyle: never
-# # The `never` will enforce that the frozen string literal comment does
-# # not exist in a file.
-# # bad
-# # frozen_string_literal: true
-#
-# module Baz
-# # ...
-# end
-#
-# # good
-# module Baz
-# # ...
-# end
# @example EnforcedStyle: always_true
# # The `always_true` style enforces that the frozen string literal
# # comment is set to `true`. This is a stricter option than `always`
@@ -40677,6 +40926,20 @@ end
# module Bar
# # ...
# end
+# @example EnforcedStyle: never
+# # The `never` will enforce that the frozen string literal comment does
+# # not exist in a file.
+# # bad
+# # frozen_string_literal: true
+#
+# module Baz
+# # ...
+# end
+#
+# # good
+# module Baz
+# # ...
+# end
#
# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#84
class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base
@@ -40976,16 +41239,16 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#130
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#140
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#138
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132
+ # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#137
def on_numblock(node); end
private
@@ -41146,12 +41409,12 @@ end
#
# # good
# {key1 => value1, key2 => value2}
-# @example AllowSplatArgument: true (default)
-# # good
-# Hash[*ary]
# @example AllowSplatArgument: false
# # bad
# Hash[*ary]
+# @example AllowSplatArgument: true (default)
+# # good
+# Hash[*ary]
#
# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#44
class RuboCop::Cop::Style::HashConversion < ::RuboCop::Cop::Base
@@ -41263,10 +41526,10 @@ class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#101
def on_block_pass(node); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#65
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#77
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#65
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#76
def on_numblock(node); end
private
@@ -41439,7 +41702,7 @@ class RuboCop::Cop::Style::HashFetchChain < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#50
def diggable?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#54
+ # source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#70
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/hash_fetch_chain.rb#54
@@ -41614,62 +41877,32 @@ end
# * either_consistent - accepts both shorthand and explicit use of hash literal value,
# but they must be consistent
#
-# @example EnforcedShorthandSyntax: either_consistent
+# @example EnforcedShorthandSyntax: always
#
-# # good - `foo` and `bar` values can be omitted, but they are consistent, so it's accepted
+# # bad
# {foo: foo, bar: bar}
#
-# # bad - `bar` value can be omitted
-# {foo:, bar: bar}
-#
-# # bad - mixed syntaxes
-# {foo:, bar: baz}
-#
# # good
# {foo:, bar:}
#
-# # good - can't omit `baz`
-# {foo: foo, bar: baz}
-# @example EnforcedStyle: hash_rockets
-# # bad
-# {a: 1, b: 2}
-# {c: 1, 'd' => 5}
-#
-# # good
-# {:a => 1, :b => 2}
-# @example EnforcedStyle: no_mixed_keys
-# # bad
-# {:a => 1, b: 2}
-# {c: 1, 'd' => 2}
-#
-# # good
-# {:a => 1, :b => 2}
-# {c: 1, d: 2}
-# @example EnforcedStyle: ruby19_no_mixed_keys
-# # bad
-# {:a => 1, :b => 2}
-# {c: 2, 'd' => 3} # should just use hash rockets
-#
-# # good
-# {a: 1, b: 2}
-# {:c => 3, 'd' => 4}
-# @example EnforcedShorthandSyntax: always
+# # good - allowed to mix syntaxes
+# {foo:, bar: baz}
+# @example EnforcedShorthandSyntax: consistent
#
-# # bad
+# # bad - `foo` and `bar` values can be omitted
# {foo: foo, bar: bar}
#
-# # good
-# {foo:, bar:}
+# # bad - `bar` value can be omitted
+# {foo:, bar: bar}
#
-# # good - allowed to mix syntaxes
+# # bad - mixed syntaxes
# {foo:, bar: baz}
-# @example EnforcedShorthandSyntax: never
#
-# # bad
+# # good
# {foo:, bar:}
#
-# # good
-# {foo: foo, bar: bar}
+# # good - can't omit `baz`
+# {foo: foo, bar: baz}
# @example EnforcedShorthandSyntax: either (default)
#
# # good
@@ -41680,9 +41913,9 @@ end
#
# # good
# {foo:, bar:}
-# @example EnforcedShorthandSyntax: consistent
+# @example EnforcedShorthandSyntax: either_consistent
#
-# # bad - `foo` and `bar` values can be omitted
+# # good - `foo` and `bar` values can be omitted, but they are consistent, so it's accepted
# {foo: foo, bar: bar}
#
# # bad - `bar` value can be omitted
@@ -41696,6 +41929,28 @@ end
#
# # good - can't omit `baz`
# {foo: foo, bar: baz}
+# @example EnforcedShorthandSyntax: never
+#
+# # bad
+# {foo:, bar:}
+#
+# # good
+# {foo: foo, bar: bar}
+# @example EnforcedStyle: hash_rockets
+# # bad
+# {a: 1, b: 2}
+# {c: 1, 'd' => 5}
+#
+# # good
+# {:a => 1, :b => 2}
+# @example EnforcedStyle: no_mixed_keys
+# # bad
+# {:a => 1, b: 2}
+# {c: 1, 'd' => 2}
+#
+# # good
+# {:a => 1, :b => 2}
+# {c: 1, d: 2}
# @example EnforcedStyle: ruby19 (default)
# # bad
# {:a => 2}
@@ -41705,6 +41960,14 @@ end
# {a: 2, b: 1}
# {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol
# {d: 1, 'e' => 2} # technically not forbidden
+# @example EnforcedStyle: ruby19_no_mixed_keys
+# # bad
+# {:a => 1, :b => 2}
+# {c: 2, 'd' => 3} # should just use hash rockets
+#
+# # good
+# {a: 1, b: 2}
+# {:c => 3, 'd' => 4}
#
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#134
class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base
@@ -42650,13 +42913,13 @@ class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44
+ # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#49
def on_until_post(node); end
# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40
def on_while(node); end
- # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40
+ # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#48
def on_while_post(node); end
private
@@ -42777,13 +43040,13 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#90
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#109
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#108
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78
@@ -43068,13 +43331,6 @@ RuboCop::Cop::Style::ItAssignment::MSG = T.let(T.unsafe(nil), String)
# # good
# block { do_something(it) }
# block { |named_param| do_something(named_param) }
-# @example EnforcedStyle: only_numbered_parameters
-# # bad
-# block { do_something(_1) }
-#
-# # good
-# block { do_something(it) }
-# block { |named_param| do_something(named_param) }
# @example EnforcedStyle: always
# # bad
# block { do_something(_1) }
@@ -43089,6 +43345,13 @@ RuboCop::Cop::Style::ItAssignment::MSG = T.let(T.unsafe(nil), String)
# # good
# block { do_something(_1) }
# block { |named_param| do_something(named_param) }
+# @example EnforcedStyle: only_numbered_parameters
+# # bad
+# block { do_something(_1) }
+#
+# # good
+# block { do_something(it) }
+# block { |named_param| do_something(named_param) }
#
# source://rubocop//lib/rubocop/cop/style/it_block_parameter.rb#53
class RuboCop::Cop::Style::ItBlockParameter < ::RuboCop::Cop::Base
@@ -43210,27 +43473,27 @@ RuboCop::Cop::Style::KeywordParametersOrder::MSG = T.let(T.unsafe(nil), String)
# It is configurable to enforce one of the styles for both single line
# and multiline lambdas as well.
#
-# @example EnforcedStyle: line_count_dependent (default)
+# @example EnforcedStyle: lambda
# # bad
-# f = lambda { |x| x }
+# f = ->(x) { x }
# f = ->(x) do
# x
# end
#
# # good
-# f = ->(x) { x }
+# f = lambda { |x| x }
# f = lambda do |x|
# x
# end
-# @example EnforcedStyle: lambda
+# @example EnforcedStyle: line_count_dependent (default)
# # bad
-# f = ->(x) { x }
+# f = lambda { |x| x }
# f = ->(x) do
# x
# end
#
# # good
-# f = lambda { |x| x }
+# f = ->(x) { x }
# f = lambda do |x|
# x
# end
@@ -43255,10 +43518,10 @@ class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/lambda.rb#64
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/lambda.rb#64
+ # source://rubocop//lib/rubocop/cop/style/lambda.rb#80
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/lambda.rb#64
+ # source://rubocop//lib/rubocop/cop/style/lambda.rb#79
def on_numblock(node); end
private
@@ -43295,25 +43558,25 @@ RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash)
# Checks for use of the lambda.(args) syntax.
#
-# @example EnforcedStyle: call (default)
-# # bad
-# lambda.(x, y)
-#
-# # good
-# lambda.call(x, y)
# @example EnforcedStyle: braces
# # bad
# lambda.call(x, y)
#
# # good
# lambda.(x, y)
+# @example EnforcedStyle: call (default)
+# # bad
+# lambda.(x, y)
+#
+# # good
+# lambda.call(x, y)
#
# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#21
class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#28
+ # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#47
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#28
@@ -43450,12 +43713,26 @@ RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.un
#
# NOTE: If one of these configuration is set to nil, any capitalization is allowed.
#
-# @example ValueCapitalization: uppercase
+# @example DirectiveCapitalization: lowercase (default)
# # bad
+# # FROZEN-STRING-LITERAL: true
+#
+# # good
# # frozen-string-literal: true
+# @example DirectiveCapitalization: nil
+# # any capitalization is accepted
#
# # good
-# # frozen-string-literal: TRUE
+# # frozen-string-literal: true
+#
+# # good
+# # FROZEN-STRING-LITERAL: true
+# @example DirectiveCapitalization: uppercase
+# # bad
+# # frozen-string-literal: true
+#
+# # good
+# # FROZEN-STRING-LITERAL: true
# @example EnforcedStyle: kebab_case
# # The `kebab_case` style will enforce that the frozen string literal
# # comment is written in kebab case. (Words separated by hyphens)
@@ -43472,26 +43749,30 @@ RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.un
# module Baz
# # ...
# end
-# @example DirectiveCapitalization: lowercase (default)
-# # bad
-# # FROZEN-STRING-LITERAL: true
-#
-# # good
-# # frozen-string-literal: true
-# @example DirectiveCapitalization: uppercase
+# @example EnforcedStyle: snake_case (default)
+# # The `snake_case` style will enforce that the frozen string literal
+# # comment is written in snake case. (Words separated by underscores)
# # bad
# # frozen-string-literal: true
#
-# # good
-# # FROZEN-STRING-LITERAL: true
-# @example DirectiveCapitalization: nil
-# # any capitalization is accepted
+# module Bar
+# # ...
+# end
#
# # good
-# # frozen-string-literal: true
+# # frozen_string_literal: false
+#
+# module Bar
+# # ...
+# end
+# @example ValueCapitalization: lowercase
+# # when a value is not given, any capitalization is accepted
+#
+# # bad
+# # frozen-string-literal: TRUE
#
# # good
-# # FROZEN-STRING-LITERAL: true
+# # frozen-string-literal: TRUE
# @example ValueCapitalization: nil (default)
# # any capitalization is accepted
#
@@ -43500,30 +43781,12 @@ RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.un
#
# # good
# # frozen-string-literal: TRUE
-# @example ValueCapitalization: lowercase
-# # when a value is not given, any capitalization is accepted
-#
-# # bad
-# # frozen-string-literal: TRUE
-#
-# # good
-# # frozen-string-literal: TRUE
-# @example EnforcedStyle: snake_case (default)
-# # The `snake_case` style will enforce that the frozen string literal
-# # comment is written in snake case. (Words separated by underscores)
+# @example ValueCapitalization: uppercase
# # bad
# # frozen-string-literal: true
#
-# module Bar
-# # ...
-# end
-#
# # good
-# # frozen_string_literal: false
-#
-# module Bar
-# # ...
-# end
+# # frozen-string-literal: TRUE
#
# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#97
class RuboCop::Cop::Style::MagicCommentFormat < ::RuboCop::Cop::Base
@@ -43623,10 +43886,10 @@ class RuboCop::Cop::Style::MagicCommentFormat::CommentRange
# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125
def directives; end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#116
def loc(*_arg0, **_arg1, &_arg2); end
- # source://rubocop-ast/1.45.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19
+ # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#116
def text(*_arg0, **_arg1, &_arg2); end
# A magic comment can contain one value (normal style) or
@@ -43699,7 +43962,7 @@ class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#51
def conditional_block(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#92
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76
@@ -43817,10 +44080,10 @@ class RuboCop::Cop::Style::MapIntoArray < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#130
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113
+ # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#129
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/map_into_array.rb#67
@@ -43908,7 +44171,7 @@ class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41
def map_to_h(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#57
+ # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#68
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#57
@@ -43955,7 +44218,7 @@ class RuboCop::Cop::Style::MapToSet < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#34
def map_to_set?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#41
+ # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#52
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#41
@@ -44034,56 +44297,34 @@ RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# - Parentheses are required when the first argument is a beginless range or
# the last argument is an endless range.
#
-# @example AllowParenthesesInStringInterpolation: true
-#
-# # good
-# "#{t('this.is.good')}"
-#
-# # good
-# "#{t 'this.is.also.good'}"
-# @example EnforcedStyle: omit_parentheses
+# @example AllowParenthesesInCamelCaseMethod: false (default)
#
# # bad
-# array.delete(e)
+# Array(1)
#
# # good
-# array.delete e
-#
-# # bad
-# action.enforce(strict: true)
+# Array 1
+# @example AllowParenthesesInCamelCaseMethod: true
#
# # good
-# action.enforce strict: true
+# Array(1)
#
# # good
-# # Parentheses are allowed for code that can be ambiguous without
-# # them.
-# action.enforce(condition) || other_condition
+# Array 1
+# @example AllowParenthesesInChaining: false (default)
#
-# # good
-# # Parentheses are allowed for calls that won't produce valid Ruby
-# # without them.
-# yield path, File.basename(path)
+# # bad
+# foo().bar(1)
#
# # good
-# # Omitting the parentheses in Ruby 3.1 hash omission syntax can lead
-# # to ambiguous code. We allow them in conditionals and non-last
-# # expressions. See https://bugs.ruby-lang.org/issues/18396
-# if meets(criteria:, action:)
-# safe_action(action) || dangerous_action(action)
-# end
-# @example IgnoreMacros: true (default)
+# foo().bar 1
+# @example AllowParenthesesInChaining: true
#
# # good
-# class Foo
-# bar :baz
-# end
-# @example IgnoreMacros: false
+# foo().bar(1)
#
-# # bad
-# class Foo
-# bar :baz
-# end
+# # good
+# foo().bar 1
# @example AllowParenthesesInMultilineCall: false (default)
#
# # bad
@@ -44104,41 +44345,51 @@ RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# # good
# foo.enforce \
# strict: true
-# @example AllowParenthesesInChaining: false (default)
+# @example AllowParenthesesInStringInterpolation: false (default)
#
# # bad
-# foo().bar(1)
+# "#{t('this.is.bad')}"
#
# # good
-# foo().bar 1
-# @example AllowParenthesesInChaining: true
+# "#{t 'this.is.better'}"
+# @example AllowParenthesesInStringInterpolation: true
#
# # good
-# foo().bar(1)
+# "#{t('this.is.good')}"
#
# # good
-# foo().bar 1
-# @example AllowParenthesesInCamelCaseMethod: false (default)
+# "#{t 'this.is.also.good'}"
+# @example EnforcedStyle: omit_parentheses
#
# # bad
-# Array(1)
+# array.delete(e)
#
# # good
-# Array 1
-# @example AllowParenthesesInCamelCaseMethod: true
+# array.delete e
+#
+# # bad
+# action.enforce(strict: true)
#
# # good
-# Array(1)
+# action.enforce strict: true
#
# # good
-# Array 1
-# @example AllowParenthesesInStringInterpolation: false (default)
+# # Parentheses are allowed for code that can be ambiguous without
+# # them.
+# action.enforce(condition) || other_condition
#
-# # bad
-# "#{t('this.is.bad')}"
+# # good
+# # Parentheses are allowed for calls that won't produce valid Ruby
+# # without them.
+# yield path, File.basename(path)
#
# # good
-# "#{t 'this.is.better'}"
+# # Omitting the parentheses in Ruby 3.1 hash omission syntax can lead
+# # to ambiguous code. We allow them in conditionals and non-last
+# # expressions. See https://bugs.ruby-lang.org/issues/18396
+# if meets(criteria:, action:)
+# safe_action(action) || dangerous_action(action)
+# end
# @example EnforcedStyle: require_parentheses (default)
#
# # bad
@@ -44160,6 +44411,18 @@ RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
#
# # okay with `^assert` listed in `AllowedPatterns`
# assert_equal 'test', x
+# @example IgnoreMacros: false
+#
+# # bad
+# class Foo
+# bar :baz
+# end
+# @example IgnoreMacros: true (default)
+#
+# # good
+# class Foo
+# bar :baz
+# end
#
# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#204
class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base
@@ -44171,13 +44434,13 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#222
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#223
def on_yield(node); end
private
@@ -44454,7 +44717,7 @@ class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Ba
include ::RuboCop::Cop::AllowedPattern
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#48
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37
@@ -44539,13 +44802,13 @@ class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#41
+ # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#51
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29
+ # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#39
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29
+ # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#38
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#41
@@ -44568,31 +44831,6 @@ RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String
#
# Removing the parens would be a syntax error here.
#
-# @example EnforcedStyle: require_parentheses (default)
-# # The `require_parentheses` style requires method definitions
-# # to always use parentheses
-#
-# # bad
-# def bar num1, num2
-# num1 + num2
-# end
-#
-# def foo descriptive_var_name,
-# another_descriptive_var_name,
-# last_descriptive_var_name
-# do_something
-# end
-#
-# # good
-# def bar(num1, num2)
-# num1 + num2
-# end
-#
-# def foo(descriptive_var_name,
-# another_descriptive_var_name,
-# last_descriptive_var_name)
-# do_something
-# end
# @example EnforcedStyle: require_no_parentheses
# # The `require_no_parentheses` style requires method definitions
# # to never use parentheses
@@ -44644,6 +44882,31 @@ RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String
# last_descriptive_var_name)
# do_something
# end
+# @example EnforcedStyle: require_parentheses (default)
+# # The `require_parentheses` style requires method definitions
+# # to always use parentheses
+#
+# # bad
+# def bar num1, num2
+# num1 + num2
+# end
+#
+# def foo descriptive_var_name,
+# another_descriptive_var_name,
+# last_descriptive_var_name
+# do_something
+# end
+#
+# # good
+# def bar(num1, num2)
+# num1 + num2
+# end
+#
+# def foo(descriptive_var_name,
+# another_descriptive_var_name,
+# last_descriptive_var_name)
+# do_something
+# end
#
# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#97
class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base
@@ -44654,7 +44917,7 @@ class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105
+ # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#122
def on_defs(node); end
private
@@ -44717,7 +44980,7 @@ class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/min_max.rb#22
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/style/min_max.rb#22
+ # source://rubocop//lib/rubocop/cop/style/min_max.rb#33
def on_return(node); end
private
@@ -44829,58 +45092,58 @@ RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String)
# else
# # the content of `else` branch will be determined by Style/EmptyElse
# end
-# @example EnforcedStyle: if
-# # warn when an `if` expression is missing an `else` branch.
+# @example EnforcedStyle: case
+# # warn when a `case` expression is missing an `else` branch.
#
# # bad
-# if condition
+# case var
+# when condition
# statement
# end
#
# # good
-# if condition
+# case var
+# when condition
# statement
# else
# # the content of `else` branch will be determined by Style/EmptyElse
# end
#
# # good
-# case var
-# when condition
+# if condition
# statement
# end
#
# # good
-# case var
-# when condition
+# if condition
# statement
# else
# # the content of `else` branch will be determined by Style/EmptyElse
# end
-# @example EnforcedStyle: case
-# # warn when a `case` expression is missing an `else` branch.
+# @example EnforcedStyle: if
+# # warn when an `if` expression is missing an `else` branch.
#
# # bad
-# case var
-# when condition
+# if condition
# statement
# end
#
# # good
-# case var
-# when condition
+# if condition
# statement
# else
# # the content of `else` branch will be determined by Style/EmptyElse
# end
#
# # good
-# if condition
+# case var
+# when condition
# statement
# end
#
# # good
-# if condition
+# case var
+# when condition
# statement
# else
# # the content of `else` branch will be determined by Style/EmptyElse
@@ -44999,7 +45262,7 @@ class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#57
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#57
+ # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#63
def on_defs(node); end
private
@@ -45017,27 +45280,27 @@ RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String)
# By default it enforces mixins to be placed in separate declarations,
# but it can be configured to enforce grouping them in one declaration.
#
-# @example EnforcedStyle: separated (default)
+# @example EnforcedStyle: grouped
# # bad
# class Foo
-# include Bar, Qox
+# extend Bar
+# extend Qox
# end
#
# # good
# class Foo
-# include Qox
-# include Bar
+# extend Qox, Bar
# end
-# @example EnforcedStyle: grouped
+# @example EnforcedStyle: separated (default)
# # bad
# class Foo
-# extend Bar
-# extend Qox
+# include Bar, Qox
# end
#
# # good
# class Foo
-# extend Qox, Bar
+# include Qox
+# include Bar
# end
#
# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#33
@@ -45048,7 +45311,7 @@ class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40
+ # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#49
def on_module(node); end
private
@@ -45157,15 +45420,9 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# - in default mode (`module_function`), the cop won't be activated when the module
# contains any private methods
#
-# @example EnforcedStyle: module_function (default)
+# @example EnforcedStyle: extend_self
# # bad
# module Test
-# extend self
-# # ...
-# end
-#
-# # good
-# module Test
# module_function
# # ...
# end
@@ -45174,8 +45431,6 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# module Test
# extend self
# # ...
-# private
-# # ...
# end
#
# # good
@@ -45184,39 +45439,47 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# # ...
# end
# end
-# @example EnforcedStyle: extend_self
+# @example EnforcedStyle: forbidden
# # bad
# module Test
# module_function
# # ...
# end
#
-# # good
+# # bad
# module Test
# extend self
# # ...
# end
#
+# # bad
+# module Test
+# extend self
+# # ...
+# private
+# # ...
+# end
+#
# # good
# module Test
# class << self
# # ...
# end
# end
-# @example EnforcedStyle: forbidden
+# @example EnforcedStyle: module_function (default)
# # bad
# module Test
-# module_function
+# extend self
# # ...
# end
#
-# # bad
+# # good
# module Test
-# extend self
+# module_function
# # ...
# end
#
-# # bad
+# # good
# module Test
# extend self
# # ...
@@ -45302,10 +45565,10 @@ class RuboCop::Cop::Style::MultilineBlockChain < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30
+ # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#47
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30
+ # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#46
def on_numblock(node); end
end
@@ -45431,30 +45694,30 @@ RuboCop::Cop::Style::MultilineInPatternThen::MSG = T.let(T.unsafe(nil), String)
# Checks expressions wrapping styles for multiline memoization.
#
-# @example EnforcedStyle: keyword (default)
+# @example EnforcedStyle: braces
# # bad
-# foo ||= (
+# foo ||= begin
# bar
# baz
-# )
+# end
#
# # good
-# foo ||= begin
+# foo ||= (
# bar
# baz
-# end
-# @example EnforcedStyle: braces
+# )
+# @example EnforcedStyle: keyword (default)
# # bad
-# foo ||= begin
+# foo ||= (
# bar
# baz
-# end
+# )
#
# # good
-# foo ||= (
+# foo ||= begin
# bar
# baz
-# )
+# end
#
# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#33
class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Base
@@ -45514,7 +45777,7 @@ class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#37
def on_defs(node); end
private
@@ -45695,15 +45958,15 @@ RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String)
#
# # accepted (but consider `case` as above)
# foo if a == b.lightweight || a == b.heavyweight
-# @example AllowMethodComparison: true (default)
-# # good
-# foo if a == b.lightweight || a == b.heavyweight
# @example AllowMethodComparison: false
# # bad
# foo if a == b.lightweight || a == b.heavyweight
#
# # good
# foo if [b.lightweight, b.heavyweight].include?(a)
+# @example AllowMethodComparison: true (default)
+# # good
+# foo if a == b.lightweight || a == b.heavyweight
# @example ComparisonsThreshold: 2 (default)
# # bad
# foo if a == 'a' || a == 'b'
@@ -45791,6 +46054,15 @@ RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String)
# NOTE: From Ruby 3.0, this cop allows explicit freezing of constants when
# the `shareable_constant_value` directive is used.
#
+# @example
+# # Magic comment - shareable_constant_value: literal
+#
+# # bad
+# CONST = [1, 2, 3]
+#
+# # good
+# # shareable_constant_value: literal
+# CONST = [1, 2, 3]
# @example EnforcedStyle: literals (default)
# # bad
# CONST = [1, 2, 3]
@@ -45825,15 +46097,6 @@ RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String)
# puts 1
# end
# end.freeze
-# @example
-# # Magic comment - shareable_constant_value: literal
-#
-# # bad
-# CONST = [1, 2, 3]
-#
-# # good
-# # shareable_constant_value: literal
-# CONST = [1, 2, 3]
#
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#83
class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
@@ -45842,7 +46105,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop-sorbet/0.10.5/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18
+ # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#140
def on_assignment(value); end
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#127
@@ -45860,9 +46123,6 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#216
def splat_value(param0 = T.unsafe(nil)); end
- # source://rubocop-sorbet/0.10.5/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12
- def t_let(param0 = T.unsafe(nil)); end
-
private
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#168
@@ -45973,40 +46233,40 @@ end
# # good
#
# bar unless foo
-# @example EnforcedStyle: prefix
-# # enforces `unless` for just `prefix` conditionals
+# @example EnforcedStyle: postfix
+# # enforces `unless` for just `postfix` conditionals
#
# # bad
#
-# if !foo
-# bar
-# end
+# bar if !foo
#
# # good
#
-# unless foo
-# bar
-# end
+# bar unless foo
#
# # good
#
-# bar if !foo
-# @example EnforcedStyle: postfix
-# # enforces `unless` for just `postfix` conditionals
+# if !foo
+# bar
+# end
+# @example EnforcedStyle: prefix
+# # enforces `unless` for just `prefix` conditionals
#
# # bad
#
-# bar if !foo
+# if !foo
+# bar
+# end
#
# # good
#
-# bar unless foo
+# unless foo
+# bar
+# end
#
# # good
#
-# if !foo
-# bar
-# end
+# bar if !foo
#
# source://rubocop//lib/rubocop/cop/style/negated_if.rb#71
class RuboCop::Cop::Style::NegatedIf < ::RuboCop::Cop::Base
@@ -46142,6 +46402,19 @@ RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T.
#
# # good
# bar if foo
+# @example EnforcedStyle: postfix
+# # enforces `if` for just `postfix` conditionals
+#
+# # bad
+# bar unless !foo
+#
+# # good
+# bar if foo
+#
+# # good
+# unless !foo
+# bar
+# end
# @example EnforcedStyle: prefix
# # enforces `if` for just `prefix` conditionals
#
@@ -46157,19 +46430,6 @@ RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T.
#
# # good
# bar unless !foo
-# @example EnforcedStyle: postfix
-# # enforces `if` for just `postfix` conditionals
-#
-# # bad
-# bar unless !foo
-#
-# # good
-# bar if foo
-#
-# # good
-# unless !foo
-# bar
-# end
#
# source://rubocop//lib/rubocop/cop/style/negated_unless.rb#61
class RuboCop::Cop::Style::NegatedUnless < ::RuboCop::Cop::Base
@@ -46216,7 +46476,7 @@ class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base
include ::RuboCop::Cop::NegativeConditional
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29
+ # source://rubocop//lib/rubocop/cop/style/negated_while.rb#36
def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/negated_while.rb#29
@@ -46277,10 +46537,10 @@ class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22
+ # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#26
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22
+ # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#25
def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22
@@ -46346,7 +46606,7 @@ class RuboCop::Cop::Style::NestedParenthesizedCalls < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedMethods
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35
+ # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#47
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35
@@ -46414,23 +46674,34 @@ RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String)
# Use `next` to skip iteration instead of a condition at the end.
#
-# @example EnforcedStyle: skip_modifier_ifs (default)
+# @example AllowConsecutiveConditionals: false (default)
# # bad
# [1, 2].each do |a|
# if a == 1
# puts a
# end
+# if a == 2
+# puts a
+# end
# end
#
# # good
# [1, 2].each do |a|
-# next unless a == 1
+# if a == 1
# puts a
# end
-#
+# next unless a == 2
+# puts a
+# end
+# @example AllowConsecutiveConditionals: true
# # good
# [1, 2].each do |a|
-# puts a if a == 1
+# if a == 1
+# puts a
+# end
+# if a == 2
+# puts a
+# end
# end
# @example EnforcedStyle: always
# # With `always` all conditions at the end of an iteration needs to be
@@ -46454,34 +46725,23 @@ RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String)
# next unless a == 1
# puts a
# end
-# @example AllowConsecutiveConditionals: false (default)
+# @example EnforcedStyle: skip_modifier_ifs (default)
# # bad
# [1, 2].each do |a|
# if a == 1
# puts a
# end
-# if a == 2
-# puts a
-# end
# end
#
# # good
# [1, 2].each do |a|
-# if a == 1
-# puts a
-# end
-# next unless a == 2
+# next unless a == 1
# puts a
# end
-# @example AllowConsecutiveConditionals: true
+#
# # good
# [1, 2].each do |a|
-# if a == 1
-# puts a
-# end
-# if a == 2
-# puts a
-# end
+# puts a if a == 1
# end
#
# source://rubocop//lib/rubocop/cop/style/next.rb#81
@@ -46494,19 +46754,19 @@ class RuboCop::Cop::Style::Next < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/next.rb#100
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/next.rb#109
+ # source://rubocop//lib/rubocop/cop/style/next.rb#113
def on_for(node); end
- # source://rubocop//lib/rubocop/cop/style/next.rb#100
+ # source://rubocop//lib/rubocop/cop/style/next.rb#107
def on_itblock(node); end
# source://rubocop//lib/rubocop/cop/style/next.rb#94
def on_new_investigation; end
- # source://rubocop//lib/rubocop/cop/style/next.rb#100
+ # source://rubocop//lib/rubocop/cop/style/next.rb#106
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/style/next.rb#109
+ # source://rubocop//lib/rubocop/cop/style/next.rb#112
def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/next.rb#109
@@ -46614,23 +46874,23 @@ RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String)
#
# Supported styles are: predicate, comparison.
#
-# @example EnforcedStyle: predicate (default)
+# @example EnforcedStyle: comparison
#
# # bad
-# if x == nil
+# if x.nil?
# end
#
# # good
-# if x.nil?
+# if x == nil
# end
-# @example EnforcedStyle: comparison
+# @example EnforcedStyle: predicate (default)
#
# # bad
-# if x.nil?
+# if x == nil
# end
#
# # good
-# if x == nil
+# if x.nil?
# end
#
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#31
@@ -46773,7 +47033,7 @@ class RuboCop::Cop::Style::NonNilCheck < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73
+ # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#84
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#64
@@ -46930,7 +47190,7 @@ RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), S
class RuboCop::Cop::Style::NumberedParametersLimit < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#27
def max=(value); end
# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#32
@@ -46958,6 +47218,13 @@ RuboCop::Cop::Style::NumberedParametersLimit::NUMBERED_PARAMETER_PATTERN = T.let
# uppercase prefixes and corrects them to lowercase prefix
# or no prefix (in case of decimals).
#
+# @example EnforcedOctalStyle: zero_only
+# # bad
+# num = 0o1234
+# num = 0O1234
+#
+# # good
+# num = 01234
# @example EnforcedOctalStyle: zero_with_o (default)
# # bad - missing octal prefix
# num = 01234
@@ -46976,13 +47243,6 @@ RuboCop::Cop::Style::NumberedParametersLimit::NUMBERED_PARAMETER_PATTERN = T.let
# num = 0x12AB
# num = 0b10101
# num = 1234
-# @example EnforcedOctalStyle: zero_only
-# # bad
-# num = 0o1234
-# num = 0O1234
-#
-# # good
-# num = 01234
#
# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#36
class RuboCop::Cop::Style::NumericLiteralPrefix < ::RuboCop::Cop::Base
@@ -47078,6 +47338,10 @@ RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsaf
# # good
# 1_000_000
# 1000
+# @example AllowedNumbers: [3000]
+#
+# # good
+# 3000 # You can specify allowed numbers. (e.g. port number)
# @example Strict: false (default)
#
# # good
@@ -47086,10 +47350,6 @@ RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsaf
#
# # bad
# 10_000_00 # typical representation of $10,000 in cents
-# @example AllowedNumbers: [3000]
-#
-# # good
-# 3000 # You can specify allowed numbers. (e.g. port number)
#
# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#43
class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base
@@ -47097,7 +47357,7 @@ class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedPattern
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11
+ # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#54
def min_digits=(value); end
# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#60
@@ -47157,13 +47417,28 @@ RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String)
# populated with objects which can be compared with integers, but are
# not themselves `Integer` polymorphic.
#
-# @example EnforcedStyle: predicate (default)
+# @example AllowedMethods: [==] with EnforcedStyle: predicate
+# # good
+# foo == 0
+#
+# # bad
+# 0 > foo
+# bar.baz > 0
+# @example AllowedMethods: [] (default) with EnforcedStyle: predicate
# # bad
# foo == 0
# 0 > foo
# bar.baz > 0
-#
+# @example AllowedPatterns: ['zero'] with EnforcedStyle: predicate
# # good
+# # bad
+# foo.zero?
+#
+# # bad
+# foo.negative?
+# bar.baz.positive?
+# @example AllowedPatterns: [] (default) with EnforcedStyle: comparison
+# # bad
# foo.zero?
# foo.negative?
# bar.baz.positive?
@@ -47177,29 +47452,14 @@ RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String)
# foo == 0
# 0 > foo
# bar.baz > 0
-# @example AllowedMethods: [] (default) with EnforcedStyle: predicate
+# @example EnforcedStyle: predicate (default)
# # bad
# foo == 0
# 0 > foo
# bar.baz > 0
-# @example AllowedMethods: [==] with EnforcedStyle: predicate
-# # good
-# foo == 0
#
-# # bad
-# 0 > foo
-# bar.baz > 0
-# @example AllowedPatterns: [] (default) with EnforcedStyle: comparison
-# # bad
-# foo.zero?
-# foo.negative?
-# bar.baz.positive?
-# @example AllowedPatterns: ['zero'] with EnforcedStyle: predicate
# # good
-# # bad
# foo.zero?
-#
-# # bad
# foo.negative?
# bar.baz.positive?
#
@@ -47293,13 +47553,13 @@ class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/object_then.rb#35
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/object_then.rb#43
+ # source://rubocop//lib/rubocop/cop/style/object_then.rb#48
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/style/object_then.rb#35
+ # source://rubocop//lib/rubocop/cop/style/object_then.rb#41
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/object_then.rb#35
+ # source://rubocop//lib/rubocop/cop/style/object_then.rb#40
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/object_then.rb#43
@@ -47627,7 +47887,7 @@ class RuboCop::Cop::Style::OptionalBooleanParameter < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43
+ # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#52
def on_defs(node); end
private
@@ -47667,16 +47927,16 @@ RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String
class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57
+ # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#65
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57
+ # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#66
def on_gvasgn(node); end
# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#51
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57
+ # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#64
def on_ivasgn(node); end
# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57
@@ -47931,12 +48191,6 @@ end
# if x > 10
# elsif x < 3
# end
-# @example AllowSafeAssignment: true (default)
-# # good
-# foo unless (bar = baz)
-# @example AllowSafeAssignment: false
-# # bad
-# foo unless (bar = baz)
# @example AllowInMultilineConditions: false (default)
# # bad
# if (x > 10 &&
@@ -47952,6 +48206,12 @@ end
# if (x > 10 &&
# y > 10)
# end
+# @example AllowSafeAssignment: false
+# # bad
+# foo unless (bar = baz)
+# @example AllowSafeAssignment: true (default)
+# # good
+# foo unless (bar = baz)
#
# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#56
class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base
@@ -47966,7 +48226,7 @@ class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#62
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#71
def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68
@@ -48036,7 +48296,7 @@ class RuboCop::Cop::Style::PercentLiteralDelimiters < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#30
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38
+ # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#41
def on_dstr(node); end
# source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#34
@@ -48251,7 +48511,7 @@ class RuboCop::Cop::Style::PreferredHashMethods < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43
+ # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#52
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43
@@ -48297,10 +48557,10 @@ class RuboCop::Cop::Style::Proc < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/proc.rb#24
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/proc.rb#24
+ # source://rubocop//lib/rubocop/cop/style/proc.rb#33
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/proc.rb#24
+ # source://rubocop//lib/rubocop/cop/style/proc.rb#32
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/proc.rb#22
@@ -48320,20 +48580,20 @@ RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String)
# are not quoted that don't need to be. This cop is for configuring the quoting
# style to use for symbols that require quotes.
#
-# @example EnforcedStyle: same_as_string_literals (default) / single_quotes
+# @example EnforcedStyle: double_quotes
# # bad
-# :"abc-def"
+# :'abc-def'
#
# # good
-# :'abc-def'
+# :"abc-def"
# :"#{str}"
# :"a\'b"
-# @example EnforcedStyle: double_quotes
+# @example EnforcedStyle: same_as_string_literals (default) / single_quotes
# # bad
-# :'abc-def'
+# :"abc-def"
#
# # good
-# :"abc-def"
+# :'abc-def'
# :"#{str}"
# :"a\'b"
#
@@ -48401,6 +48661,16 @@ RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String)
# The exploded style has an `AllowedCompactTypes` configuration
# option that takes an `Array` of exception name Strings.
#
+# @example EnforcedStyle: compact
+# # bad
+# raise StandardError, 'message'
+# raise RuntimeError, arg1, arg2, arg3
+#
+# # good
+# raise StandardError.new('message')
+# raise MyCustomError
+# raise MyCustomError.new(arg1, arg2, arg3)
+# fail 'message'
# @example EnforcedStyle: exploded (default)
# # bad
# raise StandardError.new('message')
@@ -48415,16 +48685,6 @@ RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String)
# # With `AllowedCompactTypes` set to ['MyWrappedError']
# raise MyWrappedError.new(obj)
# raise MyWrappedError.new(obj), 'message'
-# @example EnforcedStyle: compact
-# # bad
-# raise StandardError, 'message'
-# raise RuntimeError, arg1, arg2, arg3
-#
-# # good
-# raise StandardError.new('message')
-# raise MyCustomError
-# raise MyCustomError.new(arg1, arg2, arg3)
-# fail 'message'
#
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#47
class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base
@@ -48598,7 +48858,7 @@ class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#76
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64
@@ -48695,7 +48955,7 @@ class RuboCop::Cop::Style::RedundantArrayFlatten < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#34
def flatten_join?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#38
+ # source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#46
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_array_flatten.rb#38
@@ -48749,7 +49009,7 @@ class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#53
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#46
@@ -48856,16 +49116,16 @@ class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#80
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#80
+ # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#86
def on_defs(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88
+ # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#98
def on_itblock(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#100
def on_kwbegin(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88
+ # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#97
def on_numblock(node); end
private
@@ -49430,7 +49690,7 @@ RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil),
class RuboCop::Cop::Style::RedundantEach < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43
+ # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#59
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43
@@ -49695,7 +49955,7 @@ RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T
class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81
+ # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#90
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81
@@ -50021,15 +50281,15 @@ RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes::STRING_INTERPOLATION_OR_ES
# # good (changes the parameter requirements)
# def initialize(...)
# end
-# @example AllowComments: true (default)
+# @example AllowComments: false
#
-# # good
+# # bad
# def initialize
# # Overriding to negate superclass `initialize` method.
# end
-# @example AllowComments: false
+# @example AllowComments: true (default)
#
-# # bad
+# # good
# def initialize
# # Overriding to negate superclass `initialize` method.
# end
@@ -50687,7 +50947,7 @@ class RuboCop::Cop::Style::RedundantRegexpArgument < ::RuboCop::Cop::Base
include ::RuboCop::Cop::StringLiteralsHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#48
+ # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#61
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#48
@@ -50959,7 +51219,7 @@ class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#72
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#63
@@ -51080,7 +51340,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
# Assignment of self.x
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#74
def on_and_asgn(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#87
@@ -51099,7 +51359,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
# Using self.x to distinguish from local variable x
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#82
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#85
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
@@ -51108,7 +51368,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#103
def on_in_pattern(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#124
def on_itblock(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#99
@@ -51117,7 +51377,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#95
def on_masgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#123
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#76
@@ -51131,10 +51391,10 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#107
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#138
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#137
def on_while(node); end
private
@@ -51214,16 +51474,16 @@ class RuboCop::Cop::Style::RedundantSelfAssignment < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#77
+ # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#86
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59
+ # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#74
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59
+ # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#75
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59
+ # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#73
def on_ivasgn(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#59
@@ -51369,7 +51629,7 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#111
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104
@@ -51616,26 +51876,38 @@ RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String)
# do_something %r{=regexp} # `do_something /=regexp/` is an invalid syntax.
# ----
#
-# @example EnforcedStyle: slashes (default)
+# @example AllowInnerSlashes: false (default)
+# # If `false`, the cop will always recommend using `%r` if one or more
+# # slashes are found in the regexp string.
+#
+# # bad
+# x =~ /home\//
+#
+# # good
+# x =~ %r{home/}
+# @example AllowInnerSlashes: true
+# # good
+# x =~ /home\//
+# @example EnforcedStyle: mixed
# # bad
# snake_case = %r{^[\dA-Z_]+$}
#
# # bad
-# regex = %r{
+# regex = /
# foo
# (bar)
# (baz)
-# }x
+# /x
#
# # good
# snake_case = /^[\dA-Z_]+$/
#
# # good
-# regex = /
+# regex = %r{
# foo
# (bar)
# (baz)
-# /x
+# }x
# @example EnforcedStyle: percent_r
# # bad
# snake_case = /^[\dA-Z_]+$/
@@ -51656,38 +51928,26 @@ RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String)
# (bar)
# (baz)
# }x
-# @example EnforcedStyle: mixed
+# @example EnforcedStyle: slashes (default)
# # bad
# snake_case = %r{^[\dA-Z_]+$}
#
# # bad
-# regex = /
+# regex = %r{
# foo
# (bar)
# (baz)
-# /x
+# }x
#
# # good
# snake_case = /^[\dA-Z_]+$/
#
# # good
-# regex = %r{
+# regex = /
# foo
# (bar)
# (baz)
-# }x
-# @example AllowInnerSlashes: false (default)
-# # If `false`, the cop will always recommend using `%r` if one or more
-# # slashes are found in the regexp string.
-#
-# # bad
-# x =~ /home\//
-#
-# # good
-# x =~ %r{home/}
-# @example AllowInnerSlashes: true
-# # good
-# x =~ /home\//
+# /x
#
# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#93
class RuboCop::Cop::Style::RegexpLiteral < ::RuboCop::Cop::Base
@@ -52183,7 +52443,7 @@ class RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition < ::RuboCop::Cop
# source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81
+ # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#90
def on_defs(node); end
# source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#77
@@ -52506,7 +52766,7 @@ RuboCop::Cop::Style::SafeNavigationChainLength::MSG = T.let(T.unsafe(nil), Strin
class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/sample.rb#41
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#55
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/sample.rb#41
@@ -52603,7 +52863,7 @@ class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#77
def env_const?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#91
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#107
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#91
@@ -52824,7 +53084,7 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String)
#
# source://rubocop//lib/rubocop/cop/style/send.rb#16
class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base
- # source://rubocop//lib/rubocop/cop/style/send.rb#20
+ # source://rubocop//lib/rubocop/cop/style/send.rb#25
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/send.rb#20
@@ -52862,12 +53122,6 @@ RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
#
# # good
# obj.method_name
-# @example AllowSend: true (default)
-# # good
-# obj.send(:method_name)
-# obj.send('method_name')
-# obj.__send__(:method_name)
-# obj.__send__('method_name')
# @example AllowSend: false
# # bad
# obj.send(:method_name)
@@ -52877,12 +53131,18 @@ RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
#
# # good
# obj.method_name
+# @example AllowSend: true (default)
+# # good
+# obj.send(:method_name)
+# obj.send('method_name')
+# obj.__send__(:method_name)
+# obj.__send__('method_name')
#
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#54
class RuboCop::Cop::Style::SendWithLiteralMethodName < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#68
+ # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#86
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#68
@@ -52919,68 +53179,68 @@ RuboCop::Cop::Style::SendWithLiteralMethodName::STATIC_METHOD_NAME_NODE_TYPES =
# Checks for uses of `fail` and `raise`.
#
-# @example EnforcedStyle: only_raise (default)
-# # The `only_raise` style enforces the sole use of `raise`.
+# @example EnforcedStyle: only_fail
+# # The `only_fail` style enforces the sole use of `fail`.
# # bad
# begin
-# fail
+# raise
# rescue Exception
# # handle it
# end
#
# def watch_out
-# fail
+# raise
# rescue Exception
# # handle it
# end
#
-# Kernel.fail
+# Kernel.raise
#
# # good
# begin
-# raise
+# fail
# rescue Exception
# # handle it
# end
#
# def watch_out
-# raise
+# fail
# rescue Exception
# # handle it
# end
#
-# Kernel.raise
-# @example EnforcedStyle: only_fail
-# # The `only_fail` style enforces the sole use of `fail`.
+# Kernel.fail
+# @example EnforcedStyle: only_raise (default)
+# # The `only_raise` style enforces the sole use of `raise`.
# # bad
# begin
-# raise
+# fail
# rescue Exception
# # handle it
# end
#
# def watch_out
-# raise
+# fail
# rescue Exception
# # handle it
# end
#
-# Kernel.raise
+# Kernel.fail
#
# # good
# begin
-# fail
+# raise
# rescue Exception
# # handle it
# end
#
# def watch_out
-# fail
+# raise
# rescue Exception
# # handle it
# end
#
-# Kernel.fail
+# Kernel.raise
# @example EnforcedStyle: semantic
# # The `semantic` style enforces the use of `fail` to signal an
# # exception, then will use `raise` to trigger an offense after
@@ -53229,10 +53489,10 @@ class RuboCop::Cop::Style::SingleLineDoEndBlock < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#40
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#40
+ # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#59
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#40
+ # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#58
def on_numblock(node); end
private
@@ -53268,12 +53528,12 @@ RuboCop::Cop::Style::SingleLineDoEndBlock::MSG = T.let(T.unsafe(nil), String)
# def self.resource_class=(klass); end
# def @table.columns; end
# def some_method() = body
-# @example AllowIfMethodIsEmpty: true (default)
-# # good
-# def no_op; end
# @example AllowIfMethodIsEmpty: false
# # bad
# def no_op; end
+# @example AllowIfMethodIsEmpty: true (default)
+# # good
+# def no_op; end
#
# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#34
class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base
@@ -53283,7 +53543,7 @@ class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41
+ # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#48
def on_defs(node); end
private
@@ -53368,7 +53628,7 @@ class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#77
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#94
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#77
@@ -53542,30 +53802,14 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
# will add a require statement to the top of the file if
# enabled by RequireEnglish config.
#
-# @example EnforcedStyle: use_english_names (default)
-# # good
-# require 'English' # or this could be in another file.
+# @example EnforcedStyle: use_builtin_english_names
#
+# # good
+# # Like `use_perl_names` but allows builtin global vars.
# puts $LOAD_PATH
# puts $LOADED_FEATURES
# puts $PROGRAM_NAME
-# puts $ERROR_INFO
-# puts $ERROR_POSITION
-# puts $FIELD_SEPARATOR # or $FS
-# puts $OUTPUT_FIELD_SEPARATOR # or $OFS
-# puts $INPUT_RECORD_SEPARATOR # or $RS
-# puts $OUTPUT_RECORD_SEPARATOR # or $ORS
-# puts $INPUT_LINE_NUMBER # or $NR
-# puts $LAST_READ_LINE
-# puts $DEFAULT_OUTPUT
-# puts $DEFAULT_INPUT
-# puts $PROCESS_ID # or $PID
-# puts $CHILD_STATUS
-# puts $LAST_MATCH_INFO
-# puts $IGNORECASE
-# puts $ARGV # or ARGV
-# @example EnforcedStyle: use_perl_names
-# # good
+# puts ARGV
# puts $:
# puts $"
# puts $0
@@ -53584,14 +53828,30 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String)
# puts $~
# puts $=
# puts $*
-# @example EnforcedStyle: use_builtin_english_names
-#
+# @example EnforcedStyle: use_english_names (default)
# # good
-# # Like `use_perl_names` but allows builtin global vars.
+# require 'English' # or this could be in another file.
+#
# puts $LOAD_PATH
# puts $LOADED_FEATURES
# puts $PROGRAM_NAME
-# puts ARGV
+# puts $ERROR_INFO
+# puts $ERROR_POSITION
+# puts $FIELD_SEPARATOR # or $FS
+# puts $OUTPUT_FIELD_SEPARATOR # or $OFS
+# puts $INPUT_RECORD_SEPARATOR # or $RS
+# puts $OUTPUT_RECORD_SEPARATOR # or $ORS
+# puts $INPUT_LINE_NUMBER # or $NR
+# puts $LAST_READ_LINE
+# puts $DEFAULT_OUTPUT
+# puts $DEFAULT_INPUT
+# puts $PROCESS_ID # or $PID
+# puts $CHILD_STATUS
+# puts $LAST_MATCH_INFO
+# puts $IGNORECASE
+# puts $ARGV # or ARGV
+# @example EnforcedStyle: use_perl_names
+# # good
# puts $:
# puts $"
# puts $0
@@ -53698,18 +53958,18 @@ RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Ha
# Check for parentheses around stabby lambda arguments.
# There are two different styles. Defaults to `require_parentheses`.
#
-# @example EnforcedStyle: require_parentheses (default)
-# # bad
-# ->a,b,c { a + b + c }
-#
-# # good
-# ->(a,b,c) { a + b + c}
# @example EnforcedStyle: require_no_parentheses
# # bad
# ->(a,b,c) { a + b + c }
#
# # good
# ->a,b,c { a + b + c}
+# @example EnforcedStyle: require_parentheses (default)
+# # bad
+# ->a,b,c { a + b + c }
+#
+# # good
+# ->(a,b,c) { a + b + c}
#
# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#22
class RuboCop::Cop::Style::StabbyLambdaParentheses < ::RuboCop::Cop::Base
@@ -53891,7 +54151,7 @@ class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29
+ # source://rubocop//lib/rubocop/cop/style/string_chars.rb#38
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/string_chars.rb#29
@@ -54051,6 +54311,15 @@ RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String)
# Checks if uses of quotes match the configured preference.
#
+# @example EnforcedStyle: double_quotes
+# # bad
+# 'Just some text'
+# 'No special chars or interpolation'
+#
+# # good
+# "Just some text"
+# "No special chars or interpolation"
+# "Every string in #{project} uses double_quotes"
# @example EnforcedStyle: single_quotes (default)
# # bad
# "No special symbols"
@@ -54062,15 +54331,6 @@ RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String)
# 'No string interpolation'
# 'Just text'
# "Wait! What's #{this}!"
-# @example EnforcedStyle: double_quotes
-# # bad
-# 'Just some text'
-# 'No special chars or interpolation'
-#
-# # good
-# "Just some text"
-# "No special chars or interpolation"
-# "Every string in #{project} uses double_quotes"
#
# source://rubocop//lib/rubocop/cop/style/string_literals.rb#29
class RuboCop::Cop::Style::StringLiterals < ::RuboCop::Cop::Base
@@ -54136,22 +54396,6 @@ RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), Str
# Checks that quotes inside string, symbol, and regexp interpolations
# match the configured preference.
#
-# @example EnforcedStyle: single_quotes (default)
-# # bad
-# string = "Tests #{success ? "PASS" : "FAIL"}"
-# symbol = :"Tests #{success ? "PASS" : "FAIL"}"
-# heredoc = <<~TEXT
-# Tests #{success ? "PASS" : "FAIL"}
-# TEXT
-# regexp = /Tests #{success ? "PASS" : "FAIL"}/
-#
-# # good
-# string = "Tests #{success ? 'PASS' : 'FAIL'}"
-# symbol = :"Tests #{success ? 'PASS' : 'FAIL'}"
-# heredoc = <<~TEXT
-# Tests #{success ? 'PASS' : 'FAIL'}
-# TEXT
-# regexp = /Tests #{success ? 'PASS' : 'FAIL'}/
# @example EnforcedStyle: double_quotes
# # bad
# string = "Tests #{success ? 'PASS' : 'FAIL'}"
@@ -54168,6 +54412,22 @@ RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), Str
# Tests #{success ? "PASS" : "FAIL"}
# TEXT
# regexp = /Tests #{success ? "PASS" : "FAIL"}/
+# @example EnforcedStyle: single_quotes (default)
+# # bad
+# string = "Tests #{success ? "PASS" : "FAIL"}"
+# symbol = :"Tests #{success ? "PASS" : "FAIL"}"
+# heredoc = <<~TEXT
+# Tests #{success ? "PASS" : "FAIL"}
+# TEXT
+# regexp = /Tests #{success ? "PASS" : "FAIL"}/
+#
+# # good
+# string = "Tests #{success ? 'PASS' : 'FAIL'}"
+# symbol = :"Tests #{success ? 'PASS' : 'FAIL'}"
+# heredoc = <<~TEXT
+# Tests #{success ? 'PASS' : 'FAIL'}
+# TEXT
+# regexp = /Tests #{success ? 'PASS' : 'FAIL'}/
#
# source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#42
class RuboCop::Cop::Style::StringLiteralsInInterpolation < ::RuboCop::Cop::Base
@@ -54214,7 +54474,7 @@ class RuboCop::Cop::Style::StringMethods < ::RuboCop::Cop::Base
include ::RuboCop::Cop::MethodPreference
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23
+ # source://rubocop//lib/rubocop/cop/style/string_methods.rb#32
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/string_methods.rb#23
@@ -54243,7 +54503,7 @@ class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/strip.rb#24
def lstrip_rstrip(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/strip.rb#31
+ # source://rubocop//lib/rubocop/cop/style/strip.rb#41
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/strip.rb#31
@@ -54484,19 +54744,19 @@ class RuboCop::Cop::Style::SwapValues < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/swap_values.rb#30
def on_asgn(node); end
- # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30
+ # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43
def on_casgn(node); end
- # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30
+ # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43
def on_cvasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30
+ # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43
def on_gvasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30
+ # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43
def on_ivasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30
+ # source://rubocop//lib/rubocop/cop/style/swap_values.rb#43
def on_lvasgn(node); end
private
@@ -54550,6 +54810,12 @@ RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil),
# cop. For example, a `MinSize` of `3` will not enforce a style on an
# array of 2 or fewer elements.
#
+# @example EnforcedStyle: brackets
+# # good
+# [:foo, :bar, :baz]
+#
+# # bad
+# %i[foo bar baz]
# @example EnforcedStyle: percent (default)
# # good
# %i[foo bar baz]
@@ -54565,12 +54831,6 @@ RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil),
#
# # bad (contains () with spaces)
# %i(foo \( \))
-# @example EnforcedStyle: brackets
-# # good
-# [:foo, :bar, :baz]
-#
-# # bad
-# %i[foo bar baz]
#
# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#40
class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Base
@@ -54665,20 +54925,28 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
# `define_method?` methods are allowed by default.
# These are customizable with `AllowedMethods` option.
#
-# @example AllCops:ActiveSupportExtensionsEnabled: true
+# @example
+# # bad
+# something.map { |s| s.upcase }
+# something.map { _1.upcase }
+#
# # good
+# something.map(&:upcase)
+# @example AllCops:ActiveSupportExtensionsEnabled: false (default)
+# # bad
# ->(x) { x.foo }
# proc { |x| x.foo }
# Proc.new { |x| x.foo }
-# @example AllowMethodsWithArguments: false (default)
-# # bad
-# something.do_something(foo) { |o| o.bar }
#
# # good
-# something.do_something(foo, &:bar)
-# @example AllowMethodsWithArguments: true
+# lambda(&:foo)
+# proc(&:foo)
+# Proc.new(&:foo)
+# @example AllCops:ActiveSupportExtensionsEnabled: true
# # good
-# something.do_something(foo) { |o| o.bar }
+# ->(x) { x.foo }
+# proc { |x| x.foo }
+# Proc.new { |x| x.foo }
# @example AllowComments: false (default)
# # bad
# something.do_something do |s| # some comment
@@ -54693,32 +54961,24 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
# s.upcase # some comment
# # some comment
# end
+# @example AllowMethodsWithArguments: false (default)
+# # bad
+# something.do_something(foo) { |o| o.bar }
+#
+# # good
+# something.do_something(foo, &:bar)
+# @example AllowMethodsWithArguments: true
+# # good
+# something.do_something(foo) { |o| o.bar }
# @example AllowedMethods: [define_method] (default)
# # good
# define_method(:foo) { |foo| foo.bar }
-# @example AllowedPatterns: [] (default)
-# # bad
-# something.map { |s| s.upcase }
# @example AllowedPatterns: ['map'] (default)
# # good
# something.map { |s| s.upcase }
-# @example AllCops:ActiveSupportExtensionsEnabled: false (default)
-# # bad
-# ->(x) { x.foo }
-# proc { |x| x.foo }
-# Proc.new { |x| x.foo }
-#
-# # good
-# lambda(&:foo)
-# proc(&:foo)
-# Proc.new(&:foo)
-# @example
+# @example AllowedPatterns: [] (default)
# # bad
# something.map { |s| s.upcase }
-# something.map { _1.upcase }
-#
-# # good
-# something.map(&:upcase)
#
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140
class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
@@ -54736,10 +54996,10 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#171
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#171
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#189
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#171
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#188
def on_numblock(node); end
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
@@ -54864,6 +55124,12 @@ end
# an assignment to indicate "I know I'm using an assignment
# as a condition. It's not a mistake."
#
+# @example AllowSafeAssignment: false
+# # bad
+# foo = (bar = baz) ? a : b
+# @example AllowSafeAssignment: true (default)
+# # good
+# foo = (bar = baz) ? a : b
# @example EnforcedStyle: require_no_parentheses (default)
# # bad
# foo = (bar?) ? a : b
@@ -54894,12 +55160,6 @@ end
# foo = bar? ? a : b
# foo = bar.baz? ? a : b
# foo = (bar && baz) ? a : b
-# @example AllowSafeAssignment: true (default)
-# # good
-# foo = (bar = baz) ? a : b
-# @example AllowSafeAssignment: false
-# # bad
-# foo = (bar = baz) ? a : b
#
# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#57
class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base
@@ -55079,16 +55339,16 @@ class RuboCop::Cop::Style::TopLevelMethodDefinition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52
+ # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#57
def on_defs(node); end
- # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60
+ # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#67
def on_itblock(node); end
- # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60
+ # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#66
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52
+ # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#58
def on_send(node); end
private
@@ -55126,7 +55386,7 @@ class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25
+ # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#37
def on_sclass(node); end
end
@@ -55167,7 +55427,7 @@ class RuboCop::Cop::Style::TrailingBodyOnMethodDefinition < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38
+ # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#51
def on_defs(node); end
end
@@ -55212,14 +55472,14 @@ RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String)
# Regardless of style, trailing commas are not allowed in
# single-line method calls.
#
-# @example EnforcedStyleForMultiline: consistent_comma
+# @example EnforcedStyleForMultiline: comma
# # bad
# method(1, 2,)
#
# # good
# method(1, 2)
#
-# # good
+# # bad
# method(
# 1, 2,
# 3,
@@ -55227,22 +55487,33 @@ RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String)
#
# # good
# method(
+# 1, 2,
+# 3
+# )
+#
+# # bad
+# method(
# 1, 2, 3,
# )
#
# # good
# method(
+# 1, 2, 3
+# )
+#
+# # good
+# method(
# 1,
# 2,
# )
-# @example EnforcedStyleForMultiline: comma
+# @example EnforcedStyleForMultiline: consistent_comma
# # bad
# method(1, 2,)
#
# # good
# method(1, 2)
#
-# # bad
+# # good
# method(
# 1, 2,
# 3,
@@ -55250,22 +55521,11 @@ RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String)
#
# # good
# method(
-# 1, 2,
-# 3
-# )
-#
-# # bad
-# method(
# 1, 2, 3,
# )
#
# # good
# method(
-# 1, 2, 3
-# )
-#
-# # good
-# method(
# 1,
# 2,
# )
@@ -55295,7 +55555,7 @@ class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base
include ::RuboCop::Cop::TrailingComma
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#104
+ # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#111
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#104
@@ -55318,14 +55578,14 @@ end
# followed by an immediate newline, even if there is an inline comment on the same line.
# * `no_comma`: Does not require a comma after the last item in an array
#
-# @example EnforcedStyleForMultiline: consistent_comma
+# @example EnforcedStyleForMultiline: comma
# # bad
# a = [1, 2,]
#
# # good
# a = [1, 2]
#
-# # good
+# # bad
# a = [
# 1, 2,
# 3,
@@ -55333,30 +55593,33 @@ end
#
# # good
# a = [
+# 1, 2,
+# 3
+# ]
+#
+# # bad
+# a = [
# 1, 2, 3,
# ]
#
# # good
# a = [
-# 1,
-# 2,
+# 1, 2, 3
# ]
#
-# # bad
-# a = [1, 2,
-# 3, 4]
-#
# # good
-# a = [1, 2,
-# 3, 4,]
-# @example EnforcedStyleForMultiline: comma
+# a = [
+# 1,
+# 2,
+# ]
+# @example EnforcedStyleForMultiline: consistent_comma
# # bad
# a = [1, 2,]
#
# # good
# a = [1, 2]
#
-# # bad
+# # good
# a = [
# 1, 2,
# 3,
@@ -55364,25 +55627,22 @@ end
#
# # good
# a = [
-# 1, 2,
-# 3
-# ]
-#
-# # bad
-# a = [
# 1, 2, 3,
# ]
#
# # good
# a = [
-# 1, 2, 3
-# ]
-#
-# # good
-# a = [
# 1,
# 2,
# ]
+#
+# # bad
+# a = [1, 2,
+# 3, 4]
+#
+# # good
+# a = [1, 2,
+# 3, 4,]
# @example EnforcedStyleForMultiline: diff_comma
# # bad
# a = [1, 2,]
@@ -55516,7 +55776,7 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String
# followed by an immediate newline, even if there is an inline comment on the same line.
# * `no_comma`: Does not require a comma after the last item in a hash
#
-# @example EnforcedStyleForMultiline: consistent_comma
+# @example EnforcedStyleForMultiline: comma
#
# # bad
# a = { foo: 1, bar: 2, }
@@ -55524,7 +55784,7 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String
# # good
# a = { foo: 1, bar: 2 }
#
-# # good
+# # bad
# a = {
# foo: 1, bar: 2,
# qux: 3,
@@ -55532,23 +55792,26 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String
#
# # good
# a = {
+# foo: 1, bar: 2,
+# qux: 3
+# }
+#
+# # bad
+# a = {
# foo: 1, bar: 2, qux: 3,
# }
#
# # good
# a = {
-# foo: 1,
-# bar: 2,
+# foo: 1, bar: 2, qux: 3
# }
#
-# # bad
-# a = { foo: 1, bar: 2,
-# baz: 3, qux: 4 }
-#
# # good
-# a = { foo: 1, bar: 2,
-# baz: 3, qux: 4, }
-# @example EnforcedStyleForMultiline: comma
+# a = {
+# foo: 1,
+# bar: 2,
+# }
+# @example EnforcedStyleForMultiline: consistent_comma
#
# # bad
# a = { foo: 1, bar: 2, }
@@ -55556,7 +55819,7 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String
# # good
# a = { foo: 1, bar: 2 }
#
-# # bad
+# # good
# a = {
# foo: 1, bar: 2,
# qux: 3,
@@ -55564,25 +55827,22 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String
#
# # good
# a = {
-# foo: 1, bar: 2,
-# qux: 3
-# }
-#
-# # bad
-# a = {
# foo: 1, bar: 2, qux: 3,
# }
#
# # good
# a = {
-# foo: 1, bar: 2, qux: 3
-# }
-#
-# # good
-# a = {
# foo: 1,
# bar: 2,
# }
+#
+# # bad
+# a = { foo: 1, bar: 2,
+# baz: 3, qux: 4 }
+#
+# # good
+# a = { foo: 1, bar: 2,
+# baz: 3, qux: 4, }
# @example EnforcedStyleForMultiline: diff_comma
#
# # bad
@@ -55706,12 +55966,12 @@ RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), Stri
# # => We need to know to not include 2 variables in a
# a, *b, _ = foo()
# # => The correction `a, *b, = foo()` is a syntax error
-# @example AllowNamedUnderscoreVariables: true (default)
-# # good
-# a, b, _something = foo()
# @example AllowNamedUnderscoreVariables: false
# # bad
# a, b, _something = foo()
+# @example AllowNamedUnderscoreVariables: true (default)
+# # good
+# a, b, _something = foo()
#
# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#31
class RuboCop::Cop::Style::TrailingUnderscoreVariable < ::RuboCop::Cop::Base
@@ -55777,25 +56037,39 @@ RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil
# `to_open`, `to_path`, `to_proc`, `to_r`, `to_regexp`, `to_str`, `to_s`, and `to_sym` methods
# are allowed by default. These are customizable with `AllowedMethods` option.
#
-# @example AllowedMethods: ['allowed_method']
-# # good
-# def allowed_method
+# @example
+# # bad
+# def foo
# @foo
# end
-# @example ExactNameMatch: true (default)
+#
+# def bar=(val)
+# @bar = val
+# end
+#
+# def self.baz
+# @baz
+# end
+#
# # good
-# def name
-# @other_name
+# attr_reader :foo
+# attr_writer :bar
+#
+# class << self
+# attr_reader :baz
# end
-# @example ExactNameMatch: false
+# @example AllowDSLWriters: false
# # bad
-# def name
-# @other_name
+# def on_exception(action)
+# @on_exception=action
# end
-# @example AllowPredicates: true (default)
+#
# # good
-# def foo?
-# @foo
+# attr_writer :on_exception
+# @example AllowDSLWriters: true (default)
+# # good
+# def on_exception(action)
+# @on_exception=action
# end
# @example AllowPredicates: false
# # bad
@@ -55805,19 +56079,26 @@ RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil
#
# # good
# attr_reader :foo
-# @example AllowDSLWriters: true (default)
+# @example AllowPredicates: true (default)
# # good
-# def on_exception(action)
-# @on_exception=action
+# def foo?
+# @foo
# end
-# @example AllowDSLWriters: false
+# @example AllowedMethods: ['allowed_method']
+# # good
+# def allowed_method
+# @foo
+# end
+# @example ExactNameMatch: false
# # bad
-# def on_exception(action)
-# @on_exception=action
+# def name
+# @other_name
# end
-#
+# @example ExactNameMatch: true (default)
# # good
-# attr_writer :on_exception
+# def name
+# @other_name
+# end
# @example IgnoreClassMethods: false (default)
# # bad
# def self.foo
@@ -55833,27 +56114,6 @@ RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil
# def self.foo
# @foo
# end
-# @example
-# # bad
-# def foo
-# @foo
-# end
-#
-# def bar=(val)
-# @bar = val
-# end
-#
-# def self.baz
-# @baz
-# end
-#
-# # good
-# attr_reader :foo
-# attr_writer :bar
-#
-# class << self
-# attr_reader :baz
-# end
#
# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#98
class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Base
@@ -55866,7 +56126,7 @@ class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104
+ # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#111
def on_defs(node); end
private
@@ -56019,6 +56279,16 @@ RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String)
# This makes it even more easy to read the `unless` condition as
# there is only one condition in the expression.
#
+# @example EnforcedStyle: forbid_logical_operators
+# # bad
+# return unless a || b
+# return unless a && b
+# return unless a or b
+# return unless a and b
+#
+# # good
+# return unless a
+# return unless a?
# @example EnforcedStyle: forbid_mixed_logical_operators (default)
# # bad
# return unless a || b && c
@@ -56034,16 +56304,6 @@ RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String)
# return unless a and b and c
# return unless a or b or c
# return unless a?
-# @example EnforcedStyle: forbid_logical_operators
-# # bad
-# return unless a || b
-# return unless a && b
-# return unless a or b
-# return unless a and b
-#
-# # good
-# return unless a
-# return unless a?
#
# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#50
class RuboCop::Cop::Style::UnlessLogicalOperators < ::RuboCop::Cop::Base
@@ -56104,7 +56364,7 @@ class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#49
def on_csend(node); end
# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37
@@ -56212,7 +56472,7 @@ RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34
+ # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#43
def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34
@@ -56258,7 +56518,7 @@ class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base
include ::RuboCop::Cop::StatementModifier
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40
+ # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#47
def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40
@@ -56282,56 +56542,56 @@ RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String)
# cop. For example, a `MinSize` of `3` will not enforce a style on an
# array of 2 or fewer elements.
#
-# @example EnforcedStyle: percent (default)
+# @example EnforcedStyle: brackets
# # good
-# %w[foo bar baz]
+# ['foo', 'bar', 'baz']
#
# # bad
-# ['foo', 'bar', 'baz']
+# %w[foo bar baz]
#
-# # bad (contains spaces)
-# %w[foo\ bar baz\ quux]
+# # good (contains spaces)
+# ['foo bar', 'baz quux']
#
-# # bad
+# # good
# [
# ['one', 'One'],
# ['two', 'Two']
# ]
#
-# # good
+# # bad
# [
# %w[one One],
# %w[two Two]
# ]
-#
-# # good (2d array containing spaces)
-# [
-# ['one', 'One'],
-# ['two', 'Two'],
-# ['forty two', 'Forty Two']
-# ]
-# @example EnforcedStyle: brackets
+# @example EnforcedStyle: percent (default)
# # good
-# ['foo', 'bar', 'baz']
+# %w[foo bar baz]
#
# # bad
-# %w[foo bar baz]
+# ['foo', 'bar', 'baz']
#
-# # good (contains spaces)
-# ['foo bar', 'baz quux']
+# # bad (contains spaces)
+# %w[foo\ bar baz\ quux]
#
-# # good
+# # bad
# [
# ['one', 'One'],
# ['two', 'Two']
# ]
#
-# # bad
+# # good
# [
# %w[one One],
# %w[two Two]
# ]
#
+# # good (2d array containing spaces)
+# [
+# ['one', 'One'],
+# ['two', 'Two'],
+# ['forty two', 'Forty Two']
+# ]
+#
# source://rubocop//lib/rubocop/cop/style/word_array.rb#71
class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ArrayMinSize
@@ -56902,7 +57162,7 @@ class RuboCop::Cop::Team
# Returns the value of attribute updated_source_file.
#
- # source://rubocop//lib/rubocop/cop/team.rb#57
+ # source://rubocop//lib/rubocop/cop/team.rb#59
def updated_source_file?; end
# Returns the value of attribute warnings.
@@ -57828,7 +58088,7 @@ class RuboCop::Cop::VariableForce::Assignment
# Returns the value of attribute reassigned.
#
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#15
def reassigned?; end
# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#39
@@ -57841,7 +58101,7 @@ class RuboCop::Cop::VariableForce::Assignment
# Returns the value of attribute referenced.
#
- # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12
+ # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#14
def referenced?; end
# Returns the value of attribute references.
@@ -57906,19 +58166,32 @@ class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct
# Returns the value of attribute node
#
# @return [Object] the current value of node
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def node; end
# Sets the attribute node
#
# @param value [Object] the value to set the attribute node to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def node=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def members; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#68
def new(*_arg0); end
end
end
@@ -57985,12 +58258,16 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct
# Returns the value of attribute child_node
#
# @return [Object] the current value of child_node
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def child_node; end
# Sets the attribute child_node
#
# @param value [Object] the value to set the attribute child_node to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def child_node=(_); end
# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#70
@@ -58002,7 +58279,7 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct
# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#80
def each_ancestor(include_self: T.unsafe(nil), &block); end
- # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#127
def eql?(other); end
# @return [Boolean]
@@ -58029,12 +58306,16 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct
# Returns the value of attribute scope
#
# @return [Object] the current value of scope
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def scope; end
# Sets the attribute scope
#
# @param value [Object] the value to set the attribute scope to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def scope=(_); end
private
@@ -58043,6 +58324,7 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct
def scan_ancestors; end
class << self
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def [](*_arg0); end
# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#43
@@ -58056,9 +58338,16 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct
# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#47
def inherited(subclass); end
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def members; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42
def new(*_arg0); end
# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#52
@@ -58477,7 +58766,7 @@ class RuboCop::Cop::VariableForce::Scope
# Returns the value of attribute naked_top_level.
#
- # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18
+ # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#20
def naked_top_level?; end
# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#39
@@ -58575,7 +58864,7 @@ class RuboCop::Cop::VariableForce::Variable
# Returns the value of attribute captured_by_block.
#
- # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11
+ # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def captured_by_block?; end
# Returns the value of attribute declaration_node.
@@ -58665,19 +58954,32 @@ class RuboCop::Cop::VariableForce::VariableReference < ::Struct
# Returns the value of attribute name
#
# @return [Object] the current value of name
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def name; end
# Sets the attribute name
#
# @param value [Object] the value to set the attribute name to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def name=(_); end
class << self
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def inspect; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def members; end
+
+ # source://rubocop//lib/rubocop/cop/variable_force.rb#62
def new(*_arg0); end
end
end
@@ -59939,23 +60241,31 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
# Returns the value of attribute alpha
#
# @return [Object] the current value of alpha
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def alpha; end
# Sets the attribute alpha
#
# @param value [Object] the value to set the attribute alpha to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def alpha=(_); end
# Returns the value of attribute blue
#
# @return [Object] the current value of blue
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def blue; end
# Sets the attribute blue
#
# @param value [Object] the value to set the attribute blue to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def blue=(_); end
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#19
@@ -59964,33 +60274,50 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
# Returns the value of attribute green
#
# @return [Object] the current value of green
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def green; end
# Sets the attribute green
#
# @param value [Object] the value to set the attribute green to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def green=(_); end
# Returns the value of attribute red
#
# @return [Object] the current value of red
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def red; end
# Sets the attribute red
#
# @param value [Object] the value to set the attribute red to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def red=(_); end
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#15
def to_s; end
class << self
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def inspect; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def members; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
def new(*_arg0); end
end
end
@@ -60061,30 +60388,47 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
# Returns the value of attribute offenses
#
# @return [Object] the current value of offenses
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def offenses; end
# Sets the attribute offenses
#
# @param value [Object] the value to set the attribute offenses to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def offenses=(_); end
# Returns the value of attribute path
#
# @return [Object] the current value of path
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def path; end
# Sets the attribute path
#
# @param value [Object] the value to set the attribute path to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def path=(_); end
class << self
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def inspect; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def members; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
def new(*_arg0); end
end
end
@@ -60094,41 +60438,62 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct
# Returns the value of attribute inspected_files
#
# @return [Object] the current value of inspected_files
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def inspected_files; end
# Sets the attribute inspected_files
#
# @param value [Object] the value to set the attribute inspected_files to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def inspected_files=(_); end
# Returns the value of attribute offense_count
#
# @return [Object] the current value of offense_count
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def offense_count; end
# Sets the attribute offense_count
#
# @param value [Object] the value to set the attribute offense_count to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def offense_count=(_); end
# Returns the value of attribute target_files
#
# @return [Object] the current value of target_files
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def target_files; end
# Sets the attribute target_files
#
# @param value [Object] the value to set the attribute target_files to.
# @return [Object] the newly set value
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def target_files=(_); end
class << self
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def [](*_arg0); end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def inspect; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def keyword_init?; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def members; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
def new(*_arg0); end
end
end
@@ -60891,8 +61256,8 @@ end
# )
#
# comment.encoding # => 'ascii-8bit'
-# @see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html
# @see https://github.com/ruby/ruby/blob/3f306dc/parse.y#L6873-L6892 Emacs handling in parse.y
+# @see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html
#
# source://rubocop//lib/rubocop/magic_comment.rb#190
class RuboCop::MagicComment::EmacsComment < ::RuboCop::MagicComment::EditorComment
@@ -60932,14 +61297,14 @@ RuboCop::MagicComment::KEYWORDS = T.let(T.unsafe(nil), Hash)
#
# Simple comments can only specify one setting per comment.
#
-# @example frozen string literal comments
-# comment1 = RuboCop::MagicComment.parse('# frozen_string_literal: true')
-# comment1.frozen_string_literal # => true
-# comment1.encoding # => nil
# @example encoding comments
# comment2 = RuboCop::MagicComment.parse('# encoding: utf-8')
# comment2.frozen_string_literal # => nil
# comment2.encoding # => 'utf-8'
+# @example frozen string literal comments
+# comment1 = RuboCop::MagicComment.parse('# frozen_string_literal: true')
+# comment1.frozen_string_literal # => true
+# comment1.encoding # => nil
#
# source://rubocop//lib/rubocop/magic_comment.rb#265
class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment
diff --git a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
index f832ab1c..7300ec96 100644
--- a/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
+++ b/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
@@ -22,7 +22,7 @@ class ProgressBar::Base
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#45
def initialize(options = T.unsafe(nil)); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#36
def clear(*args, **_arg1, &block); end
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#137
@@ -36,7 +36,7 @@ class ProgressBar::Base
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#129
def finished?; end
- # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#209
def format(other); end
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#203
@@ -48,7 +48,7 @@ class ProgressBar::Base
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#199
def inspect; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#36
def log(*args, **_arg1, &block); end
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#102
@@ -56,10 +56,10 @@ class ProgressBar::Base
# @return [Boolean]
#
- # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#127
def paused?; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#41
def progress(*args, **_arg1, &block); end
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#145
@@ -68,7 +68,7 @@ class ProgressBar::Base
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#153
def progress_mark=(mark); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#36
def refresh(*args, **_arg1, &block); end
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#157
@@ -108,7 +108,7 @@ class ProgressBar::Base
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#169
def to_s(new_format = T.unsafe(nil)); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://ruby-progressbar//lib/ruby-progressbar/base.rb#41
def total(*args, **_arg1, &block); end
# source://ruby-progressbar//lib/ruby-progressbar/base.rb#149
@@ -928,7 +928,7 @@ class ProgressBar::Outputs::Tty < ::ProgressBar::Output
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#27
def eol; end
- # source://ruby-progressbar//lib/ruby-progressbar/output.rb#45
+ # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#8
def refresh_with_format_change; end
# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#23
diff --git a/sorbet/rbi/gems/ruby_llm@1.8.2.rbi b/sorbet/rbi/gems/ruby_llm@1.8.2.rbi
index d04528e4..17535633 100644
--- a/sorbet/rbi/gems/ruby_llm@1.8.2.rbi
+++ b/sorbet/rbi/gems/ruby_llm@1.8.2.rbi
@@ -65,7 +65,7 @@ module RubyLLM::ActiveRecord::ActsAs
end
end
-# source://ruby_llm//lib/ruby_llm/active_record/acts_as.rb#0
+# source://ruby_llm//lib/ruby_llm/active_record/acts_as.rb#33
module RubyLLM::ActiveRecord::ActsAs::ClassMethods
# source://ruby_llm//lib/ruby_llm/active_record/acts_as.rb#34
def acts_as_chat(messages: T.unsafe(nil), message_class: T.unsafe(nil), model: T.unsafe(nil), model_class: T.unsafe(nil)); end
@@ -89,7 +89,7 @@ module RubyLLM::ActiveRecord::ActsAsLegacy
mixes_in_class_methods ::RubyLLM::ActiveRecord::ActsAsLegacy::ClassMethods
end
-# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#0
+# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#9
module RubyLLM::ActiveRecord::ActsAsLegacy::ClassMethods
# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#10
def acts_as_chat(message_class: T.unsafe(nil), tool_call_class: T.unsafe(nil)); end
@@ -130,7 +130,7 @@ module RubyLLM::ActiveRecord::ChatLegacyMethods
# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#183
def on_tool_result(*_arg0, **_arg1, &_arg2); end
- # source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#194
+ # source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#199
def say(message, with: T.unsafe(nil), &_arg2); end
# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#89
@@ -196,7 +196,7 @@ module RubyLLM::ActiveRecord::ChatLegacyMethods
def setup_persistence_callbacks; end
end
-# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#0
+# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#85
module RubyLLM::ActiveRecord::ChatLegacyMethods::ClassMethods
# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#86
def tool_call_class; end
@@ -268,7 +268,7 @@ module RubyLLM::ActiveRecord::ChatMethods
# source://ruby_llm//lib/ruby_llm/active_record/chat_methods.rb#34
def provider=(value); end
- # source://ruby_llm//lib/ruby_llm/active_record/chat_methods.rb#182
+ # source://ruby_llm//lib/ruby_llm/active_record/chat_methods.rb#187
def say(message, with: T.unsafe(nil), &_arg2); end
# source://ruby_llm//lib/ruby_llm/active_record/chat_methods.rb#78
@@ -360,7 +360,7 @@ module RubyLLM::ActiveRecord::MessageLegacyMethods
def extract_tool_calls; end
end
-# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#0
+# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#335
module RubyLLM::ActiveRecord::MessageLegacyMethods::ClassMethods
# source://ruby_llm//lib/ruby_llm/active_record/acts_as_legacy.rb#336
def chat_class; end
@@ -401,7 +401,7 @@ module RubyLLM::ActiveRecord::MessageMethods
def extract_tool_calls; end
end
-# source://ruby_llm//lib/ruby_llm/active_record/message_methods.rb#0
+# source://ruby_llm//lib/ruby_llm/active_record/message_methods.rb#9
module RubyLLM::ActiveRecord::MessageMethods::ClassMethods
# source://ruby_llm//lib/ruby_llm/active_record/message_methods.rb#10
def chat_class; end
@@ -464,7 +464,7 @@ module RubyLLM::ActiveRecord::ModelMethods
def type(*_arg0, **_arg1, &_arg2); end
end
-# source://ruby_llm//lib/ruby_llm/active_record/model_methods.rb#0
+# source://ruby_llm//lib/ruby_llm/active_record/model_methods.rb#9
module RubyLLM::ActiveRecord::ModelMethods::ClassMethods
# source://ruby_llm//lib/ruby_llm/active_record/model_methods.rb#36
def from_llm(model_info); end
@@ -680,7 +680,7 @@ class RubyLLM::Chat
# source://ruby_llm//lib/ruby_llm/chat.rb#162
def reset_messages!; end
- # source://ruby_llm//lib/ruby_llm/chat.rb#33
+ # source://ruby_llm//lib/ruby_llm/chat.rb#38
def say(message = T.unsafe(nil), with: T.unsafe(nil), &_arg2); end
# Returns the value of attribute schema.
@@ -1884,18 +1884,12 @@ class RubyLLM::Models
# source://ruby_llm//lib/ruby_llm/models.rb#204
def image_models; end
- # source://ruby_llm//lib/ruby_llm/active_record/acts_as.rb#21
- def load_from_database!; end
-
# source://ruby_llm//lib/ruby_llm/models.rb#161
def load_from_json!; end
- # source://ruby_llm//lib/ruby_llm/active_record/acts_as.rb#14
+ # source://ruby_llm//lib/ruby_llm/models.rb#157
def load_models; end
- # source://ruby_llm//lib/ruby_llm/active_record/acts_as.rb#25
- def read_from_database; end
-
# source://ruby_llm//lib/ruby_llm/models.rb#165
def read_from_json; end
@@ -2209,7 +2203,7 @@ class RubyLLM::Provider
end
end
-# source://ruby_llm//lib/ruby_llm.rb#0
+# source://ruby_llm//lib/ruby_llm.rb#85
module RubyLLM::Providers; end
# Anthropic Claude API integration.
@@ -2438,13 +2432,13 @@ module RubyLLM::Providers::Anthropic::Embeddings
# source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#10
def embed; end
- # source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#10
+ # source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#15
def embedding_url; end
- # source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#10
+ # source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#16
def parse_embedding_response; end
- # source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#10
+ # source://ruby_llm//lib/ruby_llm/providers/anthropic/embeddings.rb#14
def render_embedding_payload; end
end
@@ -3163,9 +3157,9 @@ class RubyLLM::Providers::Bedrock::Signing::HeaderBuilder
# Build authorization headers for a signature
#
- # @param sigv4_headers [Hash] Headers for the signature
- # @param signature [Hash] The computed signature
# @param components [Hash] Request components
+ # @param signature [Hash] The computed signature
+ # @param sigv4_headers [Hash] Headers for the signature
# @return [Hash] Headers with authorization
#
# source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#453
@@ -3197,41 +3191,62 @@ class RubyLLM::Providers::Bedrock::Signing::ParamComponent < ::Struct
# Returns the value of attribute name
#
# @return [Object] the current value of name
+ #
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
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://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def name=(_); end
# Returns the value of attribute offset
#
# @return [Object] the current value of offset
+ #
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def offset; end
# Sets the attribute offset
#
# @param value [Object] the value to set the attribute offset to.
# @return [Object] the newly set value
+ #
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def offset=(_); end
# Returns the value of attribute value
#
# @return [Object] the current value of value
+ #
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
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://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def value=(_); end
class << self
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def [](*_arg0); end
+
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def inspect; end
+
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def keyword_init?; end
+
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def members; end
+
+ # source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#189
def new(*_arg0); end
end
end
@@ -3252,8 +3267,8 @@ class RubyLLM::Providers::Bedrock::Signing::RequestExtractor
# Extract and process request components
#
- # @param request [Hash] The request to process
# @param options [Hash] Options for extraction
+ # @param request [Hash] The request to process
# @return [Hash] Processed request components
#
# source://ruby_llm//lib/ruby_llm/providers/bedrock/signing.rb#364
diff --git a/sorbet/rbi/gems/securerandom@0.4.1.rbi b/sorbet/rbi/gems/securerandom@0.4.1.rbi
index faee3b91..9fb73343 100644
--- a/sorbet/rbi/gems/securerandom@0.4.1.rbi
+++ b/sorbet/rbi/gems/securerandom@0.4.1.rbi
@@ -52,7 +52,7 @@ module SecureRandom
# source://securerandom//lib/securerandom.rb#50
def bytes(n); end
- # source://securerandom//lib/securerandom.rb#70
+ # source://securerandom//lib/securerandom.rb#84
def gen_random(n); end
private
diff --git a/sorbet/rbi/gems/simplecov-html@0.13.2.rbi b/sorbet/rbi/gems/simplecov-html@0.13.2.rbi
index bf14804a..c4eb02a5 100644
--- a/sorbet/rbi/gems/simplecov-html@0.13.2.rbi
+++ b/sorbet/rbi/gems/simplecov-html@0.13.2.rbi
@@ -6,139 +6,10 @@
# source://simplecov-html//lib/simplecov-html.rb#15
-module SimpleCov
- class << self
- # source://simplecov/0.22.0/lib/simplecov.rb#174
- def at_exit_behavior; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#170
- def clear_result; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#86
- def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#223
- def exit_and_report_previous_error(exit_status); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#200
- def exit_status_from_exception; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#28
- def external_at_exit; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#28
- def external_at_exit=(_arg0); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#28
- def external_at_exit?; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#131
- def filtered(files); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#268
- def final_result_process?; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#142
- def grouped(files); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#162
- def load_adapter(name); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#158
- def load_profile(name); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#24
- def pid; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#24
- def pid=(_arg0); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#213
- def previous_error?(error_exit_status); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#248
- def process_result(result); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#233
- def process_results_and_report_error; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#229
- def ready_to_process_results?; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#101
- def result; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#124
- def result?; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#256
- def result_exit_status(result); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#296
- def round_coverage(coverage); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#186
- def run_exit_tasks!; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#24
- def running; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#24
- def running=(_arg0); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#48
- def start(profile = T.unsafe(nil), &block); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#276
- def wait_for_other_processes; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#285
- def write_last_run(result); end
-
- private
-
- # source://simplecov/0.22.0/lib/simplecov.rb#399
- def adapt_coverage_result; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#371
- def add_not_loaded_files(result); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#302
- def initial_setup(profile, &block); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#363
- def lookup_corresponding_ruby_coverage_name(criterion); end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#425
- def make_parallel_tests_available; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#434
- def probably_running_parallel_tests?; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#388
- def process_coverage_result; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#410
- def remove_useless_results; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#420
- def result_with_not_loaded_files; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#314
- def start_coverage_measurement; end
-
- # source://simplecov/0.22.0/lib/simplecov.rb#349
- def start_coverage_with_criteria; end
- end
-end
+module SimpleCov; end
# source://simplecov-html//lib/simplecov-html.rb#16
-module SimpleCov::Formatter
- class << self
- # source://simplecov/0.22.0/lib/simplecov/default_formatter.rb#7
- def from_env(env); end
- end
-end
+module SimpleCov::Formatter; end
# source://simplecov-html//lib/simplecov-html.rb#17
class SimpleCov::Formatter::HTMLFormatter
diff --git a/sorbet/rbi/gems/simplecov@0.22.0.rbi b/sorbet/rbi/gems/simplecov@0.22.0.rbi
index 5b1c0e0e..b2b8cf2c 100644
--- a/sorbet/rbi/gems/simplecov@0.22.0.rbi
+++ b/sorbet/rbi/gems/simplecov@0.22.0.rbi
@@ -11,107 +11,8 @@
# source://simplecov//lib/minitest/simplecov_plugin.rb#5
module Minitest
class << self
- # source://minitest/5.25.5/lib/minitest.rb#323
- def __run(reporter, options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#97
- def after_run(&block); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def allow_fork; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def allow_fork=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#70
- def autorun; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def backtrace_filter; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def backtrace_filter=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#19
- def cattr_accessor(name); end
-
- # source://minitest/5.25.5/lib/minitest.rb#1216
- def clock_time; end
-
- # source://minitest/5.25.5/lib/minitest.rb#303
- def empty_run!(options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def extensions; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def extensions=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#336
- def filter_backtrace(bt); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def info_signal; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def info_signal=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#125
- def init_plugins(options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#109
- def load_plugins; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def parallel_executor; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def parallel_executor=(_arg0); end
-
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#8
- def plugin_guard_minitest_init(options); end
-
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#2
- def plugin_guard_minitest_options(opts, options); end
-
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#10
- def plugin_pride_init(options); end
-
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#4
- def plugin_pride_options(opts, _options); end
-
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#12
- def plugin_rg_init(options); end
-
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#6
- def plugin_rg_options(opts, _options); end
-
# source://simplecov//lib/minitest/simplecov_plugin.rb#6
def plugin_simplecov_init(_options); end
-
- # source://minitest/5.25.5/lib/minitest.rb#143
- def process_args(args = T.unsafe(nil)); end
-
- # source://minitest/5.25.5/lib/minitest.rb#104
- def register_plugin(name_or_mod); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def reporter; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def reporter=(_arg0); end
-
- # source://minitest/5.25.5/lib/minitest.rb#269
- def run(args = T.unsafe(nil)); end
-
- # source://minitest/5.25.5/lib/minitest.rb#1207
- def run_one_method(klass, method_name); end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def seed; end
-
- # source://minitest/5.25.5/lib/minitest.rb#20
- def seed=(_arg0); end
end
end
@@ -185,7 +86,7 @@ module SimpleCov
# Basically, should we take care of at_exit behavior or something else?
# Used by the minitest plugin. See lib/minitest/simplecov_plugin.rb
#
- # source://simplecov//lib/simplecov.rb#28
+ # source://simplecov//lib/simplecov.rb#29
def external_at_exit?; end
# Applies the configured filters to the given array of SimpleCov::SourceFile items
@@ -1001,7 +902,7 @@ module SimpleCov::Configuration
#
# Configure with SimpleCov.nocov_token('skip') or it's alias SimpleCov.skip_token('skip')
#
- # source://simplecov//lib/simplecov/configuration.rb#140
+ # source://simplecov//lib/simplecov/configuration.rb#145
def skip_token(nocov_token = T.unsafe(nil)); end
# Coverage results will always include files matched by this glob, whether
@@ -1281,7 +1182,7 @@ class SimpleCov::FileList
# source://simplecov//lib/simplecov/file_list.rb#101
def branch_covered_percent; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def count(*args, **_arg1, &block); end
# source://simplecov//lib/simplecov/file_list.rb#26
@@ -1320,10 +1221,10 @@ class SimpleCov::FileList
# source://simplecov//lib/simplecov/file_list.rb#82
def covered_strength; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def each(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def empty?(*args, **_arg1, &block); end
# Finds the least covered file and returns that file's name
@@ -1331,7 +1232,7 @@ class SimpleCov::FileList
# source://simplecov//lib/simplecov/file_list.rb#65
def least_covered_file; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def length(*args, **_arg1, &block); end
# Returns the overall amount of relevant lines of code across all files in this list
@@ -1339,7 +1240,7 @@ class SimpleCov::FileList
# source://simplecov//lib/simplecov/file_list.rb#70
def lines_of_code; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def map(*args, **_arg1, &block); end
# Return total count of covered branches
@@ -1357,7 +1258,7 @@ class SimpleCov::FileList
# source://simplecov//lib/simplecov/file_list.rb#45
def never_lines; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def size(*args, **_arg1, &block); end
# Returns the count of skipped lines
@@ -1365,10 +1266,10 @@ class SimpleCov::FileList
# source://simplecov//lib/simplecov/file_list.rb#52
def skipped_lines; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def to_a(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/file_list.rb#10
def to_ary(*args, **_arg1, &block); end
# Return total count of branches in all files
@@ -1575,25 +1476,25 @@ class SimpleCov::Result
# source://simplecov//lib/simplecov/result.rb#21
def command_name=(_arg0); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def coverage_statistics(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def coverage_statistics_by_file(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def covered_branches(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def covered_lines(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def covered_percent(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def covered_percentages(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def covered_strength(*args, **_arg1, &block); end
# Defines when this result has been created. Defaults to Time.now
@@ -1626,13 +1527,13 @@ class SimpleCov::Result
# source://simplecov//lib/simplecov/result.rb#45
def groups; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def least_covered_file(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def missed_branches(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def missed_lines(*args, **_arg1, &block); end
# Returns the original Coverage.result used for this instance of SimpleCov::Result
@@ -1642,7 +1543,7 @@ class SimpleCov::Result
# Returns all files that are applicable to this result (sans filters!) as instances of SimpleCov::SourceFile. Aliased as :source_files
#
- # source://simplecov//lib/simplecov/result.rb#16
+ # source://simplecov//lib/simplecov/result.rb#17
def source_files; end
# Returns a hash representation of this Result that can be used for marshalling it into JSON
@@ -1650,10 +1551,10 @@ class SimpleCov::Result
# source://simplecov//lib/simplecov/result.rb#66
def to_hash; end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#23
def total_branches(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
+ # source://simplecov//lib/simplecov/result.rb#24
def total_lines(*args, **_arg1, &block); end
private
@@ -1946,13 +1847,13 @@ class SimpleCov::SourceFile
# The source code for this file. Aliased as :source
#
- # source://simplecov//lib/simplecov/source_file.rb#25
+ # source://simplecov//lib/simplecov/source_file.rb#30
def source; end
# Returns all source lines for this file as instances of SimpleCov::SourceFile::Line,
# and thus including coverage data. Aliased as :source_lines
#
- # source://simplecov//lib/simplecov/source_file.rb#42
+ # source://simplecov//lib/simplecov/source_file.rb#45
def source_lines; end
# The source code for this file. Aliased as :source
@@ -2162,7 +2063,7 @@ class SimpleCov::SourceFile::Line
# The line number in the source file. Aliased as :line, :number
#
- # source://simplecov//lib/simplecov/source_file/line.rb#14
+ # source://simplecov//lib/simplecov/source_file/line.rb#22
def line; end
# The line number in the source file. Aliased as :line, :number
@@ -2186,7 +2087,7 @@ class SimpleCov::SourceFile::Line
# The line number in the source file. Aliased as :line, :number
#
- # source://simplecov//lib/simplecov/source_file/line.rb#14
+ # source://simplecov//lib/simplecov/source_file/line.rb#23
def number; end
# Whether this line was skipped
@@ -2210,7 +2111,7 @@ class SimpleCov::SourceFile::Line
# The source code for this line. Aliased as :source
# Lets grab some fancy aliases, shall we?
#
- # source://simplecov//lib/simplecov/source_file/line.rb#12
+ # source://simplecov//lib/simplecov/source_file/line.rb#21
def source; end
# The source code for this line. Aliased as :source
diff --git a/sorbet/rbi/gems/spoom@1.6.3.rbi b/sorbet/rbi/gems/spoom@1.7.11.rbi
similarity index 68%
rename from sorbet/rbi/gems/spoom@1.6.3.rbi
rename to sorbet/rbi/gems/spoom@1.7.11.rbi
index b89e6827..d3edf97d 100644
--- a/sorbet/rbi/gems/spoom@1.6.3.rbi
+++ b/sorbet/rbi/gems/spoom@1.7.11.rbi
@@ -9,22 +9,30 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `spoom` gem.
-# Please instead update this file by running `spoom srb sigs export`.
+# Please instead update this file by running `bundle exec spoom srb sigs export`.
# source://spoom//lib/spoom.rb#7
module Spoom
class << self
- # : (String ruby, file: String) -> Prism::Node
- #
# source://spoom//lib/spoom/parse.rb#11
- sig { params(ruby: ::String, file: ::String).returns(::Prism::Node) }
+ sig { params(ruby: ::String, file: ::String).returns([::Prism::Node, T::Array[::Prism::Comment]]) }
def parse_ruby(ruby, file:); end
+ end
+end
- # : (String ruby, file: String) -> [Prism::Node, Array[Prism::Comment]]
+# source://spoom//lib/spoom/bundler_helper.rb#5
+module Spoom::BundlerHelper
+ class << self
+ # Generate a gem requirement for the given gem name, using that gem's version in the "real" current bundle.
#
- # source://spoom//lib/spoom/parse.rb#27
- sig { params(ruby: ::String, file: ::String).returns([::Prism::Node, T::Array[::Prism::Comment]]) }
- def parse_ruby_with_comments(ruby, file:); end
+ # This ensures that any child Spoom::Contexts use predictable gem versions,
+ # without having to manually specify them and bump them to stay in sync with Spoom's real Gemfile.
+ #
+ # Given `"foo"`, returns a string like 'gem "foo", "= 1.2.3"', suitable for inserting into a Gemfile.
+ #
+ # source://spoom//lib/spoom/bundler_helper.rb#16
+ sig { params(gem_name: ::String).returns(::String) }
+ def gem_requirement_from_real_bundle(gem_name); end
end
end
@@ -36,132 +44,108 @@ class Spoom::Cli::Deadcode < ::Thor
include ::Spoom::Colorize
include ::Spoom::Cli::Helper
- # : (*String paths) -> void
- #
# source://spoom//lib/spoom/cli/deadcode.rb#51
sig { params(paths: ::String).void }
def deadcode(*paths); end
+ # source://spoom//lib/spoom/cli.rb#71
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
# source://spoom//lib/spoom/cli/deadcode.rb#153
def remove(location_string); end
end
-# source://spoom//lib/spoom/cli/helper.rb#10
+# source://spoom//lib/spoom/cli/helper.rb#11
module Spoom::Cli::Helper
include ::Spoom::Colorize
requires_ancestor { Thor }
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#149
+ # source://spoom//lib/spoom/cli/helper.rb#146
sig { params(string: ::String).returns(::String) }
def blue(string); end
# Collect files from `paths`, defaulting to `exec_path`
- # : (Array[String] paths, ?include_rbi_files: bool) -> Array[String]
#
- # source://spoom//lib/spoom/cli/helper.rb#85
+ # source://spoom//lib/spoom/cli/helper.rb#82
sig { params(paths: T::Array[::String], include_rbi_files: T::Boolean).returns(T::Array[::String]) }
def collect_files(paths, include_rbi_files: T.unsafe(nil)); end
# Is the `--color` option true?
- # : -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/cli/helper.rb#113
+ # source://spoom//lib/spoom/cli/helper.rb#110
sig { returns(T::Boolean) }
def color?; end
# Colorize a string if `color?`
- # : (String string, *Color color) -> String
#
- # source://spoom//lib/spoom/cli/helper.rb#142
+ # source://spoom//lib/spoom/cli/helper.rb#139
sig { params(string: ::String, color: ::Spoom::Color).returns(::String) }
def colorize(string, *color); end
# Returns the context at `--path` (by default the current working directory)
- # : -> Context
#
- # source://spoom//lib/spoom/cli/helper.rb#58
+ # source://spoom//lib/spoom/cli/helper.rb#55
sig { returns(::Spoom::Context) }
def context; end
# Raise if `spoom` is not ran inside a context with a `sorbet/config` file
- # : -> Context
#
- # source://spoom//lib/spoom/cli/helper.rb#64
+ # source://spoom//lib/spoom/cli/helper.rb#61
sig { returns(::Spoom::Context) }
def context_requiring_sorbet!; end
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#154
+ # source://spoom//lib/spoom/cli/helper.rb#151
sig { params(string: ::String).returns(::String) }
def cyan(string); end
# Return the path specified through `--path`
- # : -> String
#
- # source://spoom//lib/spoom/cli/helper.rb#79
+ # source://spoom//lib/spoom/cli/helper.rb#76
sig { returns(::String) }
def exec_path; end
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#159
+ # source://spoom//lib/spoom/cli/helper.rb#156
sig { params(string: ::String).returns(::String) }
def gray(string); end
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#164
+ # source://spoom//lib/spoom/cli/helper.rb#161
sig { params(string: ::String).returns(::String) }
def green(string); end
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#118
+ # source://spoom//lib/spoom/cli/helper.rb#115
sig { params(string: ::String).returns(::String) }
def highlight(string); end
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#169
+ # source://spoom//lib/spoom/cli/helper.rb#166
sig { params(string: ::String).returns(::String) }
def red(string); end
# Print `message` on `$stdout`
- # : (String message) -> void
#
- # source://spoom//lib/spoom/cli/helper.rb#19
+ # source://spoom//lib/spoom/cli/helper.rb#16
sig { params(message: ::String).void }
def say(message); end
# Print `message` on `$stderr`
#
# The message is prefixed by a status (default: `Error`).
- # : (String message, ?status: String?, ?nl: bool) -> void
#
- # source://spoom//lib/spoom/cli/helper.rb#32
+ # source://spoom//lib/spoom/cli/helper.rb#29
sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void }
def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end
# Print `message` on `$stderr`
#
# The message is prefixed by a status (default: `Warning`).
- # : (String message, ?status: String?, ?nl: bool) -> void
#
- # source://spoom//lib/spoom/cli/helper.rb#46
+ # source://spoom//lib/spoom/cli/helper.rb#43
sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void }
def say_warning(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end
- # : (String string) -> String
- #
- # source://spoom//lib/spoom/cli/helper.rb#174
+ # source://spoom//lib/spoom/cli/helper.rb#171
sig { params(string: ::String).returns(::String) }
def yellow(string); end
end
@@ -174,8 +158,6 @@ class Spoom::Cli::Main < ::Thor
# source://spoom//lib/spoom/cli.rb#100
def __print_version; end
- # : (?String directory) -> void
- #
# source://spoom//lib/spoom/cli.rb#57
sig { params(directory: ::String).void }
def bump(directory = T.unsafe(nil)); end
@@ -183,13 +165,13 @@ class Spoom::Cli::Main < ::Thor
# source://spoom//lib/spoom/cli.rb#64
def coverage(*args); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli.rb#71
def deadcode(*args); end
# source://spoom//lib/spoom/cli.rb#74
def lsp(*args); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli.rb#21
def srb(*args); end
# source://spoom//lib/spoom/cli.rb#93
@@ -220,12 +202,13 @@ class Spoom::Cli::Srb::Assertions < ::Thor
include ::Spoom::Colorize
include ::Spoom::Cli::Helper
+ # source://spoom//lib/spoom/cli/srb.rb#17
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
- # source://spoom//lib/spoom/cli/srb/assertions.rb#29
+ # source://spoom//lib/spoom/cli/srb/assertions.rb#42
def transform_files(files, &block); end
- # source://spoom//lib/spoom/cli/srb/assertions.rb#13
+ # source://spoom//lib/spoom/cli/srb/assertions.rb#18
def translate(*paths); end
end
@@ -234,12 +217,11 @@ class Spoom::Cli::Srb::Bump < ::Thor
include ::Spoom::Colorize
include ::Spoom::Cli::Helper
- # : (?String directory) -> void
- #
# source://spoom//lib/spoom/cli/srb/bump.rb#49
sig { params(directory: ::String).void }
def bump(directory = T.unsafe(nil)); end
+ # source://spoom//lib/spoom/cli/srb.rb#20
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
# source://spoom//lib/spoom/cli/srb/bump.rb#170
@@ -257,6 +239,7 @@ class Spoom::Cli::Srb::Coverage < ::Thor
# source://spoom//lib/spoom/cli/srb/coverage.rb#199
def bundle_install(path, sha); end
+ # source://spoom//lib/spoom/cli/srb.rb#23
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
# source://spoom//lib/spoom/cli/srb/coverage.rb#211
@@ -296,6 +279,7 @@ class Spoom::Cli::Srb::LSP < ::Thor
# source://spoom//lib/spoom/cli/srb/lsp.rb#55
def find(query); end
+ # source://spoom//lib/spoom/cli/srb.rb#26
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
# TODO: options, filter, limit, kind etc.. filter rbi
@@ -341,49 +325,66 @@ class Spoom::Cli::Srb::LSP < ::Thor
def types(file, line, col); end
end
-# source://spoom//lib/spoom/cli/srb.rb#14
+# source://spoom//lib/spoom/cli/srb.rb#15
class Spoom::Cli::Srb::Main < ::Thor
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli/srb.rb#17
def assertions(*args); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli/srb.rb#20
def bump(*args); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli/srb.rb#23
def coverage(*args); end
+ # source://spoom//lib/spoom/cli.rb#21
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli/srb.rb#26
def lsp(*args); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli/srb.rb#29
+ def metrics(*args); end
+
+ # source://spoom//lib/spoom/cli/srb.rb#32
def sigs(*args); end
- # source://thor/1.4.0/lib/thor.rb#334
+ # source://spoom//lib/spoom/cli/srb.rb#35
def tc(*args); end
end
+# source://spoom//lib/spoom/cli/srb/metrics.rb#7
+class Spoom::Cli::Srb::Metrics < ::Thor
+ include ::Spoom::Colorize
+ include ::Spoom::Cli::Helper
+
+ # source://spoom//lib/spoom/cli/srb.rb#29
+ def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
+
+ # source://spoom//lib/spoom/cli/srb/metrics.rb#14
+ def show(*paths); end
+end
+
# source://spoom//lib/spoom/cli/srb/sigs.rb#9
class Spoom::Cli::Srb::Sigs < ::Thor
include ::Spoom::Colorize
include ::Spoom::Cli::Helper
- # source://spoom//lib/spoom/cli/srb/sigs.rb#198
+ # source://spoom//lib/spoom/cli/srb/sigs.rb#226
def exec(context, command); end
- # source://spoom//lib/spoom/cli/srb/sigs.rb#69
+ # source://spoom//lib/spoom/cli/srb/sigs.rb#95
def export(output_path = T.unsafe(nil)); end
+ # source://spoom//lib/spoom/cli/srb.rb#32
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
- # source://spoom//lib/spoom/cli/srb/sigs.rb#50
+ # source://spoom//lib/spoom/cli/srb/sigs.rb#76
def strip(*paths); end
- # source://spoom//lib/spoom/cli/srb/sigs.rb#175
+ # source://spoom//lib/spoom/cli/srb/sigs.rb#203
def transform_files(files, &block); end
- # source://spoom//lib/spoom/cli/srb/sigs.rb#21
+ # source://spoom//lib/spoom/cli/srb/sigs.rb#25
def translate(*paths); end
end
@@ -398,6 +399,7 @@ class Spoom::Cli::Srb::Tc < ::Thor
# source://spoom//lib/spoom/cli/srb/tc.rb#138
def format_error(error, format); end
+ # source://spoom//lib/spoom/cli/srb.rb#35
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
# source://spoom//lib/spoom/cli/srb/tc.rb#28
@@ -439,8 +441,6 @@ class Spoom::Color < ::T::Enum
YELLOW = new
end
- # : -> String
- #
# source://spoom//lib/spoom/colors.rb#30
sig { returns(::String) }
def ansi_code; end
@@ -448,8 +448,6 @@ end
# source://spoom//lib/spoom/colors.rb#35
module Spoom::Colorize
- # : (String string, *Color color) -> String
- #
# source://spoom//lib/spoom/colors.rb#37
sig { params(string: ::String, color: ::Spoom::Color).returns(::String) }
def set_color(string, *color); end
@@ -472,7 +470,6 @@ class Spoom::Context
#
# The directory will not be created if it doesn't exist.
# Call `#make!` to create it.
- # : (String absolute_path) -> void
#
# @return [Context] a new instance of Context
#
@@ -481,7 +478,6 @@ class Spoom::Context
def initialize(absolute_path); end
# The absolute path to the directory this context is about
- # : String
#
# source://spoom//lib/spoom/context.rb#40
sig { returns(::String) }
@@ -492,7 +488,6 @@ class Spoom::Context
#
# `name` is used as prefix to the temporary directory name.
# The directory will be created if it doesn't exist.
- # : (?String? name) -> instance
#
# source://spoom//lib/spoom/context.rb#33
sig { params(name: T.nilable(::String)).returns(T.attached_class) }
@@ -502,98 +497,85 @@ end
# Bundle features for a context
#
-# source://spoom//lib/spoom/context/bundle.rb#7
+# source://spoom//lib/spoom/context/bundle.rb#8
module Spoom::Context::Bundle
requires_ancestor { Spoom::Context }
# Run a command with `bundle` in this context directory
- # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/bundle.rb#32
+ # source://spoom//lib/spoom/context/bundle.rb#29
sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) }
def bundle(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end
# Run a command `bundle exec` in this context directory
- # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/bundle.rb#45
+ # source://spoom//lib/spoom/context/bundle.rb#42
sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) }
def bundle_exec(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end
# Run `bundle install` in this context directory
- # : (?version: String?, ?capture_err: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/bundle.rb#39
+ # source://spoom//lib/spoom/context/bundle.rb#36
sig { params(version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) }
def bundle_install!(version: T.unsafe(nil), capture_err: T.unsafe(nil)); end
# Get `gem` version from the `Gemfile.lock` content
#
# Returns `nil` if `gem` cannot be found in the Gemfile.
- # : (String gem) -> Gem::Version?
#
- # source://spoom//lib/spoom/context/bundle.rb#61
+ # source://spoom//lib/spoom/context/bundle.rb#58
sig { params(gem: ::String).returns(T.nilable(::Gem::Version)) }
def gem_version_from_gemfile_lock(gem); end
- # : -> Hash[String, Bundler::LazySpecification]
- #
- # source://spoom//lib/spoom/context/bundle.rb#50
+ # source://spoom//lib/spoom/context/bundle.rb#47
sig { returns(T::Hash[::String, ::Bundler::LazySpecification]) }
def gemfile_lock_specs; end
# Read the contents of the Gemfile in this context directory
- # : -> String?
#
- # source://spoom//lib/spoom/context/bundle.rb#14
+ # source://spoom//lib/spoom/context/bundle.rb#11
sig { returns(T.nilable(::String)) }
def read_gemfile; end
# Read the contents of the Gemfile.lock in this context directory
- # : -> String?
#
- # source://spoom//lib/spoom/context/bundle.rb#20
+ # source://spoom//lib/spoom/context/bundle.rb#17
sig { returns(T.nilable(::String)) }
def read_gemfile_lock; end
# Set the `contents` of the Gemfile in this context directory
- # : (String contents, ?append: bool) -> void
#
- # source://spoom//lib/spoom/context/bundle.rb#26
+ # source://spoom//lib/spoom/context/bundle.rb#23
sig { params(contents: ::String, append: T::Boolean).void }
def write_gemfile!(contents, append: T.unsafe(nil)); end
end
# Execution features for a context
#
-# source://spoom//lib/spoom/context/exec.rb#25
+# source://spoom//lib/spoom/context/exec.rb#28
module Spoom::Context::Exec
requires_ancestor { Spoom::Context }
# Run a command in this context directory
- # : (String command, ?capture_err: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/exec.rb#32
+ # source://spoom//lib/spoom/context/exec.rb#31
sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) }
def exec(command, capture_err: T.unsafe(nil)); end
end
# File System features for a context
#
-# source://spoom//lib/spoom/context/file_system.rb#7
+# source://spoom//lib/spoom/context/file_system.rb#8
module Spoom::Context::FileSystem
requires_ancestor { Spoom::Context }
# Returns the absolute path to `relative_path` in the context's directory
- # : (String relative_path) -> String
#
- # source://spoom//lib/spoom/context/file_system.rb#14
+ # source://spoom//lib/spoom/context/file_system.rb#11
sig { params(relative_path: ::String).returns(::String) }
def absolute_path_to(relative_path); end
- # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> Array[String]
- #
- # source://spoom//lib/spoom/context/file_system.rb#46
+ # source://spoom//lib/spoom/context/file_system.rb#47
sig do
params(
allow_extensions: T::Array[::String],
@@ -606,129 +588,113 @@ module Spoom::Context::FileSystem
# Delete this context and its content
#
# Warning: it will `rm -rf` the context directory on the file system.
- # : -> void
#
- # source://spoom//lib/spoom/context/file_system.rb#98
+ # source://spoom//lib/spoom/context/file_system.rb#99
sig { void }
def destroy!; end
# Does the context directory at `absolute_path` exist and is a directory?
- # : -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/context/file_system.rb#20
+ # source://spoom//lib/spoom/context/file_system.rb#17
sig { returns(T::Boolean) }
def exist?; end
# Does `relative_path` point to an existing file in this context directory?
- # : (String relative_path) -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/context/file_system.rb#58
+ # source://spoom//lib/spoom/context/file_system.rb#59
sig { params(relative_path: ::String).returns(T::Boolean) }
def file?(relative_path); end
# List all files in this context matching `pattern`
- # : (?String pattern) -> Array[String]
#
- # source://spoom//lib/spoom/context/file_system.rb#33
+ # source://spoom//lib/spoom/context/file_system.rb#30
sig { params(pattern: ::String).returns(T::Array[::String]) }
def glob(pattern = T.unsafe(nil)); end
# List all files at the top level of this context directory
- # : -> Array[String]
#
- # source://spoom//lib/spoom/context/file_system.rb#41
+ # source://spoom//lib/spoom/context/file_system.rb#38
sig { returns(T::Array[::String]) }
def list; end
# Create the context directory at `absolute_path`
- # : -> void
#
- # source://spoom//lib/spoom/context/file_system.rb#26
+ # source://spoom//lib/spoom/context/file_system.rb#23
sig { void }
def mkdir!; end
# Move the file or directory from `from_relative_path` to `to_relative_path`
- # : (String from_relative_path, String to_relative_path) -> void
#
- # source://spoom//lib/spoom/context/file_system.rb#88
+ # source://spoom//lib/spoom/context/file_system.rb#89
sig { params(from_relative_path: ::String, to_relative_path: ::String).void }
def move!(from_relative_path, to_relative_path); end
# Return the contents of the file at `relative_path` in this context directory
#
# Will raise if the file doesn't exist.
- # : (String relative_path) -> String
#
- # source://spoom//lib/spoom/context/file_system.rb#66
+ # source://spoom//lib/spoom/context/file_system.rb#67
sig { params(relative_path: ::String).returns(::String) }
def read(relative_path); end
# Remove the path at `relative_path` (recursive + force) in this context directory
- # : (String relative_path) -> void
#
- # source://spoom//lib/spoom/context/file_system.rb#82
+ # source://spoom//lib/spoom/context/file_system.rb#83
sig { params(relative_path: ::String).void }
def remove!(relative_path); end
# Write `contents` in the file at `relative_path` in this context directory
#
# Append to the file if `append` is true.
- # : (String relative_path, ?String contents, ?append: bool) -> void
#
- # source://spoom//lib/spoom/context/file_system.rb#74
+ # source://spoom//lib/spoom/context/file_system.rb#75
sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void }
def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end
end
# Git features for a context
#
-# source://spoom//lib/spoom/context/git.rb#31
+# source://spoom//lib/spoom/context/git.rb#32
module Spoom::Context::Git
requires_ancestor { Spoom::Context }
# Run a command prefixed by `git` in this context directory
- # : (String command) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#38
+ # source://spoom//lib/spoom/context/git.rb#35
sig { params(command: ::String).returns(::Spoom::ExecResult) }
def git(command); end
# Run `git checkout` in this context directory
- # : (?ref: String) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#57
+ # source://spoom//lib/spoom/context/git.rb#54
sig { params(ref: ::String).returns(::Spoom::ExecResult) }
def git_checkout!(ref: T.unsafe(nil)); end
# Run `git checkout -b [` in this context directory
- # : (String branch_name, ?ref: String?) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#63
+ # source://spoom//lib/spoom/context/git.rb#60
sig { params(branch_name: ::String, ref: T.nilable(::String)).returns(::Spoom::ExecResult) }
def git_checkout_new_branch!(branch_name, ref: T.unsafe(nil)); end
# Run `git add . && git commit` in this context directory
- # : (?message: String, ?time: Time, ?allow_empty: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#73
+ # source://spoom//lib/spoom/context/git.rb#70
sig { params(message: ::String, time: ::Time, allow_empty: T::Boolean).returns(::Spoom::ExecResult) }
def git_commit!(message: T.unsafe(nil), time: T.unsafe(nil), allow_empty: T.unsafe(nil)); end
# Get the current git branch in this context directory
- # : -> String?
#
- # source://spoom//lib/spoom/context/git.rb#84
+ # source://spoom//lib/spoom/context/git.rb#81
sig { returns(T.nilable(::String)) }
def git_current_branch; end
# Run `git diff` in this context directory
- # : (*String arg) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#93
+ # source://spoom//lib/spoom/context/git.rb#90
sig { params(arg: ::String).returns(::Spoom::ExecResult) }
def git_diff(*arg); end
@@ -736,115 +702,97 @@ module Spoom::Context::Git
#
# Warning: passing a branch will run `git init -b ]` which is only available in git 2.28+.
# In older versions, use `git_init!` followed by `git("checkout -b ")`.
- # : (?branch: String?) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#47
+ # source://spoom//lib/spoom/context/git.rb#44
sig { params(branch: T.nilable(::String)).returns(::Spoom::ExecResult) }
def git_init!(branch: T.unsafe(nil)); end
# Get the last commit in the currently checked out branch
- # : (?short_sha: bool) -> Spoom::Git::Commit?
#
- # source://spoom//lib/spoom/context/git.rb#99
+ # source://spoom//lib/spoom/context/git.rb#96
sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) }
def git_last_commit(short_sha: T.unsafe(nil)); end
- # : (*String arg) -> ExecResult
- #
- # source://spoom//lib/spoom/context/git.rb#110
+ # source://spoom//lib/spoom/context/git.rb#107
sig { params(arg: ::String).returns(::Spoom::ExecResult) }
def git_log(*arg); end
# Run `git push [` in this context directory
- # : (String remote, String ref, ?force: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/git.rb#116
+ # source://spoom//lib/spoom/context/git.rb#113
sig { params(remote: ::String, ref: ::String, force: T::Boolean).returns(::Spoom::ExecResult) }
def git_push!(remote, ref, force: T.unsafe(nil)); end
- # : (*String arg) -> ExecResult
- #
- # source://spoom//lib/spoom/context/git.rb#121
+ # source://spoom//lib/spoom/context/git.rb#118
sig { params(arg: ::String).returns(::Spoom::ExecResult) }
def git_show(*arg); end
# Is there uncommitted changes in this context directory?
- # : (?path: String) -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/context/git.rb#127
+ # source://spoom//lib/spoom/context/git.rb#124
sig { params(path: ::String).returns(T::Boolean) }
def git_workdir_clean?(path: T.unsafe(nil)); end
end
# Sorbet features for a context
#
-# source://spoom//lib/spoom/context/sorbet.rb#7
+# source://spoom//lib/spoom/context/sorbet.rb#8
module Spoom::Context::Sorbet
requires_ancestor { Spoom::Context }
# Does this context has a `sorbet/config` file?
- # : -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/context/sorbet.rb#106
+ # source://spoom//lib/spoom/context/sorbet.rb#103
sig { returns(T::Boolean) }
def has_sorbet_config?; end
# Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil)
- # : (String relative_path) -> String?
#
- # source://spoom//lib/spoom/context/sorbet.rb#129
+ # source://spoom//lib/spoom/context/sorbet.rb#126
sig { params(relative_path: ::String).returns(T.nilable(::String)) }
def read_file_strictness(relative_path); end
# Read the contents of `sorbet/config` in this context directory
- # : -> String
#
- # source://spoom//lib/spoom/context/sorbet.rb#117
+ # source://spoom//lib/spoom/context/sorbet.rb#114
sig { returns(::String) }
def read_sorbet_config; end
- # : -> Spoom::Sorbet::Config
- #
- # source://spoom//lib/spoom/context/sorbet.rb#111
+ # source://spoom//lib/spoom/context/sorbet.rb#108
sig { returns(::Spoom::Sorbet::Config) }
def sorbet_config; end
# Get the commit introducing the `sorbet/config` file
- # : -> Spoom::Git::Commit?
#
- # source://spoom//lib/spoom/context/sorbet.rb#135
+ # source://spoom//lib/spoom/context/sorbet.rb#132
sig { returns(T.nilable(::Spoom::Git::Commit)) }
def sorbet_intro_commit; end
# Get the commit removing the `sorbet/config` file
- # : -> Spoom::Git::Commit?
#
- # source://spoom//lib/spoom/context/sorbet.rb#147
+ # source://spoom//lib/spoom/context/sorbet.rb#144
sig { returns(T.nilable(::Spoom::Git::Commit)) }
def sorbet_removal_commit; end
# Run `bundle exec srb` in this context directory
- # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult
#
- # source://spoom//lib/spoom/context/sorbet.rb#14
+ # source://spoom//lib/spoom/context/sorbet.rb#11
sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) }
def srb(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end
# List all files typechecked by Sorbet from its `config`
- # : (?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String]
#
- # source://spoom//lib/spoom/context/sorbet.rb#58
+ # source://spoom//lib/spoom/context/sorbet.rb#55
sig { params(with_config: T.nilable(::Spoom::Sorbet::Config), include_rbis: T::Boolean).returns(T::Array[::String]) }
def srb_files(with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end
# List all files typechecked by Sorbet from its `config` that matches `strictness`
- # : (String strictness, ?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String]
#
- # source://spoom//lib/spoom/context/sorbet.rb#91
+ # source://spoom//lib/spoom/context/sorbet.rb#88
sig do
params(
strictness: ::String,
@@ -854,9 +802,7 @@ module Spoom::Context::Sorbet
end
def srb_files_with_strictness(strictness, with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end
- # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> Hash[String, Integer]?
- #
- # source://spoom//lib/spoom/context/sorbet.rb#38
+ # source://spoom//lib/spoom/context/sorbet.rb#35
sig do
params(
arg: ::String,
@@ -866,37 +812,51 @@ module Spoom::Context::Sorbet
end
def srb_metrics(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end
- # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult
- #
- # source://spoom//lib/spoom/context/sorbet.rb#32
+ # source://spoom//lib/spoom/context/sorbet.rb#29
sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) }
def srb_tc(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end
- # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> String?
- #
- # source://spoom//lib/spoom/context/sorbet.rb#97
+ # source://spoom//lib/spoom/context/sorbet.rb#94
sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(T.nilable(::String)) }
def srb_version(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end
# Set the `contents` of `sorbet/config` in this context directory
- # : (String contents, ?append: bool) -> void
#
- # source://spoom//lib/spoom/context/sorbet.rb#123
+ # source://spoom//lib/spoom/context/sorbet.rb#120
sig { params(contents: ::String, append: T::Boolean).void }
def write_sorbet_config!(contents, append: T.unsafe(nil)); end
end
+# source://spoom//lib/spoom/counters.rb#6
+class Spoom::Counters < ::Hash
+ extend T::Generic
+
+ K = type_member { { fixed: String } }
+ V = type_member { { fixed: Integer } }
+ Elem = type_member { { fixed: [String, Integer] } }
+
+ # @return [Counters] a new instance of Counters
+ #
+ # source://spoom//lib/spoom/counters.rb#8
+ sig { void }
+ def initialize; end
+
+ # source://spoom//lib/spoom/counters.rb#18
+ sig { params(key: ::String).returns(::Integer) }
+ def [](key); end
+
+ # source://spoom//lib/spoom/counters.rb#13
+ sig { params(key: ::String).void }
+ def increment(key); end
+end
+
# source://spoom//lib/spoom/coverage/snapshot.rb#5
module Spoom::Coverage
class << self
- # : (Context context) -> FileTree
- #
# source://spoom//lib/spoom/coverage.rb#101
sig { params(context: ::Spoom::Context).returns(::Spoom::FileTree) }
def file_tree(context); end
- # : (Context context, Array[Snapshot] snapshots, palette: D3::ColorPalette) -> Report
- #
# source://spoom//lib/spoom/coverage.rb#81
sig do
params(
@@ -907,8 +867,6 @@ module Spoom::Coverage
end
def report(context, snapshots, palette:); end
- # : (Context context, ?rbi: bool, ?sorbet_bin: String?) -> Snapshot
- #
# source://spoom//lib/spoom/coverage.rb#14
sig do
params(
@@ -921,70 +879,57 @@ module Spoom::Coverage
end
end
-# source://spoom//lib/spoom/coverage/report.rb#87
+# source://spoom//lib/spoom/coverage/report.rb#81
module Spoom::Coverage::Cards; end
-# source://spoom//lib/spoom/coverage/report.rb#88
+# source://spoom//lib/spoom/coverage/report.rb#82
class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template
- # : (?template: String, ?title: String?, ?body: String?) -> void
- #
# @return [Card] a new instance of Card
#
- # source://spoom//lib/spoom/coverage/report.rb#97
+ # source://spoom//lib/spoom/coverage/report.rb#89
sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void }
def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end
- # : String?
- #
- # source://spoom//lib/spoom/coverage/report.rb#94
+ # source://spoom//lib/spoom/coverage/report.rb#86
def body; end
- # : String?
- #
- # source://spoom//lib/spoom/coverage/report.rb#94
+ # source://spoom//lib/spoom/coverage/report.rb#86
sig { returns(T.nilable(::String)) }
def title; end
end
-# : String
-#
-# source://spoom//lib/spoom/coverage/report.rb#91
+# source://spoom//lib/spoom/coverage/report.rb#83
Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String)
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/report.rb#104
+# source://spoom//lib/spoom/coverage/report.rb#97
class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card
abstract!
- # : -> void
- #
# @return [Erb] a new instance of Erb
#
- # source://spoom//lib/spoom/coverage/report.rb#110
+ # source://spoom//lib/spoom/coverage/report.rb#99
sig { void }
def initialize; end
# @abstract
+ # @raise [NotImplementedError]
#
- # source://spoom//lib/spoom/coverage/report.rb#119
+ # source://spoom//lib/spoom/coverage/report.rb#109
sig { abstract.returns(::String) }
def erb; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#114
+ # source://spoom//lib/spoom/coverage/report.rb#103
sig { override.returns(::String) }
def html; end
end
-# source://spoom//lib/spoom/coverage/report.rb#150
+# source://spoom//lib/spoom/coverage/report.rb#140
class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card
- # : (file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?title: String) -> void
- #
# @return [Map] a new instance of Map
#
- # source://spoom//lib/spoom/coverage/report.rb#152
+ # source://spoom//lib/spoom/coverage/report.rb#147
sig do
params(
file_tree: ::Spoom::FileTree,
@@ -996,136 +941,106 @@ class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card
def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: T.unsafe(nil)); end
end
-# source://spoom//lib/spoom/coverage/report.rb#122
+# source://spoom//lib/spoom/coverage/report.rb#112
class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card
- # : (snapshot: Coverage::Snapshot, ?title: String) -> void
- #
# @return [Snapshot] a new instance of Snapshot
#
- # source://spoom//lib/spoom/coverage/report.rb#129
+ # source://spoom//lib/spoom/coverage/report.rb#119
sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void }
def initialize(snapshot:, title: T.unsafe(nil)); end
- # : -> D3::Pie::Calls
- #
- # source://spoom//lib/spoom/coverage/report.rb#140
+ # source://spoom//lib/spoom/coverage/report.rb#130
sig { returns(::Spoom::Coverage::D3::Pie::Calls) }
def pie_calls; end
- # : -> D3::Pie::Sigils
- #
- # source://spoom//lib/spoom/coverage/report.rb#135
+ # source://spoom//lib/spoom/coverage/report.rb#125
sig { returns(::Spoom::Coverage::D3::Pie::Sigils) }
def pie_sigils; end
- # : -> D3::Pie::Sigs
- #
- # source://spoom//lib/spoom/coverage/report.rb#145
+ # source://spoom//lib/spoom/coverage/report.rb#135
sig { returns(::Spoom::Coverage::D3::Pie::Sigs) }
def pie_sigs; end
- # : Coverage::Snapshot
- #
- # source://spoom//lib/spoom/coverage/report.rb#126
+ # source://spoom//lib/spoom/coverage/report.rb#116
sig { returns(::Spoom::Coverage::Snapshot) }
def snapshot; end
end
-# : String
-#
-# source://spoom//lib/spoom/coverage/report.rb#123
+# source://spoom//lib/spoom/coverage/report.rb#113
Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String)
-# source://spoom//lib/spoom/coverage/report.rb#214
+# source://spoom//lib/spoom/coverage/report.rb#209
class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb
- # : (?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void
- #
# @return [SorbetIntro] a new instance of SorbetIntro
#
- # source://spoom//lib/spoom/coverage/report.rb#216
+ # source://spoom//lib/spoom/coverage/report.rb#211
sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void }
def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#223
+ # source://spoom//lib/spoom/coverage/report.rb#218
sig { override.returns(::String) }
def erb; end
end
-# source://spoom//lib/spoom/coverage/report.rb#165
+# source://spoom//lib/spoom/coverage/report.rb#160
class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card
- # : (title: String, timeline: D3::Timeline) -> void
- #
# @return [Timeline] a new instance of Timeline
#
- # source://spoom//lib/spoom/coverage/report.rb#167
+ # source://spoom//lib/spoom/coverage/report.rb#162
sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void }
def initialize(title:, timeline:); end
end
-# source://spoom//lib/spoom/coverage/report.rb#178
+# source://spoom//lib/spoom/coverage/report.rb#173
class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline
- # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void
- #
# @return [Calls] a new instance of Calls
#
- # source://spoom//lib/spoom/coverage/report.rb#180
+ # source://spoom//lib/spoom/coverage/report.rb#175
sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void }
def initialize(snapshots:, title: T.unsafe(nil)); end
end
-# source://spoom//lib/spoom/coverage/report.rb#192
+# source://spoom//lib/spoom/coverage/report.rb#187
class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline
- # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void
- #
# @return [RBIs] a new instance of RBIs
#
- # source://spoom//lib/spoom/coverage/report.rb#194
+ # source://spoom//lib/spoom/coverage/report.rb#189
sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void }
def initialize(snapshots:, title: T.unsafe(nil)); end
end
-# source://spoom//lib/spoom/coverage/report.rb#206
+# source://spoom//lib/spoom/coverage/report.rb#201
class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline
- # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void
- #
# @return [Runtimes] a new instance of Runtimes
#
- # source://spoom//lib/spoom/coverage/report.rb#208
+ # source://spoom//lib/spoom/coverage/report.rb#203
sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void }
def initialize(snapshots:, title: T.unsafe(nil)); end
end
-# source://spoom//lib/spoom/coverage/report.rb#171
+# source://spoom//lib/spoom/coverage/report.rb#166
class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline
- # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void
- #
# @return [Sigils] a new instance of Sigils
#
- # source://spoom//lib/spoom/coverage/report.rb#173
+ # source://spoom//lib/spoom/coverage/report.rb#168
sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void }
def initialize(snapshots:, title: T.unsafe(nil)); end
end
-# source://spoom//lib/spoom/coverage/report.rb#185
+# source://spoom//lib/spoom/coverage/report.rb#180
class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline
- # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void
- #
# @return [Sigs] a new instance of Sigs
#
- # source://spoom//lib/spoom/coverage/report.rb#187
+ # source://spoom//lib/spoom/coverage/report.rb#182
sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void }
def initialize(snapshots:, title: T.unsafe(nil)); end
end
-# source://spoom//lib/spoom/coverage/report.rb#199
+# source://spoom//lib/spoom/coverage/report.rb#194
class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline
- # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void
- #
# @return [Versions] a new instance of Versions
#
- # source://spoom//lib/spoom/coverage/report.rb#201
+ # source://spoom//lib/spoom/coverage/report.rb#196
sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void }
def initialize(snapshots:, title: T.unsafe(nil)); end
end
@@ -1133,68 +1048,53 @@ end
# source://spoom//lib/spoom/coverage/d3/base.rb#6
module Spoom::Coverage::D3
class << self
- # : (ColorPalette palette) -> String
- #
# source://spoom//lib/spoom/coverage/d3.rb#59
sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) }
def header_script(palette); end
- # : -> String
- #
# source://spoom//lib/spoom/coverage/d3.rb#19
sig { returns(::String) }
def header_style; end
end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/d3/base.rb#7
+# source://spoom//lib/spoom/coverage/d3/base.rb#8
class Spoom::Coverage::D3::Base
abstract!
- # : (String id, untyped data) -> void
- #
# @return [Base] a new instance of Base
#
- # source://spoom//lib/spoom/coverage/d3/base.rb#17
+ # source://spoom//lib/spoom/coverage/d3/base.rb#13
sig { params(id: ::String, data: T.untyped).void }
def initialize(id, data); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/base.rb#35
+ # source://spoom//lib/spoom/coverage/d3/base.rb#31
sig { returns(::String) }
def html; end
- # : String
- #
- # source://spoom//lib/spoom/coverage/d3/base.rb#14
+ # source://spoom//lib/spoom/coverage/d3/base.rb#10
sig { returns(::String) }
def id; end
# @abstract
+ # @raise [NotImplementedError]
#
- # source://spoom//lib/spoom/coverage/d3/base.rb#48
+ # source://spoom//lib/spoom/coverage/d3/base.rb#45
sig { abstract.returns(::String) }
def script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/base.rb#43
+ # source://spoom//lib/spoom/coverage/d3/base.rb#39
sig { returns(::String) }
def tooltip; end
class << self
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/base.rb#29
+ # source://spoom//lib/spoom/coverage/d3/base.rb#25
sig { returns(::String) }
def header_script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/base.rb#24
+ # source://spoom//lib/spoom/coverage/d3/base.rb#20
sig { returns(::String) }
def header_style; end
end
@@ -1217,21 +1117,15 @@ Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String)
# source://spoom//lib/spoom/coverage/d3/circle_map.rb#9
class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base
- # : -> String
- #
# source://spoom//lib/spoom/coverage/d3/circle_map.rb#58
sig { override.returns(::String) }
def script; end
class << self
- # : -> String
- #
# source://spoom//lib/spoom/coverage/d3/circle_map.rb#38
sig { returns(::String) }
def header_script; end
- # : -> String
- #
# source://spoom//lib/spoom/coverage/d3/circle_map.rb#12
sig { returns(::String) }
def header_style; end
@@ -1240,11 +1134,9 @@ end
# source://spoom//lib/spoom/coverage/d3/circle_map.rb#147
class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap
- # : (String id, FileTree file_tree, Hash[FileTree::Node, String?] nodes_strictnesses, Hash[FileTree::Node, Float] nodes_scores) -> void
- #
# @return [Sigils] a new instance of Sigils
#
- # source://spoom//lib/spoom/coverage/d3/circle_map.rb#149
+ # source://spoom//lib/spoom/coverage/d3/circle_map.rb#154
sig do
params(
id: ::String,
@@ -1255,9 +1147,7 @@ class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap
end
def initialize(id, file_tree, nodes_strictnesses, nodes_scores); end
- # : (FileTree::Node node) -> Hash[Symbol, untyped]
- #
- # source://spoom//lib/spoom/coverage/d3/circle_map.rb#156
+ # source://spoom//lib/spoom/coverage/d3/circle_map.rb#161
sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) }
def tree_node_to_json(node); end
end
@@ -1269,414 +1159,309 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct
prop :true, ::String
prop :strict, ::String
prop :strong, ::String
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/d3/pie.rb#9
+# source://spoom//lib/spoom/coverage/d3/pie.rb#10
class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base
abstract!
- # : (String id, String title, untyped data) -> void
- #
# @return [Pie] a new instance of Pie
#
- # source://spoom//lib/spoom/coverage/d3/pie.rb#15
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#12
sig { params(id: ::String, title: ::String, data: T.untyped).void }
def initialize(id, title, data); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/pie.rb#54
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#51
sig { override.returns(::String) }
def script; end
class << self
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/pie.rb#40
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#37
sig { returns(::String) }
def header_script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/pie.rb#22
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#19
sig { returns(::String) }
def header_style; end
end
end
-# source://spoom//lib/spoom/coverage/d3/pie.rb#138
+# source://spoom//lib/spoom/coverage/d3/pie.rb#135
class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie
- # : (String id, String title, Snapshot snapshot) -> void
- #
# @return [Calls] a new instance of Calls
#
- # source://spoom//lib/spoom/coverage/d3/pie.rb#140
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#137
sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void }
def initialize(id, title, snapshot); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/pie.rb#146
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#143
sig { override.returns(::String) }
def tooltip; end
end
-# source://spoom//lib/spoom/coverage/d3/pie.rb#121
+# source://spoom//lib/spoom/coverage/d3/pie.rb#118
class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie
- # : (String id, String title, Snapshot snapshot) -> void
- #
# @return [Sigils] a new instance of Sigils
#
- # source://spoom//lib/spoom/coverage/d3/pie.rb#123
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#120
sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void }
def initialize(id, title, snapshot); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/pie.rb#129
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#126
sig { override.returns(::String) }
def tooltip; end
end
-# source://spoom//lib/spoom/coverage/d3/pie.rb#155
+# source://spoom//lib/spoom/coverage/d3/pie.rb#152
class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie
- # : (String id, String title, Snapshot snapshot) -> void
- #
# @return [Sigs] a new instance of Sigs
#
- # source://spoom//lib/spoom/coverage/d3/pie.rb#157
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#154
sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void }
def initialize(id, title, snapshot); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/pie.rb#167
+ # source://spoom//lib/spoom/coverage/d3/pie.rb#164
sig { override.returns(::String) }
def tooltip; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#9
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#10
class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base
abstract!
- # : (String id, untyped data, Array[String] keys) -> void
- #
# @return [Timeline] a new instance of Timeline
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#15
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#12
sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void }
def initialize(id, data, keys); end
- # : (y: String, ?color: String, ?curve: String) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#185
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#183
sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) }
def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end
- # : (y: String, ?color: String, ?curve: String) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#201
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#199
sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) }
def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end
# @abstract
+ # @raise [NotImplementedError]
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#124
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#122
sig { abstract.returns(::String) }
def plot; end
- # : (y: String) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#215
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#213
sig { params(y: ::String).returns(::String) }
def points(y:); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#99
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#96
sig { override.returns(::String) }
def script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#127
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#125
sig { returns(::String) }
def x_scale; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#143
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#141
sig { returns(::String) }
def x_ticks; end
- # : (min: String, max: String, ticks: String) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#156
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#154
sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) }
def y_scale(min:, max:, ticks:); end
- # : (ticks: String, format: String, padding: Integer) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#172
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#170
sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) }
def y_ticks(ticks:, format:, padding:); end
class << self
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#76
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#73
sig { returns(::String) }
def header_script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#22
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#19
sig { returns(::String) }
def header_style; end
end
end
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#447
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#442
class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked
- # : (String id, Array[Snapshot] snapshots) -> void
- #
# @return [Calls] a new instance of Calls
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#449
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#444
sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void }
def initialize(id, snapshots); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#464
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#459
sig { override.returns(::String) }
def tooltip; end
end
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#502
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#497
class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked
- # : (String id, Array[Snapshot] snapshots) -> void
- #
# @return [RBIs] a new instance of RBIs
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#504
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#499
sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void }
def initialize(id, snapshots); end
- # : (y: String, ?color: String, ?curve: String) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#575
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#570
sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) }
def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#616
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#611
sig { override.returns(::String) }
def plot; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#534
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#529
sig { override.returns(::String) }
def script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#519
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#514
sig { override.returns(::String) }
def tooltip; end
end
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#280
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#278
class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline
- # : (String id, Array[Snapshot] snapshots) -> void
- #
# @return [Runtimes] a new instance of Runtimes
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#282
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#280
sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void }
def initialize(id, snapshots); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#309
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#307
sig { override.returns(::String) }
def plot; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#295
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#293
sig { override.returns(::String) }
def tooltip; end
end
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#421
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#416
class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked
- # : (String id, Array[Snapshot] snapshots) -> void
- #
# @return [Sigils] a new instance of Sigils
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#423
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#418
sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void }
def initialize(id, snapshots); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#438
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#433
sig { override.returns(::String) }
def tooltip; end
end
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#473
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#468
class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked
- # : (String id, Array[Snapshot] snapshots) -> void
- #
# @return [Sigs] a new instance of Sigs
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#475
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#470
sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void }
def initialize(id, snapshots); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#493
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#488
sig { override.returns(::String) }
def tooltip; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#327
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#326
class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline
abstract!
- # : (y: String, ?color: String, ?curve: String) -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#388
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#383
sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) }
def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#376
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#371
sig { override.returns(::String) }
def plot; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#334
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#329
sig { override.returns(::String) }
def script; end
end
-# source://spoom//lib/spoom/coverage/d3/timeline.rb#230
+# source://spoom//lib/spoom/coverage/d3/timeline.rb#228
class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline
- # : (String id, Array[Snapshot] snapshots) -> void
- #
# @return [Versions] a new instance of Versions
#
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#232
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#230
sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void }
def initialize(id, snapshots); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#261
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#259
sig { override.returns(::String) }
def plot; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/d3/timeline.rb#246
+ # source://spoom//lib/spoom/coverage/d3/timeline.rb#244
sig { override.returns(::String) }
def tooltip; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/report.rb#37
+# source://spoom//lib/spoom/coverage/report.rb#35
class Spoom::Coverage::Page < ::Spoom::Coverage::Template
abstract!
- # : (title: String, palette: D3::ColorPalette, ?template: String) -> void
- #
# @return [Page] a new instance of Page
#
- # source://spoom//lib/spoom/coverage/report.rb#52
+ # source://spoom//lib/spoom/coverage/report.rb#45
sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void }
def initialize(title:, palette:, template: T.unsafe(nil)); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#74
+ # source://spoom//lib/spoom/coverage/report.rb#67
sig { returns(::String) }
def body_html; end
# @abstract
+ # @raise [NotImplementedError]
#
- # source://spoom//lib/spoom/coverage/report.rb#79
+ # source://spoom//lib/spoom/coverage/report.rb#73
sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) }
def cards; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#82
+ # source://spoom//lib/spoom/coverage/report.rb#76
sig { returns(::String) }
def footer_html; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#69
+ # source://spoom//lib/spoom/coverage/report.rb#62
sig { returns(::String) }
def header_html; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#64
+ # source://spoom//lib/spoom/coverage/report.rb#57
sig { returns(::String) }
def header_script; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#59
+ # source://spoom//lib/spoom/coverage/report.rb#52
sig { returns(::String) }
def header_style; end
- # : D3::ColorPalette
- #
- # source://spoom//lib/spoom/coverage/report.rb#49
+ # source://spoom//lib/spoom/coverage/report.rb#42
sig { returns(::Spoom::Coverage::D3::ColorPalette) }
def palette; end
- # : String
- #
- # source://spoom//lib/spoom/coverage/report.rb#46
+ # source://spoom//lib/spoom/coverage/report.rb#39
sig { returns(::String) }
def title; end
end
-# : String
-#
-# source://spoom//lib/spoom/coverage/report.rb#43
+# source://spoom//lib/spoom/coverage/report.rb#36
Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String)
-# source://spoom//lib/spoom/coverage/report.rb#234
+# source://spoom//lib/spoom/coverage/report.rb#229
class Spoom::Coverage::Report < ::Spoom::Coverage::Page
- # : (project_name: String, palette: D3::ColorPalette, snapshots: Array[Snapshot], file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void
- #
# @return [Report] a new instance of Report
#
- # source://spoom//lib/spoom/coverage/report.rb#236
+ # source://spoom//lib/spoom/coverage/report.rb#240
sig do
params(
project_name: ::String,
@@ -1691,15 +1476,11 @@ class Spoom::Coverage::Report < ::Spoom::Coverage::Page
end
def initialize(project_name:, palette:, snapshots:, file_tree:, nodes_strictnesses:, nodes_strictness_scores:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end
- # : -> Array[Cards::Card]
- #
- # source://spoom//lib/spoom/coverage/report.rb#270
+ # source://spoom//lib/spoom/coverage/report.rb#274
sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) }
def cards; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#258
+ # source://spoom//lib/spoom/coverage/report.rb#262
sig { override.returns(::String) }
def header_html; end
end
@@ -1726,33 +1507,22 @@ class Spoom::Coverage::Snapshot < ::T::Struct
prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil)
prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil)
- # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#31
sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void }
def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end
- # : (*untyped arg) -> String
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#37
sig { params(arg: T.untyped).returns(::String) }
def to_json(*arg); end
class << self
- # : (String json) -> Snapshot
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#43
sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) }
def from_json(json); end
- # : (Hash[String, untyped] obj) -> Snapshot
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#48
sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) }
def from_obj(obj); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
@@ -1763,57 +1533,44 @@ Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/coverage/snapshot.rb#91
class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer
- # : (Snapshot snapshot) -> void
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#93
sig { params(snapshot: ::Spoom::Coverage::Snapshot).void }
def print_snapshot(snapshot); end
private
- # : (Integer? value, Integer? total) -> String
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#152
sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) }
def percent(value, total); end
- # : (Hash[String, Integer] hash, Integer total) -> void
- #
# source://spoom//lib/spoom/coverage/snapshot.rb#141
sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void }
def print_map(hash, total); end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/coverage/report.rb#10
+# source://spoom//lib/spoom/coverage/report.rb#11
class Spoom::Coverage::Template
abstract!
# Create a new template from an Erb file path
- # : (template: String) -> void
#
# @return [Template] a new instance of Template
#
- # source://spoom//lib/spoom/coverage/report.rb#17
+ # source://spoom//lib/spoom/coverage/report.rb#14
sig { params(template: ::String).void }
def initialize(template:); end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#22
+ # source://spoom//lib/spoom/coverage/report.rb#19
sig { returns(::String) }
def erb; end
- # : -> Binding
- #
- # source://spoom//lib/spoom/coverage/report.rb#32
+ # source://spoom//lib/spoom/coverage/report.rb#29
sig { returns(::Binding) }
def get_binding; end
- # : -> String
- #
- # source://spoom//lib/spoom/coverage/report.rb#27
+ # source://spoom//lib/spoom/coverage/report.rb#24
sig { returns(::String) }
def html; end
end
@@ -1821,14 +1578,10 @@ end
# source://spoom//lib/spoom/deadcode/erb.rb#27
module Spoom::Deadcode
class << self
- # : (Context context) -> Array[singleton(Plugins::Base)]
- #
# source://spoom//lib/spoom/deadcode/plugins.rb#67
sig { params(context: ::Spoom::Context).returns(T::Array[T.class_of(Spoom::Deadcode::Plugins::Base)]) }
def load_custom_plugins(context); end
- # : (Context context) -> Set[singleton(Plugins::Base)]
- #
# source://spoom//lib/spoom/deadcode/plugins.rb#53
sig { params(context: ::Spoom::Context).returns(T::Set[T.class_of(Spoom::Deadcode::Plugins::Base)]) }
def plugins_from_gemfile_lock(context); end
@@ -1851,100 +1604,71 @@ class Spoom::Deadcode::Definition < ::T::Struct
const :location, ::Spoom::Location
const :status, ::Spoom::Deadcode::Definition::Status, default: T.unsafe(nil)
- # : -> void
- #
# source://spoom//lib/spoom/deadcode/definition.rb#76
sig { void }
def alive!; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#71
sig { returns(T::Boolean) }
def alive?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#39
sig { returns(T::Boolean) }
def attr_reader?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#44
sig { returns(T::Boolean) }
def attr_writer?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#49
sig { returns(T::Boolean) }
def class?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#54
sig { returns(T::Boolean) }
def constant?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#81
sig { returns(T::Boolean) }
def dead?; end
- # : -> void
- #
# source://spoom//lib/spoom/deadcode/definition.rb#91
sig { void }
def ignored!; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#86
sig { returns(T::Boolean) }
def ignored?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#59
sig { returns(T::Boolean) }
def method?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/definition.rb#64
sig { returns(T::Boolean) }
def module?; end
- # : (*untyped args) -> String
- #
# source://spoom//lib/spoom/deadcode/definition.rb#98
sig { params(args: T.untyped).returns(::String) }
def to_json(*args); end
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
# source://spoom//lib/spoom/deadcode/definition.rb#8
@@ -1972,8 +1696,6 @@ end
#
# source://spoom//lib/spoom/deadcode/erb.rb#29
class Spoom::Deadcode::ERB < ::Erubi::Engine
- # : (untyped input, ?untyped properties) -> void
- #
# @return [ERB] a new instance of ERB
#
# source://spoom//lib/spoom/deadcode/erb.rb#31
@@ -1982,32 +1704,22 @@ class Spoom::Deadcode::ERB < ::Erubi::Engine
private
- # : (untyped code) -> void
- #
# source://spoom//lib/spoom/deadcode/erb.rb#84
sig { override.params(code: T.untyped).void }
def add_code(code); end
- # : (untyped indicator, untyped code) -> void
- #
# source://spoom//lib/spoom/deadcode/erb.rb#66
sig { override.params(indicator: T.untyped, code: T.untyped).void }
def add_expression(indicator, code); end
- # : (untyped _) -> void
- #
# source://spoom//lib/spoom/deadcode/erb.rb#91
sig { override.params(_: T.untyped).void }
def add_postamble(_); end
- # : (untyped text) -> void
- #
# source://spoom//lib/spoom/deadcode/erb.rb#47
sig { override.params(text: T.untyped).void }
def add_text(text); end
- # : (untyped src) -> void
- #
# source://spoom//lib/spoom/deadcode/erb.rb#97
sig { params(src: T.untyped).void }
def flush_newline_if_pending(src); end
@@ -2018,46 +1730,32 @@ Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp)
# source://spoom//lib/spoom/deadcode/index.rb#6
class Spoom::Deadcode::Index
- # : (Model model) -> void
- #
# @return [Index] a new instance of Index
#
# source://spoom//lib/spoom/deadcode/index.rb#25
sig { params(model: ::Spoom::Model).void }
def initialize(model); end
- # : -> Array[Definition]
- #
# source://spoom//lib/spoom/deadcode/index.rb#215
sig { returns(T::Array[::Spoom::Deadcode::Definition]) }
def all_definitions; end
- # : -> Array[Model::Reference]
- #
# source://spoom//lib/spoom/deadcode/index.rb#220
sig { returns(T::Array[::Spoom::Model::Reference]) }
def all_references; end
- # : (Array[Plugins::Base] plugins) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#95
sig { params(plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void }
def apply_plugins!(plugins); end
- # : (Definition definition) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#75
sig { params(definition: ::Spoom::Deadcode::Definition).void }
def define(definition); end
- # : Hash[String, Array[Definition]]
- #
# source://spoom//lib/spoom/deadcode/index.rb#19
sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Definition]]) }
def definitions; end
- # : (String name) -> Array[Definition]
- #
# source://spoom//lib/spoom/deadcode/index.rb#210
sig { params(name: ::String).returns(T::Array[::Spoom::Deadcode::Definition]) }
def definitions_for_name(name); end
@@ -2065,56 +1763,39 @@ class Spoom::Deadcode::Index
# Mark all definitions having a reference of the same name as `alive`
#
# To be called once all the files have been indexed and all the definitions and references discovered.
- # : -> void
#
# source://spoom//lib/spoom/deadcode/index.rb#118
sig { void }
def finalize!; end
- # : (Model::SymbolDef symbol_def) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#90
sig { params(symbol_def: ::Spoom::Model::SymbolDef).void }
def ignore(symbol_def); end
- # : (String erb, file: String, ?plugins: Array[Plugins::Base]) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#46
sig { params(erb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void }
def index_erb(erb, file:, plugins: T.unsafe(nil)); end
- # : (String file, ?plugins: Array[Plugins::Base]) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#35
sig { params(file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void }
def index_file(file, plugins: T.unsafe(nil)); end
- # : (String rb, file: String, ?plugins: Array[Plugins::Base]) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#51
sig { params(rb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void }
def index_ruby(rb, file:, plugins: T.unsafe(nil)); end
- # : Model
- #
# source://spoom//lib/spoom/deadcode/index.rb#16
sig { returns(::Spoom::Model) }
def model; end
- # : (String name, Location location) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#80
sig { params(name: ::String, location: ::Spoom::Location).void }
def reference_constant(name, location); end
- # : (String name, Location location) -> void
- #
# source://spoom//lib/spoom/deadcode/index.rb#85
sig { params(name: ::String, location: ::Spoom::Location).void }
def reference_method(name, location); end
- # : Hash[String, Array[Model::Reference]]
- #
# source://spoom//lib/spoom/deadcode/index.rb#22
sig { returns(T::Hash[::String, T::Array[::Spoom::Model::Reference]]) }
def references; end
@@ -2122,8 +1803,6 @@ end
# source://spoom//lib/spoom/deadcode/index.rb#7
class Spoom::Deadcode::Index::Error < ::Spoom::Error
- # : (String message, parent: Exception) -> void
- #
# @return [Error] a new instance of Error
#
# source://spoom//lib/spoom/deadcode/index.rb#9
@@ -2133,8 +1812,6 @@ end
# source://spoom//lib/spoom/deadcode/indexer.rb#6
class Spoom::Deadcode::Indexer < ::Spoom::Visitor
- # : (String path, Index index, ?plugins: Array[Plugins::Base]) -> void
- #
# @return [Indexer] a new instance of Indexer
#
# source://spoom//lib/spoom/deadcode/indexer.rb#14
@@ -2147,27 +1824,19 @@ class Spoom::Deadcode::Indexer < ::Spoom::Visitor
end
def initialize(path, index, plugins: T.unsafe(nil)); end
- # : Index
- #
# source://spoom//lib/spoom/deadcode/indexer.rb#11
sig { returns(::Spoom::Deadcode::Index) }
def index; end
- # : String
- #
# source://spoom//lib/spoom/deadcode/indexer.rb#8
sig { returns(::String) }
def path; end
- # : (Prism::CallNode node) -> void
- #
# source://spoom//lib/spoom/deadcode/indexer.rb#26
sig { override.params(node: ::Prism::CallNode).void }
def visit_call_node(node); end
end
-# : Set[singleton(Plugins::Base)]
-#
# source://spoom//lib/spoom/deadcode/plugins.rb#33
Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash)
@@ -2176,8 +1845,6 @@ module Spoom::Deadcode::Plugins; end
# source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7
class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#10
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
@@ -2185,8 +1852,6 @@ end
# source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7
class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Method definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#12
sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
@@ -2194,14 +1859,10 @@ end
# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7
class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Method definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#27
sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#36
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
@@ -2211,12 +1872,17 @@ end
Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7
-class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; end
+class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base
+ # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#22
+ sig { override.params(send: ::Spoom::Deadcode::Send).void }
+ def on_send(send); end
+end
+
+# source://spoom//lib/spoom/deadcode/plugins/active_job.rb#11
+Spoom::Deadcode::Plugins::ActiveJob::CALLBACKS = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7
class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/active_model.rb#13
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
@@ -2224,92 +1890,76 @@ end
# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7
class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base
- # : (Send send) -> void
- #
- # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64
+ # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#69
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
end
-# : Array[String]
-#
-# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#56
+# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#61
Spoom::Deadcode::Plugins::ActiveRecord::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#18
Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array)
-# : Array[String]
-#
# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#44
+Spoom::Deadcode::Plugins::ActiveRecord::CALLBACK_CONDITIONS = T.let(T.unsafe(nil), Array)
+
+# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#49
Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7
class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#23
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
end
-# : Array[String]
-#
# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#19
Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/deadcode/plugins/base.rb#9
+# source://spoom//lib/spoom/deadcode/plugins/base.rb#10
class Spoom::Deadcode::Plugins::Base
abstract!
- # : (Index index) -> void
- #
# @return [Base] a new instance of Base
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#129
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#126
sig { params(index: ::Spoom::Deadcode::Index).void }
def initialize(index); end
- # : Index
- #
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#126
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#123
sig { returns(::Spoom::Deadcode::Index) }
def index; end
# Do not override this method, use `on_define_accessor` instead.
- # : (Model::Attr definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#155
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#152
sig { params(definition: ::Spoom::Model::Attr).void }
def internal_on_define_accessor(definition); end
# Do not override this method, use `on_define_class` instead.
- # : (Model::Class definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#179
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#176
sig { params(definition: ::Spoom::Model::Class).void }
def internal_on_define_class(definition); end
# Do not override this method, use `on_define_constant` instead.
- # : (Model::Constant definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#209
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#206
sig { params(definition: ::Spoom::Model::Constant).void }
def internal_on_define_constant(definition); end
# Do not override this method, use `on_define_method` instead.
- # : (Model::Method definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#235
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#232
sig { params(definition: ::Spoom::Model::Method).void }
def internal_on_define_method(definition); end
# Do not override this method, use `on_define_module` instead.
- # : (Model::Module definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#261
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#258
sig { params(definition: ::Spoom::Model::Module).void }
def internal_on_define_module(definition); end
@@ -2326,9 +1976,8 @@ class Spoom::Deadcode::Plugins::Base
# end
# end
# ~~~
- # : (Model::Attr definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#149
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#146
sig { params(definition: ::Spoom::Model::Attr).void }
def on_define_accessor(definition); end
@@ -2345,9 +1994,8 @@ class Spoom::Deadcode::Plugins::Base
# end
# end
# ~~~
- # : (Model::Class definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#173
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#170
sig { params(definition: ::Spoom::Model::Class).void }
def on_define_class(definition); end
@@ -2364,9 +2012,8 @@ class Spoom::Deadcode::Plugins::Base
# end
# end
# ~~~
- # : (Model::Constant definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#203
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#200
sig { params(definition: ::Spoom::Model::Constant).void }
def on_define_constant(definition); end
@@ -2383,9 +2030,8 @@ class Spoom::Deadcode::Plugins::Base
# end
# end
# ~~~
- # : (Model::Method definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#229
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#226
sig { params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
@@ -2402,9 +2048,8 @@ class Spoom::Deadcode::Plugins::Base
# end
# end
# ~~~
- # : (Model::Module definition) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#255
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#252
sig { params(definition: ::Spoom::Model::Module).void }
def on_define_module(definition); end
@@ -2421,85 +2066,64 @@ class Spoom::Deadcode::Plugins::Base
# end
# end
# ~~~
- # : (Send send) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#281
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#278
sig { params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
private
- # : (String name) -> String
- #
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#349
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#346
sig { params(name: ::String).returns(::String) }
def camelize(name); end
- # : (String? name) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#298
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#295
sig { params(name: T.nilable(::String)).returns(T::Boolean) }
def ignored_class_name?(name); end
- # : (String name) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#317
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#314
sig { params(name: ::String).returns(T::Boolean) }
def ignored_constant_name?(name); end
- # : (String name) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#322
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#319
sig { params(name: ::String).returns(T::Boolean) }
def ignored_method_name?(name); end
- # : (String name) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#327
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#324
sig { params(name: ::String).returns(T::Boolean) }
def ignored_module_name?(name); end
- # : (String name, Symbol names_variable, Symbol patterns_variable) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#332
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#329
sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) }
def ignored_name?(name, names_variable, patterns_variable); end
- # : (Model::Class definition) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#305
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#302
sig { params(definition: ::Spoom::Model::Class).returns(T::Boolean) }
def ignored_subclass?(definition); end
- # : (Symbol const) -> Set[String]
- #
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#337
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#334
sig { params(const: ::Symbol).returns(T::Set[::String]) }
def names(const); end
- # : (Symbol const) -> Array[Regexp]
- #
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#342
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#339
sig { params(const: ::Symbol).returns(T::Array[::Regexp]) }
def patterns(const); end
- # : (Model::Namespace definition, String superclass_name) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#290
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#287
sig { params(definition: ::Spoom::Model::Namespace, superclass_name: ::String).returns(T::Boolean) }
def subclass_of?(definition, superclass_name); end
@@ -2517,9 +2141,8 @@ class Spoom::Deadcode::Plugins::Base
# )
# end
# ~~~
- # : (*(String | Regexp) names) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#49
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#46
sig { params(names: T.any(::Regexp, ::String)).void }
def ignore_classes_inheriting_from(*names); end
@@ -2536,9 +2159,8 @@ class Spoom::Deadcode::Plugins::Base
# )
# end
# ~~~
- # : (*(String | Regexp) names) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#31
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#28
sig { params(names: T.any(::Regexp, ::String)).void }
def ignore_classes_named(*names); end
@@ -2555,9 +2177,8 @@ class Spoom::Deadcode::Plugins::Base
# )
# end
# ~~~
- # : (*(String | Regexp) names) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#67
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#64
sig { params(names: T.any(::Regexp, ::String)).void }
def ignore_constants_named(*names); end
@@ -2574,9 +2195,8 @@ class Spoom::Deadcode::Plugins::Base
# )
# end
# ~~~
- # : (*(String | Regexp) names) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#85
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#82
sig { params(names: T.any(::Regexp, ::String)).void }
def ignore_methods_named(*names); end
@@ -2593,17 +2213,14 @@ class Spoom::Deadcode::Plugins::Base
# )
# end
# ~~~
- # : (*(String | Regexp) names) -> void
#
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#103
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#100
sig { params(names: T.any(::Regexp, ::String)).void }
def ignore_modules_named(*names); end
private
- # : (Array[(String | Regexp)] names, Symbol names_variable, Symbol patterns_variable) -> void
- #
- # source://spoom//lib/spoom/deadcode/plugins/base.rb#110
+ # source://spoom//lib/spoom/deadcode/plugins/base.rb#107
sig do
params(
names: T::Array[T.any(::Regexp, ::String)],
@@ -2617,8 +2234,6 @@ end
# source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7
class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/graphql.rb#27
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
@@ -2626,14 +2241,10 @@ end
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7
class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Method definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#21
sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#28
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
@@ -2641,22 +2252,16 @@ end
# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7
class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Class definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#10
sig { override.params(definition: ::Spoom::Model::Class).void }
def on_define_class(definition); end
- # : (Model::Module definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16
sig { override.params(definition: ::Spoom::Model::Module).void }
def on_define_module(definition); end
private
- # : (Model::Namespace symbol_def) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23
@@ -2669,22 +2274,16 @@ class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end
# source://spoom//lib/spoom/deadcode/plugins/rails.rb#7
class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Class definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/rails.rb#12
sig { override.params(definition: ::Spoom::Model::Class).void }
def on_define_class(definition); end
- # : (Model::Module definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/rails.rb#18
sig { override.params(definition: ::Spoom::Model::Module).void }
def on_define_module(definition); end
private
- # : (Model::Namespace symbol_def) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/plugins/rails.rb#25
@@ -2697,36 +2296,26 @@ class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end
# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7
class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Constant definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#17
sig { override.params(definition: ::Spoom::Model::Constant).void }
def on_define_constant(definition); end
- # : (Model::Method definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#26
sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
end
-# : Set[String]
-#
# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#8
Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set)
# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7
class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base
- # : (Send send) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#23
sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end
private
- # : (Send send, Prism::Node node) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#45
sig { params(send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void }
def reference_symbol_as_constant(send, node); end
@@ -2734,30 +2323,22 @@ end
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7
class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Constant definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#10
sig { override.params(definition: ::Spoom::Model::Constant).void }
def on_define_constant(definition); end
- # : (Model::Method definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16
sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
private
- # : (Model::Constant definition) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34
sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) }
def sorbet_enum_constant?(definition); end
- # : (Model::Constant definition) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#29
@@ -2767,8 +2348,6 @@ end
# source://spoom//lib/spoom/deadcode/plugins/thor.rb#7
class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base
- # : (Model::Method definition) -> void
- #
# source://spoom//lib/spoom/deadcode/plugins/thor.rb#12
sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end
@@ -2776,16 +2355,12 @@ end
# source://spoom//lib/spoom/deadcode/remover.rb#6
class Spoom::Deadcode::Remover
- # : (Context context) -> void
- #
# @return [Remover] a new instance of Remover
#
# source://spoom//lib/spoom/deadcode/remover.rb#10
sig { params(context: ::Spoom::Context).void }
def initialize(context); end
- # : (Definition::Kind? kind, Location location) -> String
- #
# source://spoom//lib/spoom/deadcode/remover.rb#15
sig { params(kind: T.nilable(::Spoom::Deadcode::Definition::Kind), location: ::Spoom::Location).returns(::String) }
def remove_location(kind, location); end
@@ -2796,8 +2371,6 @@ class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end
# source://spoom//lib/spoom/deadcode/remover.rb#366
class Spoom::Deadcode::Remover::NodeContext
- # : (String source, Hash[Integer, Prism::Comment] comments, Prism::Node node, Array[Prism::Node] nesting) -> void
- #
# @return [NodeContext] a new instance of NodeContext
#
# source://spoom//lib/spoom/deadcode/remover.rb#377
@@ -2811,113 +2384,79 @@ class Spoom::Deadcode::Remover::NodeContext
end
def initialize(source, comments, node, nesting); end
- # : (Prism::Node node) -> Array[Prism::Comment]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#491
sig { params(node: ::Prism::Node).returns(T::Array[::Prism::Comment]) }
def attached_comments(node); end
- # : -> Prism::CallNode?
- #
# source://spoom//lib/spoom/deadcode/remover.rb#519
sig { returns(T.nilable(::Prism::CallNode)) }
def attached_sig; end
- # : -> Array[Prism::Node]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#506
sig { returns(T::Array[::Prism::Node]) }
def attached_sigs; end
- # : Hash[Integer, Prism::Comment]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#368
sig { returns(T::Hash[::Integer, ::Prism::Comment]) }
def comments; end
- # : (Integer start_line, Integer end_line) -> Array[Prism::Comment]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#479
sig { params(start_line: ::Integer, end_line: ::Integer).returns(T::Array[::Prism::Comment]) }
def comments_between_lines(start_line, end_line); end
- # : Array[Prism::Node]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#374
sig { returns(T::Array[::Prism::Node]) }
def nesting; end
- # : Array[Prism::Node]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#374
def nesting=(_arg0); end
- # : -> Prism::Node?
- #
# source://spoom//lib/spoom/deadcode/remover.rb#429
sig { returns(T.nilable(::Prism::Node)) }
def next_node; end
- # : -> Array[Prism::Node]
- #
# @raise [Error]
#
# source://spoom//lib/spoom/deadcode/remover.rb#418
sig { returns(T::Array[::Prism::Node]) }
def next_nodes; end
- # : Prism::Node
- #
# source://spoom//lib/spoom/deadcode/remover.rb#371
sig { returns(::Prism::Node) }
def node; end
- # : -> NodeContext
- #
# @raise [Error]
#
# source://spoom//lib/spoom/deadcode/remover.rb#393
sig { returns(::Spoom::Deadcode::Remover::NodeContext) }
def parent_context; end
- # : -> Prism::Node
- #
# @raise [Error]
#
# source://spoom//lib/spoom/deadcode/remover.rb#385
sig { returns(::Prism::Node) }
def parent_node; end
- # : -> Prism::Node?
- #
# source://spoom//lib/spoom/deadcode/remover.rb#413
sig { returns(T.nilable(::Prism::Node)) }
def previous_node; end
- # : -> Array[Prism::Node]
- #
# @raise [Error]
#
# source://spoom//lib/spoom/deadcode/remover.rb#402
sig { returns(T::Array[::Prism::Node]) }
def previous_nodes; end
- # : -> NodeContext?
- #
# source://spoom//lib/spoom/deadcode/remover.rb#434
sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) }
def sclass_context; end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/remover.rb#467
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
def sorbet_extend_sig?(node); end
- # : (Prism::Node? node) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/remover.rb#462
@@ -2927,35 +2466,25 @@ end
# source://spoom//lib/spoom/deadcode/remover.rb#534
class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor
- # : (Location location, Definition::Kind? kind) -> void
- #
# @return [NodeFinder] a new instance of NodeFinder
#
# source://spoom//lib/spoom/deadcode/remover.rb#599
sig { params(location: ::Spoom::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void }
def initialize(location, kind); end
- # : Prism::Node?
- #
# source://spoom//lib/spoom/deadcode/remover.rb#593
sig { returns(T.nilable(::Prism::Node)) }
def node; end
- # : Array[Prism::Node]
- #
# source://spoom//lib/spoom/deadcode/remover.rb#596
sig { returns(T::Array[::Prism::Node]) }
def nodes_nesting; end
- # : (Prism::Node? node) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#609
sig { override.params(node: T.nilable(::Prism::Node)).void }
def visit(node); end
class << self
- # : (String source, Location location, Definition::Kind? kind) -> NodeContext
- #
# source://spoom//lib/spoom/deadcode/remover.rb#537
sig do
params(
@@ -2966,8 +2495,6 @@ class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor
end
def find(source, location, kind); end
- # : (Prism::Node node, Definition::Kind kind) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/deadcode/remover.rb#568
@@ -2978,8 +2505,6 @@ end
# source://spoom//lib/spoom/deadcode/remover.rb#27
class Spoom::Deadcode::Remover::NodeRemover
- # : (String source, Definition::Kind? kind, Location location) -> void
- #
# @return [NodeRemover] a new instance of NodeRemover
#
# source://spoom//lib/spoom/deadcode/remover.rb#32
@@ -2992,52 +2517,36 @@ class Spoom::Deadcode::Remover::NodeRemover
end
def initialize(source, kind, location); end
- # : -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#42
sig { void }
def apply_edit; end
- # : String
- #
# source://spoom//lib/spoom/deadcode/remover.rb#29
sig { returns(::String) }
def new_source; end
private
- # : (NodeContext context) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#151
sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void }
def delete_attr_accessor(context); end
- # : (Integer start_char, Integer end_char) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#325
sig { params(start_char: ::Integer, end_char: ::Integer).void }
def delete_chars(start_char, end_char); end
- # : (NodeContext context) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#69
sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void }
def delete_constant_assignment(context); end
- # : (Integer start_line, Integer end_line) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#318
sig { params(start_line: ::Integer, end_line: ::Integer).void }
def delete_lines(start_line, end_line); end
- # : (NodeContext context) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#255
sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void }
def delete_node_and_comments_and_sigs(context); end
- # : (Prism::Node node, NodeContext send_context, was_removed: bool) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#212
sig do
params(
@@ -3048,14 +2557,10 @@ class Spoom::Deadcode::Remover::NodeRemover
end
def insert_accessor(node, send_context, was_removed:); end
- # : (Integer start_char, Integer end_char, String replacement) -> void
- #
# source://spoom//lib/spoom/deadcode/remover.rb#330
sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void }
def replace_chars(start_char, end_char, replacement); end
- # : (Prism::CallNode node, name: String, kind: Definition::Kind?) -> String
- #
# source://spoom//lib/spoom/deadcode/remover.rb#335
sig do
params(
@@ -3078,8 +2583,6 @@ class Spoom::Deadcode::Send < ::T::Struct
const :block, T.nilable(::Prism::Node), default: T.unsafe(nil)
const :location, ::Spoom::Location
- # : [T] (Class[T] arg_type) { (T arg) -> void } -> void
- #
# source://spoom//lib/spoom/deadcode/send.rb#16
sig do
type_parameters(:T)
@@ -3090,38 +2593,24 @@ class Spoom::Deadcode::Send < ::T::Struct
end
def each_arg(arg_type, &block); end
- # : { (Prism::Node key, Prism::Node? value) -> void } -> void
- #
# source://spoom//lib/spoom/deadcode/send.rb#23
sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void }
def each_arg_assoc(&block); end
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
# source://spoom//lib/spoom.rb#10
class Spoom::Error < ::StandardError; end
-# source://spoom//lib/spoom/context/exec.rb#5
+# source://spoom//lib/spoom/context/exec.rb#7
class Spoom::ExecResult < ::T::Struct
const :out, ::String
const :err, T.nilable(::String)
const :status, T::Boolean
const :exit_code, ::Integer
- # : -> String
- #
- # source://spoom//lib/spoom/context/exec.rb#12
+ # source://spoom//lib/spoom/context/exec.rb#14
sig { returns(::String) }
def to_s; end
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
# source://spoom//lib/spoom/file_collector.rb#5
@@ -3134,7 +2623,6 @@ class Spoom::FileCollector
# If `allow_mime_types` is empty, all files are collected.
# If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in
# the list.
- # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> void
#
# @return [FileCollector] a new instance of FileCollector
#
@@ -3148,62 +2636,44 @@ class Spoom::FileCollector
end
def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end
- # : Array[String]
- #
# source://spoom//lib/spoom/file_collector.rb#7
sig { returns(T::Array[::String]) }
def files; end
- # : (String path) -> void
- #
# source://spoom//lib/spoom/file_collector.rb#31
sig { params(path: ::String).void }
def visit_path(path); end
- # : (Array[String] paths) -> void
- #
# source://spoom//lib/spoom/file_collector.rb#26
sig { params(paths: T::Array[::String]).void }
def visit_paths(paths); end
private
- # : (String path) -> String
- #
# source://spoom//lib/spoom/file_collector.rb#48
sig { params(path: ::String).returns(::String) }
def clean_path(path); end
- # : (String path) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/file_collector.rb#65
sig { params(path: ::String).returns(T::Boolean) }
def excluded_file?(path); end
- # : (String path) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/file_collector.rb#80
sig { params(path: ::String).returns(T::Boolean) }
def excluded_path?(path); end
- # : (String path) -> String?
- #
# source://spoom//lib/spoom/file_collector.rb#89
sig { params(path: ::String).returns(T.nilable(::String)) }
def mime_type_for(path); end
- # : (String path) -> void
- #
# source://spoom//lib/spoom/file_collector.rb#60
sig { params(path: ::String).void }
def visit_directory(path); end
- # : (String path) -> void
- #
# source://spoom//lib/spoom/file_collector.rb#53
sig { params(path: ::String).void }
def visit_file(path); end
@@ -3213,8 +2683,6 @@ end
#
# source://spoom//lib/spoom/file_tree.rb#6
class Spoom::FileTree
- # : (?T::Enumerable[String] paths) -> void
- #
# @return [FileTree] a new instance of FileTree
#
# source://spoom//lib/spoom/file_tree.rb#8
@@ -3224,55 +2692,46 @@ class Spoom::FileTree
# Add a `path` to the tree
#
# This will create all nodes until the root of `path`.
- # : (String path) -> Node
#
# source://spoom//lib/spoom/file_tree.rb#23
sig { params(path: ::String).returns(::Spoom::FileTree::Node) }
def add_path(path); end
# Add all `paths` to the tree
- # : (T::Enumerable[String] paths) -> void
#
# source://spoom//lib/spoom/file_tree.rb#15
sig { params(paths: T::Enumerable[::String]).void }
def add_paths(paths); end
# All the nodes in this tree
- # : -> Array[Node]
#
# source://spoom//lib/spoom/file_tree.rb#43
sig { returns(T::Array[::Spoom::FileTree::Node]) }
def nodes; end
# Return a map of typing scores for each node in the tree
- # : (Context context) -> Hash[Node, Float]
#
# source://spoom//lib/spoom/file_tree.rb#57
sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) }
def nodes_strictness_scores(context); end
# All the paths in this tree
- # : -> Array[String]
#
# source://spoom//lib/spoom/file_tree.rb#51
sig { returns(T::Array[::String]) }
def paths; end
# Return a map of typing scores for each path in the tree
- # : (Context context) -> Hash[String, Float]
#
# source://spoom//lib/spoom/file_tree.rb#65
sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) }
def paths_strictness_scores(context); end
- # : (?out: (IO | StringIO), ?colors: bool) -> void
- #
# source://spoom//lib/spoom/file_tree.rb#70
sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void }
def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end
# All root nodes
- # : -> Array[Node]
#
# source://spoom//lib/spoom/file_tree.rb#37
sig { returns(T::Array[::Spoom::FileTree::Node]) }
@@ -3281,89 +2740,67 @@ end
# A visitor that collects all the nodes in a tree
#
-# source://spoom//lib/spoom/file_tree.rb#119
+# source://spoom//lib/spoom/file_tree.rb#116
class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor
- # : -> void
- #
# @return [CollectNodes] a new instance of CollectNodes
#
- # source://spoom//lib/spoom/file_tree.rb#124
+ # source://spoom//lib/spoom/file_tree.rb#121
sig { void }
def initialize; end
- # : Array[FileTree::Node]
- #
- # source://spoom//lib/spoom/file_tree.rb#121
+ # source://spoom//lib/spoom/file_tree.rb#118
sig { returns(T::Array[::Spoom::FileTree::Node]) }
def nodes; end
- # : (FileTree::Node node) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#131
+ # source://spoom//lib/spoom/file_tree.rb#128
sig { override.params(node: ::Spoom::FileTree::Node).void }
def visit_node(node); end
end
# A visitor that collects the typing score of each node in a tree
#
-# source://spoom//lib/spoom/file_tree.rb#160
+# source://spoom//lib/spoom/file_tree.rb#157
class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses
- # : (Context context) -> void
- #
# @return [CollectScores] a new instance of CollectScores
#
- # source://spoom//lib/spoom/file_tree.rb#165
+ # source://spoom//lib/spoom/file_tree.rb#162
sig { params(context: ::Spoom::Context).void }
def initialize(context); end
- # : Hash[Node, Float]
- #
- # source://spoom//lib/spoom/file_tree.rb#162
+ # source://spoom//lib/spoom/file_tree.rb#159
sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) }
def scores; end
- # : (FileTree::Node node) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#173
+ # source://spoom//lib/spoom/file_tree.rb#170
sig { override.params(node: ::Spoom::FileTree::Node).void }
def visit_node(node); end
private
- # : (Node node) -> Float
- #
- # source://spoom//lib/spoom/file_tree.rb#182
+ # source://spoom//lib/spoom/file_tree.rb#179
sig { params(node: ::Spoom::FileTree::Node).returns(::Float) }
def node_score(node); end
- # : (String? strictness) -> Float
- #
- # source://spoom//lib/spoom/file_tree.rb#191
+ # source://spoom//lib/spoom/file_tree.rb#188
sig { params(strictness: T.nilable(::String)).returns(::Float) }
def strictness_score(strictness); end
end
# A visitor that collects the strictness of each node in a tree
#
-# source://spoom//lib/spoom/file_tree.rb#138
+# source://spoom//lib/spoom/file_tree.rb#135
class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor
- # : (Context context) -> void
- #
# @return [CollectStrictnesses] a new instance of CollectStrictnesses
#
- # source://spoom//lib/spoom/file_tree.rb#143
+ # source://spoom//lib/spoom/file_tree.rb#140
sig { params(context: ::Spoom::Context).void }
def initialize(context); end
- # : Hash[Node, String?]
- #
- # source://spoom//lib/spoom/file_tree.rb#140
+ # source://spoom//lib/spoom/file_tree.rb#137
sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) }
def strictnesses; end
- # : (FileTree::Node node) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#151
+ # source://spoom//lib/spoom/file_tree.rb#148
sig { override.params(node: ::Spoom::FileTree::Node).void }
def visit_node(node); end
end
@@ -3377,29 +2814,21 @@ class Spoom::FileTree::Node < ::T::Struct
const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil)
# Full path to this node from root
- # : -> String
#
# source://spoom//lib/spoom/file_tree.rb#88
sig { returns(::String) }
def path; end
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
# An internal class used to print a FileTree
#
# See `FileTree#print`
#
-# source://spoom//lib/spoom/file_tree.rb#204
+# source://spoom//lib/spoom/file_tree.rb#201
class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor
- # : (Hash[FileTree::Node, String?] strictnesses, ?out: (IO | StringIO), ?colors: bool) -> void
- #
# @return [Printer] a new instance of Printer
#
- # source://spoom//lib/spoom/file_tree.rb#206
+ # source://spoom//lib/spoom/file_tree.rb#203
sig do
params(
strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)],
@@ -3409,44 +2838,34 @@ class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor
end
def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end
- # : (FileTree::Node node) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#215
+ # source://spoom//lib/spoom/file_tree.rb#212
sig { override.params(node: ::Spoom::FileTree::Node).void }
def visit_node(node); end
private
- # : (String? strictness) -> Color
- #
- # source://spoom//lib/spoom/file_tree.rb#240
+ # source://spoom//lib/spoom/file_tree.rb#237
sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) }
def strictness_color(strictness); end
end
# An abstract visitor for FileTree
#
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/file_tree.rb#97
+# source://spoom//lib/spoom/file_tree.rb#98
class Spoom::FileTree::Visitor
abstract!
- # : (FileTree::Node node) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#108
+ # source://spoom//lib/spoom/file_tree.rb#105
sig { params(node: ::Spoom::FileTree::Node).void }
def visit_node(node); end
- # : (Array[FileTree::Node] nodes) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#113
+ # source://spoom//lib/spoom/file_tree.rb#110
sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void }
def visit_nodes(nodes); end
- # : (FileTree tree) -> void
- #
- # source://spoom//lib/spoom/file_tree.rb#103
+ # source://spoom//lib/spoom/file_tree.rb#100
sig { params(tree: ::Spoom::FileTree).void }
def visit_tree(tree); end
end
@@ -3459,18 +2878,12 @@ class Spoom::Git::Commit < ::T::Struct
const :sha, ::String
const :time, ::Time
- # : -> Integer
- #
# source://spoom//lib/spoom/context/git.rb#23
sig { returns(::Integer) }
def timestamp; end
class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
-
# Parse a line formatted as `%h %at` into a `Commit`
- # : (String string) -> Commit?
#
# source://spoom//lib/spoom/context/git.rb#10
sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) }
@@ -3483,68 +2896,48 @@ module Spoom::LSP; end
# source://spoom//lib/spoom/sorbet/lsp.rb#13
class Spoom::LSP::Client
- # : (String sorbet_bin, *String sorbet_args, ?path: String) -> void
- #
# @return [Client] a new instance of Client
#
# source://spoom//lib/spoom/sorbet/lsp.rb#15
sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void }
def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end
- # : -> void
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#227
sig { void }
def close; end
- # : (String uri, Integer line, Integer column) -> Array[Location]
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#129
sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) }
def definitions(uri, line, column); end
- # : (String uri) -> Array[DocumentSymbol]
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#210
sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) }
def document_symbols(uri); end
- # : (String uri, Integer line, Integer column) -> Hover?
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#87
sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) }
def hover(uri, line, column); end
- # : -> Integer
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#25
sig { returns(::Integer) }
def next_id; end
- # : (String workspace_path) -> void
- #
# @raise [Error::AlreadyOpen]
#
# source://spoom//lib/spoom/sorbet/lsp.rb#70
sig { params(workspace_path: ::String).void }
def open(workspace_path); end
- # : -> Hash[untyped, untyped]?
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#52
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
def read; end
- # : -> String?
- #
# @raise [Error::BadHeaders]
#
# source://spoom//lib/spoom/sorbet/lsp.rb#41
sig { returns(T.nilable(::String)) }
def read_raw; end
- # : (String uri, Integer line, Integer column, ?bool include_decl) -> Array[Location]
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#171
sig do
params(
@@ -3556,38 +2949,28 @@ class Spoom::LSP::Client
end
def references(uri, line, column, include_decl = T.unsafe(nil)); end
- # : (Message message) -> Hash[untyped, untyped]?
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#35
sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
def send(message); end
- # : (String json_string) -> void
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#30
sig { params(json_string: ::String).void }
def send_raw(json_string); end
- # : (String uri, Integer line, Integer column) -> Array[SignatureHelp]
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#108
sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) }
def signatures(uri, line, column); end
- # : (String query) -> Array[DocumentSymbol]
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#195
sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) }
def symbols(query); end
- # : (String uri, Integer line, Integer column) -> Array[Location]
- #
# source://spoom//lib/spoom/sorbet/lsp.rb#150
sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) }
def type_definitions(uri, line, column); end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#168
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#165
class Spoom::LSP::Diagnostic < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
@@ -3596,31 +2979,22 @@ class Spoom::LSP::Diagnostic < ::T::Struct
const :message, ::String
const :information, ::Object
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#190
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#187
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#195
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#192
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> Diagnostic
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#178
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#175
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#200
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#197
class Spoom::LSP::DocumentSymbol < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
@@ -3631,37 +3005,26 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct
const :range, T.nilable(::Spoom::LSP::Range)
const :children, T::Array[::Spoom::LSP::DocumentSymbol]
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#226
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#223
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#258
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#255
sig { returns(::String) }
def kind_string; end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#253
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#250
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> DocumentSymbol
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#212
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#209
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#262
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#259
Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash)
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#6
@@ -3675,94 +3038,68 @@ class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#10
class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error
- # : (String uri, Array[Diagnostic] diagnostics) -> void
- #
# @return [Diagnostics] a new instance of Diagnostics
#
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#28
sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void }
def initialize(uri, diagnostics); end
- # : Array[Diagnostic]
- #
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#15
sig { returns(T::Array[::Spoom::LSP::Diagnostic]) }
def diagnostics; end
- # : String
- #
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#12
sig { returns(::String) }
def uri; end
class << self
- # : (Hash[untyped, untyped] json) -> Diagnostics
- #
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#19
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) }
def from_json(json); end
end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#16
class Spoom::LSP::Hover < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
const :contents, ::String
const :range, T.nilable(T::Range[T.untyped])
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#37
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#34
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#43
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#40
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> Hover
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#27
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#24
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#106
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#103
class Spoom::LSP::Location < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
const :uri, ::String
const :range, ::Spoom::LSP::Range
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#124
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#121
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#130
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#127
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> Location
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#114
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#111
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
@@ -3772,22 +3109,16 @@ end
#
# source://spoom//lib/spoom/sorbet/lsp/base.rb#12
class Spoom::LSP::Message
- # : -> void
- #
# @return [Message] a new instance of Message
#
# source://spoom//lib/spoom/sorbet/lsp/base.rb#14
sig { void }
def initialize; end
- # : -> Hash[untyped, untyped]
- #
# source://spoom//lib/spoom/sorbet/lsp/base.rb#19
sig { returns(T::Hash[T.untyped, T.untyped]) }
def as_json; end
- # : (*untyped args) -> String
- #
# source://spoom//lib/spoom/sorbet/lsp/base.rb#27
sig { params(args: T.untyped).returns(::String) }
def to_json(*args); end
@@ -3799,99 +3130,74 @@ end
#
# source://spoom//lib/spoom/sorbet/lsp/base.rb#54
class Spoom::LSP::Notification < ::Spoom::LSP::Message
- # : (String method, Hash[untyped, untyped] params) -> void
- #
# @return [Notification] a new instance of Notification
#
# source://spoom//lib/spoom/sorbet/lsp/base.rb#62
sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void }
def initialize(method, params); end
- # : String
- #
# source://spoom//lib/spoom/sorbet/lsp/base.rb#56
sig { returns(::String) }
def method; end
- # : Hash[untyped, untyped]
- #
# source://spoom//lib/spoom/sorbet/lsp/base.rb#59
sig { returns(T::Hash[T.untyped, T.untyped]) }
def params; end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#48
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#45
class Spoom::LSP::Position < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
const :line, ::Integer
const :char, ::Integer
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#66
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#63
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#71
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#68
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> Position
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#56
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#53
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
-# @abstract Subclasses must implement the `abstract` methods below.
-#
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#10
module Spoom::LSP::PrintableSymbol
interface!
# @abstract
+ # @raise [NotImplementedError]
#
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#13
sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#76
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#73
class Spoom::LSP::Range < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
const :start, ::Spoom::LSP::Position
const :end, ::Spoom::LSP::Position
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#94
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#101
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#98
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> Range
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#84
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#81
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
@@ -3901,22 +3207,16 @@ end
#
# source://spoom//lib/spoom/sorbet/lsp/base.rb#35
class Spoom::LSP::Request < ::Spoom::LSP::Message
- # : (Integer id, String method, Hash[untyped, untyped] params) -> void
- #
# @return [Request] a new instance of Request
#
# source://spoom//lib/spoom/sorbet/lsp/base.rb#43
sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void }
def initialize(id, method, params); end
- # : Integer
- #
# source://spoom//lib/spoom/sorbet/lsp/base.rb#37
sig { returns(::Integer) }
def id; end
- # : Hash[untyped, untyped]
- #
# source://spoom//lib/spoom/sorbet/lsp/base.rb#40
sig { returns(T::Hash[T.untyped, T.untyped]) }
def params; end
@@ -3924,36 +3224,28 @@ end
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#36
class Spoom::LSP::ResponseError < ::Spoom::LSP::Error
- # : (Integer code, String message, Hash[untyped, untyped] data) -> void
- #
# @return [ResponseError] a new instance of ResponseError
#
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#55
sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void }
def initialize(code, message, data); end
- # : Integer
- #
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#38
sig { returns(::Integer) }
def code; end
- # : Hash[untyped, untyped]
- #
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#41
sig { returns(T::Hash[T.untyped, T.untyped]) }
def data; end
class << self
- # : (Hash[untyped, untyped] json) -> ResponseError
- #
# source://spoom//lib/spoom/sorbet/lsp/errors.rb#45
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) }
def from_json(json); end
end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#135
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#132
class Spoom::LSP::SignatureHelp < ::T::Struct
include ::Spoom::LSP::PrintableSymbol
@@ -3961,37 +3253,26 @@ class Spoom::LSP::SignatureHelp < ::T::Struct
const :doc, ::Object
const :params, T::Array[T.untyped]
- # : (SymbolPrinter printer) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#152
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
def accept_printer(printer); end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#163
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#160
sig { returns(::String) }
def to_s; end
class << self
- # : (Hash[untyped, untyped] json) -> SignatureHelp
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#144
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#141
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) }
def from_json(json); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
-# source://spoom//lib/spoom/sorbet/lsp/structures.rb#292
+# source://spoom//lib/spoom/sorbet/lsp/structures.rb#289
class Spoom::LSP::SymbolPrinter < ::Spoom::Printer
- # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer, ?prefix: String?) -> void
- #
# @return [SymbolPrinter] a new instance of SymbolPrinter
#
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#300
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297
sig do
params(
out: T.any(::IO, ::StringIO),
@@ -4002,44 +3283,30 @@ class Spoom::LSP::SymbolPrinter < ::Spoom::Printer
end
def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end
- # : (String uri) -> String
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#322
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#319
sig { params(uri: ::String).returns(::String) }
def clean_uri(uri); end
- # : String?
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294
sig { returns(T.nilable(::String)) }
def prefix; end
- # : String?
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294
def prefix=(_arg0); end
- # : (Array[PrintableSymbol] objects) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#330
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#327
sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void }
def print_list(objects); end
- # : (PrintableSymbol? object) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#310
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#307
sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void }
def print_object(object); end
- # : (Array[PrintableSymbol] objects) -> void
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#317
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#314
sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void }
def print_objects(objects); end
- # : Set[Integer]
- #
- # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294
+ # source://spoom//lib/spoom/sorbet/lsp/structures.rb#291
sig { returns(T::Set[::Integer]) }
def seen; end
end
@@ -4048,8 +3315,6 @@ end
class Spoom::Location
include ::Comparable
- # : (String file, ?start_line: Integer?, ?start_column: Integer?, ?end_line: Integer?, ?end_column: Integer?) -> void
- #
# @raise [LocationError]
# @return [Location] a new instance of Location
#
@@ -4065,62 +3330,42 @@ class Spoom::Location
end
def initialize(file, start_line: T.unsafe(nil), start_column: T.unsafe(nil), end_line: T.unsafe(nil), end_column: T.unsafe(nil)); end
- # : (BasicObject other) -> Integer?
- #
# source://spoom//lib/spoom/location.rb#95
sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) }
def <=>(other); end
- # : Integer?
- #
# source://spoom//lib/spoom/location.rb#58
def end_column; end
- # : Integer?
- #
# source://spoom//lib/spoom/location.rb#58
def end_line; end
- # : String
- #
# source://spoom//lib/spoom/location.rb#55
sig { returns(::String) }
def file; end
- # : (Location other) -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/location.rb#81
sig { params(other: ::Spoom::Location).returns(T::Boolean) }
def include?(other); end
- # : Integer?
- #
# source://spoom//lib/spoom/location.rb#58
def start_column; end
- # : Integer?
- #
# source://spoom//lib/spoom/location.rb#58
sig { returns(T.nilable(::Integer)) }
def start_line; end
- # : -> String
- #
# source://spoom//lib/spoom/location.rb#118
sig { returns(::String) }
def to_s; end
class << self
- # : (String file, Prism::Location location) -> Location
- #
# source://spoom//lib/spoom/location.rb#43
sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Location) }
def from_prism(file, location); end
- # : (String location_string) -> Location
- #
# @raise [LocationError]
#
# source://spoom//lib/spoom/location.rb#12
@@ -4134,190 +3379,145 @@ class Spoom::Location::LocationError < ::Spoom::Error; end
# source://spoom//lib/spoom/model/model.rb#5
class Spoom::Model
- # : -> void
- #
# @return [Model] a new instance of Model
#
- # source://spoom//lib/spoom/model/model.rb#235
+ # source://spoom//lib/spoom/model/model.rb#240
sig { void }
def initialize; end
# Get a symbol by it's full name
#
# Raises an error if the symbol is not found
- # : (String full_name) -> Symbol
#
# @raise [Error]
#
- # source://spoom//lib/spoom/model/model.rb#244
+ # source://spoom//lib/spoom/model/model.rb#249
sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) }
def [](full_name); end
- # : -> void
- #
- # source://spoom//lib/spoom/model/model.rb#293
+ # source://spoom//lib/spoom/model/model.rb#298
sig { void }
def finalize!; end
# Register a new symbol by it's full name
#
# If the symbol already exists, it will be returned.
- # : (String full_name) -> Symbol
#
- # source://spoom//lib/spoom/model/model.rb#255
+ # source://spoom//lib/spoom/model/model.rb#260
sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) }
def register_symbol(full_name); end
- # : (String full_name, context: Symbol) -> Symbol
- #
- # source://spoom//lib/spoom/model/model.rb#260
+ # source://spoom//lib/spoom/model/model.rb#265
sig { params(full_name: ::String, context: ::Spoom::Model::Symbol).returns(::Spoom::Model::Symbol) }
def resolve_symbol(full_name, context:); end
- # : (Symbol symbol) -> Array[Symbol]
- #
- # source://spoom//lib/spoom/model/model.rb#287
+ # source://spoom//lib/spoom/model/model.rb#292
sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) }
def subtypes(symbol); end
- # : (Symbol symbol) -> Array[Symbol]
- #
- # source://spoom//lib/spoom/model/model.rb#281
+ # source://spoom//lib/spoom/model/model.rb#286
sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) }
def supertypes(symbol); end
# All the symbols registered in this model
- # : Hash[String, Symbol]
#
- # source://spoom//lib/spoom/model/model.rb#229
+ # source://spoom//lib/spoom/model/model.rb#234
sig { returns(T::Hash[::String, ::Spoom::Model::Symbol]) }
def symbols; end
- # : Poset[Symbol]
- #
- # source://spoom//lib/spoom/model/model.rb#232
+ # source://spoom//lib/spoom/model/model.rb#237
sig { returns(Spoom::Poset[::Spoom::Model::Symbol]) }
def symbols_hierarchy; end
private
- # : -> void
- #
- # source://spoom//lib/spoom/model/model.rb#300
+ # source://spoom//lib/spoom/model/model.rb#305
sig { void }
def compute_symbols_hierarchy!; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/model/model.rb#179
+# source://spoom//lib/spoom/model/model.rb#188
class Spoom::Model::Attr < ::Spoom::Model::Property
abstract!
end
-# source://spoom//lib/spoom/model/model.rb#185
+# source://spoom//lib/spoom/model/model.rb#193
class Spoom::Model::AttrAccessor < ::Spoom::Model::Attr; end
-# source://spoom//lib/spoom/model/model.rb#183
+# source://spoom//lib/spoom/model/model.rb#191
class Spoom::Model::AttrReader < ::Spoom::Model::Attr; end
-# source://spoom//lib/spoom/model/model.rb#184
+# source://spoom//lib/spoom/model/model.rb#192
class Spoom::Model::AttrWriter < ::Spoom::Model::Attr; end
# Populate a Model by visiting the nodes from a Ruby file
#
# source://spoom//lib/spoom/model/builder.rb#7
class Spoom::Model::Builder < ::Spoom::Model::NamespaceVisitor
- # : (Model model, String file, ?comments: Array[Prism::Comment]) -> void
- #
# @return [Builder] a new instance of Builder
#
# source://spoom//lib/spoom/model/builder.rb#9
- sig { params(model: ::Spoom::Model, file: ::String, comments: T::Array[::Prism::Comment]).void }
- def initialize(model, file, comments:); end
+ sig { params(model: ::Spoom::Model, file: ::String).void }
+ def initialize(model, file); end
- # : (Prism::CallNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#162
+ # source://spoom//lib/spoom/model/builder.rb#159
sig { override.params(node: ::Prism::CallNode).void }
def visit_call_node(node); end
- # : (Prism::ClassNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#26
+ # source://spoom//lib/spoom/model/builder.rb#23
sig { override.params(node: ::Prism::ClassNode).void }
def visit_class_node(node); end
- # : (Prism::ConstantPathWriteNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#79
+ # source://spoom//lib/spoom/model/builder.rb#76
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
def visit_constant_path_write_node(node); end
- # : (Prism::ConstantWriteNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#102
+ # source://spoom//lib/spoom/model/builder.rb#99
sig { override.params(node: ::Prism::ConstantWriteNode).void }
def visit_constant_write_node(node); end
- # : (Prism::DefNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#141
+ # source://spoom//lib/spoom/model/builder.rb#138
sig { override.params(node: ::Prism::DefNode).void }
def visit_def_node(node); end
- # : (Prism::ModuleNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#61
+ # source://spoom//lib/spoom/model/builder.rb#58
sig { override.params(node: ::Prism::ModuleNode).void }
def visit_module_node(node); end
- # : (Prism::MultiWriteNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#118
+ # source://spoom//lib/spoom/model/builder.rb#115
sig { override.params(node: ::Prism::MultiWriteNode).void }
def visit_multi_write_node(node); end
- # : (Prism::SingletonClassNode node) -> void
- #
- # source://spoom//lib/spoom/model/builder.rb#43
+ # source://spoom//lib/spoom/model/builder.rb#40
sig { override.params(node: ::Prism::SingletonClassNode).void }
def visit_singleton_class_node(node); end
private
- # : -> Array[Sig]
- #
- # source://spoom//lib/spoom/model/builder.rb#253
+ # source://spoom//lib/spoom/model/builder.rb#250
sig { returns(T::Array[::Spoom::Model::Sig]) }
def collect_sigs; end
- # : -> Visibility
- #
- # source://spoom//lib/spoom/model/builder.rb#248
+ # source://spoom//lib/spoom/model/builder.rb#245
sig { returns(::Spoom::Model::Visibility) }
def current_visibility; end
- # : (Prism::Node node) -> Array[Comment]
- #
- # source://spoom//lib/spoom/model/builder.rb#265
+ # source://spoom//lib/spoom/model/builder.rb#262
sig { params(node: ::Prism::Node).returns(T::Array[::Spoom::Model::Comment]) }
def node_comments(node); end
- # : (Prism::Node node) -> Location
- #
- # source://spoom//lib/spoom/model/builder.rb#260
+ # source://spoom//lib/spoom/model/builder.rb#257
sig { params(node: ::Prism::Node).returns(::Spoom::Location) }
def node_location(node); end
end
-# source://spoom//lib/spoom/model/model.rb#132
+# source://spoom//lib/spoom/model/model.rb#128
class Spoom::Model::Class < ::Spoom::Model::Namespace
- # : (Symbol symbol, owner: Namespace?, location: Location, ?superclass_name: String?, ?comments: Array[Comment]) -> void
- #
# @return [Class] a new instance of Class
#
- # source://spoom//lib/spoom/model/model.rb#137
+ # source://spoom//lib/spoom/model/model.rb#139
sig do
params(
symbol: ::Spoom::Model::Symbol,
@@ -4329,48 +3529,36 @@ class Spoom::Model::Class < ::Spoom::Model::Namespace
end
def initialize(symbol, owner:, location:, superclass_name: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : String?
- #
- # source://spoom//lib/spoom/model/model.rb#134
+ # source://spoom//lib/spoom/model/model.rb#130
sig { returns(T.nilable(::String)) }
def superclass_name; end
- # : String?
- #
- # source://spoom//lib/spoom/model/model.rb#134
+ # source://spoom//lib/spoom/model/model.rb#130
def superclass_name=(_arg0); end
end
# source://spoom//lib/spoom/model/model.rb#8
class Spoom::Model::Comment
- # : (String string, Location location) -> void
- #
# @return [Comment] a new instance of Comment
#
# source://spoom//lib/spoom/model/model.rb#16
sig { params(string: ::String, location: ::Spoom::Location).void }
def initialize(string, location); end
- # : Location
- #
# source://spoom//lib/spoom/model/model.rb#13
sig { returns(::Spoom::Location) }
def location; end
- # : String
- #
# source://spoom//lib/spoom/model/model.rb#10
sig { returns(::String) }
def string; end
end
-# source://spoom//lib/spoom/model/model.rb#146
+# source://spoom//lib/spoom/model/model.rb#148
class Spoom::Model::Constant < ::Spoom::Model::SymbolDef
- # : (Symbol symbol, owner: Namespace?, location: Location, value: String, ?comments: Array[Comment]) -> void
- #
# @return [Constant] a new instance of Constant
#
- # source://spoom//lib/spoom/model/model.rb#151
+ # source://spoom//lib/spoom/model/model.rb#153
sig do
params(
symbol: ::Spoom::Model::Symbol,
@@ -4382,9 +3570,7 @@ class Spoom::Model::Constant < ::Spoom::Model::SymbolDef
end
def initialize(symbol, owner:, location:, value:, comments: T.unsafe(nil)); end
- # : String
- #
- # source://spoom//lib/spoom/model/model.rb#148
+ # source://spoom//lib/spoom/model/model.rb#150
sig { returns(::String) }
def value; end
end
@@ -4392,54 +3578,48 @@ end
# source://spoom//lib/spoom/model/model.rb#6
class Spoom::Model::Error < ::Spoom::Error; end
-# source://spoom//lib/spoom/model/model.rb#212
+# source://spoom//lib/spoom/model/model.rb#217
class Spoom::Model::Extend < ::Spoom::Model::Mixin; end
-# source://spoom//lib/spoom/model/model.rb#210
+# source://spoom//lib/spoom/model/model.rb#215
class Spoom::Model::Include < ::Spoom::Model::Mixin; end
-# source://spoom//lib/spoom/model/model.rb#177
+# source://spoom//lib/spoom/model/model.rb#185
class Spoom::Model::Method < ::Spoom::Model::Property; end
# A mixin (include, prepend, extend) to a namespace
#
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/model/model.rb#196
+# source://spoom//lib/spoom/model/model.rb#205
class Spoom::Model::Mixin
abstract!
- # : (String name) -> void
- #
# @return [Mixin] a new instance of Mixin
#
- # source://spoom//lib/spoom/model/model.rb#205
+ # source://spoom//lib/spoom/model/model.rb#210
sig { params(name: ::String).void }
def initialize(name); end
- # : String
- #
- # source://spoom//lib/spoom/model/model.rb#202
+ # source://spoom//lib/spoom/model/model.rb#207
sig { returns(::String) }
def name; end
end
-# source://spoom//lib/spoom/model/model.rb#144
+# source://spoom//lib/spoom/model/model.rb#146
class Spoom::Model::Module < ::Spoom::Model::Namespace; end
# A class or module
#
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/model/model.rb#112
+# source://spoom//lib/spoom/model/model.rb#110
class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef
abstract!
- # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void
- #
# @return [Namespace] a new instance of Namespace
#
- # source://spoom//lib/spoom/model/model.rb#122
+ # source://spoom//lib/spoom/model/model.rb#118
sig do
params(
symbol: ::Spoom::Model::Symbol,
@@ -4450,56 +3630,46 @@ class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef
end
def initialize(symbol, owner:, location:, comments: T.unsafe(nil)); end
- # : Array[SymbolDef]
- #
- # source://spoom//lib/spoom/model/model.rb#116
+ # source://spoom//lib/spoom/model/model.rb#112
sig { returns(T::Array[::Spoom::Model::SymbolDef]) }
def children; end
- # : Array[Mixin]
- #
- # source://spoom//lib/spoom/model/model.rb#119
+ # source://spoom//lib/spoom/model/model.rb#115
sig { returns(T::Array[::Spoom::Model::Mixin]) }
def mixins; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/model/namespace_visitor.rb#6
+# source://spoom//lib/spoom/model/namespace_visitor.rb#7
class Spoom::Model::NamespaceVisitor < ::Spoom::Visitor
abstract!
- # : -> void
- #
# @return [NamespaceVisitor] a new instance of NamespaceVisitor
#
- # source://spoom//lib/spoom/model/namespace_visitor.rb#12
+ # source://spoom//lib/spoom/model/namespace_visitor.rb#9
sig { void }
def initialize; end
- # : (Prism::Node? node) -> void
- #
- # source://spoom//lib/spoom/model/namespace_visitor.rb#20
+ # source://spoom//lib/spoom/model/namespace_visitor.rb#17
sig { override.params(node: T.nilable(::Prism::Node)).void }
def visit(node); end
end
-# source://spoom//lib/spoom/model/model.rb#211
+# source://spoom//lib/spoom/model/model.rb#216
class Spoom::Model::Prepend < ::Spoom::Model::Mixin; end
# A method or an attribute accessor
#
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/model/model.rb#159
+# source://spoom//lib/spoom/model/model.rb#162
class Spoom::Model::Property < ::Spoom::Model::SymbolDef
abstract!
- # : (Symbol symbol, owner: Namespace?, location: Location, visibility: Visibility, ?sigs: Array[Sig], ?comments: Array[Comment]) -> void
- #
# @return [Property] a new instance of Property
#
- # source://spoom//lib/spoom/model/model.rb#169
+ # source://spoom//lib/spoom/model/model.rb#177
sig do
params(
symbol: ::Spoom::Model::Symbol,
@@ -4512,15 +3682,11 @@ class Spoom::Model::Property < ::Spoom::Model::SymbolDef
end
def initialize(symbol, owner:, location:, visibility:, sigs: T.unsafe(nil), comments: T.unsafe(nil)); end
- # : Array[Sig]
- #
- # source://spoom//lib/spoom/model/model.rb#166
+ # source://spoom//lib/spoom/model/model.rb#167
sig { returns(T::Array[::Spoom::Model::Sig]) }
def sigs; end
- # : Visibility
- #
- # source://spoom//lib/spoom/model/model.rb#163
+ # source://spoom//lib/spoom/model/model.rb#164
sig { returns(::Spoom::Model::Visibility) }
def visibility; end
end
@@ -4536,16 +3702,12 @@ class Spoom::Model::Reference < ::T::Struct
const :name, ::String
const :location, ::Spoom::Location
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/model/reference.rb#35
sig { returns(T::Boolean) }
def constant?; end
- # : -> bool
- #
# @return [Boolean]
#
# source://spoom//lib/spoom/model/reference.rb#40
@@ -4553,17 +3715,10 @@ class Spoom::Model::Reference < ::T::Struct
def method?; end
class << self
- # : (String name, Spoom::Location location) -> Reference
- #
# source://spoom//lib/spoom/model/reference.rb#20
sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) }
def constant(name, location); end
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
-
- # : (String name, Spoom::Location location) -> Reference
- #
# source://spoom//lib/spoom/model/reference.rb#25
sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) }
def method(name, location); end
@@ -4582,168 +3737,114 @@ end
#
# source://spoom//lib/spoom/model/references_visitor.rb#7
class Spoom::Model::ReferencesVisitor < ::Spoom::Visitor
- # : (String file) -> void
- #
# @return [ReferencesVisitor] a new instance of ReferencesVisitor
#
# source://spoom//lib/spoom/model/references_visitor.rb#12
sig { params(file: ::String).void }
def initialize(file); end
- # : Array[Reference]
- #
# source://spoom//lib/spoom/model/references_visitor.rb#9
sig { returns(T::Array[::Spoom::Model::Reference]) }
def references; end
- # : (Prism::AliasMethodNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#21
sig { override.params(node: ::Prism::AliasMethodNode).void }
def visit_alias_method_node(node); end
- # : (Prism::AndNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#27
sig { override.params(node: ::Prism::AndNode).void }
def visit_and_node(node); end
- # : (Prism::BlockArgumentNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#34
sig { override.params(node: ::Prism::BlockArgumentNode).void }
def visit_block_argument_node(node); end
- # : (Prism::CallAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#46
sig { override.params(node: ::Prism::CallAndWriteNode).void }
def visit_call_and_write_node(node); end
- # : (Prism::CallNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#73
sig { override.params(node: ::Prism::CallNode).void }
def visit_call_node(node); end
- # : (Prism::CallOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#55
sig { override.params(node: ::Prism::CallOperatorWriteNode).void }
def visit_call_operator_write_node(node); end
- # : (Prism::CallOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#64
sig { override.params(node: ::Prism::CallOrWriteNode).void }
def visit_call_or_write_node(node); end
- # : (Prism::ClassNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#91
sig { override.params(node: ::Prism::ClassNode).void }
def visit_class_node(node); end
- # : (Prism::ConstantAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#98
sig { override.params(node: ::Prism::ConstantAndWriteNode).void }
def visit_constant_and_write_node(node); end
- # : (Prism::ConstantOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#105
sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void }
def visit_constant_operator_write_node(node); end
- # : (Prism::ConstantOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#112
sig { override.params(node: ::Prism::ConstantOrWriteNode).void }
def visit_constant_or_write_node(node); end
- # : (Prism::ConstantPathNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#119
sig { override.params(node: ::Prism::ConstantPathNode).void }
def visit_constant_path_node(node); end
- # : (Prism::ConstantPathWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#126
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
def visit_constant_path_write_node(node); end
- # : (Prism::ConstantReadNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#133
sig { override.params(node: ::Prism::ConstantReadNode).void }
def visit_constant_read_node(node); end
- # : (Prism::ConstantWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#139
sig { override.params(node: ::Prism::ConstantWriteNode).void }
def visit_constant_write_node(node); end
- # : (Prism::LocalVariableAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#145
sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void }
def visit_local_variable_and_write_node(node); end
- # : (Prism::LocalVariableOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#154
sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void }
def visit_local_variable_operator_write_node(node); end
- # : (Prism::LocalVariableOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#163
sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void }
def visit_local_variable_or_write_node(node); end
- # : (Prism::LocalVariableWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#172
sig { override.params(node: ::Prism::LocalVariableWriteNode).void }
def visit_local_variable_write_node(node); end
- # : (Prism::ModuleNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#179
sig { override.params(node: ::Prism::ModuleNode).void }
def visit_module_node(node); end
- # : (Prism::MultiWriteNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#185
sig { override.params(node: ::Prism::MultiWriteNode).void }
def visit_multi_write_node(node); end
- # : (Prism::OrNode node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#197
sig { override.params(node: ::Prism::OrNode).void }
def visit_or_node(node); end
private
- # : (Prism::Node node) -> Location
- #
# source://spoom//lib/spoom/model/references_visitor.rb#215
sig { params(node: ::Prism::Node).returns(::Spoom::Location) }
def node_location(node); end
- # : (String name, Prism::Node node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#205
sig { params(name: ::String, node: ::Prism::Node).void }
def reference_constant(name, node); end
- # : (String name, Prism::Node node) -> void
- #
# source://spoom//lib/spoom/model/references_visitor.rb#210
sig { params(name: ::String, node: ::Prism::Node).void }
def reference_method(name, node); end
@@ -4751,24 +3852,20 @@ end
# A Sorbet signature (sig block)
#
-# source://spoom//lib/spoom/model/model.rb#215
+# source://spoom//lib/spoom/model/model.rb#220
class Spoom::Model::Sig
- # : (String string) -> void
- #
# @return [Sig] a new instance of Sig
#
- # source://spoom//lib/spoom/model/model.rb#220
+ # source://spoom//lib/spoom/model/model.rb#225
sig { params(string: ::String).void }
def initialize(string); end
- # : String
- #
- # source://spoom//lib/spoom/model/model.rb#217
+ # source://spoom//lib/spoom/model/model.rb#222
sig { returns(::String) }
def string; end
end
-# source://spoom//lib/spoom/model/model.rb#130
+# source://spoom//lib/spoom/model/model.rb#126
class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end
# A Symbol is a uniquely named entity in the Ruby codebase
@@ -4779,8 +3876,6 @@ class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end
#
# source://spoom//lib/spoom/model/model.rb#27
class Spoom::Model::Symbol
- # : (String full_name) -> void
- #
# @return [Symbol] a new instance of Symbol
#
# source://spoom//lib/spoom/model/model.rb#37
@@ -4788,28 +3883,23 @@ class Spoom::Model::Symbol
def initialize(full_name); end
# The definitions of this symbol (where it exists in the code)
- # : Array[SymbolDef]
#
# source://spoom//lib/spoom/model/model.rb#34
sig { returns(T::Array[::Spoom::Model::SymbolDef]) }
def definitions; end
# The full, unique name of this symbol
- # : String
#
# source://spoom//lib/spoom/model/model.rb#30
sig { returns(::String) }
def full_name; end
# The short name of this symbol
- # : -> String
#
# source://spoom//lib/spoom/model/model.rb#44
sig { returns(::String) }
def name; end
- # : -> String
- #
# source://spoom//lib/spoom/model/model.rb#49
sig { returns(::String) }
def to_s; end
@@ -4820,17 +3910,15 @@ end
# It can be a class, module, constant, method, etc.
# A SymbolDef has a location pointing to the actual code that defines the symbol.
#
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://spoom//lib/spoom/model/model.rb#66
+# source://spoom//lib/spoom/model/model.rb#67
class Spoom::Model::SymbolDef
abstract!
- # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void
- #
# @return [SymbolDef] a new instance of SymbolDef
#
- # source://spoom//lib/spoom/model/model.rb#88
+ # source://spoom//lib/spoom/model/model.rb#85
sig do
params(
symbol: ::Spoom::Model::Symbol,
@@ -4842,58 +3930,50 @@ class Spoom::Model::SymbolDef
def initialize(symbol, owner:, location:, comments:); end
# The comments associated with this definition
- # : Array[Comment]
#
- # source://spoom//lib/spoom/model/model.rb#85
+ # source://spoom//lib/spoom/model/model.rb#82
sig { returns(T::Array[::Spoom::Model::Comment]) }
def comments; end
# The full name of the symbol this definition belongs to
- # : -> String
#
- # source://spoom//lib/spoom/model/model.rb#100
+ # source://spoom//lib/spoom/model/model.rb#97
sig { returns(::String) }
def full_name; end
# The actual code location of this definition
- # : Location
#
- # source://spoom//lib/spoom/model/model.rb#81
+ # source://spoom//lib/spoom/model/model.rb#78
sig { returns(::Spoom::Location) }
def location; end
# The short name of the symbol this definition belongs to
- # : -> String
#
- # source://spoom//lib/spoom/model/model.rb#106
+ # source://spoom//lib/spoom/model/model.rb#103
sig { returns(::String) }
def name; end
# The enclosing namespace this definition belongs to
- # : Namespace?
#
- # source://spoom//lib/spoom/model/model.rb#77
+ # source://spoom//lib/spoom/model/model.rb#74
sig { returns(T.nilable(::Spoom::Model::Namespace)) }
def owner; end
# The symbol this definition belongs to
- # : Symbol
#
- # source://spoom//lib/spoom/model/model.rb#73
+ # source://spoom//lib/spoom/model/model.rb#70
sig { returns(::Spoom::Model::Symbol) }
def symbol; end
end
# source://spoom//lib/spoom/model/model.rb#54
class Spoom::Model::UnresolvedSymbol < ::Spoom::Model::Symbol
- # : -> String
- #
# source://spoom//lib/spoom/model/model.rb#57
sig { override.returns(::String) }
def to_s; end
end
-# source://spoom//lib/spoom/model/model.rb#187
+# source://spoom//lib/spoom/model/model.rb#195
class Spoom::Model::Visibility < ::T::Enum
enums do
Private = new
@@ -4910,28 +3990,25 @@ class Spoom::ParseError < ::Spoom::Error; end
# The partial order relation is a binary relation that is reflexive, antisymmetric, and transitive.
# It can be used to represent a hierarchy of classes or modules, the dependencies between gems, etc.
#
-# source://spoom//lib/spoom/poset.rb#9
+# source://spoom//lib/spoom/poset.rb#10
class Spoom::Poset
extend T::Generic
E = type_member { { upper: Object } }
- # : -> void
- #
# @return [Poset] a new instance of Poset
#
- # source://spoom//lib/spoom/poset.rb#17
+ # source://spoom//lib/spoom/poset.rb#14
sig { void }
def initialize; end
# Get the POSet element for a given value
#
# Raises if the element is not found
- # : (E value) -> Element[E]
#
# @raise [Error]
#
- # source://spoom//lib/spoom/poset.rb#25
+ # source://spoom//lib/spoom/poset.rb#22
sig { params(value: E).returns(Spoom::Poset::Element[E]) }
def [](value); end
@@ -4940,154 +4017,132 @@ class Spoom::Poset
# Transitive edges (transitive closure) are automatically computed.
# Adds the elements if they don't exist.
# If the direct edge already exists, nothing is done.
- # : (E from, E to) -> void
#
- # source://spoom//lib/spoom/poset.rb#53
+ # source://spoom//lib/spoom/poset.rb#50
sig { params(from: E, to: E).void }
def add_direct_edge(from, to); end
# Add an element to the POSet
- # : (E value) -> Element[E]
#
- # source://spoom//lib/spoom/poset.rb#34
+ # source://spoom//lib/spoom/poset.rb#31
sig { params(value: E).returns(Spoom::Poset::Element[E]) }
def add_element(value); end
# Is there a direct edge from `from` to `to`?
- # : (E from, E to) -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/poset.rb#100
+ # source://spoom//lib/spoom/poset.rb#97
sig { params(from: E, to: E).returns(T::Boolean) }
def direct_edge?(from, to); end
# Is there an edge (direct or indirect) from `from` to `to`?
- # : (E from, E to) -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/poset.rb#91
+ # source://spoom//lib/spoom/poset.rb#88
sig { params(from: E, to: E).returns(T::Boolean) }
def edge?(from, to); end
# Is the given value a element in the POSet?
- # : (E value) -> bool
#
# @return [Boolean]
#
- # source://spoom//lib/spoom/poset.rb#43
+ # source://spoom//lib/spoom/poset.rb#40
sig { params(value: E).returns(T::Boolean) }
def element?(value); end
# Show the POSet as a DOT graph using xdot (used for debugging)
- # : (?direct: bool, ?transitive: bool) -> void
#
- # source://spoom//lib/spoom/poset.rb#106
+ # source://spoom//lib/spoom/poset.rb#103
sig { params(direct: T::Boolean, transitive: T::Boolean).void }
def show_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end
# Return the POSet as a DOT graph
- # : (?direct: bool, ?transitive: bool) -> String
#
- # source://spoom//lib/spoom/poset.rb#115
+ # source://spoom//lib/spoom/poset.rb#112
sig { params(direct: T::Boolean, transitive: T::Boolean).returns(::String) }
def to_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end
end
# An element in a POSet
#
-# source://spoom//lib/spoom/poset.rb#135
+# source://spoom//lib/spoom/poset.rb#133
class Spoom::Poset::Element
- extend T::Generic
include ::Comparable
+ extend T::Generic
E = type_member { { upper: Object } }
- # : (E value) -> void
- #
# @return [Element] a new instance of Element
#
- # source://spoom//lib/spoom/poset.rb#150
+ # source://spoom//lib/spoom/poset.rb#145
sig { params(value: E).void }
def initialize(value); end
- # : (untyped other) -> Integer?
- #
- # source://spoom//lib/spoom/poset.rb#159
+ # source://spoom//lib/spoom/poset.rb#154
sig { params(other: T.untyped).returns(T.nilable(::Integer)) }
def <=>(other); end
# Direct and indirect ancestors of this element
- # : -> Array[E]
#
- # source://spoom//lib/spoom/poset.rb#178
+ # source://spoom//lib/spoom/poset.rb#173
sig { returns(T::Array[E]) }
def ancestors; end
# Direct children of this element
- # : -> Array[E]
#
- # source://spoom//lib/spoom/poset.rb#184
+ # source://spoom//lib/spoom/poset.rb#179
sig { returns(T::Array[E]) }
def children; end
# Direct and indirect descendants of this element
- # : -> Array[E]
#
- # source://spoom//lib/spoom/poset.rb#190
+ # source://spoom//lib/spoom/poset.rb#185
sig { returns(T::Array[E]) }
def descendants; end
# Edges (direct and indirect) from this element to other elements in the same POSet
- # : Set[Element[E]]
#
- # source://spoom//lib/spoom/poset.rb#147
+ # source://spoom//lib/spoom/poset.rb#142
def dfroms; end
# Edges (direct and indirect) from this element to other elements in the same POSet
- # : Set[Element[E]]
#
- # source://spoom//lib/spoom/poset.rb#147
+ # source://spoom//lib/spoom/poset.rb#142
sig { returns(T::Set[Spoom::Poset::Element[E]]) }
def dtos; end
# Edges (direct and indirect) from this element to other elements in the same POSet
- # : Set[Element[E]]
#
- # source://spoom//lib/spoom/poset.rb#147
+ # source://spoom//lib/spoom/poset.rb#142
def froms; end
# Direct parents of this element
- # : -> Array[E]
#
- # source://spoom//lib/spoom/poset.rb#172
+ # source://spoom//lib/spoom/poset.rb#167
sig { returns(T::Array[E]) }
def parents; end
# Edges (direct and indirect) from this element to other elements in the same POSet
- # : Set[Element[E]]
#
- # source://spoom//lib/spoom/poset.rb#147
+ # source://spoom//lib/spoom/poset.rb#142
def tos; end
# The value held by this element
- # : E
#
- # source://spoom//lib/spoom/poset.rb#143
+ # source://spoom//lib/spoom/poset.rb#138
sig { returns(E) }
def value; end
end
-# source://spoom//lib/spoom/poset.rb#12
+# source://spoom//lib/spoom/poset.rb#11
class Spoom::Poset::Error < ::Spoom::Error; end
# source://spoom//lib/spoom/printer.rb#7
class Spoom::Printer
include ::Spoom::Colorize
- # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void
- #
# @return [Printer] a new instance of Printer
#
# source://spoom//lib/spoom/printer.rb#14
@@ -5095,39 +4150,31 @@ class Spoom::Printer
def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end
# Colorize `string` with color if `@colors`
- # : (String string, *Spoom::Color color) -> String
#
# source://spoom//lib/spoom/printer.rb#75
sig { params(string: ::String, color: ::Spoom::Color).returns(::String) }
def colorize(string, *color); end
# Decrease indent level
- # : -> void
#
# source://spoom//lib/spoom/printer.rb#28
sig { void }
def dedent; end
# Increase indent level
- # : -> void
#
# source://spoom//lib/spoom/printer.rb#22
sig { void }
def indent; end
- # : (IO | StringIO)
- #
# source://spoom//lib/spoom/printer.rb#11
sig { returns(T.any(::IO, ::StringIO)) }
def out; end
- # : (IO | StringIO)
- #
# source://spoom//lib/spoom/printer.rb#11
def out=(_arg0); end
# Print `string` into `out`
- # : (String? string) -> void
#
# source://spoom//lib/spoom/printer.rb#34
sig { params(string: T.nilable(::String)).void }
@@ -5136,327 +4183,103 @@ class Spoom::Printer
# Print `string` colored with `color` into `out`
#
# Does not use colors unless `@colors`.
- # : (String? string, *Color color) -> void
#
# source://spoom//lib/spoom/printer.rb#44
sig { params(string: T.nilable(::String), color: ::Spoom::Color).void }
def print_colored(string, *color); end
# Print `string` with indent and newline
- # : (String? string) -> void
#
# source://spoom//lib/spoom/printer.rb#59
sig { params(string: T.nilable(::String)).void }
def printl(string); end
# Print a new line into `out`
- # : -> void
#
# source://spoom//lib/spoom/printer.rb#53
sig { void }
def printn; end
# Print an indent space into `out`
- # : -> void
#
# source://spoom//lib/spoom/printer.rb#69
sig { void }
def printt; end
end
-# : String
-#
-# source://spoom//lib/spoom.rb#8
-Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String)
-
-# source://spoom//lib/spoom/sorbet/assertions.rb#7
-module Spoom::Sorbet; end
-
-# source://spoom//lib/spoom/sorbet/assertions.rb#8
-class Spoom::Sorbet::Assertions
- class << self
- # : (String, file: String) -> String
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#11
- sig { params(ruby_contents: ::String, file: ::String).returns(::String) }
- def rbi_to_rbs(ruby_contents, file:); end
-
- private
-
- # : (String, file: String) -> Array[AssignNode]
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#46
- sig { params(ruby_contents: ::String, file: ::String).returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) }
- def collect_assigns(ruby_contents, file:); end
+# source://spoom//lib/spoom/rbs.rb#5
+module Spoom::RBS; end
- # : (AssignNode) -> String
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#54
- sig { params(assign: ::Spoom::Sorbet::Assertions::AssignNode).returns(::String) }
- def dedent_value(assign); end
- end
-end
-
-# source://spoom//lib/spoom/sorbet/assertions.rb#122
-class Spoom::Sorbet::Assertions::AssignNode
- # : (AssignType, Prism::Location, Prism::Node, Prism::Node) -> void
- #
- # @return [AssignNode] a new instance of AssignNode
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#133
- sig do
- params(
- node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode),
- operator_loc: ::Prism::Location,
- value: ::Prism::Node,
- type: ::Prism::Node
- ).void
- end
- def initialize(node, operator_loc, value, type); end
+# source://spoom//lib/spoom/rbs.rb#71
+class Spoom::RBS::Annotation < ::Spoom::RBS::Comment; end
- # : AssignType
+# source://spoom//lib/spoom/rbs.rb#57
+class Spoom::RBS::Comment
+ # @return [Comment] a new instance of Comment
#
- # source://spoom//lib/spoom/sorbet/assertions.rb#124
- sig do
- returns(T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode))
- end
- def node; end
+ # source://spoom//lib/spoom/rbs.rb#65
+ sig { params(string: ::String, location: ::Prism::Location).void }
+ def initialize(string, location); end
- # : Prism::Location
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#127
+ # source://spoom//lib/spoom/rbs.rb#62
sig { returns(::Prism::Location) }
- def operator_loc; end
+ def location; end
- # : -> String
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#141
+ # source://spoom//lib/spoom/rbs.rb#59
sig { returns(::String) }
- def rbs_type; end
-
- # : Prism::Node
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#130
- def type; end
-
- # : Prism::Node
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#130
- sig { returns(::Prism::Node) }
- def value; end
+ def string; end
end
-# source://spoom//lib/spoom/sorbet/assertions.rb#93
-Spoom::Sorbet::Assertions::AssignType = T.type_alias { T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) }
-
-# source://spoom//lib/spoom/sorbet/assertions.rb#146
-class Spoom::Sorbet::Assertions::Locator < ::Spoom::Visitor
- # : -> void
+# source://spoom//lib/spoom/rbs.rb#6
+class Spoom::RBS::Comments
+ # @return [Comments] a new instance of Comments
#
- # @return [Locator] a new instance of Locator
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#153
+ # source://spoom//lib/spoom/rbs.rb#14
sig { void }
def initialize; end
- # : Array[AssignNode]
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#150
- sig { returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) }
- def assigns; end
+ # source://spoom//lib/spoom/rbs.rb#8
+ sig { returns(T::Array[::Spoom::RBS::Annotation]) }
+ def annotations; end
- # : (Prism::Node) -> bool
- #
- # @return [Boolean]
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#245
- sig { params(node: ::Prism::Node).returns(T::Boolean) }
- def contains_heredoc?(node); end
-
- # Is this node a `T` or `::T` constant?
- # : (Prism::Node?) -> bool
- #
- # @return [Boolean]
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#223
- sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
- def t?(node); end
+ # source://spoom//lib/spoom/rbs.rb#25
+ sig { returns(T::Array[::Spoom::RBS::Annotation]) }
+ def class_annotations; end
- # Is this node a `T.let` or `T.cast`?
- # : (Prism::CallNode) -> bool
- #
# @return [Boolean]
#
- # source://spoom//lib/spoom/sorbet/assertions.rb#236
- sig { params(node: ::Prism::CallNode).returns(T::Boolean) }
- def t_annotation?(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- sig do
- params(
- node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode)
- ).void
- end
- def visit_assign(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_class_variable_and_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_class_variable_operator_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_class_variable_or_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_class_variable_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_and_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_operator_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_or_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_path_and_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_path_operator_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_path_or_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_path_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_constant_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_global_variable_and_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_global_variable_operator_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_global_variable_or_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_global_variable_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_instance_variable_and_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_instance_variable_operator_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_instance_variable_or_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_instance_variable_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_local_variable_and_write_node(node); end
-
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_local_variable_operator_write_node(node); end
+ # source://spoom//lib/spoom/rbs.rb#20
+ sig { returns(T::Boolean) }
+ def empty?; end
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_local_variable_or_write_node(node); end
+ # source://spoom//lib/spoom/rbs.rb#39
+ sig { returns(T::Array[::Spoom::RBS::Annotation]) }
+ def method_annotations; end
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_local_variable_write_node(node); end
+ # source://spoom//lib/spoom/rbs.rb#11
+ sig { returns(T::Array[::Spoom::RBS::Signature]) }
+ def signatures; end
+end
- # : (AssignType) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#159
- def visit_multi_write_node(node); end
+# source://spoom//lib/spoom/rbs.rb#75
+module Spoom::RBS::ExtractRBSComments
+ # source://spoom//lib/spoom/rbs.rb#77
+ sig { params(node: ::Prism::Node).returns(::Spoom::RBS::Comments) }
+ def node_rbs_comments(node); end
end
-# : Array[Symbol]
-#
-# source://spoom//lib/spoom/sorbet/assertions.rb#147
-Spoom::Sorbet::Assertions::Locator::ANNOTATION_METHODS = T.let(T.unsafe(nil), Array)
+# source://spoom//lib/spoom/rbs.rb#72
+class Spoom::RBS::Signature < ::Spoom::RBS::Comment; end
-# source://spoom//lib/spoom/sorbet/assertions.rb#251
-class Spoom::Sorbet::Assertions::Locator::HeredocVisitor < ::Spoom::Visitor
- # : -> void
- #
- # @return [HeredocVisitor] a new instance of HeredocVisitor
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#256
- sig { void }
- def initialize; end
+# source://spoom//lib/spoom/rbs.rb#73
+class Spoom::RBS::TypeAlias < ::Spoom::RBS::Comment; end
- # : bool
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#253
- sig { returns(T::Boolean) }
- def contains_heredoc; end
+# source://spoom//lib/spoom.rb#8
+Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String)
- # : (Prism::Node?) -> void
- #
- # source://spoom//lib/spoom/sorbet/assertions.rb#264
- sig { override.params(node: T.nilable(::Prism::Node)).void }
- def visit(node); end
-end
+# source://spoom//lib/spoom/sorbet/config.rb#5
+module Spoom::Sorbet; end
-# : String
-#
# source://spoom//lib/spoom/sorbet.rb#33
Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String)
@@ -5486,48 +4309,32 @@ Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String)
#
# source://spoom//lib/spoom/sorbet/config.rb#26
class Spoom::Sorbet::Config
- # : -> void
- #
# @return [Config] a new instance of Config
#
# source://spoom//lib/spoom/sorbet/config.rb#36
sig { void }
def initialize; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/config.rb#30
def allowed_extensions; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/config.rb#30
def allowed_extensions=(_arg0); end
- # : -> Config
- #
# source://spoom//lib/spoom/sorbet/config.rb#44
sig { returns(::Spoom::Sorbet::Config) }
def copy; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/config.rb#30
def ignore; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/config.rb#30
def ignore=(_arg0); end
- # : bool
- #
# source://spoom//lib/spoom/sorbet/config.rb#33
sig { returns(T::Boolean) }
def no_stdlib; end
- # : bool
- #
# source://spoom//lib/spoom/sorbet/config.rb#33
def no_stdlib=(_arg0); end
@@ -5543,63 +4350,46 @@ class Spoom::Sorbet::Config
#
# puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb"
# ~~~
- # : -> String
#
# source://spoom//lib/spoom/sorbet/config.rb#66
sig { returns(::String) }
def options_string; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/config.rb#30
sig { returns(T::Array[::String]) }
def paths; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/config.rb#30
def paths=(_arg0); end
class << self
- # : (String sorbet_config_path) -> Spoom::Sorbet::Config
- #
# source://spoom//lib/spoom/sorbet/config.rb#77
sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) }
def parse_file(sorbet_config_path); end
- # : (String sorbet_config) -> Spoom::Sorbet::Config
- #
# source://spoom//lib/spoom/sorbet/config.rb#82
sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) }
def parse_string(sorbet_config); end
private
- # : (String line) -> String
- #
# source://spoom//lib/spoom/sorbet/config.rb#143
sig { params(line: ::String).returns(::String) }
def parse_option(line); end
end
end
-# : Array[String]
-#
# source://spoom//lib/spoom/sorbet/config.rb#27
Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/sorbet.rb#15
class Spoom::Sorbet::Error < ::Spoom::Error
- # : (String message, ExecResult result) -> void
- #
# @return [Error] a new instance of Error
#
# source://spoom//lib/spoom/sorbet.rb#23
sig { params(message: ::String, result: ::Spoom::ExecResult).void }
def initialize(message, result); end
- # : ExecResult
- #
# source://spoom//lib/spoom/sorbet.rb#20
sig { returns(::Spoom::ExecResult) }
def result; end
@@ -5614,14 +4404,10 @@ class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end
# source://spoom//lib/spoom/sorbet/errors.rb#8
module Spoom::Sorbet::Errors
class << self
- # : (Array[Error] errors) -> Array[Error]
- #
# source://spoom//lib/spoom/sorbet/errors.rb#13
sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) }
def sort_errors_by_code(errors); end
- # : (Array[Error]) -> REXML::Document
- #
# source://spoom//lib/spoom/sorbet/errors.rb#18
sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(::REXML::Document) }
def to_junit_xml(errors); end
@@ -5635,8 +4421,6 @@ Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String)
class Spoom::Sorbet::Errors::Error
include ::Comparable
- # : (String? file, Integer? line, String? message, Integer? code, ?Array[String] more) -> void
- #
# @return [Error] a new instance of Error
#
# source://spoom//lib/spoom/sorbet/errors.rb#166
@@ -5652,55 +4436,39 @@ class Spoom::Sorbet::Errors::Error
def initialize(file, line, message, code, more = T.unsafe(nil)); end
# By default errors are sorted by location
- # : (untyped other) -> Integer
#
# source://spoom//lib/spoom/sorbet/errors.rb#177
sig { params(other: T.untyped).returns(::Integer) }
def <=>(other); end
- # : Integer?
- #
# source://spoom//lib/spoom/sorbet/errors.rb#156
def code; end
- # : String?
- #
# source://spoom//lib/spoom/sorbet/errors.rb#153
sig { returns(T.nilable(::String)) }
def file; end
# Other files associated with the error
- # : Set[String]
#
# source://spoom//lib/spoom/sorbet/errors.rb#163
sig { returns(T::Set[::String]) }
def files_from_error_sections; end
- # : Integer?
- #
# source://spoom//lib/spoom/sorbet/errors.rb#156
sig { returns(T.nilable(::Integer)) }
def line; end
- # : String?
- #
# source://spoom//lib/spoom/sorbet/errors.rb#153
def message; end
- # : Array[String]
- #
# source://spoom//lib/spoom/sorbet/errors.rb#159
sig { returns(T::Array[::String]) }
def more; end
- # : -> REXML::Element
- #
# source://spoom//lib/spoom/sorbet/errors.rb#189
sig { returns(::REXML::Element) }
def to_junit_xml_element; end
- # : -> String
- #
# source://spoom//lib/spoom/sorbet/errors.rb#184
sig { returns(::String) }
def to_s; end
@@ -5710,52 +4478,38 @@ end
#
# source://spoom//lib/spoom/sorbet/errors.rb#47
class Spoom::Sorbet::Errors::Parser
- # : (?error_url_base: String) -> void
- #
# @return [Parser] a new instance of Parser
#
# source://spoom//lib/spoom/sorbet/errors.rb#67
sig { params(error_url_base: ::String).void }
def initialize(error_url_base: T.unsafe(nil)); end
- # : (String output) -> Array[Error]
- #
# source://spoom//lib/spoom/sorbet/errors.rb#74
sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) }
def parse(output); end
private
- # : (String line) -> void
- #
# @raise [ParseError]
#
# source://spoom//lib/spoom/sorbet/errors.rb#138
sig { params(line: ::String).void }
def append_error(line); end
- # : -> void
- #
# @raise [ParseError]
#
# source://spoom//lib/spoom/sorbet/errors.rb#130
sig { void }
def close_error; end
- # : (String error_url_base) -> Regexp
- #
# source://spoom//lib/spoom/sorbet/errors.rb#97
sig { params(error_url_base: ::String).returns(::Regexp) }
def error_line_match_regexp(error_url_base); end
- # : (String line) -> Error?
- #
# source://spoom//lib/spoom/sorbet/errors.rb#114
sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) }
def match_error_line(line); end
- # : (Error error) -> void
- #
# @raise [ParseError]
#
# source://spoom//lib/spoom/sorbet/errors.rb#123
@@ -5763,8 +4517,6 @@ class Spoom::Sorbet::Errors::Parser
def open_error(error); end
class << self
- # : (String output, ?error_url_base: String) -> Array[Error]
- #
# source://spoom//lib/spoom/sorbet/errors.rb#60
sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) }
def parse_string(output, error_url_base: T.unsafe(nil)); end
@@ -5777,44 +4529,119 @@ Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array)
# source://spoom//lib/spoom/sorbet/errors.rb#48
class Spoom::Sorbet::Errors::Parser::ParseError < ::Spoom::Error; end
-# : String
-#
# source://spoom//lib/spoom/sorbet.rb#31
Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String)
-# : String
-#
# source://spoom//lib/spoom/sorbet.rb#32
Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String)
# source://spoom//lib/spoom/sorbet.rb#35
Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer)
-# source://spoom//lib/spoom/sorbet/metrics.rb#8
-module Spoom::Sorbet::MetricsParser
+# source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#6
+module Spoom::Sorbet::Metrics
class << self
- # : (String path, ?String prefix) -> Hash[String, Integer]
- #
- # source://spoom//lib/spoom/sorbet/metrics.rb#13
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#9
+ sig { params(files: T::Array[::String]).returns(Spoom::Counters) }
+ def collect_code_metrics(files); end
+ end
+end
+
+# Collects metrics about how Sorbet is used in the codebase.
+#
+# This approach is different from the metrics file we get directly from Sorbet.
+#
+# This visitor actually visits the codebase and collects metrics about the amount of signatures, `T.` calls,
+# and other metrics. It also knows about RBS comments.
+#
+# On the other hand, the metrics file is a snapshot of the metrics at type checking time and knows about
+# is calls are typed, how many assertions are done, etc.
+#
+# source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#34
+class Spoom::Sorbet::Metrics::CodeMetricsVisitor < ::Spoom::Visitor
+ include ::Spoom::RBS::ExtractRBSComments
+
+ # @return [CodeMetricsVisitor] a new instance of CodeMetricsVisitor
+ #
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#38
+ sig { params(counters: Spoom::Counters).void }
+ def initialize(counters); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#49
+ sig { override.params(node: T.nilable(::Prism::Node)).void }
+ def visit(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#124
+ sig { override.params(node: ::Prism::CallNode).void }
+ def visit_call_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#75
+ sig { override.params(node: ::Prism::ClassNode).void }
+ def visit_class_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#99
+ sig { override.params(node: ::Prism::DefNode).void }
+ def visit_def_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#83
+ sig { override.params(node: ::Prism::ModuleNode).void }
+ def visit_module_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#91
+ sig { override.params(node: ::Prism::SingletonClassNode).void }
+ def visit_singleton_class_node(node); end
+
+ private
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#213
+ sig { returns(T::Array[::Prism::CallNode]) }
+ def collect_last_srb_sigs; end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#220
+ sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).returns(::String) }
+ def node_key(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#167
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_attr_accessor(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#151
+ sig do
+ params(
+ node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode),
+ block: T.proc.void
+ ).void
+ end
+ def visit_scope(node, &block); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#187
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_sig(node); end
+
+ # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#197
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_type_member(node); end
+end
+
+# source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#9
+module Spoom::Sorbet::Metrics::MetricsFileParser
+ class << self
+ # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#14
sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) }
def parse_file(path, prefix = T.unsafe(nil)); end
- # : (Hash[String, untyped] obj, ?String prefix) -> Hash[String, Integer]
- #
- # source://spoom//lib/spoom/sorbet/metrics.rb#23
- sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) }
+ # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#24
+ sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(Spoom::Counters) }
def parse_hash(obj, prefix = T.unsafe(nil)); end
- # : (String string, ?String prefix) -> Hash[String, Integer]
- #
- # source://spoom//lib/spoom/sorbet/metrics.rb#18
+ # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#19
sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) }
def parse_string(string, prefix = T.unsafe(nil)); end
end
end
-# source://spoom//lib/spoom/sorbet/metrics.rb#9
-Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String)
+# source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#10
+Spoom::Sorbet::Metrics::MetricsFileParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String)
# source://spoom//lib/spoom/sorbet.rb#36
Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer)
@@ -5823,14 +4650,12 @@ Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer)
module Spoom::Sorbet::Sigils
class << self
# changes the sigil in the file at the passed path to the specified new strictness
- # : ((String | Pathname) path, String new_strictness) -> bool
#
# source://spoom//lib/spoom/sorbet/sigils.rb#65
sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) }
def change_sigil_in_file(path, new_strictness); end
# changes the sigil to have a new strictness in a list of files
- # : (Array[String] path_list, String new_strictness) -> Array[String]
#
# source://spoom//lib/spoom/sorbet/sigils.rb#76
sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) }
@@ -5838,35 +4663,30 @@ module Spoom::Sorbet::Sigils
# returns a string containing the strictness of a sigil in a file at the passed path
# * returns nil if no sigil
- # : ((String | Pathname) path) -> String?
#
# source://spoom//lib/spoom/sorbet/sigils.rb#56
sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) }
def file_strictness(path); end
# returns the full sigil comment string for the passed strictness
- # : (String strictness) -> String
#
# source://spoom//lib/spoom/sorbet/sigils.rb#31
sig { params(strictness: ::String).returns(::String) }
def sigil_string(strictness); end
# returns the strictness of a sigil in the passed file content string (nil if no sigil)
- # : (String content) -> String?
#
# source://spoom//lib/spoom/sorbet/sigils.rb#43
sig { params(content: ::String).returns(T.nilable(::String)) }
def strictness_in_content(content); end
# returns a string which is the passed content but with the sigil updated to a new strictness
- # : (String content, String new_strictness) -> String
#
# source://spoom//lib/spoom/sorbet/sigils.rb#49
sig { params(content: ::String, new_strictness: ::String).returns(::String) }
def update_sigil(content, new_strictness); end
# returns true if the passed string is a valid strictness (else false)
- # : (String strictness) -> bool
#
# @return [Boolean]
#
@@ -5876,186 +4696,560 @@ module Spoom::Sorbet::Sigils
end
end
-# : Array[String]
+# source://spoom//lib/spoom/sorbet/sigils.rb#26
+Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#11
+Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#10
+Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#15
+Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#13
+Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#14
+Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#12
+Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String)
+
+# source://spoom//lib/spoom/sorbet/sigils.rb#17
+Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array)
+
+# source://spoom//lib/spoom/sorbet/translate/translator.rb#6
+module Spoom::Sorbet::Translate
+ class << self
+ # Converts all the RBS comments in the given Ruby code to `sig` nodes.
+ # It also handles type members and class annotations.
+ #
+ # source://spoom//lib/spoom/sorbet/translate.rb#57
+ sig { params(ruby_contents: ::String, file: ::String, max_line_length: T.nilable(::Integer)).returns(::String) }
+ def rbs_comments_to_sorbet_sigs(ruby_contents, file:, max_line_length: T.unsafe(nil)); end
+
+ # Converts all `T.let` and `T.cast` nodes to RBS comments in the given Ruby code.
+ # It also handles type members and class annotations.
+ #
+ # source://spoom//lib/spoom/sorbet/translate.rb#72
+ sig do
+ params(
+ ruby_contents: ::String,
+ file: ::String,
+ translate_t_let: T::Boolean,
+ translate_t_cast: T::Boolean,
+ translate_t_bind: T::Boolean,
+ translate_t_must: T::Boolean,
+ translate_t_unsafe: T::Boolean
+ ).returns(::String)
+ end
+ def sorbet_assertions_to_rbs_comments(ruby_contents, file:, translate_t_let: T.unsafe(nil), translate_t_cast: T.unsafe(nil), translate_t_bind: T.unsafe(nil), translate_t_must: T.unsafe(nil), translate_t_unsafe: T.unsafe(nil)); end
+
+ # Converts all `sig` nodes to RBS comments in the given Ruby code.
+ # It also handles type members and class annotations.
+ #
+ # source://spoom//lib/spoom/sorbet/translate.rb#37
+ sig do
+ params(
+ ruby_contents: ::String,
+ file: ::String,
+ positional_names: T::Boolean,
+ max_line_length: T.nilable(::Integer),
+ translate_generics: T::Boolean,
+ translate_helpers: T::Boolean,
+ translate_abstract_methods: T::Boolean
+ ).returns(::String)
+ end
+ def sorbet_sigs_to_rbs_comments(ruby_contents, file:, positional_names: T.unsafe(nil), max_line_length: T.unsafe(nil), translate_generics: T.unsafe(nil), translate_helpers: T.unsafe(nil), translate_abstract_methods: T.unsafe(nil)); end
+
+ # Deletes all `sig` nodes from the given Ruby code.
+ # It doesn't handle type members and class annotations.
+ #
+ # source://spoom//lib/spoom/sorbet/translate.rb#22
+ sig { params(ruby_contents: ::String, file: ::String).returns(::String) }
+ def strip_sorbet_sigs(ruby_contents, file:); end
+ end
+end
+
+# source://spoom//lib/spoom/sorbet/translate.rb#16
+class Spoom::Sorbet::Translate::Error < ::Spoom::Error; end
+
+# source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#7
+class Spoom::Sorbet::Translate::RBSCommentsToSorbetSigs < ::Spoom::Sorbet::Translate::Translator
+ include ::Spoom::RBS::ExtractRBSComments
+
+ # @return [RBSCommentsToSorbetSigs] a new instance of RBSCommentsToSorbetSigs
+ #
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#11
+ sig { params(ruby_contents: ::String, file: ::String, max_line_length: T.nilable(::Integer)).void }
+ def initialize(ruby_contents, file:, max_line_length: T.unsafe(nil)); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#59
+ sig { override.params(node: ::Prism::CallNode).void }
+ def visit_call_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#29
+ sig { override.params(node: ::Prism::ClassNode).void }
+ def visit_class_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#53
+ sig { override.params(node: ::Prism::DefNode).void }
+ def visit_def_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#37
+ sig { override.params(node: ::Prism::ModuleNode).void }
+ def visit_module_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#19
+ sig { override.params(node: ::Prism::ProgramNode).void }
+ def visit_program_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#45
+ sig { override.params(node: ::Prism::SingletonClassNode).void }
+ def visit_singleton_class_node(node); end
+
+ private
+
+ # @return [Boolean]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#273
+ sig do
+ params(
+ node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode),
+ constant_regex: ::Regexp
+ ).returns(T::Boolean)
+ end
+ def already_extends?(node, constant_regex); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#151
+ sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).void }
+ def apply_class_annotations(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#249
+ sig { params(annotations: T::Array[::Spoom::RBS::Annotation], sig: ::RBI::Sig).void }
+ def apply_member_annotations(annotations, sig); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#325
+ sig { params(comments: T::Array[::Prism::Comment]).void }
+ def apply_type_aliases(comments); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#289
+ sig { params(comments: T::Array[::Prism::Comment]).returns(T::Array[::Spoom::RBS::TypeAlias]) }
+ def collect_type_aliases(comments); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#115
+ sig { params(def_node: ::Prism::DefNode, comments: ::Spoom::RBS::Comments).void }
+ def rewrite_def(def_node, comments); end
+
+ # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#77
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_attr(node); end
+end
+
+# Translates Sorbet assertions to RBS comments.
+#
+# source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#8
+class Spoom::Sorbet::Translate::SorbetAssertionsToRBSComments < ::Spoom::Sorbet::Translate::Translator
+ # @return [SorbetAssertionsToRBSComments] a new instance of SorbetAssertionsToRBSComments
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#20
+ sig do
+ params(
+ ruby_contents: ::String,
+ file: ::String,
+ translate_t_let: T::Boolean,
+ translate_t_cast: T::Boolean,
+ translate_t_bind: T::Boolean,
+ translate_t_must: T::Boolean,
+ translate_t_unsafe: T::Boolean
+ ).void
+ end
+ def initialize(ruby_contents, file:, translate_t_let: T.unsafe(nil), translate_t_cast: T.unsafe(nil), translate_t_bind: T.unsafe(nil), translate_t_must: T.unsafe(nil), translate_t_unsafe: T.unsafe(nil)); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#49
+ sig { override.params(node: ::Prism::IfNode).void }
+ def visit_if_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#40
+ sig { override.params(node: ::Prism::StatementsNode).void }
+ def visit_statements_node(node); end
+
+ private
+
+ # @return [Boolean]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#176
+ sig { params(node: ::Prism::Node).returns(T::Boolean) }
+ def at_end_of_line?(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#118
+ sig { params(call: ::Prism::CallNode).returns(::String) }
+ def build_rbs_annotation(call); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#216
+ sig { params(assign: ::Prism::Node, value: ::Prism::Node).returns(::String) }
+ def dedent_value(assign, value); end
+
+ # Extract any trailing comment after the node
+ # Returns [comment_text, comment_end_offset] or [nil, nil] if no comment or RBS annotation
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#196
+ sig { params(node: ::Prism::Node).returns([T.nilable(::String), T.nilable(::Integer)]) }
+ def extract_trailing_comment(node); end
+
+ # Check if the node has an RBS annotation comment (#:) after it
+ #
+ # @return [Boolean]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#185
+ sig { params(node: ::Prism::Node).returns(T::Boolean) }
+ def has_rbs_annotation?(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#71
+ sig { params(node: ::Prism::Node).returns(T::Boolean) }
+ def maybe_translate_assertion(node); end
+
+ # Is this node a `T` or `::T` constant?
+ #
+ # @return [Boolean]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#143
+ sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
+ def t?(node); end
+
+ # Is this node a `T.let` or `T.cast`?
+ #
+ # @return [Boolean]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#156
+ sig { params(node: ::Prism::CallNode).returns(T::Boolean) }
+ def translatable_annotation?(node); end
+end
+
+# source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#9
+Spoom::Sorbet::Translate::SorbetAssertionsToRBSComments::LINE_BREAK = T.let(T.unsafe(nil), Integer)
+
+# Converts all `sig` nodes to RBS comments in the given Ruby code.
+# It also handles type members and class annotations.
+#
+# source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#9
+class Spoom::Sorbet::Translate::SorbetSigsToRBSComments < ::Spoom::Sorbet::Translate::Translator
+ # @return [SorbetSigsToRBSComments] a new instance of SorbetSigsToRBSComments
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#19
+ sig do
+ params(
+ ruby_contents: ::String,
+ file: ::String,
+ positional_names: T::Boolean,
+ max_line_length: T.nilable(::Integer),
+ translate_generics: T::Boolean,
+ translate_helpers: T::Boolean,
+ translate_abstract_methods: T::Boolean
+ ).void
+ end
+ def initialize(ruby_contents, file:, positional_names:, max_line_length: T.unsafe(nil), translate_generics: T.unsafe(nil), translate_helpers: T.unsafe(nil), translate_abstract_methods: T.unsafe(nil)); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#100
+ sig { override.params(node: ::Prism::CallNode).void }
+ def visit_call_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#46
+ sig { override.params(node: ::Prism::ClassNode).void }
+ def visit_class_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#119
+ sig { override.params(node: ::Prism::ConstantWriteNode).void }
+ def visit_constant_write_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#64
+ sig { override.params(node: ::Prism::DefNode).void }
+ def visit_def_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#52
+ sig { override.params(node: ::Prism::ModuleNode).void }
+ def visit_module_node(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#58
+ sig { override.params(node: ::Prism::SingletonClassNode).void }
+ def visit_singleton_class_node(node); end
+
+ private
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#233
+ sig do
+ params(
+ parent: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode),
+ node: ::Prism::CallNode
+ ).void
+ end
+ def apply_class_annotation(parent, node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#277
+ sig { params(sigs: T::Array[[::Prism::CallNode, ::RBI::Sig]]).void }
+ def apply_member_annotations(sigs); end
+
+ # @raise [Error]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#313
+ sig { params(node: ::Prism::ConstantWriteNode).returns(::String) }
+ def build_type_member_string(node); end
+
+ # Collects the last signatures visited and clears the current list
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#384
+ sig { returns(T::Array[[::Prism::CallNode, ::RBI::Sig]]) }
+ def collect_last_sigs; end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#371
+ sig { void }
+ def delete_extend_t_generics; end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#359
+ sig { void }
+ def delete_extend_t_helpers; end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#391
+ sig { params(indent: ::Integer, block: T.proc.params(arg0: ::RBI::RBSPrinter).void).returns(::String) }
+ def rbs_print(indent, &block); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#191
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_attr(node); end
+
+ # @raise [Error]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#215
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_extend(node); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#138
+ sig do
+ params(
+ node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode),
+ block: T.proc.void
+ ).void
+ end
+ def visit_scope(node, &block); end
+
+ # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#179
+ sig { params(node: ::Prism::CallNode).void }
+ def visit_sig(node); end
+end
+
+# Deletes all `sig` nodes from the given Ruby code.
+# It doesn't handle type members and class annotations.
#
-# source://spoom//lib/spoom/sorbet/sigils.rb#26
-Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp)
+# source://spoom//lib/spoom/sorbet/translate/strip_sorbet_sigs.rb#9
+class Spoom::Sorbet::Translate::StripSorbetSigs < ::Spoom::Sorbet::Translate::Translator
+ # source://spoom//lib/spoom/sorbet/translate/strip_sorbet_sigs.rb#12
+ sig { override.params(node: ::Prism::CallNode).void }
+ def visit_call_node(node); end
+end
-# source://spoom//lib/spoom/sorbet/sigils.rb#11
-Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String)
+# @abstract
+#
+# source://spoom//lib/spoom/sorbet/translate/translator.rb#8
+class Spoom::Sorbet::Translate::Translator < ::Spoom::Visitor
+ abstract!
-# source://spoom//lib/spoom/sorbet/sigils.rb#10
-Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String)
+ # @return [Translator] a new instance of Translator
+ #
+ # source://spoom//lib/spoom/sorbet/translate/translator.rb#10
+ sig { params(ruby_contents: ::String, file: ::String).void }
+ def initialize(ruby_contents, file:); end
-# source://spoom//lib/spoom/sorbet/sigils.rb#15
-Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String)
+ # source://spoom//lib/spoom/sorbet/translate/translator.rb#30
+ sig { returns(::String) }
+ def rewrite; end
-# source://spoom//lib/spoom/sorbet/sigils.rb#13
-Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String)
+ private
-# source://spoom//lib/spoom/sorbet/sigils.rb#14
-Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String)
+ # source://spoom//lib/spoom/sorbet/translate/translator.rb#55
+ sig { params(offset: ::Integer).returns(::Integer) }
+ def adjust_to_line_end(offset); end
-# source://spoom//lib/spoom/sorbet/sigils.rb#12
-Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String)
+ # source://spoom//lib/spoom/sorbet/translate/translator.rb#49
+ sig { params(offset: ::Integer).returns(::Integer) }
+ def adjust_to_line_start(offset); end
-# source://spoom//lib/spoom/sorbet/sigils.rb#17
-Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array)
+ # Consume the next blank line if any
+ #
+ # source://spoom//lib/spoom/sorbet/translate/translator.rb#62
+ sig { params(offset: ::Integer).returns(::Integer) }
+ def adjust_to_new_line(offset); end
-# source://spoom//lib/spoom/sorbet/sigs.rb#8
-class Spoom::Sorbet::Sigs
- class << self
- # : (String ruby_contents, positional_names: bool) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#24
- sig { params(ruby_contents: ::String, positional_names: T::Boolean).returns(::String) }
- def rbi_to_rbs(ruby_contents, positional_names: T.unsafe(nil)); end
+ # @return [Boolean]
+ #
+ # source://spoom//lib/spoom/sorbet/translate/translator.rb#39
+ sig { params(node: ::Prism::CallNode).returns(T::Boolean) }
+ def sorbet_sig?(node); end
+end
- # : (String ruby_contents) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#46
- sig { params(ruby_contents: ::String).returns(::String) }
- def rbs_to_rbi(ruby_contents); end
+# This module provides a simple API to rewrite source code.
+#
+# Using a `Rewriter`, you can build a list of changes to apply to a source file
+# and apply them all at once. Edits are applied from bottom to top, so that the
+# line numbers are not remapped after each edit.
+#
+# The source code is represented as an array of bytes, so that it can be
+# manipulated in place. The client is responsible for `string <-> bytes`
+# conversions and encoding handling.
+#
+# ```ruby
+# bytes = "def foo; end".bytes
+#
+# rewriter = Spoom::Source::Rewriter.new
+# rewriter << Spoom::Source::Replace.new(4, 6, "baz")
+# rewriter << Spoom::Source::Insert.new(0, "def bar; end\n")
+# rewriter.rewrite!(bytes)
+#
+# puts bytes.pack("C*") # => "def bar; end\ndef baz; end"
+# ```
+#
+# source://spoom//lib/spoom/source/rewriter.rb#25
+module Spoom::Source; end
- # : (String ruby_contents) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#12
- sig { params(ruby_contents: ::String).returns(::String) }
- def strip(ruby_contents); end
+# source://spoom//lib/spoom/source/rewriter.rb#114
+class Spoom::Source::Delete < ::Spoom::Source::Edit
+ # @return [Delete] a new instance of Delete
+ #
+ # source://spoom//lib/spoom/source/rewriter.rb#119
+ sig { params(from: ::Integer, to: ::Integer).void }
+ def initialize(from, to); end
- private
+ # @raise [PositionError]
+ #
+ # source://spoom//lib/spoom/source/rewriter.rb#128
+ sig { override.params(bytes: T::Array[T.untyped]).void }
+ def apply(bytes); end
- # : (String ruby_contents) -> Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]]
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#80
- sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) }
- def collect_rbs_comments(ruby_contents); end
+ # source://spoom//lib/spoom/source/rewriter.rb#116
+ sig { returns(::Integer) }
+ def from; end
- # : (String ruby_contents) -> Array[[RBI::Sig, (RBI::Method | RBI::Attr)]]
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#72
- sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) }
- def collect_sorbet_sigs(ruby_contents); end
- end
-end
+ # source://spoom//lib/spoom/source/rewriter.rb#137
+ sig { override.returns([::Integer, ::Integer]) }
+ def range; end
-# source://spoom//lib/spoom/sorbet/sigs.rb#9
-class Spoom::Sorbet::Sigs::Error < ::Spoom::Error; end
+ # source://spoom//lib/spoom/source/rewriter.rb#116
+ def to; end
-# source://spoom//lib/spoom/sorbet/sigs.rb#123
-class Spoom::Sorbet::Sigs::RBIToRBSTranslator
- class << self
- # : (RBI::Sig sig, (RBI::Method | RBI::Attr) node, positional_names: bool) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#126
- sig do
- params(
- sig: ::RBI::Sig,
- node: T.any(::RBI::Attr, ::RBI::Method),
- positional_names: T::Boolean
- ).returns(::String)
- end
- def translate(sig, node, positional_names: T.unsafe(nil)); end
+ # source://spoom//lib/spoom/source/rewriter.rb#143
+ sig { override.returns(::String) }
+ def to_s; end
+end
- private
+# @abstract
+#
+# source://spoom//lib/spoom/source/rewriter.rb#29
+class Spoom::Source::Edit
+ abstract!
- # : (RBI::Sig sig, RBI::Attr node, positional_names: bool) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#178
- sig { params(sig: ::RBI::Sig, node: ::RBI::Attr, positional_names: T::Boolean).returns(::String) }
- def translate_attr_sig(sig, node, positional_names: T.unsafe(nil)); end
+ # @abstract
+ # @raise [NotImplementedError]
+ #
+ # source://spoom//lib/spoom/source/rewriter.rb#32
+ sig { abstract.params(bytes: T::Array[::Integer]).void }
+ def apply(bytes); end
- # : (RBI::Sig sig, RBI::Method node, positional_names: bool) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#138
- sig { params(sig: ::RBI::Sig, node: ::RBI::Method, positional_names: T::Boolean).returns(::String) }
- def translate_method_sig(sig, node, positional_names: T.unsafe(nil)); end
- end
+ # @abstract
+ # @raise [NotImplementedError]
+ #
+ # source://spoom//lib/spoom/source/rewriter.rb#36
+ sig { abstract.returns([::Integer, ::Integer]) }
+ def range; end
end
-# source://spoom//lib/spoom/sorbet/sigs.rb#187
-class Spoom::Sorbet::Sigs::RBSToRBITranslator
- class << self
- # : (RBI::RBSComment comment, (RBI::Method | RBI::Attr) node) -> String?
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#192
- sig { params(comment: ::RBI::RBSComment, node: T.any(::RBI::Attr, ::RBI::Method)).returns(T.nilable(::String)) }
- def translate(comment, node); end
+# source://spoom//lib/spoom/source/rewriter.rb#39
+class Spoom::Source::Insert < ::Spoom::Source::Edit
+ # @return [Insert] a new instance of Insert
+ #
+ # source://spoom//lib/spoom/source/rewriter.rb#47
+ sig { params(position: ::Integer, text: ::String).void }
+ def initialize(position, text); end
- private
+ # @raise [PositionError]
+ #
+ # source://spoom//lib/spoom/source/rewriter.rb#56
+ sig { override.params(bytes: T::Array[::Integer]).void }
+ def apply(bytes); end
- # : (RBI::RBSComment comment, RBI::Attr node) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#235
- sig { params(comment: ::RBI::RBSComment, node: ::RBI::Attr).returns(::String) }
- def translate_attr_sig(comment, node); end
+ # source://spoom//lib/spoom/source/rewriter.rb#41
+ sig { returns(::Integer) }
+ def position; end
- # : (RBI::RBSComment rbs_comment, RBI::Method node) -> String
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#206
- sig { params(rbs_comment: ::RBI::RBSComment, node: ::RBI::Method).returns(::String) }
- def translate_method_sig(rbs_comment, node); end
- end
+ # source://spoom//lib/spoom/source/rewriter.rb#65
+ sig { override.returns([::Integer, ::Integer]) }
+ def range; end
+
+ # source://spoom//lib/spoom/source/rewriter.rb#44
+ sig { returns(::String) }
+ def text; end
+
+ # source://spoom//lib/spoom/source/rewriter.rb#71
+ sig { override.returns(::String) }
+ def to_s; end
end
-# From https://github.com/Shopify/ruby-lsp/blob/9154bfc6ef/lib/ruby_lsp/document.rb#L127
-#
-# source://spoom//lib/spoom/sorbet/sigs.rb#255
-class Spoom::Sorbet::Sigs::Scanner
- # : (String source) -> void
- #
- # @return [Scanner] a new instance of Scanner
+# source://spoom//lib/spoom/source/rewriter.rb#26
+class Spoom::Source::PositionError < ::Spoom::Error; end
+
+# source://spoom//lib/spoom/source/rewriter.rb#76
+class Spoom::Source::Replace < ::Spoom::Source::Edit
+ # @return [Replace] a new instance of Replace
#
- # source://spoom//lib/spoom/sorbet/sigs.rb#259
- sig { params(source: ::String).void }
- def initialize(source); end
+ # source://spoom//lib/spoom/source/rewriter.rb#84
+ sig { params(from: ::Integer, to: ::Integer, text: ::String).void }
+ def initialize(from, to, text); end
- # Finds the character index inside the source string for a given line and column
- # : (Integer line, Integer character) -> Integer
+ # @raise [PositionError]
#
- # source://spoom//lib/spoom/sorbet/sigs.rb#267
- sig { params(line: ::Integer, character: ::Integer).returns(::Integer) }
- def find_char_position(line, character); end
-end
+ # source://spoom//lib/spoom/source/rewriter.rb#94
+ sig { override.params(bytes: T::Array[::Integer]).void }
+ def apply(bytes); end
-# : Integer
-#
-# source://spoom//lib/spoom/sorbet/sigs.rb#256
-Spoom::Sorbet::Sigs::Scanner::LINE_BREAK = T.let(T.unsafe(nil), Integer)
+ # source://spoom//lib/spoom/source/rewriter.rb#78
+ sig { returns(::Integer) }
+ def from; end
-# source://spoom//lib/spoom/sorbet/sigs.rb#88
-class Spoom::Sorbet::Sigs::SigsLocator < ::RBI::Visitor
- # : -> void
- #
- # @return [SigsLocator] a new instance of SigsLocator
+ # source://spoom//lib/spoom/source/rewriter.rb#103
+ sig { override.returns([::Integer, ::Integer]) }
+ def range; end
+
+ # source://spoom//lib/spoom/source/rewriter.rb#81
+ sig { returns(::String) }
+ def text; end
+
+ # source://spoom//lib/spoom/source/rewriter.rb#78
+ def to; end
+
+ # source://spoom//lib/spoom/source/rewriter.rb#109
+ sig { override.returns(::String) }
+ def to_s; end
+end
+
+# source://spoom//lib/spoom/source/rewriter.rb#148
+class Spoom::Source::Rewriter
+ # @return [Rewriter] a new instance of Rewriter
#
- # source://spoom//lib/spoom/sorbet/sigs.rb#96
+ # source://spoom//lib/spoom/source/rewriter.rb#150
sig { void }
def initialize; end
- # : Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]]
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#93
- sig { returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) }
- def rbs_comments; end
-
- # : Array[[RBI::Sig, (RBI::Method | RBI::Attr)]]
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#90
- sig { returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) }
- def sigs; end
+ # source://spoom//lib/spoom/source/rewriter.rb#155
+ sig { params(other: ::Spoom::Source::Edit).void }
+ def <<(other); end
- # : (RBI::Node? node) -> void
- #
- # source://spoom//lib/spoom/sorbet/sigs.rb#104
- sig { override.params(node: T.nilable(::RBI::Node)).void }
- def visit(node); end
+ # source://spoom//lib/spoom/source/rewriter.rb#160
+ sig { params(bytes: T::Array[::Integer]).void }
+ def rewrite!(bytes); end
end
# source://spoom//lib/spoom/timeline.rb#5
class Spoom::Timeline
- # : (Context context, Time from, Time to) -> void
- #
# @return [Timeline] a new instance of Timeline
#
# source://spoom//lib/spoom/timeline.rb#7
@@ -6063,21 +5257,18 @@ class Spoom::Timeline
def initialize(context, from, to); end
# Return one commit for each date in `dates`
- # : (Array[Time] dates) -> Array[Git::Commit]
#
# source://spoom//lib/spoom/timeline.rb#34
sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) }
def commits_for_dates(dates); end
# Return all months between `from` and `to`
- # : -> Array[Time]
#
# source://spoom//lib/spoom/timeline.rb#21
sig { returns(T::Array[::Time]) }
def months; end
# Return one commit for each month between `from` and `to`
- # : -> Array[Git::Commit]
#
# source://spoom//lib/spoom/timeline.rb#15
sig { returns(T::Array[::Spoom::Git::Commit]) }
@@ -6089,896 +5280,598 @@ Spoom::VERSION = T.let(T.unsafe(nil), String)
# source://spoom//lib/spoom/visitor.rb#7
class Spoom::Visitor < ::Prism::Visitor
- # : (Prism::AliasGlobalVariableNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#16
sig { override.params(node: ::Prism::AliasGlobalVariableNode).void }
def visit_alias_global_variable_node(node); end
- # : (Prism::AliasMethodNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#22
sig { override.params(node: ::Prism::AliasMethodNode).void }
def visit_alias_method_node(node); end
- # : (Prism::AlternationPatternNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#28
sig { override.params(node: ::Prism::AlternationPatternNode).void }
def visit_alternation_pattern_node(node); end
- # : (Prism::AndNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#34
sig { override.params(node: ::Prism::AndNode).void }
def visit_and_node(node); end
- # : (Prism::ArgumentsNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#40
sig { override.params(node: ::Prism::ArgumentsNode).void }
def visit_arguments_node(node); end
- # : (Prism::ArrayNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#46
sig { override.params(node: ::Prism::ArrayNode).void }
def visit_array_node(node); end
- # : (Prism::ArrayPatternNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#52
sig { override.params(node: ::Prism::ArrayPatternNode).void }
def visit_array_pattern_node(node); end
- # : (Prism::AssocNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#58
sig { override.params(node: ::Prism::AssocNode).void }
def visit_assoc_node(node); end
- # : (Prism::AssocSplatNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#64
sig { override.params(node: ::Prism::AssocSplatNode).void }
def visit_assoc_splat_node(node); end
- # : (Prism::BackReferenceReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#70
sig { override.params(node: ::Prism::BackReferenceReadNode).void }
def visit_back_reference_read_node(node); end
- # : (Prism::BeginNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#76
sig { override.params(node: ::Prism::BeginNode).void }
def visit_begin_node(node); end
- # : (Prism::BlockArgumentNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#82
sig { override.params(node: ::Prism::BlockArgumentNode).void }
def visit_block_argument_node(node); end
- # : (Prism::BlockLocalVariableNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#88
sig { override.params(node: ::Prism::BlockLocalVariableNode).void }
def visit_block_local_variable_node(node); end
- # : (Prism::BlockNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#94
sig { override.params(node: ::Prism::BlockNode).void }
def visit_block_node(node); end
- # : (Prism::BlockParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#100
sig { override.params(node: ::Prism::BlockParameterNode).void }
def visit_block_parameter_node(node); end
- # : (Prism::BlockParametersNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#106
sig { override.params(node: ::Prism::BlockParametersNode).void }
def visit_block_parameters_node(node); end
- # : (Prism::BreakNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#112
sig { override.params(node: ::Prism::BreakNode).void }
def visit_break_node(node); end
- # : (Prism::CallAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#118
sig { override.params(node: ::Prism::CallAndWriteNode).void }
def visit_call_and_write_node(node); end
- # : (Prism::CallNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#124
sig { override.params(node: ::Prism::CallNode).void }
def visit_call_node(node); end
- # : (Prism::CallOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#130
sig { override.params(node: ::Prism::CallOperatorWriteNode).void }
def visit_call_operator_write_node(node); end
- # : (Prism::CallOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#136
sig { override.params(node: ::Prism::CallOrWriteNode).void }
def visit_call_or_write_node(node); end
- # : (Prism::CallTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#142
sig { override.params(node: ::Prism::CallTargetNode).void }
def visit_call_target_node(node); end
- # : (Prism::CapturePatternNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#148
sig { override.params(node: ::Prism::CapturePatternNode).void }
def visit_capture_pattern_node(node); end
- # : (Prism::CaseMatchNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#154
sig { override.params(node: ::Prism::CaseMatchNode).void }
def visit_case_match_node(node); end
- # : (Prism::CaseNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#160
sig { override.params(node: ::Prism::CaseNode).void }
def visit_case_node(node); end
- # : (Prism::Node node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#10
sig { override.params(node: ::Prism::Node).void }
def visit_child_nodes(node); end
- # : (Prism::ClassNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#166
sig { override.params(node: ::Prism::ClassNode).void }
def visit_class_node(node); end
- # : (Prism::ClassVariableAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#172
sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void }
def visit_class_variable_and_write_node(node); end
- # : (Prism::ClassVariableOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#178
sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void }
def visit_class_variable_operator_write_node(node); end
- # : (Prism::ClassVariableOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#184
sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void }
def visit_class_variable_or_write_node(node); end
- # : (Prism::ClassVariableReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#190
sig { override.params(node: ::Prism::ClassVariableReadNode).void }
def visit_class_variable_read_node(node); end
- # : (Prism::ClassVariableTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#196
sig { override.params(node: ::Prism::ClassVariableTargetNode).void }
def visit_class_variable_target_node(node); end
- # : (Prism::ClassVariableWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#202
sig { override.params(node: ::Prism::ClassVariableWriteNode).void }
def visit_class_variable_write_node(node); end
- # : (Prism::ConstantAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#208
sig { override.params(node: ::Prism::ConstantAndWriteNode).void }
def visit_constant_and_write_node(node); end
- # : (Prism::ConstantOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#214
sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void }
def visit_constant_operator_write_node(node); end
- # : (Prism::ConstantOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#220
sig { override.params(node: ::Prism::ConstantOrWriteNode).void }
def visit_constant_or_write_node(node); end
- # : (Prism::ConstantPathAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#226
sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void }
def visit_constant_path_and_write_node(node); end
- # : (Prism::ConstantPathNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#232
sig { override.params(node: ::Prism::ConstantPathNode).void }
def visit_constant_path_node(node); end
- # : (Prism::ConstantPathOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#238
sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void }
def visit_constant_path_operator_write_node(node); end
- # : (Prism::ConstantPathOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#244
sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void }
def visit_constant_path_or_write_node(node); end
- # : (Prism::ConstantPathTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#250
sig { override.params(node: ::Prism::ConstantPathTargetNode).void }
def visit_constant_path_target_node(node); end
- # : (Prism::ConstantPathWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#256
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
def visit_constant_path_write_node(node); end
- # : (Prism::ConstantReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#262
sig { override.params(node: ::Prism::ConstantReadNode).void }
def visit_constant_read_node(node); end
- # : (Prism::ConstantTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#268
sig { override.params(node: ::Prism::ConstantTargetNode).void }
def visit_constant_target_node(node); end
- # : (Prism::ConstantWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#274
sig { override.params(node: ::Prism::ConstantWriteNode).void }
def visit_constant_write_node(node); end
- # : (Prism::DefNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#280
sig { override.params(node: ::Prism::DefNode).void }
def visit_def_node(node); end
- # : (Prism::DefinedNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#286
sig { override.params(node: ::Prism::DefinedNode).void }
def visit_defined_node(node); end
- # : (Prism::ElseNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#292
sig { override.params(node: ::Prism::ElseNode).void }
def visit_else_node(node); end
- # : (Prism::EmbeddedStatementsNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#298
sig { override.params(node: ::Prism::EmbeddedStatementsNode).void }
def visit_embedded_statements_node(node); end
- # : (Prism::EmbeddedVariableNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#304
sig { override.params(node: ::Prism::EmbeddedVariableNode).void }
def visit_embedded_variable_node(node); end
- # : (Prism::EnsureNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#310
sig { override.params(node: ::Prism::EnsureNode).void }
def visit_ensure_node(node); end
- # : (Prism::FalseNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#316
sig { override.params(node: ::Prism::FalseNode).void }
def visit_false_node(node); end
- # : (Prism::FindPatternNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#322
sig { override.params(node: ::Prism::FindPatternNode).void }
def visit_find_pattern_node(node); end
- # : (Prism::FlipFlopNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#328
sig { override.params(node: ::Prism::FlipFlopNode).void }
def visit_flip_flop_node(node); end
- # : (Prism::FloatNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#334
sig { override.params(node: ::Prism::FloatNode).void }
def visit_float_node(node); end
- # : (Prism::ForNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#340
sig { override.params(node: ::Prism::ForNode).void }
def visit_for_node(node); end
- # : (Prism::ForwardingArgumentsNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#346
sig { override.params(node: ::Prism::ForwardingArgumentsNode).void }
def visit_forwarding_arguments_node(node); end
- # : (Prism::ForwardingParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#352
sig { override.params(node: ::Prism::ForwardingParameterNode).void }
def visit_forwarding_parameter_node(node); end
- # : (Prism::ForwardingSuperNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#358
sig { override.params(node: ::Prism::ForwardingSuperNode).void }
def visit_forwarding_super_node(node); end
- # : (Prism::GlobalVariableAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#364
sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void }
def visit_global_variable_and_write_node(node); end
- # : (Prism::GlobalVariableOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#370
sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void }
def visit_global_variable_operator_write_node(node); end
- # : (Prism::GlobalVariableOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#376
sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void }
def visit_global_variable_or_write_node(node); end
- # : (Prism::GlobalVariableReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#382
sig { override.params(node: ::Prism::GlobalVariableReadNode).void }
def visit_global_variable_read_node(node); end
- # : (Prism::GlobalVariableTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#388
sig { override.params(node: ::Prism::GlobalVariableTargetNode).void }
def visit_global_variable_target_node(node); end
- # : (Prism::GlobalVariableWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#394
sig { override.params(node: ::Prism::GlobalVariableWriteNode).void }
def visit_global_variable_write_node(node); end
- # : (Prism::HashNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#400
sig { override.params(node: ::Prism::HashNode).void }
def visit_hash_node(node); end
- # : (Prism::HashPatternNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#406
sig { override.params(node: ::Prism::HashPatternNode).void }
def visit_hash_pattern_node(node); end
- # : (Prism::IfNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#412
sig { override.params(node: ::Prism::IfNode).void }
def visit_if_node(node); end
- # : (Prism::ImaginaryNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#418
sig { override.params(node: ::Prism::ImaginaryNode).void }
def visit_imaginary_node(node); end
- # : (Prism::ImplicitNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#424
sig { override.params(node: ::Prism::ImplicitNode).void }
def visit_implicit_node(node); end
- # : (Prism::ImplicitRestNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#430
sig { override.params(node: ::Prism::ImplicitRestNode).void }
def visit_implicit_rest_node(node); end
- # : (Prism::InNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#436
sig { override.params(node: ::Prism::InNode).void }
def visit_in_node(node); end
- # : (Prism::IndexAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#442
sig { override.params(node: ::Prism::IndexAndWriteNode).void }
def visit_index_and_write_node(node); end
- # : (Prism::IndexOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#448
sig { override.params(node: ::Prism::IndexOperatorWriteNode).void }
def visit_index_operator_write_node(node); end
- # : (Prism::IndexOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#454
sig { override.params(node: ::Prism::IndexOrWriteNode).void }
def visit_index_or_write_node(node); end
- # : (Prism::IndexTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#460
sig { override.params(node: ::Prism::IndexTargetNode).void }
def visit_index_target_node(node); end
- # : (Prism::InstanceVariableAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#466
sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void }
def visit_instance_variable_and_write_node(node); end
- # : (Prism::InstanceVariableOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#472
sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void }
def visit_instance_variable_operator_write_node(node); end
- # : (Prism::InstanceVariableOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#478
sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void }
def visit_instance_variable_or_write_node(node); end
- # : (Prism::InstanceVariableReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#484
sig { override.params(node: ::Prism::InstanceVariableReadNode).void }
def visit_instance_variable_read_node(node); end
- # : (Prism::InstanceVariableTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#490
sig { override.params(node: ::Prism::InstanceVariableTargetNode).void }
def visit_instance_variable_target_node(node); end
- # : (Prism::InstanceVariableWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#496
sig { override.params(node: ::Prism::InstanceVariableWriteNode).void }
def visit_instance_variable_write_node(node); end
- # : (Prism::IntegerNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#502
sig { override.params(node: ::Prism::IntegerNode).void }
def visit_integer_node(node); end
- # : (Prism::InterpolatedMatchLastLineNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#508
sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void }
def visit_interpolated_match_last_line_node(node); end
- # : (Prism::InterpolatedRegularExpressionNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#514
sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void }
def visit_interpolated_regular_expression_node(node); end
- # : (Prism::InterpolatedStringNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#520
sig { override.params(node: ::Prism::InterpolatedStringNode).void }
def visit_interpolated_string_node(node); end
- # : (Prism::InterpolatedSymbolNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#526
sig { override.params(node: ::Prism::InterpolatedSymbolNode).void }
def visit_interpolated_symbol_node(node); end
- # : (Prism::InterpolatedXStringNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#532
sig { override.params(node: ::Prism::InterpolatedXStringNode).void }
def visit_interpolated_x_string_node(node); end
- # : (Prism::KeywordHashNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#538
sig { override.params(node: ::Prism::KeywordHashNode).void }
def visit_keyword_hash_node(node); end
- # : (Prism::KeywordRestParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#544
sig { override.params(node: ::Prism::KeywordRestParameterNode).void }
def visit_keyword_rest_parameter_node(node); end
- # : (Prism::LambdaNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#550
sig { override.params(node: ::Prism::LambdaNode).void }
def visit_lambda_node(node); end
- # : (Prism::LocalVariableAndWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#556
sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void }
def visit_local_variable_and_write_node(node); end
- # : (Prism::LocalVariableOperatorWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#562
sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void }
def visit_local_variable_operator_write_node(node); end
- # : (Prism::LocalVariableOrWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#568
sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void }
def visit_local_variable_or_write_node(node); end
- # : (Prism::LocalVariableReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#574
sig { override.params(node: ::Prism::LocalVariableReadNode).void }
def visit_local_variable_read_node(node); end
- # : (Prism::LocalVariableTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#580
sig { override.params(node: ::Prism::LocalVariableTargetNode).void }
def visit_local_variable_target_node(node); end
- # : (Prism::LocalVariableWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#586
sig { override.params(node: ::Prism::LocalVariableWriteNode).void }
def visit_local_variable_write_node(node); end
- # : (Prism::MatchLastLineNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#592
sig { override.params(node: ::Prism::MatchLastLineNode).void }
def visit_match_last_line_node(node); end
- # : (Prism::MatchPredicateNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#598
sig { override.params(node: ::Prism::MatchPredicateNode).void }
def visit_match_predicate_node(node); end
- # : (Prism::MatchRequiredNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#604
sig { override.params(node: ::Prism::MatchRequiredNode).void }
def visit_match_required_node(node); end
- # : (Prism::MatchWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#610
sig { override.params(node: ::Prism::MatchWriteNode).void }
def visit_match_write_node(node); end
- # : (Prism::MissingNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#616
sig { override.params(node: ::Prism::MissingNode).void }
def visit_missing_node(node); end
- # : (Prism::ModuleNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#622
sig { override.params(node: ::Prism::ModuleNode).void }
def visit_module_node(node); end
- # : (Prism::MultiTargetNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#628
sig { override.params(node: ::Prism::MultiTargetNode).void }
def visit_multi_target_node(node); end
- # : (Prism::MultiWriteNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#634
sig { override.params(node: ::Prism::MultiWriteNode).void }
def visit_multi_write_node(node); end
- # : (Prism::NextNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#640
sig { override.params(node: ::Prism::NextNode).void }
def visit_next_node(node); end
- # : (Prism::NilNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#646
sig { override.params(node: ::Prism::NilNode).void }
def visit_nil_node(node); end
- # : (Prism::NoKeywordsParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#652
sig { override.params(node: ::Prism::NoKeywordsParameterNode).void }
def visit_no_keywords_parameter_node(node); end
- # : (Prism::NumberedParametersNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#658
sig { override.params(node: ::Prism::NumberedParametersNode).void }
def visit_numbered_parameters_node(node); end
- # : (Prism::NumberedReferenceReadNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#664
sig { override.params(node: ::Prism::NumberedReferenceReadNode).void }
def visit_numbered_reference_read_node(node); end
- # : (Prism::OptionalKeywordParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#670
sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void }
def visit_optional_keyword_parameter_node(node); end
- # : (Prism::OptionalParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#676
sig { override.params(node: ::Prism::OptionalParameterNode).void }
def visit_optional_parameter_node(node); end
- # : (Prism::OrNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#682
sig { override.params(node: ::Prism::OrNode).void }
def visit_or_node(node); end
- # : (Prism::ParametersNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#688
sig { override.params(node: ::Prism::ParametersNode).void }
def visit_parameters_node(node); end
- # : (Prism::ParenthesesNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#694
sig { override.params(node: ::Prism::ParenthesesNode).void }
def visit_parentheses_node(node); end
- # : (Prism::PinnedExpressionNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#700
sig { override.params(node: ::Prism::PinnedExpressionNode).void }
def visit_pinned_expression_node(node); end
- # : (Prism::PinnedVariableNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#706
sig { override.params(node: ::Prism::PinnedVariableNode).void }
def visit_pinned_variable_node(node); end
- # : (Prism::PostExecutionNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#712
sig { override.params(node: ::Prism::PostExecutionNode).void }
def visit_post_execution_node(node); end
- # : (Prism::PreExecutionNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#718
sig { override.params(node: ::Prism::PreExecutionNode).void }
def visit_pre_execution_node(node); end
- # : (Prism::ProgramNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#724
sig { override.params(node: ::Prism::ProgramNode).void }
def visit_program_node(node); end
- # : (Prism::RangeNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#730
sig { override.params(node: ::Prism::RangeNode).void }
def visit_range_node(node); end
- # : (Prism::RationalNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#736
sig { override.params(node: ::Prism::RationalNode).void }
def visit_rational_node(node); end
- # : (Prism::RedoNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#742
sig { override.params(node: ::Prism::RedoNode).void }
def visit_redo_node(node); end
- # : (Prism::RegularExpressionNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#748
sig { override.params(node: ::Prism::RegularExpressionNode).void }
def visit_regular_expression_node(node); end
- # : (Prism::RequiredKeywordParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#754
sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void }
def visit_required_keyword_parameter_node(node); end
- # : (Prism::RequiredParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#760
sig { override.params(node: ::Prism::RequiredParameterNode).void }
def visit_required_parameter_node(node); end
- # : (Prism::RescueModifierNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#766
sig { override.params(node: ::Prism::RescueModifierNode).void }
def visit_rescue_modifier_node(node); end
- # : (Prism::RescueNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#772
sig { override.params(node: ::Prism::RescueNode).void }
def visit_rescue_node(node); end
- # : (Prism::RestParameterNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#778
sig { override.params(node: ::Prism::RestParameterNode).void }
def visit_rest_parameter_node(node); end
- # : (Prism::RetryNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#784
sig { override.params(node: ::Prism::RetryNode).void }
def visit_retry_node(node); end
- # : (Prism::ReturnNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#790
sig { override.params(node: ::Prism::ReturnNode).void }
def visit_return_node(node); end
- # : (Prism::SelfNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#796
sig { override.params(node: ::Prism::SelfNode).void }
def visit_self_node(node); end
- # : (Prism::SingletonClassNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#802
sig { override.params(node: ::Prism::SingletonClassNode).void }
def visit_singleton_class_node(node); end
- # : (Prism::SourceEncodingNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#808
sig { override.params(node: ::Prism::SourceEncodingNode).void }
def visit_source_encoding_node(node); end
- # : (Prism::SourceFileNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#814
sig { override.params(node: ::Prism::SourceFileNode).void }
def visit_source_file_node(node); end
- # : (Prism::SourceLineNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#820
sig { override.params(node: ::Prism::SourceLineNode).void }
def visit_source_line_node(node); end
- # : (Prism::SplatNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#826
sig { override.params(node: ::Prism::SplatNode).void }
def visit_splat_node(node); end
- # : (Prism::StatementsNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#832
sig { override.params(node: ::Prism::StatementsNode).void }
def visit_statements_node(node); end
- # : (Prism::StringNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#838
sig { override.params(node: ::Prism::StringNode).void }
def visit_string_node(node); end
- # : (Prism::SuperNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#844
sig { override.params(node: ::Prism::SuperNode).void }
def visit_super_node(node); end
- # : (Prism::SymbolNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#850
sig { override.params(node: ::Prism::SymbolNode).void }
def visit_symbol_node(node); end
- # : (Prism::TrueNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#856
sig { override.params(node: ::Prism::TrueNode).void }
def visit_true_node(node); end
- # : (Prism::UndefNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#862
sig { override.params(node: ::Prism::UndefNode).void }
def visit_undef_node(node); end
- # : (Prism::UnlessNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#868
sig { override.params(node: ::Prism::UnlessNode).void }
def visit_unless_node(node); end
- # : (Prism::UntilNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#874
sig { override.params(node: ::Prism::UntilNode).void }
def visit_until_node(node); end
- # : (Prism::WhenNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#880
sig { override.params(node: ::Prism::WhenNode).void }
def visit_when_node(node); end
- # : (Prism::WhileNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#886
sig { override.params(node: ::Prism::WhileNode).void }
def visit_while_node(node); end
- # : (Prism::XStringNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#892
sig { override.params(node: ::Prism::XStringNode).void }
def visit_x_string_node(node); end
- # : (Prism::YieldNode node) -> void
- #
# source://spoom//lib/spoom/visitor.rb#898
sig { override.params(node: ::Prism::YieldNode).void }
def visit_yield_node(node); end
diff --git a/sorbet/rbi/gems/sqlite3@2.9.0.rbi b/sorbet/rbi/gems/sqlite3@2.9.0.rbi
index b730bae7..1131d67b 100644
--- a/sorbet/rbi/gems/sqlite3@2.9.0.rbi
+++ b/sorbet/rbi/gems/sqlite3@2.9.0.rbi
@@ -13,9 +13,16 @@ end
# source://sqlite3//lib/sqlite3/constants.rb#1
module SQLite3
class << self
+ # source://sqlite3//lib/sqlite3.rb#4
def libversion; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def sqlcipher?; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def status(*_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def threadsafe; end
# Was sqlite3 compiled with thread safety on?
@@ -34,11 +41,19 @@ class SQLite3::AbortException < ::SQLite3::Exception; end
class SQLite3::AuthorizationException < ::SQLite3::Exception; end
class SQLite3::Backup
+ # source://sqlite3//lib/sqlite3.rb#4
def initialize(_arg0, _arg1, _arg2, _arg3); end
+ # source://sqlite3//lib/sqlite3.rb#4
def finish; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def pagecount; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def remaining; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def step(_arg0); end
end
@@ -538,6 +553,7 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#207
def authorizer(&block); end
+ # source://sqlite3//lib/sqlite3.rb#4
def authorizer=(_arg0); end
# Given a statement, return a result set.
@@ -546,6 +562,7 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#790
def build_result_set(stmt); end
+ # source://sqlite3//lib/sqlite3.rb#4
def busy_handler(*_arg0); end
# Sets a #busy_handler that releases the GVL between retries,
@@ -556,11 +573,22 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#693
def busy_handler_timeout=(milliseconds); end
+ # source://sqlite3//lib/sqlite3/database.rb#387
def busy_timeout(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def busy_timeout=(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def changes; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def close; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def closed?; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def collation(_arg0, _arg1); end
# Returns the value of attribute collations.
@@ -576,6 +604,7 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#669
def commit; end
+ # source://sqlite3//lib/sqlite3.rb#4
def complete?(_arg0); end
# Creates a new aggregate function for use in SQL statements. Aggregate
@@ -710,8 +739,13 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#592
def define_aggregator(name, aggregator); end
+ # source://sqlite3//lib/sqlite3.rb#4
def define_function(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def define_function_with_flags(_arg0, _arg1); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def enable_load_extension(_arg0); end
# call-seq: db.encoding
@@ -721,7 +755,10 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#199
def encoding; end
+ # source://sqlite3//lib/sqlite3.rb#4
def errcode; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def errmsg; end
# Executes the given SQL statement. If additional parameters are given,
@@ -787,6 +824,7 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#330
def execute_batch2(sql, &block); end
+ # source://sqlite3//lib/sqlite3.rb#4
def extended_result_codes=(_arg0); end
# Returns the filename for the database named +db_name+. +db_name+ defaults
@@ -818,7 +856,10 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#738
def initialize_extensions(extensions); end
+ # source://sqlite3//lib/sqlite3.rb#4
def interrupt; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def last_insert_row_id; end
# call-seq:
@@ -896,8 +937,13 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#678
def rollback; end
+ # source://sqlite3//lib/sqlite3.rb#4
def statement_timeout=(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def total_changes; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def trace(*_arg0); end
# Begins a new transaction. Note that nested transactions are not allowed
@@ -922,17 +968,33 @@ class SQLite3::Database
# source://sqlite3//lib/sqlite3/database.rb#646
def transaction(mode = T.unsafe(nil)); end
+ # source://sqlite3//lib/sqlite3.rb#4
def transaction_active?; end
private
+ # source://sqlite3//lib/sqlite3.rb#4
def db_filename(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def define_aggregator2(_arg0, _arg1); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def disable_quirk_mode; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def discard; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def exec_batch(_arg0, _arg1); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def load_extension_internal(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def open16(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def open_v2(_arg0, _arg1, _arg2); end
class << self
@@ -1063,7 +1125,7 @@ class SQLite3::FullException < ::SQLite3::Exception; end
# source://sqlite3//lib/sqlite3/resultset.rb#93
class SQLite3::HashResultSet < ::SQLite3::ResultSet
- # source://sqlite3//lib/sqlite3/resultset.rb#85
+ # source://sqlite3//lib/sqlite3/resultset.rb#94
def next; end
end
@@ -1694,7 +1756,10 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#111
def active?; end
+ # source://sqlite3//lib/sqlite3.rb#4
def bind_param(_arg0, _arg1); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def bind_parameter_count; end
# Binds the given variables to the corresponding placeholders in the SQL
@@ -1714,11 +1779,22 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#52
def bind_params(*bind_vars); end
+ # source://sqlite3//lib/sqlite3.rb#4
def clear_bindings!; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def close; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def closed?; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def column_count; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def column_decltype(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def column_name(_arg0); end
# Return an array of the column names for this statement. Note that this
@@ -1728,6 +1804,7 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#118
def columns; end
+ # source://sqlite3//lib/sqlite3.rb#4
def done?; end
# source://sqlite3//lib/sqlite3/statement.rb#123
@@ -1771,7 +1848,10 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#104
def execute!(*bind_vars, &block); end
+ # source://sqlite3//lib/sqlite3.rb#4
def expanded_sql; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def memused; end
# Performs a sanity check to ensure that the statement is not
@@ -1780,6 +1860,7 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#142
def must_be_open!; end
+ # source://sqlite3//lib/sqlite3.rb#4
def named_params; end
# This is any text that followed the first valid SQL statement in the text
@@ -1789,7 +1870,10 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#20
def remainder; end
+ # source://sqlite3//lib/sqlite3.rb#4
def reset!; end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def sql; end
# Returns a Hash containing information about the statement.
@@ -1815,6 +1899,7 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#167
def stat(key = T.unsafe(nil)); end
+ # source://sqlite3//lib/sqlite3.rb#4
def step; end
# Return an array of the data types for each column in this statement. Note
@@ -1833,8 +1918,13 @@ class SQLite3::Statement
# source://sqlite3//lib/sqlite3/statement.rb#180
def get_metadata; end
+ # source://sqlite3//lib/sqlite3.rb#4
def prepare(_arg0, _arg1); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def stat_for(_arg0); end
+
+ # source://sqlite3//lib/sqlite3.rb#4
def stats_as_hash; end
end
diff --git a/sorbet/rbi/gems/tapioca@0.16.11.rbi b/sorbet/rbi/gems/tapioca@0.17.10.rbi
similarity index 71%
rename from sorbet/rbi/gems/tapioca@0.16.11.rbi
rename to sorbet/rbi/gems/tapioca@0.17.10.rbi
index c58d7dab..7c5fcfee 100644
--- a/sorbet/rbi/gems/tapioca@0.16.11.rbi
+++ b/sorbet/rbi/gems/tapioca@0.17.10.rbi
@@ -35,18 +35,21 @@ end
# That's because RubyGems does alias-method-chain for Kernel#require and such,
# so, if Bootsnap were to do prepend, it might end up breaking RubyGems.
#
-# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#68
+# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#46
class Module
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#101
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#98
def append_features(constant); end
- # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#71
+ # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#49
def autoload(const_name, path); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#111
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#108
def extend_object(obj); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#91
+ # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#60
+ def method_added(method_name); end
+
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#88
def prepend_features(constant); end
end
@@ -55,19 +58,7 @@ module RBI; end
# source://tapioca//lib/tapioca/rbi_ext/model.rb#5
class RBI::Tree < ::RBI::NodeWithComments
- # source://rbi/0.3.6/lib/rbi/model.rb#113
- def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
-
- # source://rbi/0.3.6/lib/rbi/model.rb#120
- def <<(node); end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/add_sig_templates.rb#63
- def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/annotate.rb#46
- def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
-
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#38
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#32
sig do
params(
name: ::String,
@@ -77,19 +68,19 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_class(name, superclass_name: T.unsafe(nil), &block); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#45
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#39
sig { params(name: ::String, value: ::String).void }
def create_constant(name, value:); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#55
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#49
sig { params(name: ::String).void }
def create_extend(name); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#50
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#44
sig { params(name: ::String).void }
def create_include(name); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#90
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#65
sig do
params(
name: ::String,
@@ -103,7 +94,7 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#60
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#54
sig { params(name: ::String).void }
def create_mixes_in_class_methods(name); end
@@ -112,10 +103,15 @@ class RBI::Tree < ::RBI::NodeWithComments
def create_module(name, &block); end
# source://tapioca//lib/tapioca/rbi_ext/model.rb#9
- sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
+ sig do
+ params(
+ constant: T::Module[T.anything],
+ block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)
+ ).returns(::RBI::Scope)
+ end
def create_path(constant, &block); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#74
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#59
sig do
params(
name: ::String,
@@ -128,77 +124,25 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end
- # source://rbi/0.3.6/lib/rbi/rewriters/deannotate.rb#38
- def deannotate!(annotation); end
-
- # source://rbi/0.3.6/lib/rbi/model.rb#126
- def empty?; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/filter_versions.rb#113
- def filter_versions!(version); end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/flatten_singleton_methods.rb#58
- def flatten_singleton_methods!; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/flatten_visibilities.rb#57
- def flatten_visibilities!; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/group_nodes.rb#78
- def group_nodes!; end
-
- # source://rbi/0.3.6/lib/rbi/index.rb#62
- def index; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/merge_trees.rb#323
- def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/nest_non_public_members.rb#43
- def nest_non_public_members!; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/nest_singleton_methods.rb#33
- def nest_singleton_methods!; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/nest_top_level_members.rb#60
- def nest_top_level_members!; end
-
- # source://rbi/0.3.6/lib/rbi/model.rb#110
- def nodes; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/attr_to_methods.rb#50
- def replace_attributes_with_methods!; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/sort_nodes.rb#118
- def sort_nodes!; end
-
- # source://rbi/0.3.6/lib/rbi/rewriters/translate_rbs_sigs.rb#82
- def translate_rbs_sigs!; end
-
private
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#123
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#98
sig { params(node: ::RBI::Node).returns(::RBI::Node) }
def create_node(node); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#118
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#93
sig { returns(T::Hash[::String, ::RBI::Node]) }
def nodes_cache; end
end
-# source://tapioca//lib/tapioca/rbi_ext/model.rb#133
+# source://tapioca//lib/tapioca/rbi_ext/model.rb#108
class RBI::TypedParam < ::T::Struct
const :param, ::RBI::Param
const :type, ::String
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#5
module T::Generic
- include ::Kernel
-
# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13
def [](*types); end
@@ -360,16 +304,10 @@ end
# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#7
module T::Types::Simple::NamePatch
- # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#10
+ # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#8
def name; end
-
- # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#16
- def qualified_name_of(constant); end
end
-# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#8
-T::Types::Simple::NamePatch::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-
# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#87
module T::Utils::Private
class << self
@@ -385,20 +323,9 @@ module T::Utils::Private::PrivateCoercePatch
end
# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4
-module Tapioca
- class << self
- # source://tapioca//lib/tapioca.rb#20
- sig do
- type_parameters(:Result)
- .params(
- blk: T.proc.returns(T.type_parameter(:Result))
- ).returns(T.type_parameter(:Result))
- end
- def silence_warnings(&blk); end
- end
-end
+module Tapioca; end
-# source://tapioca//lib/tapioca.rb#39
+# source://tapioca//lib/tapioca.rb#20
Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5
@@ -412,7 +339,7 @@ module Tapioca::BundlerExt; end
module Tapioca::BundlerExt::AutoRequireHook
requires_ancestor { Bundler::Dependency }
- # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#46
+ # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#41
sig { returns(T.untyped) }
def autorequire; end
@@ -426,7 +353,7 @@ module Tapioca::BundlerExt::AutoRequireHook
sig { params(name: T.untyped).returns(T::Boolean) }
def excluded?(name); end
- # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#36
+ # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#31
sig do
type_parameters(:Result)
.params(
@@ -438,13 +365,13 @@ module Tapioca::BundlerExt::AutoRequireHook
end
end
-# source://tapioca//lib/tapioca.rb#62
+# source://tapioca//lib/tapioca.rb#40
Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#61
+# source://tapioca//lib/tapioca.rb#39
Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#60
+# source://tapioca//lib/tapioca.rb#38
Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/cli.rb#5
@@ -453,13 +380,13 @@ class Tapioca::Cli < ::Thor
include ::Tapioca::ConfigHelper
include ::Tapioca::EnvHelper
- # source://tapioca//lib/tapioca/cli.rb#372
+ # source://tapioca//lib/tapioca/cli.rb#373
def __print_version; end
- # source://tapioca//lib/tapioca/cli.rb#354
+ # source://tapioca//lib/tapioca/cli.rb#355
def annotations; end
- # source://tapioca//lib/tapioca/cli.rb#326
+ # source://tapioca//lib/tapioca/cli.rb#327
def check_shims; end
# source://tapioca//lib/tapioca/cli.rb#46
@@ -484,18 +411,18 @@ class Tapioca::Cli < ::Thor
private
- # source://tapioca//lib/tapioca/cli.rb#399
+ # source://tapioca//lib/tapioca/cli.rb#400
def print_init_next_steps; end
class << self
- # source://tapioca//lib/tapioca/cli.rb#383
+ # source://tapioca//lib/tapioca/cli.rb#384
def addon_mode; end
- # source://tapioca//lib/tapioca/cli.rb#386
+ # source://tapioca//lib/tapioca/cli.rb#387
sig { void }
def addon_mode!; end
- # source://tapioca//lib/tapioca/cli.rb#391
+ # source://tapioca//lib/tapioca/cli.rb#392
sig { returns(T::Boolean) }
def exit_on_failure?; end
end
@@ -524,7 +451,7 @@ end
# source://tapioca//lib/tapioca/commands.rb#5
module Tapioca::Commands; end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/commands/abstract_dsl.rb#6
class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracker
@@ -533,7 +460,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
abstract!
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#34
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#15
sig do
params(
requested_constants: T::Array[::String],
@@ -560,15 +487,15 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
private
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#107
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#88
sig { returns(T::Array[::String]) }
def all_requested_constants; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#313
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#284
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
def build_error_for_files(cause, files); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#237
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#208
sig do
params(
constant_name: ::String,
@@ -579,80 +506,85 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
end
def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#172
- sig { params(constant_names: T::Array[::String], ignore_missing: T::Boolean).returns(T::Array[::Module]) }
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#150
+ sig do
+ params(
+ constant_names: T::Array[::String],
+ ignore_missing: T::Boolean
+ ).returns(T::Array[T::Module[T.anything]])
+ end
def constantize(constant_names, ignore_missing: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#197
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#175
sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) }
def constantize_compilers(compiler_names); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#373
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344
sig { returns(T::Array[::String]) }
def constants_from_requested_paths; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#133
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#111
sig { returns(::Tapioca::Dsl::Pipeline) }
def create_pipeline; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#276
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#247
sig { params(constant_name: ::String).returns(::Pathname) }
def dsl_rbi_filename(constant_name); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#158
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#136
sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) }
def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#368
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339
sig { params(constant: ::String).returns(::String) }
def generate_command_for(constant); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#79
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#60
sig { params(outpath: ::Pathname, quiet: T::Boolean).returns(T::Set[::Pathname]) }
def generate_dsl_rbi_files(outpath, quiet:); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#120
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#98
sig { void }
def load_application; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#255
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#226
sig { params(dir: ::Pathname).void }
def perform_dsl_verification(dir); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#115
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#93
sig { returns(::Tapioca::Dsl::Pipeline) }
def pipeline; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#264
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235
sig { params(files: T::Set[::Pathname]).void }
def purge_stale_dsl_rbi_files(files); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#363
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#334
sig { params(constant: ::String).returns(::String) }
def rbi_filename_for(constant); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#315
sig { params(path: ::Pathname).returns(T::Array[::Pathname]) }
def rbi_files_in(path); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
def report_diff_and_exit_if_out_of_date(diff, command); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#217
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#195
sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) }
def resolve(name); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#351
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322
sig { params(class_name: ::String).returns(::String) }
def underscore(class_name); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#281
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252
sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) }
def verify_dsl_rbi(tmp_dir:); end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/commands/abstract_gem.rb#6
class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
@@ -661,7 +593,7 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
abstract!
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#33
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#15
sig do
params(
gem_names: T::Array[::String],
@@ -680,77 +612,78 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
dsl_dir: ::String,
rbi_formatter: ::Tapioca::RBIFormatter,
halt_upon_load_error: T::Boolean,
- lsp_addon: T.nilable(T::Boolean)
+ lsp_addon: T.nilable(T::Boolean),
+ verbose: T.nilable(T::Boolean)
).void
end
- def initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil), lsp_addon: T.unsafe(nil)); end
+ def initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil), lsp_addon: T.unsafe(nil), verbose: T.unsafe(nil)); end
private
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#200
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#185
sig { returns(T::Array[::String]) }
def added_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#261
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#246
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
def build_error_for_files(cause, files); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#80
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#64
sig { params(gem: ::Tapioca::Gemfile::GemSpec).void }
def compile_gem_rbi(gem); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#195
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#180
sig { params(gem_name: ::String).returns(::Pathname) }
def existing_rbi(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#243
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#228
sig { returns(T::Hash[::String, ::String]) }
def existing_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#207
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#192
sig { params(gem_name: ::String).returns(::Pathname) }
def expected_rbi(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#249
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#234
sig { returns(T::Hash[::String, ::String]) }
def expected_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#212
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#197
sig { params(gem_name: ::String).returns(T::Boolean) }
def gem_rbi_exists?(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#256
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#241
sig { params(gem_name: ::String, version: ::String).returns(::Pathname) }
def gem_rbi_filename(gem_name, version); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#251
sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void }
def merge_with_exported_rbi(gem, file); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#237
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#222
sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void }
def move(old_filename, new_filename); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#147
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#132
sig { void }
def perform_additions; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#120
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#105
sig { void }
def perform_removals; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#190
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#175
sig { returns(T::Array[::String]) }
def removed_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#217
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#202
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
def report_diff_and_exit_if_out_of_date(diff, command); end
end
# source://tapioca//lib/tapioca/commands/annotations.rb#6
class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracker
- # source://tapioca//lib/tapioca/commands/annotations.rb#18
+ # source://tapioca//lib/tapioca/commands/annotations.rb#10
sig do
params(
central_repo_root_uris: T::Array[::String],
@@ -764,71 +697,71 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracke
private
- # source://tapioca//lib/tapioca/commands/annotations.rb#197
+ # source://tapioca//lib/tapioca/commands/annotations.rb#192
sig { params(name: ::String, content: ::String).returns(::String) }
def add_header(name, content); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#217
+ # source://tapioca//lib/tapioca/commands/annotations.rb#212
sig { params(name: ::String, content: ::String).returns(::String) }
def apply_typed_override(name, content); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#39
+ # source://tapioca//lib/tapioca/commands/annotations.rb#32
sig { override.void }
def execute; end
- # source://tapioca//lib/tapioca/commands/annotations.rb#136
- sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).void }
+ # source://tapioca//lib/tapioca/commands/annotations.rb#130
+ sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).returns(T::Boolean) }
def fetch_annotation(repo_uris, gem_info); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#113
+ # source://tapioca//lib/tapioca/commands/annotations.rb#107
sig { params(project_gems: T::Array[::Tapioca::GemInfo]).returns(T::Array[::String]) }
def fetch_annotations(project_gems); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#156
+ # source://tapioca//lib/tapioca/commands/annotations.rb#151
sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
def fetch_file(repo_uri, path); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#173
+ # source://tapioca//lib/tapioca/commands/annotations.rb#168
sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
def fetch_http_file(repo_uri, path); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#102
- sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) }
+ # source://tapioca//lib/tapioca/commands/annotations.rb#96
+ sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(::Tapioca::RepoIndex)) }
def fetch_index(repo_uri, repo_number:); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#81
- sig { returns(T::Hash[::String, Tapioca::RepoIndex]) }
+ # source://tapioca//lib/tapioca/commands/annotations.rb#75
+ sig { returns(T::Hash[::String, ::Tapioca::RepoIndex]) }
def fetch_indexes; end
- # source://tapioca//lib/tapioca/commands/annotations.rb#165
+ # source://tapioca//lib/tapioca/commands/annotations.rb#160
sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
def fetch_local_file(repo_uri, path); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#229
+ # source://tapioca//lib/tapioca/commands/annotations.rb#224
sig { params(gem_version: ::Gem::Version, content: ::String).returns(::String) }
def filter_versions(gem_version, content); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#50
+ # source://tapioca//lib/tapioca/commands/annotations.rb#43
sig { returns(T::Array[::Tapioca::GemInfo]) }
def list_gemfile_gems; end
- # source://tapioca//lib/tapioca/commands/annotations.rb#237
+ # source://tapioca//lib/tapioca/commands/annotations.rb#232
sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) }
def merge_files(gem_name, contents); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#60
+ # source://tapioca//lib/tapioca/commands/annotations.rb#54
sig { params(project_gems: T::Array[::Tapioca::GemInfo]).void }
def remove_expired_annotations(project_gems); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#264
+ # source://tapioca//lib/tapioca/commands/annotations.rb#259
sig { returns(T::Hash[::String, T.nilable(::String)]) }
def repo_tokens; end
- # source://tapioca//lib/tapioca/commands/annotations.rb#292
+ # source://tapioca//lib/tapioca/commands/annotations.rb#287
sig { params(path: ::String, repo_uri: ::String, message: ::String).void }
def say_http_error(path, repo_uri, message:); end
- # source://tapioca//lib/tapioca/commands/annotations.rb#276
+ # source://tapioca//lib/tapioca/commands/annotations.rb#271
sig { params(repo_uri: ::String).returns(T.nilable(::String)) }
def token_for(repo_uri); end
end
@@ -838,7 +771,7 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker
include ::Tapioca::SorbetHelper
include ::Tapioca::RBIFilesHelper
- # source://tapioca//lib/tapioca/commands/check_shims.rb#22
+ # source://tapioca//lib/tapioca/commands/check_shims.rb#12
sig do
params(
gem_rbi_dir: ::String,
@@ -854,12 +787,12 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker
private
- # source://tapioca//lib/tapioca/commands/check_shims.rb#44
+ # source://tapioca//lib/tapioca/commands/check_shims.rb#35
sig { override.void }
def execute; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/commands/command.rb#6
class Tapioca::Commands::Command
@@ -876,17 +809,17 @@ class Tapioca::Commands::Command
sig { void }
def initialize; end
- # source://thor/1.4.0/lib/thor/base.rb#155
+ # source://tapioca//lib/tapioca/commands/command.rb#44
sig { returns(::Thor::Actions) }
def file_writer; end
- # source://tapioca//lib/tapioca/commands/command.rb#25
+ # source://tapioca//lib/tapioca/commands/command.rb#26
sig(:final) { void }
def run; end
private
- # source://tapioca//lib/tapioca/commands/command.rb#53
+ # source://tapioca//lib/tapioca/commands/command.rb#47
sig do
params(
path: T.any(::Pathname, ::String),
@@ -898,28 +831,29 @@ class Tapioca::Commands::Command
end
def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/command.rb#37
+ # source://tapioca//lib/tapioca/commands/command.rb#39
sig { params(command: ::Symbol, args: ::String).returns(::String) }
def default_command(command, *args); end
# @abstract
+ # @raise [NotImplementedError]
#
- # source://tapioca//lib/tapioca/commands/command.rb#34
+ # source://tapioca//lib/tapioca/commands/command.rb#36
sig { abstract.void }
def execute; end
- # source://tapioca//lib/tapioca/commands/command.rb#63
+ # source://tapioca//lib/tapioca/commands/command.rb#52
sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void }
def remove_file(path, verbose: T.unsafe(nil)); end
end
-# source://tapioca//lib/tapioca/commands/command.rb#10
+# source://tapioca//lib/tapioca/commands/command.rb#12
class Tapioca::Commands::Command::FileWriter < ::Thor
include ::Thor::Actions
extend ::Thor::Actions::ClassMethods
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/commands/command_without_tracker.rb#6
class Tapioca::Commands::CommandWithoutTracker < ::Tapioca::Commands::Command
@@ -932,37 +866,37 @@ end
# source://tapioca//lib/tapioca/commands/configure.rb#6
class Tapioca::Commands::Configure < ::Tapioca::Commands::CommandWithoutTracker
- # source://tapioca//lib/tapioca/commands/configure.rb#14
+ # source://tapioca//lib/tapioca/commands/configure.rb#8
sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void }
def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end
private
- # source://tapioca//lib/tapioca/commands/configure.rb#79
+ # source://tapioca//lib/tapioca/commands/configure.rb#74
sig { void }
def create_binstub; end
- # source://tapioca//lib/tapioca/commands/configure.rb#69
+ # source://tapioca//lib/tapioca/commands/configure.rb#64
sig { void }
def create_post_require; end
- # source://tapioca//lib/tapioca/commands/configure.rb#40
+ # source://tapioca//lib/tapioca/commands/configure.rb#35
sig { void }
def create_sorbet_config; end
- # source://tapioca//lib/tapioca/commands/configure.rb#50
+ # source://tapioca//lib/tapioca/commands/configure.rb#45
sig { void }
def create_tapioca_config; end
- # source://tapioca//lib/tapioca/commands/configure.rb#32
+ # source://tapioca//lib/tapioca/commands/configure.rb#27
sig { override.void }
def execute; end
- # source://tapioca//lib/tapioca/commands/configure.rb#92
+ # source://tapioca//lib/tapioca/commands/configure.rb#87
sig { returns(::Bundler::Installer) }
def installer; end
- # source://tapioca//lib/tapioca/commands/configure.rb#97
+ # source://tapioca//lib/tapioca/commands/configure.rb#92
sig { returns(T.any(::Bundler::StubSpecification, ::Gem::Specification)) }
def spec; end
end
@@ -971,7 +905,7 @@ end
class Tapioca::Commands::DslCompilerList < ::Tapioca::Commands::AbstractDsl
private
- # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#10
+ # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#11
sig { override.void }
def execute; end
end
@@ -980,7 +914,7 @@ end
class Tapioca::Commands::DslGenerate < ::Tapioca::Commands::AbstractDsl
private
- # source://tapioca//lib/tapioca/commands/dsl_generate.rb#10
+ # source://tapioca//lib/tapioca/commands/dsl_generate.rb#11
sig { override.void }
def execute; end
end
@@ -989,7 +923,7 @@ end
class Tapioca::Commands::DslVerify < ::Tapioca::Commands::AbstractDsl
private
- # source://tapioca//lib/tapioca/commands/dsl_verify.rb#10
+ # source://tapioca//lib/tapioca/commands/dsl_verify.rb#11
sig { override.void }
def execute; end
end
@@ -998,11 +932,11 @@ end
class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem
private
- # source://tapioca//lib/tapioca/commands/gem_generate.rb#10
+ # source://tapioca//lib/tapioca/commands/gem_generate.rb#11
sig { override.void }
def execute; end
- # source://tapioca//lib/tapioca/commands/gem_generate.rb#74
+ # source://tapioca//lib/tapioca/commands/gem_generate.rb#70
sig do
params(
gem: ::Tapioca::Gemfile::GemSpec,
@@ -1011,7 +945,7 @@ class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem
end
def gem_dependencies(gem, dependencies = T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/gem_generate.rb#51
+ # source://tapioca//lib/tapioca/commands/gem_generate.rb#52
sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
def gems_to_generate(gem_names); end
end
@@ -1020,7 +954,7 @@ end
class Tapioca::Commands::GemSync < ::Tapioca::Commands::AbstractGem
private
- # source://tapioca//lib/tapioca/commands/gem_sync.rb#10
+ # source://tapioca//lib/tapioca/commands/gem_sync.rb#11
sig { override.void }
def execute; end
end
@@ -1029,24 +963,24 @@ end
class Tapioca::Commands::GemVerify < ::Tapioca::Commands::AbstractGem
private
- # source://tapioca//lib/tapioca/commands/gem_verify.rb#10
+ # source://tapioca//lib/tapioca/commands/gem_verify.rb#11
sig { override.void }
def execute; end
- # source://tapioca//lib/tapioca/commands/gem_verify.rb#17
+ # source://tapioca//lib/tapioca/commands/gem_verify.rb#18
sig { void }
def perform_sync_verification; end
end
# source://tapioca//lib/tapioca/commands/require.rb#6
class Tapioca::Commands::Require < ::Tapioca::Commands::CommandWithoutTracker
- # source://tapioca//lib/tapioca/commands/require.rb#13
+ # source://tapioca//lib/tapioca/commands/require.rb#8
sig { params(requires_path: ::String, sorbet_config_path: ::String).void }
def initialize(requires_path:, sorbet_config_path:); end
private
- # source://tapioca//lib/tapioca/commands/require.rb#23
+ # source://tapioca//lib/tapioca/commands/require.rb#19
sig { override.void }
def execute; end
end
@@ -1055,25 +989,25 @@ end
class Tapioca::Commands::Todo < ::Tapioca::Commands::CommandWithoutTracker
include ::Tapioca::SorbetHelper
- # source://tapioca//lib/tapioca/commands/todo.rb#26
+ # source://tapioca//lib/tapioca/commands/todo.rb#21
sig { params(todo_file: ::String, file_header: T::Boolean).void }
def initialize(todo_file:, file_header:); end
- # source://tapioca//lib/tapioca/commands/todo.rb#34
+ # source://tapioca//lib/tapioca/commands/todo.rb#29
sig { void }
def run_with_deprecation; end
private
- # source://tapioca//lib/tapioca/commands/todo.rb#44
+ # source://tapioca//lib/tapioca/commands/todo.rb#40
sig { override.void }
def execute; end
- # source://tapioca//lib/tapioca/commands/todo.rb#68
+ # source://tapioca//lib/tapioca/commands/todo.rb#64
sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) }
def rbi(constants, command:); end
- # source://tapioca//lib/tapioca/commands/todo.rb#88
+ # source://tapioca//lib/tapioca/commands/todo.rb#84
sig { returns(T::Array[::String]) }
def unresolved_constants; end
end
@@ -1103,11 +1037,11 @@ module Tapioca::ConfigHelper
private
- # source://tapioca//lib/tapioca/helpers/config_helper.rb#153
+ # source://tapioca//lib/tapioca/helpers/config_helper.rb#147
sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) }
def build_error(msg); end
- # source://tapioca//lib/tapioca/helpers/config_helper.rb#178
+ # source://tapioca//lib/tapioca/helpers/config_helper.rb#172
sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) }
def build_error_message(config_file, errors); end
@@ -1123,7 +1057,7 @@ module Tapioca::ConfigHelper
sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void }
def filter_defaults(options); end
- # source://tapioca//lib/tapioca/helpers/config_helper.rb#196
+ # source://tapioca//lib/tapioca/helpers/config_helper.rb#187
sig do
params(
options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess)
@@ -1135,7 +1069,7 @@ module Tapioca::ConfigHelper
sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void }
def validate_config!(config_file, config); end
- # source://tapioca//lib/tapioca/helpers/config_helper.rb#102
+ # source://tapioca//lib/tapioca/helpers/config_helper.rb#96
sig do
params(
command_options: T::Hash[::Symbol, ::Thor::Option],
@@ -1146,64 +1080,54 @@ module Tapioca::ConfigHelper
def validate_config_options(command_options, config_key, config_options); end
end
-# source://tapioca//lib/tapioca/helpers/config_helper.rb#148
+# source://tapioca//lib/tapioca/helpers/config_helper.rb#142
class Tapioca::ConfigHelper::ConfigError < ::T::Struct
const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
-# source://tapioca//lib/tapioca/helpers/config_helper.rb#143
+# source://tapioca//lib/tapioca/helpers/config_helper.rb#137
class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
const :message, ::String
const :colors, T::Array[::Symbol]
-
- class << self
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
- end
end
-# source://tapioca//lib/tapioca.rb#46
+# source://tapioca//lib/tapioca.rb#27
Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#42
+# source://tapioca//lib/tapioca.rb#23
Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#58
+# source://tapioca//lib/tapioca.rb#36
Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#43
+# source://tapioca//lib/tapioca.rb#24
Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#48
+# source://tapioca//lib/tapioca.rb#29
Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash)
-# source://tapioca//lib/tapioca.rb#40
+# source://tapioca//lib/tapioca.rb#21
Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#41
+# source://tapioca//lib/tapioca.rb#22
Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca/rbi_formatter.rb#31
+# source://tapioca//lib/tapioca/rbi_formatter.rb#25
Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter)
-# source://tapioca//lib/tapioca.rb#57
+# source://tapioca//lib/tapioca.rb#35
Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer)
-# source://tapioca//lib/tapioca.rb#44
+# source://tapioca//lib/tapioca.rb#25
Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#45
+# source://tapioca//lib/tapioca.rb#26
Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/dsl/compilers.rb#5
module Tapioca::Dsl; end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/dsl/compiler.rb#6
class Tapioca::Dsl::Compiler
@@ -1217,9 +1141,9 @@ class Tapioca::Dsl::Compiler
abstract!
- ConstantType = type_member { { upper: Module } }
+ ConstantType = type_member { { upper: T::Module[T.anything] } }
- # source://tapioca//lib/tapioca/dsl/compiler.rb#110
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#93
sig do
params(
pipeline: ::Tapioca::Dsl::Pipeline,
@@ -1232,69 +1156,71 @@ class Tapioca::Dsl::Compiler
# NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`.
#
- # source://tapioca//lib/tapioca/dsl/compiler.rb#128
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#112
sig { params(error: ::String).void }
def add_error(error); end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#119
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#102
sig { params(compiler_name: ::String).returns(T::Boolean) }
def compiler_enabled?(compiler_name); end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#20
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#22
sig { returns(ConstantType) }
def constant; end
# @abstract
+ # @raise [NotImplementedError]
#
- # source://tapioca//lib/tapioca/dsl/compiler.rb#124
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#108
sig { abstract.void }
def decorate; end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#26
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#28
sig { returns(T::Hash[::String, T.untyped]) }
def options; end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#23
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#25
sig { returns(::RBI::Tree) }
def root; end
private
- # source://tapioca//lib/tapioca/dsl/compiler.rb#177
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#156
sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) }
def compile_method_parameters_to_rbi(method_def); end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#213
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#192
sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) }
def compile_method_return_type_to_rbi(method_def); end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#167
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#146
sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void }
def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end
# Get the types of each parameter from a method signature
#
- # source://tapioca//lib/tapioca/dsl/compiler.rb#141
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#120
sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) }
def parameters_types_from_signature(method_def, signature); end
class << self
# @abstract
+ # @raise [NotImplementedError]
#
- # source://tapioca//lib/tapioca/dsl/compiler.rb#39
- sig { abstract.returns(T::Enumerable[::Module]) }
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#42
+ sig { abstract.returns(T::Enumerable[T::Module[T.anything]]) }
def gather_constants; end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#34
- sig { params(constant: ::Module).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#36
+ sig { params(constant: T::Module[T.anything]).returns(T::Boolean) }
def handles?(constant); end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#42
- sig { returns(T::Set[::Module]) }
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#45
+ sig { returns(T::Set[T::Module[T.anything]]) }
def processable_constants; end
# source://tapioca//lib/tapioca/dsl/compiler.rb#50
- sig { params(constants: T::Array[::Module]).void }
+ sig { params(constants: T::Array[T::Module[T.anything]]).void }
def requested_constants=(constants); end
# source://tapioca//lib/tapioca/dsl/compiler.rb#55
@@ -1303,15 +1229,15 @@ class Tapioca::Dsl::Compiler
private
- # source://tapioca//lib/tapioca/dsl/compiler.rb#82
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#78
sig { returns(T::Enumerable[T::Class[T.anything]]) }
def all_classes; end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#90
- sig { returns(T::Enumerable[::Module]) }
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#83
+ sig { returns(T::Enumerable[T::Module[T.anything]]) }
def all_modules; end
- # source://tapioca//lib/tapioca/dsl/compiler.rb#68
+ # source://tapioca//lib/tapioca/dsl/compiler.rb#64
sig do
type_parameters(:U)
.params(
@@ -1337,15 +1263,15 @@ Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array)
# source://tapioca//lib/tapioca/dsl/pipeline.rb#6
class Tapioca::Dsl::Pipeline
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#40
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#28
sig do
params(
- requested_constants: T::Array[::Module],
+ requested_constants: T::Array[T::Module[T.anything]],
requested_paths: T::Array[::Pathname],
requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
error_handler: T.proc.params(error: ::String).void,
- skipped_constants: T::Array[::Module],
+ skipped_constants: T::Array[T::Module[T.anything]],
number_of_workers: T.nilable(::Integer),
compiler_options: T::Hash[::String, T.untyped],
lsp_addon: T::Boolean
@@ -1357,15 +1283,15 @@ class Tapioca::Dsl::Pipeline
sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) }
def active_compilers; end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#110
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#92
sig { params(error: ::String).void }
def add_error(error); end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#115
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#97
sig { params(compiler_name: ::String).returns(T::Boolean) }
def compiler_enabled?(compiler_name); end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#124
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#106
sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) }
def compilers; end
@@ -1378,37 +1304,37 @@ class Tapioca::Dsl::Pipeline
def errors; end
# source://tapioca//lib/tapioca/dsl/pipeline.rb#13
- sig { returns(T::Array[::Module]) }
+ sig { returns(T::Array[T::Module[T.anything]]) }
def requested_constants; end
# source://tapioca//lib/tapioca/dsl/pipeline.rb#16
sig { returns(T::Array[::Pathname]) }
def requested_paths; end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#70
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#52
sig do
- type_parameters(:T)
+ type_parameters(:R)
.params(
- blk: T.proc.params(constant: ::Module, rbi: ::RBI::File).returns(T.type_parameter(:T))
- ).returns(T::Array[T.type_parameter(:T)])
+ blk: T.proc.params(constant: T::Module[T.anything], rbi: ::RBI::File).returns(T.type_parameter(:R))
+ ).returns(T::Array[T.type_parameter(:R)])
end
def run(&blk); end
# source://tapioca//lib/tapioca/dsl/pipeline.rb#19
- sig { returns(T::Array[::Module]) }
+ sig { returns(T::Array[T::Module[T.anything]]) }
def skipped_constants; end
private
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#231
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#199
sig { void }
def abort_if_pending_migrations!; end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#177
- sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) }
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#145
+ sig { params(constants: T::Set[T::Module[T.anything]]).returns(T::Set[T::Module[T.anything]]) }
def filter_anonymous_and_reloaded_constants(constants); end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#141
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#115
sig do
params(
requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
@@ -1417,21 +1343,21 @@ class Tapioca::Dsl::Pipeline
end
def gather_active_compilers(requested_compilers, excluded_compilers); end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#155
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#123
sig do
params(
- requested_constants: T::Array[::Module],
+ requested_constants: T::Array[T::Module[T.anything]],
requested_paths: T::Array[::Pathname],
- skipped_constants: T::Array[::Module]
- ).returns(T::Set[::Module])
+ skipped_constants: T::Array[T::Module[T.anything]]
+ ).returns(T::Set[T::Module[T.anything]])
end
def gather_constants(requested_constants, requested_paths, skipped_constants); end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#206
- sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) }
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#174
+ sig { params(constant: T::Module[T.anything]).returns(T.nilable(::RBI::File)) }
def rbi_for_constant(constant); end
- # source://tapioca//lib/tapioca/dsl/pipeline.rb#225
+ # source://tapioca//lib/tapioca/dsl/pipeline.rb#193
sig { params(error: ::String).void }
def report_error(error); end
end
@@ -1453,7 +1379,7 @@ class Tapioca::Executor
sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void }
def initialize(queue, number_of_workers: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/executor.rb#28
+ # source://tapioca//lib/tapioca/executor.rb#22
sig do
type_parameters(:T)
.params(
@@ -1464,7 +1390,7 @@ class Tapioca::Executor
private
- # source://tapioca//lib/tapioca/executor.rb#37
+ # source://tapioca//lib/tapioca/executor.rb#31
sig { returns(::Integer) }
def max_processors; end
end
@@ -1475,57 +1401,57 @@ Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer)
# source://tapioca//lib/tapioca/gem/events.rb#5
module Tapioca::Gem; end
-# source://tapioca//lib/tapioca/gem/events.rb#77
+# source://tapioca//lib/tapioca/gem/events.rb#82
class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded
- # source://tapioca//lib/tapioca/gem/events.rb#84
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
+ # source://tapioca//lib/tapioca/gem/events.rb#89
+ sig { params(symbol: ::String, constant: T::Module[T.anything], node: ::RBI::Const).void }
def initialize(symbol, constant, node); end
- # source://tapioca//lib/tapioca/gem/events.rb#81
+ # source://tapioca//lib/tapioca/gem/events.rb#86
sig { returns(::RBI::Const) }
def node; end
end
-# source://tapioca//lib/tapioca/gem/events.rb#26
+# source://tapioca//lib/tapioca/gem/events.rb#27
class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event
- # source://tapioca//lib/tapioca/gem/events.rb#36
- sig { params(symbol: ::String, constant: ::BasicObject).void }
+ # @return [ConstantFound] a new instance of ConstantFound
+ #
+ # source://tapioca//lib/tapioca/gem/events.rb#39
def initialize(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/events.rb#33
- sig { returns(::BasicObject) }
+ # source://tapioca//lib/tapioca/gem/events.rb#35
def constant; end
- # source://tapioca//lib/tapioca/gem/events.rb#30
+ # source://tapioca//lib/tapioca/gem/events.rb#31
sig { returns(::String) }
def symbol; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/gem/events.rb#6
class Tapioca::Gem::Event
abstract!
end
-# source://tapioca//lib/tapioca/gem/events.rb#43
+# source://tapioca//lib/tapioca/gem/events.rb#46
class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound
- # source://tapioca//lib/tapioca/gem/events.rb#52
- sig { params(symbol: ::String, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/events.rb#56
+ sig { params(symbol: ::String, constant: T::Module[T.anything]).void }
def initialize(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/events.rb#47
- sig { override.returns(::Module) }
+ # source://tapioca//lib/tapioca/gem/events.rb#51
+ sig { override.returns(T::Module[T.anything]) }
def constant; end
end
-# source://tapioca//lib/tapioca/gem/events.rb#103
+# source://tapioca//lib/tapioca/gem/events.rb#108
class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end
# source://tapioca//lib/tapioca/gem/listeners/base.rb#6
module Tapioca::Gem::Listeners; end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/gem/listeners/base.rb#7
class Tapioca::Gem::Listeners::Base
@@ -1565,11 +1491,11 @@ class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#31
+ # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#33
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1581,15 +1507,15 @@ class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Bas
private
- # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#60
+ # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#58
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#55
+ # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#52
sig { params(location: ::String).returns(T::Boolean) }
def mixed_in_by_gem?(location); end
- # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1603,48 +1529,49 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#35
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#28
sig do
params(
tree: ::RBI::Tree,
module_name: ::String,
- mod: ::Module,
+ mod: T::Module[T.anything],
for_visibility: T::Array[::Symbol],
- attached_class: T.nilable(::Module)
+ attached_class: T.nilable(T::Module[T.anything])
).void
end
def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil), attached_class: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#71
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#56
sig do
params(
tree: ::RBI::Tree,
symbol_name: ::String,
- constant: ::Module,
+ constant: T::Module[T.anything],
method: T.nilable(::UnboundMethod),
visibility: ::RBI::Visibility
).void
end
def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#211
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#212
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
# source://tapioca//lib/tapioca/gem/listeners/methods.rb#204
- sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) }
+ sig { params(constant: T::Module[T.anything]).returns(T.nilable(::UnboundMethod)) }
def initialize_method_for(constant); end
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#216
- sig { params(method: ::UnboundMethod).returns(T.untyped) }
- def lookup_signature_of(method); end
-
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#172
- sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) }
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#177
+ sig { params(mod: T::Module[T.anything]).returns(T::Hash[::Symbol, T::Array[::Symbol]]) }
def method_names_by_visibility(mod); end
# source://tapioca//lib/tapioca/gem/listeners/methods.rb#196
- sig { params(attached_class: T.nilable(::Module), method_name: ::Symbol).returns(T.nilable(T::Boolean)) }
+ sig do
+ params(
+ attached_class: T.nilable(T::Module[T.anything]),
+ method_name: ::Symbol
+ ).returns(T.nilable(T::Boolean))
+ end
def method_new_in_abstract_class?(attached_class, method_name); end
# Check whether the method is defined by the constant.
@@ -1657,16 +1584,16 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
# It walks up the ancestor tree via the `super_method` method; if any of the super
# methods are owned by the constant, it means that the constant declares the method.
#
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#158
- sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#163
+ sig { params(method: ::UnboundMethod, constant: T::Module[T.anything]).returns(T::Boolean) }
def method_owned_by_constant?(method, constant); end
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#16
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#17
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
- # source://tapioca//lib/tapioca/gem/listeners/methods.rb#181
- sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#186
+ sig { params(constant: T::Module[T.anything], method_name: ::String).returns(T::Boolean) }
def struct_method?(constant, method_name); end
end
@@ -1677,36 +1604,36 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#42
+ # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#36
sig do
params(
tree: ::RBI::Tree,
- constant: ::Module,
- mods: T::Array[::Module],
+ constant: T::Module[T.anything],
+ mods: T::Array[T::Module[T.anything]],
mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type
).void
end
def add_mixins(tree, constant, mods, mixin_type); end
- # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#84
+ # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#72
sig { params(mixin_name: ::String).returns(T::Boolean) }
def filtered_mixin?(mixin_name); end
- # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#91
- sig { params(constant: ::Module).returns(T::Array[::Module]) }
+ # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#79
+ sig { params(constant: T::Module[T.anything]).returns(T::Array[T::Module[T.anything]]) }
def interesting_ancestors_of(constant); end
- # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#75
+ # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#63
sig do
params(
- constant: ::Module,
- mixin: ::Module,
+ constant: T::Module[T.anything],
+ mixin: T::Module[T.anything],
mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type
).returns(T::Boolean)
end
def mixed_in_by_gem?(constant, mixin, mixin_type); end
- # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1718,11 +1645,11 @@ class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listen
private
- # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#20
+ # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#22
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1731,11 +1658,11 @@ end
class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#28
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#30
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#13
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#14
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1747,11 +1674,11 @@ class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#27
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#29
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1763,11 +1690,11 @@ class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#33
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#35
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#14
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#15
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1776,11 +1703,11 @@ end
class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#23
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#25
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#13
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#14
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1794,19 +1721,19 @@ class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Bas
private
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#26
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#27
sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) }
def compile_signature(signature, parameters); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#79
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#81
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#18
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#19
sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
def on_method(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#68
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#69
sig { params(signature: T.untyped).returns(T::Boolean) }
def signature_final?(signature); end
end
@@ -1821,19 +1748,19 @@ class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::
private
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#27
- sig { params(tree: ::RBI::Tree, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#28
+ sig { params(tree: ::RBI::Tree, constant: T::Module[T.anything]).void }
def compile_type_variable_declarations(tree, constant); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#63
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#65
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#50
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#51
sig { params(type_variable: ::Tapioca::TypeVariableModule).returns(T.nilable(::RBI::Node)) }
def node_from_type_variable(type_variable); end
- # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1842,19 +1769,19 @@ end
class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#41
+ # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#48
sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void }
def add_source_location_comment(node, file, line); end
- # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#13
+ # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#14
sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void }
def on_const(event); end
- # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#35
+ # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#38
sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
def on_method(event); end
- # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#19
+ # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#21
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
@@ -1866,57 +1793,61 @@ class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base
private
- # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#35
+ # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#37
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#15
+ # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#16
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
end
# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#7
class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base
- # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#27
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#25
sig { params(pipeline: ::Tapioca::Gem::Pipeline).void }
def initialize(pipeline); end
private
- # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#55
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#61
sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) }
def documentation_comments(name, sigs: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#99
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#106
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
def ignore?(event); end
- # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#36
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#40
sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void }
def on_const(event); end
- # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#52
sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
def on_method(event); end
- # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#41
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
def on_scope(event); end
+
+ # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#34
+ sig { params(line: ::String).returns(T::Boolean) }
+ def rbs_comment?(line); end
end
# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#10
Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array)
-# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#24
+# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#22
Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array)
-# source://tapioca//lib/tapioca/gem/events.rb#105
+# source://tapioca//lib/tapioca/gem/events.rb#110
class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded
- # source://tapioca//lib/tapioca/gem/events.rb#130
+ # source://tapioca//lib/tapioca/gem/events.rb#126
sig do
params(
symbol: ::String,
- constant: ::Module,
+ constant: T::Module[T.anything],
method: ::UnboundMethod,
node: ::RBI::Method,
signature: T.untyped,
@@ -1925,38 +1856,38 @@ class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded
end
def initialize(symbol, constant, method, node, signature, parameters); end
- # source://tapioca//lib/tapioca/gem/events.rb#109
+ # source://tapioca//lib/tapioca/gem/events.rb#114
sig { returns(::UnboundMethod) }
def method; end
- # source://tapioca//lib/tapioca/gem/events.rb#112
+ # source://tapioca//lib/tapioca/gem/events.rb#117
sig { returns(::RBI::Method) }
def node; end
- # source://tapioca//lib/tapioca/gem/events.rb#118
+ # source://tapioca//lib/tapioca/gem/events.rb#123
sig { returns(T::Array[[::Symbol, ::String]]) }
def parameters; end
- # source://tapioca//lib/tapioca/gem/events.rb#115
+ # source://tapioca//lib/tapioca/gem/events.rb#120
sig { returns(T.untyped) }
def signature; end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
-# source://tapioca//lib/tapioca/gem/events.rb#57
+# source://tapioca//lib/tapioca/gem/events.rb#61
class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event
abstract!
- # source://tapioca//lib/tapioca/gem/events.rb#70
- sig { params(symbol: ::String, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/events.rb#75
+ sig { params(symbol: ::String, constant: T::Module[T.anything]).void }
def initialize(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/events.rb#67
- sig { returns(::Module) }
+ # source://tapioca//lib/tapioca/gem/events.rb#72
+ sig { returns(T::Module[T.anything]) }
def constant; end
- # source://tapioca//lib/tapioca/gem/events.rb#64
+ # source://tapioca//lib/tapioca/gem/events.rb#69
sig { returns(::String) }
def symbol; end
end
@@ -1968,7 +1899,7 @@ class Tapioca::Gem::Pipeline
include ::Tapioca::SorbetHelper
include ::Tapioca::RBIHelper
- # source://tapioca//lib/tapioca/gem/pipeline.rb#27
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#20
sig do
params(
gem: ::Tapioca::Gemfile::GemSpec,
@@ -1979,11 +1910,11 @@ class Tapioca::Gem::Pipeline
end
def initialize(gem, error_handler:, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#64
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#57
sig { returns(::RBI::Tree) }
def compile; end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#135
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#111
sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) }
def constant_in_gem?(name); end
@@ -1995,37 +1926,39 @@ class Tapioca::Gem::Pipeline
sig { returns(::Tapioca::Gemfile::GemSpec) }
def gem; end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#153
- sig { params(method: ::UnboundMethod).returns(T::Boolean) }
- def method_in_gem?(method); end
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#149
+ sig do
+ params(
+ method_name: ::Symbol,
+ owner: T::Module[T.anything]
+ ).returns(::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult)
+ end
+ def method_definition_in_gem(method_name, owner); end
- # Helpers
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#163
- sig { params(constant: ::Module).returns(T.nilable(::String)) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#175
+ sig { params(constant: T::Module[T.anything]).returns(T.nilable(::String)) }
def name_of(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#87
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#81
+ sig { params(symbol: ::String, constant: T::Module[T.anything], node: ::RBI::Const).void }
def push_const(symbol, constant, node); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#77
- sig { params(symbol: ::String, constant: ::BasicObject).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#71
def push_constant(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#82
- sig { params(symbol: ::String, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#76
+ sig { params(symbol: ::String, constant: T::Module[T.anything]).void }
def push_foreign_constant(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#101
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#91
+ sig { params(symbol: ::String, constant: T::Module[T.anything], node: ::RBI::Scope).void }
def push_foreign_scope(symbol, constant, node); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#115
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#96
sig do
params(
symbol: ::String,
- constant: ::Module,
+ constant: T::Module[T.anything],
method: ::UnboundMethod,
node: ::RBI::Method,
signature: T.untyped,
@@ -2034,169 +1967,185 @@ class Tapioca::Gem::Pipeline
end
def push_method(symbol, constant, method, node, signature, parameters); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#94
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#86
+ sig { params(symbol: ::String, constant: T::Module[T.anything], node: ::RBI::Scope).void }
def push_scope(symbol, constant, node); end
- # Events handling
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#72
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#65
sig { params(symbol: ::String).void }
def push_symbol(symbol); end
- # Constants and properties filtering
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#122
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#103
sig { params(symbol_name: ::String).returns(T::Boolean) }
def symbol_in_payload?(symbol_name); end
private
- # source://tapioca//lib/tapioca/gem/pipeline.rb#456
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#472
sig { params(name: ::String).void }
def add_to_alias_namespace(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#461
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#477
sig { params(name: ::String).returns(T::Boolean) }
def alias_namespaced?(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#260
- sig { params(name: ::String, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#273
+ sig { params(name: ::String, constant: T::Module[T.anything]).void }
def compile_alias(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#246
- sig { params(symbol: ::String, constant: ::BasicObject).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#259
def compile_constant(symbol, constant); end
- # Compiling
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#235
- sig { params(symbol: ::String, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#247
+ sig { params(symbol: ::String, constant: T::Module[T.anything]).void }
def compile_foreign_constant(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#314
- sig { params(name: ::String, constant: ::Module).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#328
+ sig { params(name: ::String, constant: T::Module[T.anything]).void }
def compile_module(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#281
- sig { params(name: ::String, value: ::BasicObject).void }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#295
def compile_object(name, value); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#325
- sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#339
+ sig { params(name: ::String, constant: T::Module[T.anything]).returns(::RBI::Scope) }
def compile_scope(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#339
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#353
sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) }
def compile_superclass(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#437
- sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#453
+ sig { params(constant: T::Module[T.anything], strict: T::Boolean).returns(T::Boolean) }
def defined_in_gem?(constant, strict: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#193
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#205
sig { params(event: ::Tapioca::Gem::Event).void }
def dispatch(event); end
- # Helpers
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#480
- sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#496
+ sig { params(constant: T.all(::T::Generic, T::Module[T.anything])).returns(::String) }
def generic_name_of(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#449
- sig { params(constant: ::Module).returns(T::Set[::String]) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#465
+ sig { params(constant: T::Module[T.anything]).returns(T::Set[::String]) }
def get_file_candidates(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#178
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#190
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
def load_bootstrap_symbols(gem); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#496
- sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#512
+ sig { params(constant: T::Module[T.anything], class_name: T.nilable(::String)).returns(T.nilable(::String)) }
def name_of_proxy_target(constant, class_name); end
- # Events handling
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#188
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#200
sig { returns(::Tapioca::Gem::Event) }
def next_event; end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#216
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#228
sig { params(event: ::Tapioca::Gem::ConstantFound).void }
def on_constant(event); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#228
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#240
sig { params(event: ::Tapioca::Gem::NodeAdded).void }
def on_node(event); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#207
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#219
sig { params(event: ::Tapioca::Gem::SymbolFound).void }
def on_symbol(event); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#468
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#484
sig { params(name: ::String).void }
def seen!(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#473
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#489
sig { params(name: ::String).returns(T::Boolean) }
def seen?(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#407
- sig { params(name: ::String, constant: ::Module).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#422
+ sig { params(name: ::String, constant: T::Module[T.anything]).returns(T::Boolean) }
def skip_alias?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#395
- sig { params(name: ::String, constant: T.anything).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#410
def skip_constant?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#424
- sig { params(name: ::String, constant: ::Module).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#440
+ sig { params(name: ::String, constant: T::Module[T.anything]).returns(T::Boolean) }
def skip_foreign_constant?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#429
- sig { params(name: ::String, constant: ::Module).returns(T::Boolean) }
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#445
+ sig { params(name: ::String, constant: T::Module[T.anything]).returns(T::Boolean) }
def skip_module?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#416
- sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#432
def skip_object?(name, constant); end
- # Constants and properties filtering
- #
- # source://tapioca//lib/tapioca/gem/pipeline.rb#390
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#404
sig { params(name: ::String).returns(T::Boolean) }
def skip_symbol?(name); end
end
-# this looks something like:
-# "(eval at /path/to/file.rb:123)"
-# and we are just interested in the "/path/to/file.rb" part
+# source://tapioca//lib/tapioca/gem/pipeline.rb#11
+Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array)
+
+# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+#
+# source://tapioca//lib/tapioca/gem/pipeline.rb#120
+class Tapioca::Gem::Pipeline::MethodDefinitionLookupResult
+ abstract!
+end
+
+# The method defined in gem and has a source location
+#
+# source://tapioca//lib/tapioca/gem/pipeline.rb#135
+class Tapioca::Gem::Pipeline::MethodInGemWithLocation < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#142
+ sig { params(location: ::Tapioca::Runtime::SourceLocation).void }
+ def initialize(location); end
+
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#139
+ sig { returns(::Tapioca::Runtime::SourceLocation) }
+ def location; end
+end
+
+# The method probably defined in the gem but doesn't have a source location
#
# source://tapioca//lib/tapioca/gem/pipeline.rb#132
-Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp)
+class Tapioca::Gem::Pipeline::MethodInGemWithoutLocation < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end
-# source://tapioca//lib/tapioca/gem/pipeline.rb#11
-Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array)
+# The method is not defined in the gem
+#
+# source://tapioca//lib/tapioca/gem/pipeline.rb#129
+class Tapioca::Gem::Pipeline::MethodNotInGem < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end
+
+# The method doesn't seem to exist
+#
+# source://tapioca//lib/tapioca/gem/pipeline.rb#126
+class Tapioca::Gem::Pipeline::MethodUnknown < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end
-# source://tapioca//lib/tapioca/gem/events.rb#90
+# source://tapioca//lib/tapioca/gem/events.rb#95
class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded
- # source://tapioca//lib/tapioca/gem/events.rb#97
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
+ # source://tapioca//lib/tapioca/gem/events.rb#102
+ sig { params(symbol: ::String, constant: T::Module[T.anything], node: ::RBI::Scope).void }
def initialize(symbol, constant, node); end
- # source://tapioca//lib/tapioca/gem/events.rb#94
+ # source://tapioca//lib/tapioca/gem/events.rb#99
sig { returns(::RBI::Scope) }
def node; end
end
-# source://tapioca//lib/tapioca/gem/events.rb#13
+# source://tapioca//lib/tapioca/gem/events.rb#14
class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event
- # source://tapioca//lib/tapioca/gem/events.rb#20
+ # source://tapioca//lib/tapioca/gem/events.rb#21
sig { params(symbol: ::String).void }
def initialize(symbol); end
- # source://tapioca//lib/tapioca/gem/events.rb#17
+ # source://tapioca//lib/tapioca/gem/events.rb#18
sig { returns(::String) }
def symbol; end
end
@@ -2233,11 +2182,8 @@ class Tapioca::GemInfo < ::T::Struct
class << self
# source://tapioca//lib/tapioca/gem_info.rb#13
- sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) }
+ sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).returns(::Tapioca::GemInfo) }
def from_spec(spec); end
-
- # source://sorbet-runtime/0.5.12414/lib/types/struct.rb#13
- def inherited(s); end
end
end
@@ -2285,8 +2231,6 @@ class Tapioca::Gemfile
sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) }
def load_dependencies; end
- # @return [File]
- #
# source://tapioca//lib/tapioca/gemfile.rb#54
def lockfile; end
@@ -2303,94 +2247,92 @@ end
class Tapioca::Gemfile::GemSpec
include ::Tapioca::GemHelper
- # source://tapioca//lib/tapioca/gemfile.rb#145
+ # source://tapioca//lib/tapioca/gemfile.rb#139
sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void }
def initialize(spec); end
- # source://tapioca//lib/tapioca/gemfile.rb#155
+ # source://tapioca//lib/tapioca/gemfile.rb#149
sig { params(other: ::BasicObject).returns(T::Boolean) }
def ==(other); end
- # source://tapioca//lib/tapioca/gemfile.rb#180
+ # source://tapioca//lib/tapioca/gemfile.rb#174
sig { params(path: ::String).returns(T::Boolean) }
def contains_path?(path); end
- # source://tapioca//lib/tapioca/gemfile.rb#170
+ # source://tapioca//lib/tapioca/gemfile.rb#164
sig { returns(T::Array[::Gem::Dependency]) }
def dependencies; end
- # source://tapioca//lib/tapioca/gemfile.rb#210
+ # source://tapioca//lib/tapioca/gemfile.rb#204
sig { returns(T::Boolean) }
def export_rbi_files?; end
- # source://tapioca//lib/tapioca/gemfile.rb#205
+ # source://tapioca//lib/tapioca/gemfile.rb#199
sig { returns(T::Array[::String]) }
def exported_rbi_files; end
- # source://tapioca//lib/tapioca/gemfile.rb#215
+ # source://tapioca//lib/tapioca/gemfile.rb#209
sig { returns(::RBI::MergeTree) }
def exported_rbi_tree; end
- # source://tapioca//lib/tapioca/gemfile.rb#142
+ # source://tapioca//lib/tapioca/gemfile.rb#136
sig { returns(T::Array[::Pathname]) }
def files; end
- # source://tapioca//lib/tapioca/gemfile.rb#139
+ # source://tapioca//lib/tapioca/gemfile.rb#133
sig { returns(::String) }
def full_gem_path; end
- # source://tapioca//lib/tapioca/gemfile.rb#160
+ # source://tapioca//lib/tapioca/gemfile.rb#154
sig { params(gemfile_dir: ::String).returns(T::Boolean) }
def ignore?(gemfile_dir); end
- # source://tapioca//lib/tapioca/gemfile.rb#165
+ # source://tapioca//lib/tapioca/gemfile.rb#159
sig { returns(::String) }
def name; end
- # source://tapioca//lib/tapioca/gemfile.rb#189
+ # source://tapioca//lib/tapioca/gemfile.rb#183
sig { void }
def parse_yard_docs; end
- # source://tapioca//lib/tapioca/gemfile.rb#175
+ # source://tapioca//lib/tapioca/gemfile.rb#169
sig { returns(::String) }
def rbi_file_name; end
- # source://tapioca//lib/tapioca/gemfile.rb#227
+ # source://tapioca//lib/tapioca/gemfile.rb#221
sig { params(file: ::Pathname).returns(::Pathname) }
def relative_path_for(file); end
- # @return [String]
- #
- # source://tapioca//lib/tapioca/gemfile.rb#139
+ # source://tapioca//lib/tapioca/gemfile.rb#133
def version; end
private
- # source://tapioca//lib/tapioca/gemfile.rb#238
+ # source://tapioca//lib/tapioca/gemfile.rb#232
sig { returns(T::Array[::Pathname]) }
def collect_files; end
- # source://tapioca//lib/tapioca/gemfile.rb#253
+ # source://tapioca//lib/tapioca/gemfile.rb#247
sig { returns(T.nilable(T::Boolean)) }
def default_gem?; end
- # source://tapioca//lib/tapioca/gemfile.rb#312
+ # source://tapioca//lib/tapioca/gemfile.rb#303
sig { returns(T::Boolean) }
def gem_ignored?; end
- # source://tapioca//lib/tapioca/gemfile.rb#291
+ # source://tapioca//lib/tapioca/gemfile.rb#282
sig { params(path: ::String).returns(T::Boolean) }
def has_parent_gemspec?(path); end
- # source://tapioca//lib/tapioca/gemfile.rb#258
+ # source://tapioca//lib/tapioca/gemfile.rb#252
sig { returns(::Regexp) }
def require_paths_prefix_matcher; end
- # source://tapioca//lib/tapioca/gemfile.rb#270
+ # source://tapioca//lib/tapioca/gemfile.rb#261
sig { params(file: ::String).returns(::Pathname) }
def resolve_to_ruby_lib_dir(file); end
- # source://tapioca//lib/tapioca/gemfile.rb#284
+ # source://tapioca//lib/tapioca/gemfile.rb#275
sig { returns(::String) }
def version_string; end
@@ -2401,13 +2343,13 @@ class Tapioca::Gemfile::GemSpec
end
end
-# source://tapioca//lib/tapioca/gemfile.rb#125
+# source://tapioca//lib/tapioca/gemfile.rb#122
Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array)
# source://tapioca//lib/tapioca/gemfile.rb#10
Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) }
-# source://tapioca//lib/tapioca.rb#33
+# source://tapioca//lib/tapioca.rb#14
Tapioca::LIB_ROOT_DIR = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/loaders/loader.rb#5
@@ -2415,7 +2357,7 @@ module Tapioca::Loaders; end
# source://tapioca//lib/tapioca/loaders/dsl.rb#6
class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader
- # source://tapioca//lib/tapioca/loaders/dsl.rb#74
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#66
sig do
params(
tapioca_path: ::String,
@@ -2426,40 +2368,40 @@ class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader
end
def initialize(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/loaders/dsl.rb#36
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#30
sig { override.void }
def load; end
- # source://tapioca//lib/tapioca/loaders/dsl.rb#43
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#37
sig { void }
def load_dsl_extensions_and_compilers; end
- # source://tapioca//lib/tapioca/loaders/dsl.rb#49
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#43
sig { void }
def reload_custom_compilers; end
protected
- # source://tapioca//lib/tapioca/loaders/dsl.rb#120
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#112
sig { void }
def load_application; end
- # source://tapioca//lib/tapioca/loaders/dsl.rb#100
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#92
sig { void }
def load_dsl_compilers; end
- # source://tapioca//lib/tapioca/loaders/dsl.rb#85
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#77
sig { void }
def load_dsl_extensions; end
private
- # source://tapioca//lib/tapioca/loaders/dsl.rb#136
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#128
sig { void }
def load_custom_dsl_compilers; end
class << self
- # source://tapioca//lib/tapioca/loaders/dsl.rb#20
+ # source://tapioca//lib/tapioca/loaders/dsl.rb#13
sig do
params(
tapioca_path: ::String,
@@ -2474,7 +2416,7 @@ end
# source://tapioca//lib/tapioca/loaders/gem.rb#6
class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader
- # source://tapioca//lib/tapioca/loaders/gem.rb#49
+ # source://tapioca//lib/tapioca/loaders/gem.rb#34
sig do
params(
bundle: ::Tapioca::Gemfile,
@@ -2486,22 +2428,22 @@ class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader
end
def initialize(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end
- # source://tapioca//lib/tapioca/loaders/gem.rb#34
+ # source://tapioca//lib/tapioca/loaders/gem.rb#27
sig { override.void }
def load; end
protected
- # source://tapioca//lib/tapioca/loaders/gem.rb#80
+ # source://tapioca//lib/tapioca/loaders/gem.rb#72
sig { params(file: ::String, error: ::LoadError).void }
def explain_failed_require(file, error); end
- # source://tapioca//lib/tapioca/loaders/gem.rb#60
+ # source://tapioca//lib/tapioca/loaders/gem.rb#45
sig { void }
def require_gem_file; end
class << self
- # source://tapioca//lib/tapioca/loaders/gem.rb#21
+ # source://tapioca//lib/tapioca/loaders/gem.rb#13
sig do
params(
bundle: ::Tapioca::Gemfile,
@@ -2515,7 +2457,7 @@ class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader
end
end
-# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
+# @abstract
#
# source://tapioca//lib/tapioca/loaders/loader.rb#6
class Tapioca::Loaders::Loader
@@ -2530,8 +2472,9 @@ class Tapioca::Loaders::Loader
abstract!
# @abstract
+ # @raise [NotImplementedError]
#
- # source://tapioca//lib/tapioca/loaders/loader.rb#17
+ # source://tapioca//lib/tapioca/loaders/loader.rb#18
sig { abstract.void }
def load; end
@@ -2542,22 +2485,17 @@ class Tapioca::Loaders::Loader
# engine paths. The following commit is the change:
# https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664
#
- # @param engine [T.class_of(Rails::Engine)]
- # @return [Array]]
- #
- # source://tapioca//lib/tapioca/loaders/loader.rb#234
+ # source://tapioca//lib/tapioca/loaders/loader.rb#219
def eager_load_paths(engine); end
- # source://tapioca//lib/tapioca/loaders/loader.rb#199
+ # source://tapioca//lib/tapioca/loaders/loader.rb#183
sig { void }
def eager_load_rails_app; end
- # @return [Array]
- #
- # source://tapioca//lib/tapioca/loaders/loader.rb#178
+ # source://tapioca//lib/tapioca/loaders/loader.rb#162
def engines; end
- # source://tapioca//lib/tapioca/loaders/loader.rb#29
+ # source://tapioca//lib/tapioca/loaders/loader.rb#23
sig do
params(
gemfile: ::Tapioca::Gemfile,
@@ -2568,15 +2506,15 @@ class Tapioca::Loaders::Loader
end
def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end
- # source://tapioca//lib/tapioca/loaders/loader.rb#136
+ # source://tapioca//lib/tapioca/loaders/loader.rb#119
sig { void }
def load_engines_in_classic_mode; end
- # source://tapioca//lib/tapioca/loaders/loader.rb#114
+ # source://tapioca//lib/tapioca/loaders/loader.rb#101
sig { void }
def load_engines_in_zeitwerk_mode; end
- # source://tapioca//lib/tapioca/loaders/loader.rb#49
+ # source://tapioca//lib/tapioca/loaders/loader.rb#36
sig do
params(
environment_load: T::Boolean,
@@ -2587,26 +2525,26 @@ class Tapioca::Loaders::Loader
end
def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/loaders/loader.rb#89
+ # source://tapioca//lib/tapioca/loaders/loader.rb#76
sig { void }
def load_rails_engines; end
- # source://tapioca//lib/tapioca/loaders/loader.rb#220
+ # source://tapioca//lib/tapioca/loaders/loader.rb#204
sig { params(file: T.nilable(::String)).void }
def require_helper(file); end
- # source://tapioca//lib/tapioca/loaders/loader.rb#103
+ # source://tapioca//lib/tapioca/loaders/loader.rb#90
def run_initializers; end
- # source://tapioca//lib/tapioca/loaders/loader.rb#192
+ # source://tapioca//lib/tapioca/loaders/loader.rb#176
sig { params(path: ::String).void }
def safe_require(path); end
- # source://tapioca//lib/tapioca/loaders/loader.rb#161
+ # source://tapioca//lib/tapioca/loaders/loader.rb#144
sig { params(blk: T.proc.void).void }
def with_rails_application(&blk); end
- # source://tapioca//lib/tapioca/loaders/loader.rb#154
+ # source://tapioca//lib/tapioca/loaders/loader.rb#137
sig { returns(T::Boolean) }
def zeitwerk_mode?; end
end
@@ -2616,7 +2554,7 @@ module Tapioca::RBIFilesHelper
requires_ancestor { Tapioca::SorbetHelper }
requires_ancestor { Thor::Shell }
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#48
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#43
sig do
params(
index: ::RBI::Index,
@@ -2626,19 +2564,19 @@ module Tapioca::RBIFilesHelper
end
def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#13
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#14
sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void }
def index_rbi(index, kind, file); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#25
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#26
sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void }
def index_rbis(index, kind, dir, number_of_workers:); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#65
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#60
sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) }
def location_to_payload_url(loc, path_prefix:); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#86
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#72
sig do
params(
command: ::String,
@@ -2653,27 +2591,11 @@ module Tapioca::RBIFilesHelper
private
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#223
- sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) }
- def extract_empty_scopes(nodes); end
-
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#228
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#250
sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) }
def extract_methods_and_attrs(nodes); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#238
- sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) }
- def extract_mixins(nodes); end
-
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#248
- sig do
- params(
- nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)]
- ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)])
- end
- def extract_nodes_with_sigs(nodes); end
-
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#216
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#243
sig do
params(
nodes: T::Array[::RBI::Node],
@@ -2683,30 +2605,44 @@ module Tapioca::RBIFilesHelper
end
def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#280
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#287
sig { params(path: ::String).returns(::String) }
def gem_name_from_rbi_path(path); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#155
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#211
+ sig { params(nodes: T::Array[::RBI::Node], shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) }
+ def has_duplicated_methods_and_attrs?(nodes, shims_or_todos); end
+
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#203
+ sig { params(shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) }
+ def has_duplicated_mixins?(shims_or_todos); end
+
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#175
+ sig { params(all_nodes: T::Array[::RBI::Node], shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) }
+ def has_duplicated_scopes?(all_nodes, shims_or_todos); end
+
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#141
sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void }
def parse_and_index_files(index, files, number_of_workers:); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#171
+ # Do the list of `nodes` sharing the same name have duplicates?
+ #
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#158
sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) }
def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end
- # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#253
+ # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#260
sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void }
def update_gem_rbis_strictnesses(errors, gem_dir); end
end
# source://tapioca//lib/tapioca/rbi_formatter.rb#5
class Tapioca::RBIFormatter < ::RBI::Formatter
- # source://tapioca//lib/tapioca/rbi_formatter.rb#24
+ # source://tapioca//lib/tapioca/rbi_formatter.rb#18
sig { params(file: ::RBI::File).void }
def write_empty_body_comment!(file); end
- # source://tapioca//lib/tapioca/rbi_formatter.rb#15
+ # source://tapioca//lib/tapioca/rbi_formatter.rb#9
sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void }
def write_header!(file, command, reason: T.unsafe(nil)); end
end
@@ -2717,60 +2653,60 @@ module Tapioca::RBIHelper
extend ::Tapioca::SorbetHelper
extend ::Tapioca::RBIHelper
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#91
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#83
sig { params(type: ::String).returns(::String) }
def as_nilable_type(type); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#92
sig { params(type: ::String).returns(::String) }
def as_non_nilable_type(type); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#64
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
def create_block_param(name, type:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#62
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#54
sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
def create_kw_opt_param(name, type:, default:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#57
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#49
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
def create_kw_param(name, type:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#67
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#59
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
def create_kw_rest_param(name, type:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#47
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#39
sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
def create_opt_param(name, type:, default:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#42
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#34
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
def create_param(name, type:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#52
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#44
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
def create_rest_param(name, type:); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#77
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#69
sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) }
def create_typed_param(param, type); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#82
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#74
sig { params(sig_string: ::String).returns(::String) }
def sanitize_signature_types(sig_string); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#109
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#101
sig { params(name: ::String).returns(T::Boolean) }
def valid_method_name?(name); end
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#114
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#106
sig { params(name: ::String).returns(T::Boolean) }
def valid_parameter_name?(name); end
class << self
- # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#23
+ # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#15
sig do
params(
type: ::String,
@@ -2786,35 +2722,43 @@ end
# source://tapioca//lib/tapioca/repo_index.rb#5
class Tapioca::RepoIndex
- # source://tapioca//lib/tapioca/repo_index.rb#26
+ # source://tapioca//lib/tapioca/repo_index.rb#24
sig { void }
def initialize; end
- # source://tapioca//lib/tapioca/repo_index.rb#31
+ # source://tapioca//lib/tapioca/repo_index.rb#29
sig { params(gem_name: ::String).void }
def <<(gem_name); end
- # source://tapioca//lib/tapioca/repo_index.rb#36
+ # source://tapioca//lib/tapioca/repo_index.rb#34
sig { returns(T::Enumerable[::String]) }
def gems; end
- # source://tapioca//lib/tapioca/repo_index.rb#41
+ # source://tapioca//lib/tapioca/repo_index.rb#39
sig { params(gem_name: ::String).returns(T::Boolean) }
def has_gem?(gem_name); end
class << self
- # source://tapioca//lib/tapioca/repo_index.rb#18
- sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) }
+ # source://tapioca//lib/tapioca/repo_index.rb#16
+ sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(::Tapioca::RepoIndex) }
def from_hash(hash); end
- # source://tapioca//lib/tapioca/repo_index.rb#13
- sig { params(json: ::String).returns(Tapioca::RepoIndex) }
+ # source://tapioca//lib/tapioca/repo_index.rb#11
+ sig { params(json: ::String).returns(::Tapioca::RepoIndex) }
def from_json(json); end
end
end
# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#5
-module Tapioca::Runtime; end
+module Tapioca::Runtime
+ class << self
+ # source://tapioca//lib/tapioca/runtime/helpers.rb#11
+ def silence_warnings(&blk); end
+
+ # source://tapioca//lib/tapioca/runtime/helpers.rb#22
+ def with_disabled_exits(&block); end
+ end
+end
# This module should only be included when running versions of Ruby
# older than 3.2. Because the Class#attached_object method is not
@@ -2822,7 +2766,6 @@ module Tapioca::Runtime; end
# class by iterating through ObjectSpace.
module Tapioca::Runtime::AttachedClassOf
# source://tapioca//lib/tapioca/runtime/attached_class_of_32.rb#14
- sig { params(singleton_class: ::Class).returns(T.nilable(::Module)) }
def attached_class_of(singleton_class); end
end
@@ -2831,65 +2774,54 @@ class Tapioca::Runtime::DynamicMixinCompiler
include ::Tapioca::Runtime::AttachedClassOf
include ::Tapioca::Runtime::Reflection
+ # @return [DynamicMixinCompiler] a new instance of DynamicMixinCompiler
+ #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#20
- sig { params(constant: ::Module).void }
def initialize(constant); end
- # @return [Array]
- #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14
def class_attribute_predicates; end
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14
- sig { returns(T::Array[::Symbol]) }
def class_attribute_readers; end
- # @return [Array]
- #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14
def class_attribute_writers; end
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#137
- sig { params(tree: ::RBI::Tree).void }
def compile_class_attributes(tree); end
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#180
- sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) }
def compile_mixes_in_class_methods(tree); end
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11
- sig { returns(T::Array[::Module]) }
def dynamic_extends; end
- # @return [Array]
- #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11
def dynamic_includes; end
+ # @return [Boolean]
+ #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#132
- sig { returns(T::Boolean) }
def empty_attributes?; end
+ # @return [Boolean]
+ #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#222
- sig { params(qualified_mixin_name: ::String).returns(T::Boolean) }
def filtered_mixin?(qualified_mixin_name); end
- # @return [Array]
- #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17
def instance_attribute_predicates; end
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17
- sig { returns(T::Array[::Symbol]) }
def instance_attribute_readers; end
- # @return [Array]
- #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17
def instance_attribute_writers; end
+ # @return [Boolean]
+ #
# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#215
- sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) }
def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end
end
@@ -2914,12 +2846,12 @@ end
# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#23
module Tapioca::Runtime::GenericTypeRegistry
class << self
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80
- sig { params(instance: ::Object).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#75
def generic_type_instance?(instance); end
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#85
- sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) }
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80
def lookup_type_variables(constant); end
# This method is responsible for building the name of the instantiated concrete type
@@ -2934,8 +2866,7 @@ module Tapioca::Runtime::GenericTypeRegistry
#
# This method returns the created or cached clone of the constant.
#
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#65
- sig { params(constant: T.untyped, types: T.untyped).returns(::Module) }
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#60
def register_type(constant, types); end
# This method is called from intercepted calls to `type_member` and `type_template`.
@@ -2948,70 +2879,69 @@ module Tapioca::Runtime::GenericTypeRegistry
# Finally, the original `type_variable` is returned from this method, so that the caller
# can return it from the original methods as well.
#
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#104
- sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void }
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#94
def register_type_variable(constant, type_variable); end
private
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#113
- sig { params(constant: ::Module, name: ::String).returns(::Module) }
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#103
def create_generic_type(constant, name); end
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#155
- sig { params(constant: T::Class[T.anything]).returns(T::Class[T.anything]) }
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#145
def create_safe_subclass(constant); end
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#182
- sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) }
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#172
def lookup_or_initialize_type_variables(constant); end
end
end
-# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#34
+# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#28
class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#38
- sig { params(raw_type: ::Module, underlying_type: ::Module).void }
+ # @return [GenericType] a new instance of GenericType
+ #
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#32
def initialize(raw_type, underlying_type); end
- # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45
- sig { override.params(obj: T.untyped).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#40
def valid?(obj); end
end
+# source://tapioca//lib/tapioca/runtime/helpers.rb#6
+Tapioca::Runtime::NOOP_METHOD = T.let(T.unsafe(nil), Proc)
+
module Tapioca::Runtime::Reflection
include ::Tapioca::Runtime::AttachedClassOf
extend ::Tapioca::Runtime::AttachedClassOf
extend ::Tapioca::Runtime::Reflection
- # source://tapioca//lib/tapioca/runtime/reflection.rb#207
- sig { params(constant: ::Module).returns(T.untyped) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#228
def abstract_type_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#77
- sig { params(constant: ::Module).returns(T::Array[::Module]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#75
def ancestors_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#92
- sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#90
def are_equal?(object, other); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#56
- sig { params(object: ::BasicObject).returns(T::Class[T.anything]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#54
def class_of(object); end
- # @param constant [BasicObject]
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#179
+ def const_source_location(constant_name); end
+
# @return [Boolean]
#
- # source://tapioca//lib/tapioca/runtime/reflection.rb#38
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#41
def constant_defined?(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#49
- sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#47
def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#61
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#59
def constants_of(constant); end
# Returns an array with all classes that are < than the supplied class.
@@ -3028,57 +2958,42 @@ module Tapioca::Runtime::Reflection
# class D < C; end
# descendants_of(C) # => [B, A, D]
#
- # source://tapioca//lib/tapioca/runtime/reflection.rb#172
- sig do
- type_parameters(:U)
- .params(
- klass: T.all(T.type_parameter(:U), T::Class[T.anything])
- ).returns(T::Array[T.type_parameter(:U)])
- end
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#170
def descendants_of(klass); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#200
- sig { params(constant: ::Module).returns(T::Set[::String]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#221
def file_candidates_for(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#213
- sig { params(constant: ::Module).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#234
def final_module?(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#112
- sig { params(constant: ::Module).returns(T::Array[::Module]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#110
def inherited_ancestors_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#150
- sig { params(constant: ::Module, method: ::Symbol).returns(::Method) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#152
def method_of(constant, method); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#66
- sig { params(constant: ::Module).returns(T.nilable(::String)) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#64
def name_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#145
- sig { params(type: ::T::Types::Base).returns(::String) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#147
def name_of_type(type); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#87
- sig { params(object: ::BasicObject).returns(::Integer) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#85
def object_id_of(object); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#107
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#105
def private_instance_methods_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#102
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#100
def protected_instance_methods_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#97
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#95
def public_instance_methods_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#121
- sig { params(constant: ::Module).returns(T.nilable(::String)) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#119
def qualified_name_of(constant); end
# Examines the call stack to identify the closest location where a "require" is performed
@@ -3086,110 +3001,128 @@ module Tapioca::Runtime::Reflection
# case of an ActiveSupport.on_load hook. If none is found, it returns the location
# labeled "", which is the original call site.
#
- # source://tapioca//lib/tapioca/runtime/reflection.rb#185
- sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#192
def resolve_loc(locations); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#218
- sig { params(constant: ::Module).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#239
def sealed_module?(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#138
- sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#140
def signature_of(method); end
# source://tapioca//lib/tapioca/runtime/reflection.rb#133
- sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) }
def signature_of!(method); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#72
- sig { params(constant: ::Module).returns(T::Class[T.anything]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#70
def singleton_class_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#82
- sig { params(constant: T::Class[T.anything]).returns(T.nilable(T::Class[T.anything])) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#80
def superclass_of(constant); end
private
- # source://tapioca//lib/tapioca/runtime/reflection.rb#255
- sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#276
def child_module_for_parent_with_name(parent, name); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#271
- sig { params(name: ::String).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#292
def has_aliased_namespace?(name); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#266
- sig { params(method: ::UnboundMethod).returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#287
def method_defined_by_forwardable_module?(method); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#241
- sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#262
def methods_for(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#225
- sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) }
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#246
def relevant_methods_for(constant); end
end
-# source://tapioca//lib/tapioca/runtime/reflection.rb#25
+# source://tapioca//lib/tapioca/runtime/reflection.rb#27
Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#21
+# source://tapioca//lib/tapioca/runtime/reflection.rb#23
Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#22
+# source://tapioca//lib/tapioca/runtime/reflection.rb#24
Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#28
+# source://tapioca//lib/tapioca/runtime/reflection.rb#30
Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#32
+# source://tapioca//lib/tapioca/runtime/reflection.rb#34
Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#23
+# source://tapioca//lib/tapioca/runtime/reflection.rb#25
Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#27
+# source://tapioca//lib/tapioca/runtime/reflection.rb#29
Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#31
+# source://tapioca//lib/tapioca/runtime/reflection.rb#33
Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#30
+# source://tapioca//lib/tapioca/runtime/reflection.rb#32
Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#29
+# source://tapioca//lib/tapioca/runtime/reflection.rb#31
Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#35
+# source://tapioca//lib/tapioca/runtime/reflection.rb#37
Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#24
+# source://tapioca//lib/tapioca/runtime/reflection.rb#26
Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
-# source://tapioca//lib/tapioca/runtime/reflection.rb#26
+# source://tapioca//lib/tapioca/runtime/reflection.rb#28
Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
+class Tapioca::Runtime::Reflection::SignatureBlockError < ::Tapioca::Error; end
+
+class Tapioca::Runtime::SourceLocation
+ # @return [SourceLocation] a new instance of SourceLocation
+ #
+ # source://tapioca//lib/tapioca/runtime/source_location.rb#18
+ def initialize(file:, line:); end
+
+ # source://tapioca//lib/tapioca/runtime/source_location.rb#13
+ def file; end
+
+ # source://tapioca//lib/tapioca/runtime/source_location.rb#16
+ def line; end
+
+ class << self
+ # source://tapioca//lib/tapioca/runtime/source_location.rb#38
+ def from_loc(loc); end
+
+ private
+
+ def new(*_arg0); end
+ end
+end
+
+# this looks something like:
+# "(eval at /path/to/file.rb:123)"
+# and we are interested in the "/path/to/file.rb" and "123" parts
+#
+# source://tapioca//lib/tapioca/runtime/source_location.rb#10
+Tapioca::Runtime::SourceLocation::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp)
+
# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#6
module Tapioca::Runtime::Trackers
class << self
- # source://tapioca//lib/tapioca/runtime/trackers.rb#34
- sig { void }
+ # source://tapioca//lib/tapioca/runtime/trackers.rb#30
def disable_all!; end
- # source://tapioca//lib/tapioca/runtime/trackers.rb#39
- sig { params(tracker: ::Tapioca::Runtime::Trackers::Tracker).void }
+ # source://tapioca//lib/tapioca/runtime/trackers.rb#35
def register_tracker(tracker); end
- # source://tapioca//lib/tapioca/runtime/trackers.rb#21
- sig do
- type_parameters(:Return)
- .params(
- blk: T.proc.returns(T.type_parameter(:Return))
- ).returns(T.type_parameter(:Return))
- end
+ # source://tapioca//lib/tapioca/runtime/trackers.rb#17
def with_trackers_enabled(&blk); end
end
end
@@ -3199,28 +3132,14 @@ module Tapioca::Runtime::Trackers::Autoload
extend ::Tapioca::Runtime::Trackers::Tracker
class << self
- # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#19
- sig { void }
+ # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#17
def eager_load_all!; end
- # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#31
- sig { params(constant_name: ::String).void }
+ # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#29
def register(constant_name); end
-
- # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#42
- sig do
- type_parameters(:Result)
- .params(
- block: T.proc.returns(T.type_parameter(:Result))
- ).returns(T.type_parameter(:Result))
- end
- def with_disabled_exits(&block); end
end
end
-# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#11
-Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc)
-
# Registers a TracePoint immediately upon load to track points at which
# classes and modules are opened for definition. This is used to track
# correspondence between classes/modules and files, as this information isn't
@@ -3232,7 +3151,7 @@ module Tapioca::Runtime::Trackers::ConstantDefinition
class << self
# source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#61
- def build_constant_location(tp, locations); end
+ def build_source_location(tp, locations); end
# source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#55
def disable!; end
@@ -3241,71 +3160,57 @@ module Tapioca::Runtime::Trackers::ConstantDefinition
# about situations where the class was opened prior to +require+ing,
# or where metaprogramming was used via +eval+, etc.
#
- # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#71
+ # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#74
def files_for(klass); end
- # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#75
+ # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#79
def locations_for(klass); end
end
end
+# source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#7
+module Tapioca::Runtime::Trackers::MethodDefinition
+ extend ::Tapioca::Runtime::Trackers::Tracker
+
+ class << self
+ # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#29
+ def method_definitions_for(method_name, owner); end
+
+ # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#15
+ def register(method_name, owner, locations); end
+
+ private
+
+ # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#43
+ def registrations_for(method_name, owner); end
+ end
+end
+
module Tapioca::Runtime::Trackers::Mixin
extend ::Tapioca::Runtime::Trackers::Tracker
class << self
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#56
- sig do
- params(
- mixin: ::Module
- ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]])
- end
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#53
def constants_with_mixin(mixin); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#61
- sig do
- params(
- mixin: ::Module,
- mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type,
- constant: ::Module
- ).returns(T.nilable(::String))
- end
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#58
def mixin_location(mixin, mixin_type, constant); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#35
- sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void }
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#31
def register(constant, mixin, mixin_type); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#43
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#40
def resolve_to_attached_class(constant, mixin, mixin_type); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#30
- sig do
- type_parameters(:Result)
- .params(
- block: T.proc.returns(T.type_parameter(:Result))
- ).returns(T.type_parameter(:Result))
- end
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#26
def with_disabled_registration(&block); end
private
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#76
- sig do
- params(
- mixin: ::Module
- ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]])
- end
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#73
def find_or_initialize_mixin_lookup(mixin); end
- # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#68
- sig do
- params(
- constant: ::Module,
- mixin: ::Module,
- mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type,
- location: ::String
- ).void
- end
+ # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#65
def register_with_location(constant, mixin, mixin_type, location); end
end
end
@@ -3324,109 +3229,102 @@ module Tapioca::Runtime::Trackers::RequiredAncestor
class << self
# source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#15
- sig { params(requiring: ::T::Helpers, block: T.proc.void).void }
def register(requiring, block); end
# source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#23
- sig { params(mod: ::Module).returns(T::Array[T.proc.void]) }
def required_ancestors_blocks_by(mod); end
# source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#28
- sig { params(mod: ::Module).returns(T::Array[T.untyped]) }
def required_ancestors_by(mod); end
end
end
-# @abstract Subclasses must implement the `abstract` methods below.
+# @abstract
module Tapioca::Runtime::Trackers::Tracker
- abstract!
-
- # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#26
- sig { void }
+ # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#23
def disable!; end
# @return [Boolean]
#
- # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#30
+ # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#27
def enabled?; end
- # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#34
+ # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#31
def with_disabled_tracker(&block); end
class << self
- # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#17
- sig { params(base: T.all(::Module, ::Tapioca::Runtime::Trackers::Tracker)).void }
+ # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#14
def extended(base); end
end
end
-# source://tapioca//lib/tapioca.rb#35
+# source://tapioca//lib/tapioca.rb#16
Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#34
+# source://tapioca//lib/tapioca.rb#15
Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5
module Tapioca::SorbetHelper
- # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#32
+ # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#23
sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) }
def sorbet(*sorbet_args); end
- # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#37
+ # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#28
sig { returns(::String) }
def sorbet_path; end
- # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#44
+ # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#35
sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) }
def sorbet_supports?(feature, version: T.unsafe(nil)); end
end
-# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#24
+# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18
Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash)
-# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#13
+# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#10
Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname)
-# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18
+# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#12
Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#8
Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification)
-# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#20
+# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#14
Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#22
+# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#16
Tapioca::SorbetHelper::SPOOM_CONTEXT = T.let(T.unsafe(nil), Spoom::Context)
# source://tapioca//lib/tapioca/helpers/source_uri.rb#7
class Tapioca::SourceURI < ::URI::File
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#72
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#62
sig { params(v: T.nilable(::String)).returns(T::Boolean) }
def check_host(v); end
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#55
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#45
sig { returns(T.nilable(::String)) }
def gem_name; end
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#29
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#26
sig { returns(T.nilable(::String)) }
def gem_version; end
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#60
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#50
sig { returns(T.nilable(::String)) }
def line_number; end
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#65
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#55
sig { params(v: T.nilable(::String)).void }
def set_path(v); end
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#84
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#74
sig { returns(::String) }
def to_s; end
class << self
- # source://tapioca//lib/tapioca/helpers/source_uri.rb#42
+ # source://tapioca//lib/tapioca/helpers/source_uri.rb#32
sig do
params(
gem_name: ::String,
@@ -3448,7 +3346,7 @@ Tapioca::SourceURI::COMPONENT = T.let(T.unsafe(nil), Array)
# handling to select a parser that doesn't emit deprecations. While it was backported to Ruby 3.1, users may
# have the uri gem in their own bundle and thus not use a compatible version.
#
-# source://tapioca//lib/tapioca/helpers/source_uri.rb#26
+# source://tapioca//lib/tapioca/helpers/source_uri.rb#23
Tapioca::SourceURI::PARSER = T.let(T.unsafe(nil), URI::RFC2396_Parser)
# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#5
@@ -3508,12 +3406,10 @@ module Tapioca::Static::SymbolLoader
private
- # @return [Array]
- #
- # source://tapioca//lib/tapioca/static/symbol_loader.rb#71
+ # source://tapioca//lib/tapioca/static/symbol_loader.rb#72
def engines; end
- # source://tapioca//lib/tapioca/static/symbol_loader.rb#84
+ # source://tapioca//lib/tapioca/static/symbol_loader.rb#82
sig { params(input: ::String, table_type: ::String).returns(::String) }
def symbol_table_json_from(input, table_type: T.unsafe(nil)); end
end
@@ -3547,10 +3443,10 @@ end
# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9
Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array)
-# source://tapioca//lib/tapioca.rb#37
+# source://tapioca//lib/tapioca.rb#18
Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String)
-# source://tapioca//lib/tapioca.rb#36
+# source://tapioca//lib/tapioca.rb#17
Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String)
# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#108
@@ -3574,41 +3470,31 @@ end
#
# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#122
class Tapioca::TypeVariableModule < ::Module
- # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#146
- sig do
- params(
- context: ::Module,
- type: ::Tapioca::TypeVariableModule::Type,
- variance: ::Symbol,
- bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped]))
- ).void
- end
+ # @return [TypeVariableModule] a new instance of TypeVariableModule
+ #
+ # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#139
def initialize(context, type, variance, bounds_proc); end
- # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#181
- sig { returns(::Tapioca::TypeVariable) }
+ # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#175
def coerce_to_type_variable; end
- # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#161
- sig { returns(T::Boolean) }
+ # @return [Boolean]
+ #
+ # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155
def fixed?; end
- # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155
- sig { returns(T.nilable(::String)) }
+ # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#149
def name; end
- # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#166
- sig { returns(::String) }
+ # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#160
def serialize; end
# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#136
- sig { returns(::Tapioca::TypeVariableModule::Type) }
def type; end
private
- # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#188
- sig { returns(T::Hash[::Symbol, T.untyped]) }
+ # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#182
def bounds; end
end
diff --git a/sorbet/rbi/gems/thor@1.4.0.rbi b/sorbet/rbi/gems/thor@1.4.0.rbi
index fd386112..e5184890 100644
--- a/sorbet/rbi/gems/thor@1.4.0.rbi
+++ b/sorbet/rbi/gems/thor@1.4.0.rbi
@@ -78,7 +78,7 @@ class Thor
#
# Then it is required either only one of "--one" or "--two".
#
- # source://thor//lib/thor.rb#246
+ # source://thor//lib/thor.rb#250
def at_least_one(*args, &block); end
# Extend check unknown options to accept a hash of conditions.
@@ -131,7 +131,7 @@ class Thor
# ==== Parameters
# meth:: name of the default command
#
- # source://thor//lib/thor.rb#21
+ # source://thor//lib/thor.rb#28
def default_task(meth = T.unsafe(nil)); end
# source://thor//lib/thor/base.rb#26
@@ -188,7 +188,7 @@ class Thor
# If you give "--one" and "--two" at the same time ExclusiveArgumentsError
# will be raised.
#
- # source://thor//lib/thor.rb#203
+ # source://thor//lib/thor.rb#207
def exclusive(*args, &block); end
# Prints help information for this class.
@@ -364,7 +364,7 @@ class Thor
# :banner - String to show on usage notes.
# :hide - If you want to hide this option from the help.
#
- # source://thor//lib/thor.rb#163
+ # source://thor//lib/thor.rb#175
def option(name, options = T.unsafe(nil)); end
# Declares the options for the next command to be declared.
@@ -374,7 +374,7 @@ class Thor
# is the type of the option. Can be :string, :array, :hash, :boolean, :numeric
# or :required (string). If you give a value, the type of the value is used.
#
- # source://thor//lib/thor.rb#129
+ # source://thor//lib/thor.rb#135
def options(options = T.unsafe(nil)); end
# Allows for custom "Command" package naming.
@@ -393,7 +393,7 @@ class Thor
# Returns commands ready to be printed.
#
- # source://thor//lib/thor.rb#309
+ # source://thor//lib/thor.rb#318
def printable_tasks(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end
# Registers another Thor subclass as a command.
@@ -462,10 +462,10 @@ class Thor
# source://thor//lib/thor.rb#320
def subcommands; end
- # source://thor//lib/thor.rb#329
+ # source://thor//lib/thor.rb#344
def subtask(subcommand, subcommand_class); end
- # source://thor//lib/thor.rb#320
+ # source://thor//lib/thor.rb#323
def subtasks; end
# Prints help information for the given command.
@@ -474,7 +474,7 @@ class Thor
# shell
# command_name
#
- # source://thor//lib/thor.rb#258
+ # source://thor//lib/thor.rb#281
def task_help(shell, command_name); end
protected
@@ -493,7 +493,7 @@ class Thor
# source://thor//lib/thor.rb#560
def create_command(meth); end
- # source://thor//lib/thor.rb#560
+ # source://thor//lib/thor.rb#584
def create_task(meth); end
# help command has the required check disabled by default.
@@ -522,7 +522,7 @@ class Thor
# and determines whether it is an unambiguous substrings of a command or
# alias name.
#
- # source://thor//lib/thor.rb#626
+ # source://thor//lib/thor.rb#639
def find_task_possibilities(meth); end
# source://thor//lib/thor.rb#586
@@ -567,7 +567,7 @@ class Thor
#
# @raise [AmbiguousTaskError]
#
- # source://thor//lib/thor.rb#605
+ # source://thor//lib/thor.rb#621
def normalize_task_name(meth); end
# source://thor//lib/thor.rb#493
@@ -583,7 +583,7 @@ class Thor
# Retrieve the command name from given args.
#
- # source://thor//lib/thor.rb#592
+ # source://thor//lib/thor.rb#596
def retrieve_task_name(args); end
# Sort the commands, lexicographically by default.
@@ -600,7 +600,7 @@ class Thor
# source://thor//lib/thor.rb#641
def subcommand_help(cmd); end
- # source://thor//lib/thor.rb#641
+ # source://thor//lib/thor.rb#647
def subtask_help(cmd); end
end
end
@@ -643,7 +643,7 @@ module Thor::Actions
#
# create_file "config/apache.conf", "your apache config"
#
- # source://thor//lib/thor/actions/create_file.rb#22
+ # source://thor//lib/thor/actions/create_file.rb#27
def add_file(destination, *args, &block); end
# Create a new file relative to the destination root from the given source.
@@ -658,7 +658,7 @@ module Thor::Actions
#
# create_link "config/apache.conf", "/etc/apache.conf"
#
- # source://thor//lib/thor/actions/create_link.rb#17
+ # source://thor//lib/thor/actions/create_link.rb#22
def add_link(destination, *args); end
# Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -676,7 +676,7 @@ module Thor::Actions
# 'config.gem "rspec"'
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#192
+ # source://thor//lib/thor/actions/file_manipulation.rb#197
def append_file(path, *args, &block); end
# Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -977,7 +977,7 @@ module Thor::Actions
# source://thor//lib/thor/actions/file_manipulation.rb#216
def inject_into_class(path, klass, *args, &block); end
- # source://thor//lib/thor/actions/inject_into_file.rb#26
+ # source://thor//lib/thor/actions/inject_into_file.rb#34
def inject_into_file(destination, *args, &block); end
# Injects text right after the module definition. Since it depends on
@@ -1049,7 +1049,7 @@ module Thor::Actions
# 'config.gem "rspec"'
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#170
+ # source://thor//lib/thor/actions/file_manipulation.rb#175
def prepend_file(path, *args, &block); end
# Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -1087,7 +1087,7 @@ module Thor::Actions
# remove_file 'README'
# remove_file 'app/controllers/application_controller.rb'
#
- # source://thor//lib/thor/actions/file_manipulation.rb#350
+ # source://thor//lib/thor/actions/file_manipulation.rb#360
def remove_dir(path, config = T.unsafe(nil)); end
# Removes a file at the given location.
@@ -1592,7 +1592,7 @@ class Thor::Argument
# Returns the value of attribute name.
#
- # source://thor//lib/thor/parser/argument.rb#5
+ # source://thor//lib/thor/parser/argument.rb#6
def human_name; end
# Returns the value of attribute name.
@@ -1876,7 +1876,7 @@ module Thor::Base::ClassMethods
# Hash:: An ordered hash with commands names as keys and Thor::Command
# objects as values.
#
- # source://thor//lib/thor/base.rb#482
+ # source://thor//lib/thor/base.rb#486
def all_tasks; end
# If you want to use defaults that don't match the type of an option,
@@ -2114,7 +2114,7 @@ module Thor::Base::ClassMethods
# @raise [UndefinedCommandError]
#
- # source://thor//lib/thor/base.rb#613
+ # source://thor//lib/thor/base.rb#616
def handle_no_task_error(command, has_namespace = T.unsafe(nil)); end
# Sets the namespace for the Thor or Thor::Group class. By default the
@@ -2191,7 +2191,7 @@ module Thor::Base::ClassMethods
# remove_command :this_is_not_a_command
# end
#
- # source://thor//lib/thor/base.rb#530
+ # source://thor//lib/thor/base.rb#534
def no_tasks(&block); end
# Allows to use private methods from parent in child classes as commands.
@@ -2217,7 +2217,7 @@ module Thor::Base::ClassMethods
# public_command :foo
# public_command :foo, :bar, :baz
#
- # source://thor//lib/thor/base.rb#606
+ # source://thor//lib/thor/base.rb#611
def public_task(*names); end
# Removes a previous defined argument. If :undefine is given, undefine
@@ -2274,7 +2274,7 @@ module Thor::Base::ClassMethods
# options:: You can give :undefine => true if you want commands the method
# to be undefined from the class as well.
#
- # source://thor//lib/thor/base.rb#500
+ # source://thor//lib/thor/base.rb#509
def remove_task(*names); end
# Parses the command and options from the given args, instantiate the class
@@ -2318,7 +2318,7 @@ module Thor::Base::ClassMethods
# Hash:: An ordered hash with commands names as keys and Thor::Command
# objects as values.
#
- # source://thor//lib/thor/base.rb#471
+ # source://thor//lib/thor/base.rb#474
def tasks; end
protected
@@ -2381,7 +2381,7 @@ module Thor::Base::ClassMethods
# SIGNATURE: Creates a new command if valid_command? is true. This method is
# called when a new method is added to the class.
#
- # source://thor//lib/thor/base.rb#782
+ # source://thor//lib/thor/base.rb#784
def create_task(meth); end
# SIGNATURE: The hook invoked by start.
@@ -2402,7 +2402,7 @@ module Thor::Base::ClassMethods
# class, just return it, otherwise dup it and add the fresh copy to the
# current command hash.
#
- # source://thor//lib/thor/base.rb#708
+ # source://thor//lib/thor/base.rb#717
def find_and_refresh_task(name); end
# Retrieves a value from superclass. If it reaches the baseclass,
@@ -2780,7 +2780,7 @@ class Thor::Group
# Returns commands ready to be printed.
#
- # source://thor//lib/thor/group.rb#199
+ # source://thor//lib/thor/group.rb#205
def printable_tasks(*_arg0); end
# Remove a previously added invocation.
@@ -2806,7 +2806,7 @@ class Thor::Group
# source://thor//lib/thor/group.rb#263
def create_command(meth); end
- # source://thor//lib/thor/group.rb#263
+ # source://thor//lib/thor/group.rb#267
def create_task(meth); end
# The method responsible for dispatching given the args.
@@ -2823,7 +2823,7 @@ class Thor::Group
# Represents the whole class as a command.
#
- # source://thor//lib/thor/group.rb#254
+ # source://thor//lib/thor/group.rb#257
def self_task; end
end
end
@@ -2943,7 +2943,7 @@ module Thor::Invocation
# Invoke the given command if the given args.
#
- # source://thor//lib/thor/invocation.rb#122
+ # source://thor//lib/thor/invocation.rb#130
def invoke_task(command, *args); end
# Invokes using shell padding.
@@ -2971,7 +2971,7 @@ module Thor::Invocation
# use the given name and return self as class. Otherwise, call
# prepare_for_invocation in the current class.
#
- # source://thor//lib/thor/invocation.rb#153
+ # source://thor//lib/thor/invocation.rb#163
def _retrieve_class_and_task(name, sent_command = T.unsafe(nil)); end
# Configuration values that are shared between invocations.
@@ -3152,10 +3152,10 @@ class Thor::Option < ::Thor::Argument
# source://thor//lib/thor/parser/option.rb#99
def aliases_for_usage; end
- # source://thor//lib/thor/parser/option.rb#118
+ # source://thor//lib/thor/parser/option.rb#117
def array?; end
- # source://thor//lib/thor/parser/option.rb#118
+ # source://thor//lib/thor/parser/option.rb#117
def boolean?; end
# Returns the value of attribute group.
@@ -3163,7 +3163,7 @@ class Thor::Option < ::Thor::Argument
# source://thor//lib/thor/parser/option.rb#3
def group; end
- # source://thor//lib/thor/parser/option.rb#118
+ # source://thor//lib/thor/parser/option.rb#117
def hash?; end
# Returns the value of attribute hide.
@@ -3179,7 +3179,7 @@ class Thor::Option < ::Thor::Argument
# source://thor//lib/thor/parser/option.rb#3
def lazy_default; end
- # source://thor//lib/thor/parser/option.rb#118
+ # source://thor//lib/thor/parser/option.rb#117
def numeric?; end
# Returns the value of attribute repeatable.
@@ -3192,7 +3192,7 @@ class Thor::Option < ::Thor::Argument
# source://thor//lib/thor/parser/option.rb#107
def show_default?; end
- # source://thor//lib/thor/parser/option.rb#118
+ # source://thor//lib/thor/parser/option.rb#117
def string?; end
# source://thor//lib/thor/parser/option.rb#75
@@ -3445,37 +3445,37 @@ module Thor::Shell
# source://thor//lib/thor/shell.rb#44
def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def ask(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def error(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def file_collision(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def no?(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def print_in_columns(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def print_table(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def print_wrapped(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def say(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def say_error(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def say_status(*args, &block); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def set_color(*args, &block); end
# Holds the shell for the given Thor instance. If no shell is given,
@@ -3491,7 +3491,7 @@ module Thor::Shell
# source://thor//lib/thor/shell.rb#25
def shell=(_arg0); end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def terminal_width(*args, &block); end
# Yields the given block with padding.
@@ -3499,7 +3499,7 @@ module Thor::Shell
# source://thor//lib/thor/shell.rb#66
def with_padding; end
- # source://thor//lib/thor/shell.rb#59
+ # source://thor//lib/thor/shell.rb#58
def yes?(*args, &block); end
protected
@@ -4313,7 +4313,7 @@ module Thor::Util
# ==== Parameters
# namespace
#
- # source://thor//lib/thor/util.rb#131
+ # source://thor//lib/thor/util.rb#148
def find_class_and_task_by_namespace(namespace, fallback = T.unsafe(nil)); end
# Where to look for Thor files.
diff --git a/sorbet/rbi/gems/tsort@0.2.0.rbi b/sorbet/rbi/gems/tsort@0.2.0.rbi
new file mode 100644
index 00000000..b3078cf1
--- /dev/null
+++ b/sorbet/rbi/gems/tsort@0.2.0.rbi
@@ -0,0 +1,393 @@
+# typed: true
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `tsort` gem.
+# Please instead update this file by running `bin/tapioca gem tsort`.
+
+
+# TSort implements topological sorting using Tarjan's algorithm for
+# strongly connected components.
+#
+# TSort is designed to be able to be used with any object which can be
+# interpreted as a directed graph.
+#
+# TSort requires two methods to interpret an object as a graph,
+# tsort_each_node and tsort_each_child.
+#
+# * tsort_each_node is used to iterate for all nodes over a graph.
+# * tsort_each_child is used to iterate for child nodes of a given node.
+#
+# The equality of nodes are defined by eql? and hash since
+# TSort uses Hash internally.
+#
+# == A Simple Example
+#
+# The following example demonstrates how to mix the TSort module into an
+# existing class (in this case, Hash). Here, we're treating each key in
+# the hash as a node in the graph, and so we simply alias the required
+# #tsort_each_node method to Hash's #each_key method. For each key in the
+# hash, the associated value is an array of the node's child nodes. This
+# choice in turn leads to our implementation of the required #tsort_each_child
+# method, which fetches the array of child nodes and then iterates over that
+# array using the user-supplied block.
+#
+# require 'tsort'
+#
+# class Hash
+# include TSort
+# alias tsort_each_node each_key
+# def tsort_each_child(node, &block)
+# fetch(node).each(&block)
+# end
+# end
+#
+# {1=>[2, 3], 2=>[3], 3=>[], 4=>[]}.tsort
+# #=> [3, 2, 1, 4]
+#
+# {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
+# #=> [[4], [2, 3], [1]]
+#
+# == A More Realistic Example
+#
+# A very simple `make' like tool can be implemented as follows:
+#
+# require 'tsort'
+#
+# class Make
+# def initialize
+# @dep = {}
+# @dep.default = []
+# end
+#
+# def rule(outputs, inputs=[], &block)
+# triple = [outputs, inputs, block]
+# outputs.each {|f| @dep[f] = [triple]}
+# @dep[triple] = inputs
+# end
+#
+# def build(target)
+# each_strongly_connected_component_from(target) {|ns|
+# if ns.length != 1
+# fs = ns.delete_if {|n| Array === n}
+# raise TSort::Cyclic.new("cyclic dependencies: #{fs.join ', '}")
+# end
+# n = ns.first
+# if Array === n
+# outputs, inputs, block = n
+# inputs_time = inputs.map {|f| File.mtime f}.max
+# begin
+# outputs_time = outputs.map {|f| File.mtime f}.min
+# rescue Errno::ENOENT
+# outputs_time = nil
+# end
+# if outputs_time == nil ||
+# inputs_time != nil && outputs_time <= inputs_time
+# sleep 1 if inputs_time != nil && inputs_time.to_i == Time.now.to_i
+# block.call
+# end
+# end
+# }
+# end
+#
+# def tsort_each_child(node, &block)
+# @dep[node].each(&block)
+# end
+# include TSort
+# end
+#
+# def command(arg)
+# print arg, "\n"
+# system arg
+# end
+#
+# m = Make.new
+# m.rule(%w[t1]) { command 'date > t1' }
+# m.rule(%w[t2]) { command 'date > t2' }
+# m.rule(%w[t3]) { command 'date > t3' }
+# m.rule(%w[t4], %w[t1 t3]) { command 'cat t1 t3 > t4' }
+# m.rule(%w[t5], %w[t4 t2]) { command 'cat t4 t2 > t5' }
+# m.build('t5')
+#
+# == Bugs
+#
+# * 'tsort.rb' is wrong name because this library uses
+# Tarjan's algorithm for strongly connected components.
+# Although 'strongly_connected_components.rb' is correct but too long.
+#
+# == References
+#
+# R. E. Tarjan, "Depth First Search and Linear Graph Algorithms",
+# SIAM Journal on Computing , Vol. 1, No. 2, pp. 146-160, June 1972.
+#
+# source://tsort//lib/tsort.rb#124
+module TSort
+ # The iterator version of the #strongly_connected_components method.
+ # obj .each_strongly_connected_component is similar to
+ # obj .strongly_connected_components.each , but
+ # modification of _obj_ during the iteration may lead to unexpected results.
+ #
+ # #each_strongly_connected_component returns +nil+.
+ #
+ # class G
+ # include TSort
+ # def initialize(g)
+ # @g = g
+ # end
+ # def tsort_each_child(n, &b) @g[n].each(&b) end
+ # def tsort_each_node(&b) @g.each_key(&b) end
+ # end
+ #
+ # graph = G.new({1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]})
+ # graph.each_strongly_connected_component {|scc| p scc }
+ # #=> [4]
+ # # [2]
+ # # [3]
+ # # [1]
+ #
+ # graph = G.new({1=>[2], 2=>[3, 4], 3=>[2], 4=>[]})
+ # graph.each_strongly_connected_component {|scc| p scc }
+ # #=> [4]
+ # # [2, 3]
+ # # [1]
+ #
+ # source://tsort//lib/tsort.rb#316
+ def each_strongly_connected_component(&block); end
+
+ # Iterates over strongly connected component in the subgraph reachable from
+ # _node_.
+ #
+ # Return value is unspecified.
+ #
+ # #each_strongly_connected_component_from doesn't call #tsort_each_node.
+ #
+ # class G
+ # include TSort
+ # def initialize(g)
+ # @g = g
+ # end
+ # def tsort_each_child(n, &b) @g[n].each(&b) end
+ # def tsort_each_node(&b) @g.each_key(&b) end
+ # end
+ #
+ # graph = G.new({1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]})
+ # graph.each_strongly_connected_component_from(2) {|scc| p scc }
+ # #=> [4]
+ # # [2]
+ #
+ # graph = G.new({1=>[2], 2=>[3, 4], 3=>[2], 4=>[]})
+ # graph.each_strongly_connected_component_from(2) {|scc| p scc }
+ # #=> [4]
+ # # [2, 3]
+ #
+ # source://tsort//lib/tsort.rb#386
+ def each_strongly_connected_component_from(node, id_map = T.unsafe(nil), stack = T.unsafe(nil), &block); end
+
+ # Returns strongly connected components as an array of arrays of nodes.
+ # The array is sorted from children to parents.
+ # Each elements of the array represents a strongly connected component.
+ #
+ # class G
+ # include TSort
+ # def initialize(g)
+ # @g = g
+ # end
+ # def tsort_each_child(n, &b) @g[n].each(&b) end
+ # def tsort_each_node(&b) @g.each_key(&b) end
+ # end
+ #
+ # graph = G.new({1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]})
+ # p graph.strongly_connected_components #=> [[4], [2], [3], [1]]
+ #
+ # graph = G.new({1=>[2], 2=>[3, 4], 3=>[2], 4=>[]})
+ # p graph.strongly_connected_components #=> [[4], [2, 3], [1]]
+ #
+ # source://tsort//lib/tsort.rb#257
+ def strongly_connected_components; end
+
+ # Returns a topologically sorted array of nodes.
+ # The array is sorted from children to parents, i.e.
+ # the first element has no child and the last node has no parent.
+ #
+ # If there is a cycle, TSort::Cyclic is raised.
+ #
+ # class G
+ # include TSort
+ # def initialize(g)
+ # @g = g
+ # end
+ # def tsort_each_child(n, &b) @g[n].each(&b) end
+ # def tsort_each_node(&b) @g.each_key(&b) end
+ # end
+ #
+ # graph = G.new({1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]})
+ # p graph.tsort #=> [4, 2, 3, 1]
+ #
+ # graph = G.new({1=>[2], 2=>[3, 4], 3=>[2], 4=>[]})
+ # p graph.tsort # raises TSort::Cyclic
+ #
+ # source://tsort//lib/tsort.rb#152
+ def tsort; end
+
+ # The iterator version of the #tsort method.
+ # obj .tsort_each is similar to obj .tsort.each , but
+ # modification of _obj_ during the iteration may lead to unexpected results.
+ #
+ # #tsort_each returns +nil+.
+ # If there is a cycle, TSort::Cyclic is raised.
+ #
+ # class G
+ # include TSort
+ # def initialize(g)
+ # @g = g
+ # end
+ # def tsort_each_child(n, &b) @g[n].each(&b) end
+ # def tsort_each_node(&b) @g.each_key(&b) end
+ # end
+ #
+ # graph = G.new({1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]})
+ # graph.tsort_each {|n| p n }
+ # #=> 4
+ # # 2
+ # # 3
+ # # 1
+ #
+ # source://tsort//lib/tsort.rb#205
+ def tsort_each(&block); end
+
+ # Should be implemented by a extended class.
+ #
+ # #tsort_each_child is used to iterate for child nodes of _node_.
+ #
+ # @raise [NotImplementedError]
+ #
+ # source://tsort//lib/tsort.rb#452
+ def tsort_each_child(node); end
+
+ # Should be implemented by a extended class.
+ #
+ # #tsort_each_node is used to iterate for all nodes over a graph.
+ #
+ # @raise [NotImplementedError]
+ #
+ # source://tsort//lib/tsort.rb#444
+ def tsort_each_node; end
+
+ class << self
+ # The iterator version of the TSort.strongly_connected_components method.
+ #
+ # The graph is represented by _each_node_ and _each_child_.
+ # _each_node_ should have +call+ method which yields for each node in the graph.
+ # _each_child_ should have +call+ method which takes a node argument and yields for each child node.
+ #
+ # g = {1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # TSort.each_strongly_connected_component(each_node, each_child) {|scc| p scc }
+ # #=> [4]
+ # # [2]
+ # # [3]
+ # # [1]
+ #
+ # g = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # TSort.each_strongly_connected_component(each_node, each_child) {|scc| p scc }
+ # #=> [4]
+ # # [2, 3]
+ # # [1]
+ #
+ # source://tsort//lib/tsort.rb#345
+ def each_strongly_connected_component(each_node, each_child); end
+
+ # Iterates over strongly connected components in a graph.
+ # The graph is represented by _node_ and _each_child_.
+ #
+ # _node_ is the first node.
+ # _each_child_ should have +call+ method which takes a node argument
+ # and yields for each child node.
+ #
+ # Return value is unspecified.
+ #
+ # #TSort.each_strongly_connected_component_from is a class method and
+ # it doesn't need a class to represent a graph which includes TSort.
+ #
+ # graph = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
+ # each_child = lambda {|n, &b| graph[n].each(&b) }
+ # TSort.each_strongly_connected_component_from(1, each_child) {|scc|
+ # p scc
+ # }
+ # #=> [4]
+ # # [2, 3]
+ # # [1]
+ #
+ # source://tsort//lib/tsort.rb#411
+ def each_strongly_connected_component_from(node, each_child, id_map = T.unsafe(nil), stack = T.unsafe(nil)); end
+
+ # Returns strongly connected components as an array of arrays of nodes.
+ # The array is sorted from children to parents.
+ # Each elements of the array represents a strongly connected component.
+ #
+ # The graph is represented by _each_node_ and _each_child_.
+ # _each_node_ should have +call+ method which yields for each node in the graph.
+ # _each_child_ should have +call+ method which takes a node argument and yields for each child node.
+ #
+ # g = {1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # p TSort.strongly_connected_components(each_node, each_child)
+ # #=> [[4], [2], [3], [1]]
+ #
+ # g = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # p TSort.strongly_connected_components(each_node, each_child)
+ # #=> [[4], [2, 3], [1]]
+ #
+ # source://tsort//lib/tsort.rb#283
+ def strongly_connected_components(each_node, each_child); end
+
+ # Returns a topologically sorted array of nodes.
+ # The array is sorted from children to parents, i.e.
+ # the first element has no child and the last node has no parent.
+ #
+ # The graph is represented by _each_node_ and _each_child_.
+ # _each_node_ should have +call+ method which yields for each node in the graph.
+ # _each_child_ should have +call+ method which takes a node argument and yields for each child node.
+ #
+ # If there is a cycle, TSort::Cyclic is raised.
+ #
+ # g = {1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # p TSort.tsort(each_node, each_child) #=> [4, 2, 3, 1]
+ #
+ # g = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # p TSort.tsort(each_node, each_child) # raises TSort::Cyclic
+ #
+ # source://tsort//lib/tsort.rb#178
+ def tsort(each_node, each_child); end
+
+ # The iterator version of the TSort.tsort method.
+ #
+ # The graph is represented by _each_node_ and _each_child_.
+ # _each_node_ should have +call+ method which yields for each node in the graph.
+ # _each_child_ should have +call+ method which takes a node argument and yields for each child node.
+ #
+ # g = {1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]}
+ # each_node = lambda {|&b| g.each_key(&b) }
+ # each_child = lambda {|n, &b| g[n].each(&b) }
+ # TSort.tsort_each(each_node, each_child) {|n| p n }
+ # #=> 4
+ # # 2
+ # # 3
+ # # 1
+ #
+ # source://tsort//lib/tsort.rb#226
+ def tsort_each(each_node, each_child); end
+ end
+end
+
+# source://tsort//lib/tsort.rb#126
+TSort::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/tzinfo@2.0.6.rbi b/sorbet/rbi/gems/tzinfo@2.0.6.rbi
index 602ac423..57e669e5 100644
--- a/sorbet/rbi/gems/tzinfo@2.0.6.rbi
+++ b/sorbet/rbi/gems/tzinfo@2.0.6.rbi
@@ -33,7 +33,7 @@ end
#
# @private
#
-# source://tzinfo//lib/tzinfo/transition_rule.rb#120
+# source://tzinfo//lib/tzinfo/transition_rule.rb#129
class TZInfo::AbsoluteDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRule
# Initializes a new {AbsoluteDayOfYearTransitionRule}.
#
@@ -68,7 +68,7 @@ class TZInfo::AbsoluteDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRul
# with the same {transition_at} and day as this
# {AbsoluteDayOfYearTransitionRule}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#153
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#156
def eql?(r); end
# @return [Boolean] `true` if the day specified by this transition is the
@@ -125,14 +125,14 @@ class TZInfo::AmbiguousTime < ::StandardError; end
class TZInfo::AnnualRules
# Initializes a new {AnnualRules} instance.
#
- # @param std_offset [TimezoneOffset] the standard offset that applies when
- # daylight savings time is not in force.
+ # @param dst_end_rule [TransitionRule] the rule that determines when daylight
+ # savings time ends.
# @param dst_offset [TimezoneOffset] the offset that applies when daylight
# savings time is in force.
# @param dst_start_rule [TransitionRule] the rule that determines when
# daylight savings time starts.
- # @param dst_end_rule [TransitionRule] the rule that determines when daylight
- # savings time ends.
+ # @param std_offset [TimezoneOffset] the standard offset that applies when
+ # daylight savings time is not in force.
# @return [AnnualRules] a new instance of AnnualRules
#
# source://tzinfo//lib/tzinfo/annual_rules.rb#36
@@ -176,8 +176,8 @@ class TZInfo::AnnualRules
# Applies a given rule between offsets on a year.
#
- # @param rule [TransitionRule] the rule to apply.
# @param from_offset [TimezoneOffset] the offset the rule transitions from.
+ # @param rule [TransitionRule] the rule to apply.
# @param to_offset [TimezoneOffset] the offset the rule transitions to.
# @param year [Integer] the year when the transition occurs.
# @return [TimezoneTransition] the transition determined by the rule.
@@ -346,7 +346,7 @@ class TZInfo::Country
# @return [Array] an `Array` containing the identifier for each time
# zone observed by the country
#
- # source://tzinfo//lib/tzinfo/country.rb#111
+ # source://tzinfo//lib/tzinfo/country.rb#114
def zone_names; end
# Returns An `Array` containing a {Timezone} instance for each time zone
@@ -433,10 +433,10 @@ class TZInfo::CountryTimezone
# {CountryTimezone} instances should normally only be constructed
# by implementations of {DataSource}.
#
+ # @param description [String] an optional description of the time zone.
# @param identifier [String] the {Timezone} identifier.
# @param latitude [Rational] the latitude of the time zone.
# @param longitude [Rational] the longitude of the time zone.
- # @param description [String] an optional description of the time zone.
# @return [CountryTimezone] a new instance of CountryTimezone
#
# source://tzinfo//lib/tzinfo/country_timezone.rb#44
@@ -653,11 +653,11 @@ class TZInfo::DataSource
# {DataSources::CountryInfo} is returned. Otherwise an {InvalidCountryCode}
# exception is raised.
#
- # @param hash [String, DataSources::CountryInfo] a mapping from ISO 3166-1
- # alpha-2 country codes to {DataSources::CountryInfo} instances.
# @param code [String] a country code to lookup.
# @param encoding [Encoding] the encoding used for the country codes in
# `hash`.
+ # @param hash [String, DataSources::CountryInfo] a mapping from ISO 3166-1
+ # alpha-2 country codes to {DataSources::CountryInfo} instances.
# @raise [InvalidCountryCode] if `code` was not found in `hash`.
# @return [DataSources::CountryInfo] the {DataSources::CountryInfo} instance
# corresponding to `code`.
@@ -729,9 +729,9 @@ class TZInfo::DataSource
#
# fails and `string` is already encoded with `encoding`.
#
- # @param string [String] The `String` to perform the operation on.
# @param encoding [Encoding] The `Encoding` to use if the initial attempt
# fails.
+ # @param string [String] The `String` to perform the operation on.
# @return [Object] the result of the operation or `nil` if the first attempt
# @yield [s] the caller will be yielded to once or twice to attempt the
# operation.
@@ -807,10 +807,10 @@ class TZInfo::DataSource
# zoneinfo directory instead (using the search path specified by
# {DataSources::ZoneinfoDataSource.search_path}).
#
- # @param data_source_or_type [Object] either `:ruby`, `:zoneinfo` or an
- # instance of a {DataSource}.
# @param args [Array] when `data_source_or_type` is a symbol,
# optional arguments to use when initializing the data source.
+ # @param data_source_or_type [Object] either `:ruby`, `:zoneinfo` or an
+ # instance of a {DataSource}.
# @raise [ArgumentError] if `data_source_or_type` is not `:ruby`,
# `:zoneinfo` or an instance of {DataSource}.
#
@@ -851,8 +851,8 @@ class TZInfo::DataSources::ConstantOffsetDataTimezoneInfo < ::TZInfo::DataSource
# The passed in `identifier` instance will be frozen. A reference to the
# passed in {TimezoneOffset} will be retained.
#
- # @param identifier [String] the identifier of the time zone.
# @param constant_offset [TimezoneOffset] the constantly observed offset.
+ # @param identifier [String] the identifier of the time zone.
# @raise [ArgumentError] if `identifier` or `constant_offset` is `nil`.
# @return [ConstantOffsetDataTimezoneInfo] a new instance of ConstantOffsetDataTimezoneInfo
#
@@ -878,8 +878,8 @@ class TZInfo::DataSources::ConstantOffsetDataTimezoneInfo < ::TZInfo::DataSource
# source://tzinfo//lib/tzinfo/data_sources/constant_offset_data_timezone_info.rb#35
def periods_for_local(local_timestamp); end
- # @param to_timestamp [Timestamp] ignored.
# @param from_timestamp [Timestamp] ignored.
+ # @param to_timestamp [Timestamp] ignored.
# @return [Array] an empty `Array`, since there are no transitions in time
# zones that observe a constant offset.
#
@@ -992,12 +992,12 @@ class TZInfo::DataSources::DataTimezoneInfo < ::TZInfo::DataSources::TimezoneInf
# Transitions returned are ordered by when they occur, from earliest to
# latest.
#
- # @param to_timestamp [Timestamp] a {Timestamp} with a specified
- # {Timestamp#utc_offset utc_offset}. Transitions are returned if they
- # occur before this time.
# @param from_timestamp [Timestamp] an optional {Timestamp} with a
# specified {Timestamp#utc_offset utc_offset}. If specified, transitions
# are returned if they occur at or after this time.
+ # @param to_timestamp [Timestamp] a {Timestamp} with a specified
+ # {Timestamp#utc_offset utc_offset}. Transitions are returned if they
+ # occur before this time.
# @raise [ArgumentError] may be raised if `to_timestamp` is `nil` or does
# not have a specified {Timestamp#utc_offset utc_offset}.
# @raise [ArgumentError] may be raised if `from_timestamp` is specified
@@ -1112,8 +1112,8 @@ class TZInfo::DataSources::PosixTimeZoneParser
# Scans for a pattern and raises an exception if the pattern does not
# match the input.
#
- # @param s [StringScanner] the `StringScanner` to scan.
# @param pattern [Regexp] the pattern to match.
+ # @param s [StringScanner] the `StringScanner` to scan.
# @raise [InvalidPosixTimeZone] if the pattern does not match the input.
# @return [String] the result of the scan.
#
@@ -1405,12 +1405,12 @@ class TZInfo::DataSources::TransitionsDataTimezoneInfo < ::TZInfo::DataSources::
# Transitions returned are ordered by when they occur, from earliest to
# latest.
#
- # @param to_timestamp [Timestamp] a {Timestamp} with a specified
- # {Timestamp#utc_offset utc_offset}. Transitions are returned if they
- # occur before this time.
# @param from_timestamp [Timestamp] an optional {Timestamp} with a
# specified {Timestamp#utc_offset utc_offset}. If specified, transitions
# are returned if they occur at or after this time.
+ # @param to_timestamp [Timestamp] a {Timestamp} with a specified
+ # {Timestamp#utc_offset utc_offset}. Transitions are returned if they
+ # occur before this time.
# @raise [ArgumentError] may be raised if `to_timestamp` is `nil` or does
# not have a specified {Timestamp#utc_offset utc_offset}.
# @raise [ArgumentError] may be raised if `from_timestamp` is specified
@@ -1448,8 +1448,8 @@ class TZInfo::DataSources::TransitionsDataTimezoneInfo < ::TZInfo::DataSources::
# Determines if a transition occurs at or after a given {Timestamp},
# taking the {Timestamp#sub_second sub_second} into consideration.
#
- # @param transition [TimezoneTransition] the transition to compare.
# @param timestamp [Timestamp] the timestamp to compare.
+ # @param transition [TimezoneTransition] the transition to compare.
# @return [Boolean] `true` if `transition` occurs at or after `timestamp`,
# otherwise `false`.
#
@@ -1528,10 +1528,10 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
# searched to find an iso3166.tab file if one of the searched zoneinfo
# directories doesn't contain an iso3166.tab file.
#
- # @param zoneinfo_dir [String] an optional path to a directory to use as
- # the source of zoneinfo files.
# @param alternate_iso3166_tab_path [String] an optional path to the
# iso3166.tab file.
+ # @param zoneinfo_dir [String] an optional path to a directory to use as
+ # the source of zoneinfo files.
# @raise [InvalidZoneinfoDirectory] if the iso3166.tab and zone1970.tab or
# zone.tab files cannot be found using the `zoneinfo_dir` and
# `alternate_iso3166_tab_path` parameters.
@@ -1614,10 +1614,10 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
# Converts degrees, minutes and seconds to a Rational.
#
- # @param sign [String] `'-'` or `'+'`.
# @param degrees [String] the number of degrees.
# @param minutes [String] the number of minutes.
# @param seconds [String] the number of seconds (optional).
+ # @param sign [String] `'-'` or `'+'`.
# @return [Rational] the result of converting from degrees, minutes and
# seconds to a `Rational`.
#
@@ -1670,11 +1670,11 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
# Attempts to resolve the path to a tab file given its standard names and
# tab sub-directory name (as used on Solaris).
#
- # @param zoneinfo_path [String] the path to a zoneinfo directory.
# @param standard_names [Array] the standard names for the tab
# file.
# @param tab_name [String] the alternate name for the tab file to check in
# the tab sub-directory.
+ # @param zoneinfo_path [String] the path to a zoneinfo directory.
# @return [String] the path to the tab file.
#
# source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#372
@@ -1688,9 +1688,9 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
# This is treated as either absolute or relative to the current working
# directory.
#
- # @param path [String] the path to a possible zoneinfo directory.
# @param iso3166_tab_path [String] an optional path to an external
# iso3166.tab file.
+ # @param path [String] the path to a possible zoneinfo directory.
# @return [Array] an `Array` containing the iso3166.tab and
# zone.tab paths if the directory is valid, otherwise `nil`.
#
@@ -1767,10 +1767,10 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
# Processes a path for use as the {search_path} or
# {alternate_iso3166_tab_search_path}.
#
+ # @param default [Array] the default value.
# @param path [Object] either `nil` or a list of paths to check as
# either an `Array` of `String` or a `File::PATH_SEPARATOR` separated
# `String`.
- # @param default [Array] the default value.
# @return [Array] the processed path.
#
# source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#187
@@ -1851,11 +1851,11 @@ class TZInfo::DataSources::ZoneinfoReader
# the future (at the time of loading zoneinfo_reader.rb).
#
# @param file [IO] the file being processed.
- # @param transitions [Array] the defined transitions.
# @param offsets [Array] the offsets used by the defined
# transitions.
# @param rules [Object] a {TimezoneOffset} specifying a constant offset or
# {AnnualRules} instance specfying transitions.
+ # @param transitions [Array] the defined transitions.
# @raise [InvalidZoneinfoFile] if the first offset does not match the
# rules.
# @raise [InvalidZoneinfoFile] if the previous offset of the first
@@ -1886,8 +1886,8 @@ class TZInfo::DataSources::ZoneinfoReader
# Reads the given number of bytes from the given file and checks that the
# correct number of bytes could be read.
#
- # @param file [IO] the file to read from.
# @param bytes [Integer] the number of bytes to read.
+ # @param file [IO] the file to read from.
# @raise [InvalidZoneinfoFile] if the number of bytes available didn't
# match the number requested.
# @return [String] the bytes that were read.
@@ -1899,8 +1899,8 @@ class TZInfo::DataSources::ZoneinfoReader
# for DST periods. Derive the base offset (base_utc_offset) where DST is
# observed from either the previous or next non-DST period.
#
- # @param transitions [Array] an `Array` of transition hashes.
# @param offsets [Array] an `Array` of offset hashes.
+ # @param transitions [Array] an `Array` of transition hashes.
# @return [Integer] the index of the offset to be used prior to the first
# transition.
#
@@ -1910,8 +1910,8 @@ class TZInfo::DataSources::ZoneinfoReader
# Finds an offset that is equivalent to the one specified in the given
# `Array`. Matching is performed with {TimezoneOffset#==}.
#
- # @param offsets [Array] an `Array` to search.
# @param offset [TimezoneOffset] the offset to search for.
+ # @param offsets [Array] an `Array` to search.
# @return [TimezoneOffset] the matching offset from `offsets` or `nil`
# if not found.
#
@@ -1966,9 +1966,9 @@ class TZInfo::DataSources::ZoneinfoReader
# requirement for loaded time zones by reusing offsets for rule-generated
# transitions.
#
+ # @param annual_rules [AnnualRules] the {AnnualRules} instance to check.
# @param offsets [Array] an `Array` to search for
# equivalent offsets.
- # @param annual_rules [AnnualRules] the {AnnualRules} instance to check.
# @return [AnnualRules] either a new {AnnualRules} instance with either
# the {AnnualRules#std_offset std_offset} or {AnnualRules#dst_offset
# dst_offset} replaced, or the original instance if no equivalent for
@@ -1987,10 +1987,10 @@ class TZInfo::DataSources::ZoneinfoReader
# abbreviations differ.
#
# @param file [IO] the file being processed.
- # @param last_defined [TimezoneTransition] the last defined transition in
- # the file.
# @param first_rule_offset [TimezoneOffset] the offset the rules indicate
# is observed prior to the first rules generated transition.
+ # @param last_defined [TimezoneTransition] the last defined transition in
+ # the file.
# @raise [InvalidZoneinfoFile] if the offset of {last_defined} and
# {first_rule_offset} do not match.
# @return [TimezoneTransition] the last defined transition (either the
@@ -2070,10 +2070,10 @@ class TZInfo::DataTimezone < ::TZInfo::InfoTimezone
# inclusive. If a transition falls precisely on `to`, it will be excluded.
# If a transition falls on `from`, it will be included.
#
- # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
- # latest (exclusive) transition to return.
# @param from [Object] an optional `Time`, `DateTime` or {Timestamp}
# specifying the earliest (inclusive) transition to return.
+ # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
+ # latest (exclusive) transition to return.
# @raise [ArgumentError] if `from` is specified and `to` is not greater than
# `from`.
# @raise [ArgumentError] is raised if `to` is `nil`.
@@ -2206,17 +2206,17 @@ end
#
# @private
#
-# source://tzinfo//lib/tzinfo/transition_rule.rb#323
+# source://tzinfo//lib/tzinfo/transition_rule.rb#339
class TZInfo::DayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
# Initializes a new {DayOfMonthTransitionRule}.
#
+ # @param day_of_week [Integer] the day of the week when the transition
+ # occurs. 0 is Sunday, 6 is Saturday.
+ # @param month [Integer] the month of the year when the transition occurs.
# @param transition_at [Integer] the time in seconds after midnight local
# time at which the transition occurs.
# @param week [Integer] the week of the month when the transition occurs (1
# to 4).
- # @param day_of_week [Integer] the day of the week when the transition
- # occurs. 0 is Sunday, 6 is Saturday.
- # @param month [Integer] the month of the year when the transition occurs.
# @raise [ArgumentError] if `week` is less than 1 or greater than 4.
# @raise [ArgumentError] if `day_of_week` is not an `Integer`.
# @raise [ArgumentError] if `day_of_week` is less than 0 or greater than 6.
@@ -2248,7 +2248,7 @@ class TZInfo::DayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
# same {transition_at}, month, week and day of week as this
# {DayOfMonthTransitionRule}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#353
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#356
def eql?(r); end
protected
@@ -2284,15 +2284,15 @@ end
# @abstract
# @private
#
-# source://tzinfo//lib/tzinfo/transition_rule.rb#261
+# source://tzinfo//lib/tzinfo/transition_rule.rb#273
class TZInfo::DayOfWeekTransitionRule < ::TZInfo::TransitionRule
# Initializes a new {DayOfWeekTransitionRule}.
#
- # @param transition_at [Integer] the time in seconds after midnight local
- # time at which the transition occurs.
# @param day_of_week [Integer] the day of the week when the transition
# occurs. 0 is Sunday, 6 is Saturday.
# @param month [Integer] the month of the year when the transition occurs.
+ # @param transition_at [Integer] the time in seconds after midnight local
+ # time at which the transition occurs.
# @raise [ArgumentError] if `day_of_week` is not an `Integer`.
# @raise [ArgumentError] if `day_of_week` is less than 0 or greater than 6.
# @raise [ArgumentError] if `month` is not an `Integer`.
@@ -2322,7 +2322,7 @@ class TZInfo::DayOfWeekTransitionRule < ::TZInfo::TransitionRule
# same {transition_at}, month and day of week as this
# {DayOfWeekTransitionRule}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#299
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#302
def eql?(r); end
# @return [Boolean] `false`.
@@ -2360,7 +2360,7 @@ end
# @abstract
# @private
#
-# source://tzinfo//lib/tzinfo/transition_rule.rb#73
+# source://tzinfo//lib/tzinfo/transition_rule.rb#81
class TZInfo::DayOfYearTransitionRule < ::TZInfo::TransitionRule
# Initializes a new {DayOfYearTransitionRule}.
#
@@ -2392,7 +2392,7 @@ class TZInfo::DayOfYearTransitionRule < ::TZInfo::TransitionRule
# same {transition_at} and day as this {DayOfYearTransitionRule},
# otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#94
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#97
def eql?(r); end
protected
@@ -2422,7 +2422,7 @@ module TZInfo::Format1; end
#
# @private
#
-# source://tzinfo//lib/tzinfo/format1/country_definer.rb#10
+# source://tzinfo//lib/tzinfo/format1/country_definer.rb#11
class TZInfo::Format1::CountryDefiner < ::TZInfo::Format2::CountryDefiner
# Initializes a new {CountryDefiner}.
#
@@ -2490,14 +2490,14 @@ end
class TZInfo::Format1::TimezoneDefiner < ::TZInfo::Format2::TimezoneDefiner
# Defines an offset.
#
+ # @param abbreviation [Symbol] an abbreviation for the offset, for
+ # example, `:EST` or `:EDT`.
# @param id [Symbol] an arbitrary value used identify the offset in
# subsequent calls to transition. It must be unique.
- # @param utc_offset [Integer] the base offset from UTC of the zone in
- # seconds. This does not include daylight savings time.
# @param std_offset [Integer] the daylight savings offset from the base
# offset in seconds. Typically either 0 or 3600.
- # @param abbreviation [Symbol] an abbreviation for the offset, for
- # example, `:EST` or `:EDT`.
+ # @param utc_offset [Integer] the base offset from UTC of the zone in
+ # seconds. This does not include daylight savings time.
# @raise [ArgumentError] if another offset has already been defined with
# the given id.
#
@@ -2508,8 +2508,12 @@ class TZInfo::Format1::TimezoneDefiner < ::TZInfo::Format2::TimezoneDefiner
#
# Transitions must be defined in increasing time order.
#
- # @param year [Integer] the UTC year in which the transition occurs. Used
- # in earlier versions of TZInfo, but now ignored.
+ # @param datetime_denominator [Integer] the time of the transition as the
+ # denominator of the `Rational` returned by `DateTime#ajd`. Used in
+ # earlier versions of TZInfo, but now ignored.
+ # @param datetime_numerator [Integer] the time of the transition as the
+ # numerator of the `Rational` returned by `DateTime#ajd`. Used in
+ # earlier versions of TZInfo, but now ignored.
# @param month [Integer] the UTC month in which the transition occurs.
# Used in earlier versions of TZInfo, but now ignored.
# @param offset_id [Symbol] references the id of a previously defined
@@ -2517,12 +2521,8 @@ class TZInfo::Format1::TimezoneDefiner < ::TZInfo::Format2::TimezoneDefiner
# @param timestamp_value [Integer] the time the transition occurs as an
# Integer number of seconds since 1970-01-01 00:00:00 UTC ignoring leap
# seconds (i.e. each day is treated as if it were 86,400 seconds long).
- # @param datetime_numerator [Integer] the time of the transition as the
- # numerator of the `Rational` returned by `DateTime#ajd`. Used in
- # earlier versions of TZInfo, but now ignored.
- # @param datetime_denominator [Integer] the time of the transition as the
- # denominator of the `Rational` returned by `DateTime#ajd`. Used in
- # earlier versions of TZInfo, but now ignored.
+ # @param year [Integer] the UTC year in which the transition occurs. Used
+ # in earlier versions of TZInfo, but now ignored.
# @raise [ArgumentError] if `offset_id` does not reference a defined
# offset.
# @raise [ArgumentError] if `timestamp_value` is not greater than the
@@ -2648,13 +2648,13 @@ module TZInfo::Format2; end
class TZInfo::Format2::CountryDefiner
# Initializes a new {CountryDefiner}.
#
+ # @param description_deduper [StringDeduper] a {StringDeduper} instance to
+ # use when deduping time zone descriptions.
+ # @param identifier_deduper [StringDeduper] a {StringDeduper} instance to
+ # use when deduping time zone identifiers.
# @param shared_timezones [Hash] a `Hash`
# containing time zones shared by more than one country, keyed by a
# unique reference.
- # @param identifier_deduper [StringDeduper] a {StringDeduper} instance to
- # use when deduping time zone identifiers.
- # @param description_deduper [StringDeduper] a {StringDeduper} instance to
- # use when deduping time zone descriptions.
# @return [CountryDefiner] a new instance of CountryDefiner
#
# source://tzinfo//lib/tzinfo/format2/country_definer.rb#24
@@ -2682,10 +2682,10 @@ end
class TZInfo::Format2::CountryIndexDefiner
# Initializes a new {CountryIndexDefiner}.
#
- # @param identifier_deduper [StringDeduper] a {StringDeduper} instance to
- # use when deduping time zone identifiers.
# @param description_deduper [StringDeduper] a {StringDeduper} instance to
# use when deduping time zone descriptions.
+ # @param identifier_deduper [StringDeduper] a {StringDeduper} instance to
+ # use when deduping time zone identifiers.
# @return [CountryIndexDefiner] a new instance of CountryIndexDefiner
#
# source://tzinfo//lib/tzinfo/format2/country_index_definer.rb#21
@@ -2713,13 +2713,13 @@ class TZInfo::Format2::CountryIndexDefiner
# subsequent use in country definitions. The latitude and longitude are
# given as the numerator and denominator of a `Rational`.
#
- # @param reference [Symbol] a unique reference for the time zone.
+ # @param description [String] an optional description for the time zone.
# @param identifier [String] the time zone identifier.
- # @param latitude_numerator [Integer] the numerator of the latitude.
# @param latitude_denominator [Integer] the denominator of the latitude.
- # @param longitude_numerator [Integer] the numerator of the longitude.
+ # @param latitude_numerator [Integer] the numerator of the latitude.
# @param longitude_denominator [Integer] the denominator of the longitude.
- # @param description [String] an optional description for the time zone.
+ # @param longitude_numerator [Integer] the numerator of the longitude.
+ # @param reference [Symbol] a unique reference for the time zone.
#
# source://tzinfo//lib/tzinfo/format2/country_index_definer.rb#39
def timezone(reference, identifier, latitude_numerator, latitude_denominator, longitude_numerator, longitude_denominator, description = T.unsafe(nil)); end
@@ -2801,14 +2801,14 @@ class TZInfo::Format2::TimezoneDefiner
# Defines an offset.
#
- # @param id [Symbol] an arbitrary value used identify the offset in
- # subsequent calls to transition. It must be unique.
+ # @param abbreviation [String] an abbreviation for the offset, for
+ # example, EST or EDT.
# @param base_utc_offset [Integer] the base offset from UTC of the zone in
# seconds. This does not include daylight savings time.
+ # @param id [Symbol] an arbitrary value used identify the offset in
+ # subsequent calls to transition. It must be unique.
# @param std_offset [Integer] the daylight savings offset from the base
# offset in seconds. Typically either 0 or 3600.
- # @param abbreviation [String] an abbreviation for the offset, for
- # example, EST or EDT.
# @raise [ArgumentError] if another offset has already been defined with
# the given id.
#
@@ -3062,7 +3062,7 @@ class TZInfo::InvalidTimezoneIdentifier < ::StandardError; end
#
# @private
#
-# source://tzinfo//lib/tzinfo/transition_rule.rb#184
+# source://tzinfo//lib/tzinfo/transition_rule.rb#185
class TZInfo::JulianDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRule
# Initializes a new {JulianDayOfYearTransitionRule}.
#
@@ -3097,7 +3097,7 @@ class TZInfo::JulianDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRule
# the same {transition_at} and day as this
# {JulianDayOfYearTransitionRule}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#226
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#229
def eql?(r); end
# @return [Boolean] `true` if the day specified by this transition is the
@@ -3148,15 +3148,15 @@ TZInfo::JulianDayOfYearTransitionRule::YEAR = T.let(T.unsafe(nil), Integer)
#
# @private
#
-# source://tzinfo//lib/tzinfo/transition_rule.rb#396
+# source://tzinfo//lib/tzinfo/transition_rule.rb#408
class TZInfo::LastDayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
# Initializes a new {LastDayOfMonthTransitionRule}.
#
- # @param transition_at [Integer] the time in seconds after midnight local
- # time at which the transition occurs.
# @param day_of_week [Integer] the day of the week when the transition
# occurs. 0 is Sunday, 6 is Saturday.
# @param month [Integer] the month of the year when the transition occurs.
+ # @param transition_at [Integer] the time in seconds after midnight local
+ # time at which the transition occurs.
# @raise [ArgumentError] if `day_of_week` is not an `Integer`.
# @raise [ArgumentError] if `day_of_week` is less than 0 or greater than 6.
# @raise [ArgumentError] if `month` is not an `Integer`.
@@ -3186,7 +3186,7 @@ class TZInfo::LastDayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
# the same {transition_at}, month and day of week as this
# {LastDayOfMonthTransitionRule}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#420
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#423
def eql?(r); end
protected
@@ -3280,10 +3280,10 @@ class TZInfo::LinkedTimezone < ::TZInfo::InfoTimezone
# inclusive. If a transition falls precisely on `to`, it will be excluded.
# If a transition falls on `from`, it will be included.
#
- # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
- # latest (exclusive) transition to return.
# @param from [Object] an optional `Time`, `DateTime` or {Timestamp}
# specifying the earliest (inclusive) transition to return.
+ # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
+ # latest (exclusive) transition to return.
# @raise [ArgumentError] if `from` is specified and `to` is not greater than
# `from`.
# @raise [ArgumentError] is raised if `to` is `nil`.
@@ -3332,7 +3332,7 @@ class TZInfo::OffsetTimezonePeriod < ::TZInfo::TimezonePeriod
# @return [Boolean] `true` if `p` is a {OffsetTimezonePeriod} with the same
# {offset}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/offset_timezone_period.rb#32
+ # source://tzinfo//lib/tzinfo/offset_timezone_period.rb#35
def eql?(p); end
# @return [Integer] a hash based on {offset}.
@@ -3457,7 +3457,7 @@ class TZInfo::TimeWithOffset < ::Time
# @return [Boolean] `true` if daylight savings time is being observed,
# otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/time_with_offset.rb#43
+ # source://tzinfo//lib/tzinfo/time_with_offset.rb#47
def isdst; end
# An overridden version of `Time#localtime` that clears the associated
@@ -3555,14 +3555,14 @@ class TZInfo::Timestamp
# Initializes a new {Timestamp}.
#
- # @param value [Integer] the number of seconds since 1970-01-01 00:00:00 UTC
- # ignoring leap seconds.
- # @param utc_offset [Object] either `nil` for a {Timestamp} without a
- # specified offset, an offset from UTC specified as an `Integer` number of
- # seconds or the `Symbol` `:utc`).
# @param sub_second [Numeric] the fractional part of the second as either a
# `Rational` that is greater than or equal to 0 and less than 1, or
# the `Integer` 0.
+ # @param utc_offset [Object] either `nil` for a {Timestamp} without a
+ # specified offset, an offset from UTC specified as an `Integer` number of
+ # seconds or the `Symbol` `:utc`).
+ # @param value [Integer] the number of seconds since 1970-01-01 00:00:00 UTC
+ # ignoring leap seconds.
# @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer` and
# not the `Symbol` `:utc`.
# @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
@@ -3607,6 +3607,7 @@ class TZInfo::Timestamp
# source://tzinfo//lib/tzinfo/timestamp.rb#372
def add_and_set_utc_offset(seconds, utc_offset); end
+ # source://tzinfo//lib/tzinfo/timestamp.rb#464
def eql?(_arg0); end
# @return [Integer] a hash based on the value, sub-second and whether there
@@ -3723,14 +3724,14 @@ class TZInfo::Timestamp
# method is used internally within {Timestamp} to avoid the overhead of
# checking parameters.
#
- # @param value [Integer] the number of seconds since 1970-01-01 00:00:00 UTC
- # ignoring leap seconds.
# @param sub_second [Numeric] the fractional part of the second as either a
# `Rational` that is greater than or equal to 0 and less than 1, or the
# `Integer` 0.
# @param utc_offset [Object] either `nil` for a {Timestamp} without a
# specified offset, an offset from UTC specified as an `Integer` number of
# seconds or the `Symbol` `:utc`).
+ # @param value [Integer] the number of seconds since 1970-01-01 00:00:00 UTC
+ # ignoring leap seconds.
#
# source://tzinfo//lib/tzinfo/timestamp.rb#538
def initialize!(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
@@ -3761,10 +3762,10 @@ class TZInfo::Timestamp
# and time parameters will be interpreted as a local date and time with
# the given offset.
#
- # @param month [Integer] the month (1-12).
# @param day [Integer] the day of the month (1-31).
# @param hour [Integer] the hour (0-23).
# @param minute [Integer] the minute (0-59).
+ # @param month [Integer] the month (1-12).
# @param second [Integer] the second (0-59).
# @param sub_second [Numeric] the fractional part of the second as either
# a `Rational` that is greater than or equal to 0 and less than 1, or
@@ -3807,12 +3808,12 @@ class TZInfo::Timestamp
# as though it were UTC (the {Timestamp} representation will have a
# {utc_offset} of 0 and {utc?} will return `true`).
#
- # @param value [Object] a `Time`, `DateTime` or {Timestamp}.
# @param offset [Symbol] either `:preserve` to preserve the offset of
# `value`, `:ignore` to ignore the offset of `value` and create a
# {Timestamp} with an unspecified offset, or `:treat_as_utc` to treat
# the offset of `value` as though it were UTC and create a UTC
# {Timestamp}.
+ # @param value [Object] a `Time`, `DateTime` or {Timestamp}.
# @raise [ArgumentError]
# @return [Object] if called without a block, the {Timestamp}
# representation of `value`, otherwise the result of the block,
@@ -3829,11 +3830,11 @@ class TZInfo::Timestamp
# Creates a new UTC {Timestamp}.
#
- # @param value [Integer] the number of seconds since 1970-01-01 00:00:00
- # UTC ignoring leap seconds.
# @param sub_second [Numeric] the fractional part of the second as either
# a `Rational` that is greater than or equal to 0 and less than 1, or
# the `Integer` 0.
+ # @param value [Integer] the number of seconds since 1970-01-01 00:00:00
+ # UTC ignoring leap seconds.
# @raise [ArgumentError] if `value` is not an `Integer`.
# @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
# `Integer` 0.
@@ -3861,10 +3862,10 @@ class TZInfo::Timestamp
# Creates a {Timestamp} that represents a given `Time`, optionally
# ignoring the offset.
#
- # @param time [Time] a `Time`.
# @param ignore_offset [Boolean] whether to ignore the offset of `time`.
# @param target_utc_offset [Object] if `ignore_offset` is `true`, the UTC
# offset of the result (`:utc`, `nil` or an `Integer`).
+ # @param time [Time] a `Time`.
# @return [Timestamp] the {Timestamp} representation of `time`.
#
# source://tzinfo//lib/tzinfo/timestamp.rb#206
@@ -3874,10 +3875,10 @@ class TZInfo::Timestamp
# optionally ignoring the offset (if the `time_like` responds to
# `utc_offset`).
#
- # @param time_like [Object] a `Time`-like object.
# @param ignore_offset [Boolean] whether to ignore the offset of `time`.
# @param target_utc_offset [Object] if `ignore_offset` is `true`, the UTC
# offset of the result (`:utc`, `nil` or an `Integer`).
+ # @param time_like [Object] a `Time`-like object.
# @return [Timestamp] the {Timestamp} representation of `time_like`.
#
# source://tzinfo//lib/tzinfo/timestamp.rb#296
@@ -3888,11 +3889,11 @@ class TZInfo::Timestamp
# same instance is returned. If the passed in value is an instance of a
# subclass of {Timestamp}, then a new {Timestamp} will always be returned.
#
- # @param timestamp [Timestamp] a {Timestamp}.
# @param ignore_offset [Boolean] whether to ignore the offset of
# `timestamp`.
# @param target_utc_offset [Object] if `ignore_offset` is `true`, the UTC
# offset of the result (`:utc`, `nil` or an `Integer`).
+ # @param timestamp [Timestamp] a {Timestamp}.
# @return [Timestamp] a [Timestamp] representation of `timestamp`.
#
# source://tzinfo//lib/tzinfo/timestamp.rb#256
@@ -3913,14 +3914,14 @@ class TZInfo::Timestamp
# internally within {Timestamp} to avoid the overhead of checking
# parameters.
#
- # @param value [Integer] the number of seconds since 1970-01-01 00:00:00
- # UTC ignoring leap seconds.
# @param sub_second [Numeric] the fractional part of the second as either
# a `Rational` that is greater than or equal to 0 and less than 1, or
# the `Integer` 0.
# @param utc_offset [Object] either `nil` for a {Timestamp} without a
# specified offset, an offset from UTC specified as an `Integer` number
# of seconds or the `Symbol` `:utc`).
+ # @param value [Integer] the number of seconds since 1970-01-01 00:00:00
+ # UTC ignoring leap seconds.
# @return [Timestamp] a new instance of `self`.
#
# source://tzinfo//lib/tzinfo/timestamp.rb#192
@@ -4092,7 +4093,7 @@ class TZInfo::Timezone
# offset.
# @return [String] the abbreviation of this {Timezone} at the given time.
#
- # source://tzinfo//lib/tzinfo/timezone.rb#1048
+ # source://tzinfo//lib/tzinfo/timezone.rb#1051
def abbr(time = T.unsafe(nil)); end
# @param time [Object] a `Time`, `DateTime` or `Timestamp`.
@@ -4191,7 +4192,7 @@ class TZInfo::Timezone
# time zone as the first element and the current {TimezonePeriod} for the
# time zone as the second element.
#
- # source://tzinfo//lib/tzinfo/timezone.rb#1008
+ # source://tzinfo//lib/tzinfo/timezone.rb#1018
def current_period_and_time; end
# Returns the current local time and {TimezonePeriod} for the time zone as
@@ -4301,18 +4302,18 @@ class TZInfo::Timezone
#
# values, interpreted as a local time in the time zone.
#
+ # @param day [Integer] the day of the month (1-31).
+ # @param dst [Boolean] whether to resolve ambiguous local times by always
+ # selecting the period observing daylight savings time (`true`), always
+ # selecting the period observing standard time (`false`), or leaving the
+ # ambiguity unresolved (`nil`).
# @param hour [Integer] the hour (0-23).
# @param minute [Integer] the minute (0-59).
+ # @param month [Integer] the month (1-12).
# @param second [Integer] the second (0-59).
# @param sub_second [Numeric] the fractional part of the second as either
# a `Rational` that is greater than or equal to 0 and less than 1, or
# the `Integer` 0.
- # @param dst [Boolean] whether to resolve ambiguous local times by always
- # selecting the period observing daylight savings time (`true`), always
- # selecting the period observing standard time (`false`), or leaving the
- # ambiguity unresolved (`nil`).
- # @param month [Integer] the month (1-12).
- # @param day [Integer] the day of the month (1-31).
# @param year [Integer] the year.
# @raise [RangeError] if `sub_second` is a `Rational` but that is less
# than 0 or greater than or equal to 1.
@@ -4388,18 +4389,18 @@ class TZInfo::Timezone
# The default value of the `dst` parameter can be specified using
# {Timezone.default_dst=}.
#
+ # @param day [Integer] the day of the month (1-31).
+ # @param dst [Boolean] whether to resolve ambiguous local times by always
+ # selecting the period observing daylight savings time (`true`), always
+ # selecting the period observing standard time (`false`), or leaving the
+ # ambiguity unresolved (`nil`).
# @param hour [Integer] the hour (0-23).
# @param minute [Integer] the minute (0-59).
+ # @param month [Integer] the month (1-12).
# @param second [Integer] the second (0-59).
# @param sub_second [Numeric] the fractional part of the second as either
# a `Rational` that is greater than or equal to 0 and less than 1, or
# the `Integer` 0.
- # @param dst [Boolean] whether to resolve ambiguous local times by always
- # selecting the period observing daylight savings time (`true`), always
- # selecting the period observing standard time (`false`), or leaving the
- # ambiguity unresolved (`nil`).
- # @param month [Integer] the month (1-12).
- # @param day [Integer] the day of the month (1-31).
# @param year [Integer] the year.
# @raise [RangeError] if `sub_second` is a `Rational` but that is less
# than 0 or greater than or equal to 1.
@@ -4476,18 +4477,18 @@ class TZInfo::Timezone
# The default value of the `dst` parameter can be specified using
# {Timezone.default_dst=}.
#
+ # @param day [Integer] the day of the month (1-31).
+ # @param dst [Boolean] whether to resolve ambiguous local times by always
+ # selecting the period observing daylight savings time (`true`), always
+ # selecting the period observing standard time (`false`), or leaving the
+ # ambiguity unresolved (`nil`).
# @param hour [Integer] the hour (0-23).
# @param minute [Integer] the minute (0-59).
+ # @param month [Integer] the month (1-12).
# @param second [Integer] the second (0-59).
# @param sub_second [Numeric] the fractional part of the second as either
# a `Rational` that is greater than or equal to 0 and less than 1, or
# the `Integer` 0.
- # @param dst [Boolean] whether to resolve ambiguous local times by always
- # selecting the period observing daylight savings time (`true`), always
- # selecting the period observing standard time (`false`), or leaving the
- # ambiguity unresolved (`nil`).
- # @param month [Integer] the month (1-12).
- # @param day [Integer] the day of the month (1-31).
# @param year [Integer] the year.
# @raise [RangeError] if `sub_second` is a `Rational` but that is less
# than 0 or greater than or equal to 1.
@@ -4624,10 +4625,10 @@ class TZInfo::Timezone
# Comparisons with `to` are exclusive. Comparisons with `from` are
# inclusive.
#
- # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
- # latest (exclusive) offset to return.
# @param from [Object] an optional `Time`, `DateTime` or {Timestamp}
# specifying the earliest (inclusive) offset to return.
+ # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
+ # latest (exclusive) offset to return.
# @raise [ArgumentError] if `from` is specified and `to` is not greater than
# `from`.
# @raise [ArgumentError] is raised if `to` is `nil`.
@@ -4819,10 +4820,10 @@ class TZInfo::Timezone
# inclusive. If a transition falls precisely on `to`, it will be excluded.
# If a transition falls on `from`, it will be included.
#
- # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
- # latest (exclusive) transition to return.
# @param from [Object] an optional `Time`, `DateTime` or {Timestamp}
# specifying the earliest (inclusive) transition to return.
+ # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
+ # latest (exclusive) transition to return.
# @raise [ArgumentError] if `from` is specified and `to` is not greater than
# `from`.
# @raise [ArgumentError] is raised if `to` is `nil`.
@@ -4845,7 +4846,7 @@ class TZInfo::Timezone
# @return [Integer] the observed offset from UTC in seconds at the given
# time.
#
- # source://tzinfo//lib/tzinfo/timezone.rb#1094
+ # source://tzinfo//lib/tzinfo/timezone.rb#1097
def utc_offset(time = T.unsafe(nil)); end
# Converts a time in UTC to the local time for the time zone.
@@ -5064,9 +5065,9 @@ class TZInfo::TimezoneOffset
#
# The passed in `abbreviation` instance will be frozen.
#
+ # @param abbreviation [String] the abbreviation identifying the offset.
# @param base_utc_offset [Integer] the base offset from UTC in seconds.
# @param std_offset [Integer] the offset from standard time in seconds.
- # @param abbreviation [String] the abbreviation identifying the offset.
# @return [TimezoneOffset] a new instance of TimezoneOffset
#
# source://tzinfo//lib/tzinfo/timezone_offset.rb#62
@@ -5087,7 +5088,7 @@ class TZInfo::TimezoneOffset
#
# @return [String] the abbreviation that identifies this offset.
#
- # source://tzinfo//lib/tzinfo/timezone_offset.rb#50
+ # source://tzinfo//lib/tzinfo/timezone_offset.rb#51
def abbr; end
# The abbreviation that identifies this offset. For example GMT
@@ -5186,7 +5187,7 @@ class TZInfo::TimezoneOffset
#
# @return [Integer] the base offset from UTC in seconds.
#
- # source://tzinfo//lib/tzinfo/timezone_offset.rb#21
+ # source://tzinfo//lib/tzinfo/timezone_offset.rb#22
def utc_offset; end
# Returns the observed offset from UTC in seconds (`base_utc_offset +
@@ -5194,7 +5195,7 @@ class TZInfo::TimezoneOffset
#
# @return [Integer] the observed offset from UTC in seconds.
#
- # source://tzinfo//lib/tzinfo/timezone_offset.rb#43
+ # source://tzinfo//lib/tzinfo/timezone_offset.rb#44
def utc_total_offset; end
end
@@ -5225,7 +5226,7 @@ class TZInfo::TimezonePeriod
#
# @return [String] the abbreviation that identifies this offset.
#
- # source://tzinfo//lib/tzinfo/timezone_period.rb#80
+ # source://tzinfo//lib/tzinfo/timezone_period.rb#83
def abbr; end
# The abbreviation that identifies this offset. For example GMT
@@ -5371,7 +5372,7 @@ class TZInfo::TimezonePeriod
#
# @return [Integer] the base offset from UTC in seconds.
#
- # source://tzinfo//lib/tzinfo/timezone_period.rb#54
+ # source://tzinfo//lib/tzinfo/timezone_period.rb#57
def utc_offset; end
# Returns the observed offset from UTC in seconds (`base_utc_offset +
@@ -5379,7 +5380,7 @@ class TZInfo::TimezonePeriod
#
# @return [Integer] the observed offset from UTC in seconds.
#
- # source://tzinfo//lib/tzinfo/timezone_period.rb#90
+ # source://tzinfo//lib/tzinfo/timezone_period.rb#93
def utc_total_offset; end
# The abbreviation that identifies this offset. For example GMT
@@ -5387,7 +5388,7 @@ class TZInfo::TimezonePeriod
#
# @return [String] the abbreviation that identifies this offset.
#
- # source://tzinfo//lib/tzinfo/timezone_period.rb#80
+ # source://tzinfo//lib/tzinfo/timezone_period.rb#84
def zone_identifier; end
private
@@ -5547,10 +5548,10 @@ class TZInfo::TimezoneProxy < ::TZInfo::Timezone
# inclusive. If a transition falls precisely on `to`, it will be excluded.
# If a transition falls on `from`, it will be included.
#
- # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
- # latest (exclusive) transition to return.
# @param from [Object] an optional `Time`, `DateTime` or {Timestamp}
# specifying the earliest (inclusive) transition to return.
+ # @param to [Object] a `Time`, `DateTime` or {Timestamp} specifying the
+ # latest (exclusive) transition to return.
# @raise [ArgumentError] if `from` is specified and `to` is not greater than
# `from`.
# @raise [ArgumentError] is raised if `to` is `nil`.
@@ -5638,7 +5639,7 @@ class TZInfo::TimezoneTransition
# {offset}, {previous_offset} and {timestamp_value} as this
# {TimezoneTransition}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/timezone_transition.rb#86
+ # source://tzinfo//lib/tzinfo/timezone_transition.rb#90
def eql?(tti); end
# @return [Integer] a hash based on {offset}, {previous_offset} and
@@ -5741,7 +5742,7 @@ class TZInfo::TransitionRule
# @return [Boolean] `true` if `r` is a {TransitionRule} with the same
# {transition_at} as this {TransitionRule}, otherwise `false`.
#
- # source://tzinfo//lib/tzinfo/transition_rule.rb#47
+ # source://tzinfo//lib/tzinfo/transition_rule.rb#50
def eql?(r); end
# @return [Integer] a hash based on {hash_args} (defaulting to
@@ -5780,10 +5781,10 @@ class TZInfo::TransitionsTimezonePeriod < ::TZInfo::TimezonePeriod
#
# At least one of `start_transition` and `end_transition` must be specified.
#
- # @param start_transition [TimezoneTransition] the transition that defines
- # the start of the period, or `nil` if the start is unbounded.
# @param end_transition [TimezoneTransition] the transition that defines the
# end of the period, or `nil` if the end is unbounded.
+ # @param start_transition [TimezoneTransition] the transition that defines
+ # the start of the period, or `nil` if the start is unbounded.
# @raise [ArgumentError] if both `start_transition` and `end_transition` are
# `nil`.
# @return [TransitionsTimezonePeriod] a new instance of TransitionsTimezonePeriod
@@ -5816,7 +5817,7 @@ class TZInfo::TransitionsTimezonePeriod < ::TZInfo::TimezonePeriod
# same {offset}, {start_transition} and {end_transition}, otherwise
# `false`.
#
- # source://tzinfo//lib/tzinfo/transitions_timezone_period.rb#47
+ # source://tzinfo//lib/tzinfo/transitions_timezone_period.rb#50
def eql?(p); end
# @return [Integer] a hash based on {start_transition} and {end_transition}.
diff --git a/sorbet/rbi/gems/uri@1.1.1.rbi b/sorbet/rbi/gems/uri@1.1.1.rbi
index e229a61b..485944c0 100644
--- a/sorbet/rbi/gems/uri@1.1.1.rbi
+++ b/sorbet/rbi/gems/uri@1.1.1.rbi
@@ -41,7 +41,7 @@ module Kernel
#
# You must require 'uri' to use this method.
#
- # source://uri//lib/uri/common.rb#911
+ # source://uri//lib/uri/common.rb#921
def URI(uri); end
end
end
@@ -774,7 +774,7 @@ class URI::Generic
# # => "http://my.example.com/main.rbx?page=1"
# merge
#
- # source://uri//lib/uri/generic.rb#1124
+ # source://uri//lib/uri/generic.rb#1164
def +(oth); end
# == Args
@@ -794,7 +794,7 @@ class URI::Generic
# uri.route_from('http://my.example.com')
# #=> #
#
- # source://uri//lib/uri/generic.rb#1274
+ # source://uri//lib/uri/generic.rb#1294
def -(oth); end
# Compares two URIs.
@@ -806,7 +806,7 @@ class URI::Generic
#
# @return [Boolean]
#
- # source://uri//lib/uri/generic.rb#987
+ # source://uri//lib/uri/generic.rb#994
def absolute; end
# Returns true if URI has a scheme (e.g. http:// or https://) specified.
@@ -1350,7 +1350,7 @@ class URI::Generic
# Constructs String from URI.
#
- # source://uri//lib/uri/generic.rb#1355
+ # source://uri//lib/uri/generic.rb#1394
def to_str; end
# Returns the user component (without URI decoding).
@@ -1944,7 +1944,7 @@ class URI::MailTo < ::URI::Generic
# uri.to_mailtext
# # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n"
#
- # source://uri//lib/uri/mailto.rb#268
+ # source://uri//lib/uri/mailto.rb#289
def to_rfc822text; end
# Constructs String from URI.
@@ -2336,7 +2336,7 @@ module URI::Util
def make_components_hash(klass, array_hash); end
class << self
- # source://uri//lib/uri/common.rb#66
+ # source://uri//lib/uri/common.rb#94
def make_components_hash(klass, array_hash); end
end
end
diff --git a/sorbet/rbi/gems/vcr@6.3.1.rbi b/sorbet/rbi/gems/vcr@6.3.1.rbi
index c540b19c..fe27cda5 100644
--- a/sorbet/rbi/gems/vcr@6.3.1.rbi
+++ b/sorbet/rbi/gems/vcr@6.3.1.rbi
@@ -194,8 +194,8 @@ module VCR
# @return [void]
# @see #turn_off!
# @see #turned_off
- # @see #turned_on?
# @see #turned_on
+ # @see #turned_on?
#
# source://vcr//lib/vcr.rb#327
def turn_on!; end
@@ -206,9 +206,9 @@ module VCR
# @raise [VCR::Errors::CassetteInUseError] if there is currently a cassette in use
# @raise [ArgumentError] if you pass an invalid option
# @return [void]
- # @see #turned_on
# @see #turn_off!
# @see #turn_on!
+ # @see #turned_on
# @see #turned_on?
#
# source://vcr//lib/vcr.rb#270
@@ -228,8 +228,8 @@ module VCR
# @note Normally VCR is _always_ turned on; it will only be off if you have
# explicitly turned it off.
# @return [Boolean] whether or not VCR is turned on
- # @see #turn_on!
# @see #turn_off!
+ # @see #turn_on!
# @see #turned_off
#
# source://vcr//lib/vcr.rb#337
@@ -272,8 +272,8 @@ module VCR
# @raise [VCR::Errors::MissingERBVariableError] when the `:erb` option
# is used and the ERB template requires variables that you did not provide.
# @return [void]
- # @see #insert_cassette
# @see #eject_cassette
+ # @see #insert_cassette
# @yield Block to run while this cassette is in use.
# @yieldparam cassette [(optional) VCR::Cassette] the cassette that has
# been inserted.
@@ -764,8 +764,8 @@ module VCR::Cassette::Persisters::FileSystem
# Sets the cassette for the given storage key (file name).
#
- # @param file_name [String] the file name
# @param content [String] the content to store
+ # @param file_name [String] the file name
#
# source://vcr//lib/vcr/cassette/persisters/file_system.rb#33
def []=(file_name, content); end
@@ -1107,8 +1107,8 @@ class VCR::Configuration
# @param filters [optional splat of #to_proc] one or more filters to apply.
# The objects provided will be converted to procs using `#to_proc`. If provided,
# the callback will only be invoked if these procs all return `true`.
- # @see #before_http_request
# @see #around_http_request
+ # @see #before_http_request
# @yield the callback
# @yieldparam request [VCR::Request::Typed] the request that is being made
# @yieldparam response [VCR::Response] the response from the request
@@ -1123,8 +1123,8 @@ class VCR::Configuration
# will be raised for any HTTP request made when there is no
# cassette in use.
#
- # @overload allow_http_connections_when_no_cassette?
# @overload allow_http_connections_when_no_cassette=
+ # @overload allow_http_connections_when_no_cassette?
#
# source://vcr//lib/vcr/configuration.rb#129
def allow_http_connections_when_no_cassette=(_arg0); end
@@ -1155,8 +1155,8 @@ class VCR::Configuration
# The objects provided will be converted to procs using `#to_proc`. If provided,
# the callback will only be invoked if these procs all return `true`.
# @raise [VCR::Errors::NotSupportedError] if the fiber library cannot be loaded.
- # @see #before_http_request
# @see #after_http_request
+ # @see #before_http_request
# @yield the callback
# @yieldparam request [VCR::Request::FiberAware] the request that is being made
#
@@ -1182,9 +1182,9 @@ class VCR::Configuration
# the given tag.
# @see #before_record
# @yield the callback
+ # @yieldparam cassette [(optional) VCR::Cassette] The current cassette.
# @yieldparam interaction [VCR::HTTPInteraction::HookAware] The interaction that is being
# loaded.
- # @yieldparam cassette [(optional) VCR::Cassette] The current cassette.
#
# source://vcr//lib/vcr/configuration.rb#325
def before_playback(tag = T.unsafe(nil), &block); end
@@ -1208,9 +1208,9 @@ class VCR::Configuration
# the given tag.
# @see #before_playback
# @yield the callback
+ # @yieldparam cassette [(optional) VCR::Cassette] The current cassette.
# @yieldparam interaction [VCR::HTTPInteraction::HookAware] The interaction that will be
# serialized and written to disk.
- # @yieldparam cassette [(optional) VCR::Cassette] The current cassette.
#
# source://vcr//lib/vcr/configuration.rb#297
def before_record(tag = T.unsafe(nil), &block); end
@@ -1361,7 +1361,7 @@ class VCR::Configuration
# @yieldparam interaction [(optional) VCR::HTTPInteraction::HookAware] the HTTP interaction
# @yieldreturn the string to replace
#
- # source://vcr//lib/vcr/configuration.rb#225
+ # source://vcr//lib/vcr/configuration.rb#238
def filter_sensitive_data(placeholder, tag = T.unsafe(nil), &block); end
# Configures which libraries VCR will hook into to intercept HTTP requests.
@@ -1385,7 +1385,7 @@ class VCR::Configuration
# @see #ignore_localhost=
# @see #ignore_request
#
- # source://vcr//lib/vcr/configuration.rb#75
+ # source://vcr//lib/vcr/configuration.rb#78
def ignore_host(*hosts); end
# Specifies host(s) that VCR should ignore.
@@ -1507,7 +1507,7 @@ class VCR::Configuration
# @param hosts [Array] List of hosts to unignore
# @see #ignore_hosts
#
- # source://vcr//lib/vcr/configuration.rb#84
+ # source://vcr//lib/vcr/configuration.rb#87
def unignore_host(*hosts); end
# Specifies host(s) that VCR should stop ignoring.
@@ -1597,24 +1597,24 @@ class VCR::Configuration
def tag_filter_from(tag); end
end
-# source://vcr//lib/vcr/configuration.rb#0
+# source://vcr//lib/vcr/configuration.rb#8
module VCR::Configuration::DefinedHooks
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/configuration.rb#347
def after_http_request(*filters, &hook); end
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/configuration.rb#587
def after_library_hooks_loaded(*filters, &hook); end
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/configuration.rb#345
def before_http_request(*filters, &hook); end
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/configuration.rb#301
def before_playback(*filters, &hook); end
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/configuration.rb#273
def before_record(*filters, &hook); end
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/configuration.rb#478
def preserve_exact_body_bytes(*filters, &hook); end
end
@@ -1636,7 +1636,7 @@ class VCR::CucumberTags
# - `:use_scenario_name => true` to automatically name the
# cassette according to the scenario name.
#
- # source://vcr//lib/vcr/test_frameworks/cucumber.rb#30
+ # source://vcr//lib/vcr/test_frameworks/cucumber.rb#80
def tag(*tag_names); end
# Adds `Before` and `After` cucumber hooks for the named tags that
@@ -1677,7 +1677,7 @@ class VCR::CucumberTags::ScenarioNameBuilder
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#90
def cassette_name; end
- # source://vcr//lib/vcr/test_frameworks/cucumber.rb#100
+ # source://vcr//lib/vcr/test_frameworks/cucumber.rb#101
def examples_table(*_arg0); end
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#103
@@ -1689,7 +1689,7 @@ class VCR::CucumberTags::ScenarioNameBuilder
# source://vcr//lib/vcr/test_frameworks/cucumber.rb#100
def scenario(*_arg0); end
- # source://vcr//lib/vcr/test_frameworks/cucumber.rb#94
+ # source://vcr//lib/vcr/test_frameworks/cucumber.rb#98
def scenario_outline(feature); end
end
@@ -1898,9 +1898,9 @@ class VCR::Errors::UnusedHTTPInteractionError < ::VCR::Errors::Error; end
# Represents a single interaction over HTTP, containing a request and a response.
#
+# @attr recorded_at [Time] when this HTTP interaction was recorded
# @attr request [Request] the request
# @attr response [Response] the response
-# @attr recorded_at [Time] when this HTTP interaction was recorded
#
# source://vcr//lib/vcr/structs.rb#504
class VCR::HTTPInteraction < ::Struct
@@ -1948,8 +1948,8 @@ class VCR::HTTPInteraction::HookAware
# Replaces a string in any part of the HTTP interaction (headers, request body,
# response body, etc) with the given replacement text.
#
- # @param text [#to_s] the text to replace
# @param replacement_text [#to_s] the text to put in its place
+ # @param text [#to_s] the text to replace
#
# source://vcr//lib/vcr/structs.rb#566
def filter!(text, replacement_text); end
@@ -2028,30 +2028,47 @@ class VCR::Hooks::FilteredHook < ::Struct
# Returns the value of attribute filters
#
# @return [Object] the current value of filters
+ #
+ # source://vcr//lib/vcr/util/hooks.rb#9
def filters; end
# Sets the attribute filters
#
# @param value [Object] the value to set the attribute filters to.
# @return [Object] the newly set value
+ #
+ # source://vcr//lib/vcr/util/hooks.rb#9
def filters=(_); end
# Returns the value of attribute hook
#
# @return [Object] the current value of hook
+ #
+ # source://vcr//lib/vcr/util/hooks.rb#9
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://vcr//lib/vcr/util/hooks.rb#9
def hook=(_); end
class << self
+ # source://vcr//lib/vcr/util/hooks.rb#9
def [](*_arg0); end
+
+ # source://vcr//lib/vcr/util/hooks.rb#9
def inspect; end
+
+ # source://vcr//lib/vcr/util/hooks.rb#9
def keyword_init?; end
+
+ # source://vcr//lib/vcr/util/hooks.rb#9
def members; end
+
+ # source://vcr//lib/vcr/util/hooks.rb#9
def new(*_arg0); end
end
end
@@ -2482,7 +2499,7 @@ module VCR::Ping
def pingecho(host, timeout = T.unsafe(nil), service = T.unsafe(nil)); end
class << self
- # source://vcr//lib/vcr/util/internet_connection.rb#9
+ # source://vcr//lib/vcr/util/internet_connection.rb#22
def pingecho(host, timeout = T.unsafe(nil), service = T.unsafe(nil)); end
end
end
@@ -2507,10 +2524,10 @@ end
# The request of an {HTTPInteraction}.
#
-# @attr method [Symbol] the HTTP method (i.e. :head, :options, :get, :post, :put, :patch or :delete)
-# @attr uri [String] the request URI
# @attr body [String, nil] the request body
# @attr headers [Hash{String => Array}] the request headers
+# @attr method [Symbol] the HTTP method (i.e. :head, :options, :get, :post, :put, :patch or :delete)
+# @attr uri [String] the request URI
#
# source://vcr//lib/vcr/structs.rb#179
class VCR::Request < ::Struct
@@ -2596,8 +2613,8 @@ class VCR::Request::Typed
# @return [Boolean] whether or not this request is being stubbed by an
# external library (such as WebMock).
- # @see #stubbed_by_vcr?
# @see #stubbed?
+ # @see #stubbed_by_vcr?
#
# source://vcr//lib/vcr/structs.rb#264
def externally_stubbed?; end
@@ -2620,8 +2637,8 @@ class VCR::Request::Typed
# @return [Boolean] whether or not this request will be stubbed.
# It may be stubbed by an external library or by VCR.
- # @see #stubbed_by_vcr?
# @see #externally_stubbed?
+ # @see #stubbed_by_vcr?
#
# source://vcr//lib/vcr/structs.rb#288
def stubbed?; end
@@ -2758,9 +2775,9 @@ class VCR::RequestIgnorer
def ignored_hosts; end
end
-# source://vcr//lib/vcr/request_ignorer.rb#0
+# source://vcr//lib/vcr/request_ignorer.rb#7
module VCR::RequestIgnorer::DefinedHooks
- # source://vcr//lib/vcr/util/hooks.rb#55
+ # source://vcr//lib/vcr/request_ignorer.rb#9
def ignore_request(*filters, &hook); end
end
@@ -2806,7 +2823,7 @@ class VCR::RequestMatcherRegistry
# @param ignores [Array<#to_s>] The names of the query parameters to ignore
# @return [#call] the request matcher
#
- # source://vcr//lib/vcr/request_matcher_registry.rb#91
+ # source://vcr//lib/vcr/request_matcher_registry.rb#94
def uri_without_param(*ignores); end
# Builds a dynamic request matcher that matches on a URI while ignoring the
@@ -2878,11 +2895,11 @@ end
# The response of an {HTTPInteraction}.
#
-# @attr status [ResponseStatus] the status of the response
-# @attr headers [Hash{String => Array}] the response headers
+# @attr adapter_metadata [Hash] Additional metadata used by a specific VCR adapter.
# @attr body [String] the response body
+# @attr headers [Hash{String => Array}] the response headers
# @attr http_version [nil, String] the HTTP version
-# @attr adapter_metadata [Hash] Additional metadata used by a specific VCR adapter.
+# @attr status [ResponseStatus] the status of the response
#
# source://vcr//lib/vcr/structs.rb#334
class VCR::Response < ::Struct
diff --git a/sorbet/rbi/gems/webmock@3.25.1.rbi b/sorbet/rbi/gems/webmock@3.25.1.rbi
index 62f0b9e8..0ba0dccb 100644
--- a/sorbet/rbi/gems/webmock@3.25.1.rbi
+++ b/sorbet/rbi/gems/webmock@3.25.1.rbi
@@ -92,12 +92,25 @@ module WebMock
include ::WebMock::API
extend ::WebMock::API
+ # source://webmock//lib/webmock/webmock.rb#168
def after_request(*args, &block); end
+
+ # source://webmock//lib/webmock/webmock.rb#168
def allow_net_connect!(*args, &block); end
+
+ # source://webmock//lib/webmock/webmock.rb#168
def disable_net_connect!(*args, &block); end
+
+ # source://webmock//lib/webmock/webmock.rb#168
def net_connect_allowed?(*args, &block); end
+
+ # source://webmock//lib/webmock/webmock.rb#168
def registered_request?(*args, &block); end
+
+ # source://webmock//lib/webmock/webmock.rb#168
def reset_callbacks(*args, &block); end
+
+ # source://webmock//lib/webmock/webmock.rb#168
def reset_webmock(*args, &block); end
class << self
@@ -113,13 +126,13 @@ module WebMock
# source://webmock//lib/webmock/webmock.rb#51
def disable_net_connect!(options = T.unsafe(nil)); end
- # source://webmock//lib/webmock/webmock.rb#51
+ # source://webmock//lib/webmock/webmock.rb#60
def disallow_net_connect!(options = T.unsafe(nil)); end
# source://webmock//lib/webmock/webmock.rb#38
def enable!(options = T.unsafe(nil)); end
- # source://webmock//lib/webmock/webmock.rb#46
+ # source://webmock//lib/webmock/webmock.rb#59
def enable_net_connect!(options = T.unsafe(nil)); end
# source://webmock//lib/webmock/webmock.rb#155
@@ -159,7 +172,7 @@ module WebMock
# source://webmock//lib/webmock/webmock.rb#147
def registered_request?(request_signature); end
- # source://webmock//lib/webmock/api.rb#14
+ # source://webmock//lib/webmock/webmock.rb#23
def request(method, uri); end
# source://webmock//lib/webmock/webmock.rb#129
@@ -222,7 +235,7 @@ module WebMock::API
# source://webmock//lib/webmock/api.rb#51
def hash_including(*args); end
- # source://webmock//lib/webmock/api.rb#31
+ # source://webmock//lib/webmock/api.rb#39
def refute_requested(*args, &block); end
# source://webmock//lib/webmock/api.rb#67
@@ -231,7 +244,7 @@ module WebMock::API
# source://webmock//lib/webmock/api.rb#71
def reset_executed_requests!; end
- # source://webmock//lib/webmock/api.rb#7
+ # source://webmock//lib/webmock/api.rb#12
def stub_http_request(method, uri); end
# source://webmock//lib/webmock/api.rb#7
@@ -254,7 +267,7 @@ module WebMock::API
def convert_uri_method_and_options_to_request_and_options(method, uri, options, &block); end
class << self
- # source://webmock//lib/webmock/api.rb#14
+ # source://webmock//lib/webmock/api.rb#19
def request(method, uri); end
end
end
@@ -339,10 +352,10 @@ class WebMock::BodyPattern
#
# {a: {b: 'wow'}} and {a: {b: 'wow'}}
#
- # @param query_parameters [Hash] typically the result of parsing
- # JSON, XML or URL encoded parameters.
# @param pattern [Hash] which contains keys with a string, hash or
# regular expression value to use for comparison.
+ # @param query_parameters [Hash] typically the result of parsing
+ # JSON, XML or URL encoded parameters.
# @return [Boolean] true if the paramaters match the comparison
# hash, false if not.
#
@@ -484,7 +497,10 @@ class WebMock::Config
class << self
private
+ # source://webmock//lib/webmock/config.rb#5
def allocate; end
+
+ # source://webmock//lib/webmock/config.rb#5
def new(*_arg0); end
end
end
@@ -599,7 +615,10 @@ class WebMock::HttpLibAdapterRegistry
class << self
private
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#5
def allocate; end
+
+ # source://webmock//lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb#5
def new(*_arg0); end
end
end
@@ -1015,7 +1034,10 @@ class WebMock::RequestRegistry
class << self
private
+ # source://webmock//lib/webmock/request_registry.rb#6
def allocate; end
+
+ # source://webmock//lib/webmock/request_registry.rb#6
def new(*_arg0); end
end
end
@@ -1029,7 +1051,7 @@ class WebMock::RequestSignature
# @return [Boolean]
#
- # source://webmock//lib/webmock/request_signature.rb#34
+ # source://webmock//lib/webmock/request_signature.rb#37
def ==(other); end
# Returns the value of attribute body.
@@ -1148,18 +1170,18 @@ class WebMock::RequestStub
# source://webmock//lib/webmock/request_stub.rb#8
def initialize(method, uri); end
- # source://webmock//lib/webmock/request_stub.rb#65
+ # source://webmock//lib/webmock/request_stub.rb#71
def and_raise(*exceptions); end
- # source://webmock//lib/webmock/request_stub.rb#19
+ # source://webmock//lib/webmock/request_stub.rb#27
def and_return(*response_hashes, &block); end
# @raise [ArgumentError]
#
- # source://webmock//lib/webmock/request_stub.rb#29
+ # source://webmock//lib/webmock/request_stub.rb#59
def and_return_json(*response_hashes); end
- # source://webmock//lib/webmock/request_stub.rb#73
+ # source://webmock//lib/webmock/request_stub.rb#77
def and_timeout; end
# @return [Boolean]
@@ -1383,7 +1405,10 @@ class WebMock::StubRegistry
class << self
private
+ # source://webmock//lib/webmock/stub_registry.rb#6
def allocate; end
+
+ # source://webmock//lib/webmock/stub_registry.rb#6
def new(*_arg0); end
end
end
diff --git a/sorbet/rbi/gems/zeitwerk@2.7.3.rbi b/sorbet/rbi/gems/zeitwerk@2.7.3.rbi
index e8dc87d9..c1e06397 100644
--- a/sorbet/rbi/gems/zeitwerk@2.7.3.rbi
+++ b/sorbet/rbi/gems/zeitwerk@2.7.3.rbi
@@ -9,16 +9,42 @@
module Kernel
private
- # : (String) -> bool
- #
# source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#23
def require(path); end
+ # Zeitwerk's main idea is to define autoloads for project constants, and then
+ # intercept them when triggered in this thin `Kernel#require` wrapper.
+ #
+ # That allows us to complete the circle, invoke callbacks, autovivify modules,
+ # define autoloads for just autoloaded namespaces, update internal state, etc.
+ #
+ # On the other hand, if you publish a new version of a gem that is now managed
+ # by Zeitwerk, client code can reference directly your classes and modules and
+ # should not require anything. But if someone has legacy require calls around,
+ # they will work as expected, and in a compatible way. This feature is by now
+ # EXPERIMENTAL and UNDOCUMENTED.
+ #
+ # source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#17
+ def zeitwerk_original_require(name); end
+
class << self
- # : (String) -> bool
- #
# source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#23
def require(path); end
+
+ # Zeitwerk's main idea is to define autoloads for project constants, and then
+ # intercept them when triggered in this thin `Kernel#require` wrapper.
+ #
+ # That allows us to complete the circle, invoke callbacks, autovivify modules,
+ # define autoloads for just autoloaded namespaces, update internal state, etc.
+ #
+ # On the other hand, if you publish a new version of a gem that is now managed
+ # by Zeitwerk, client code can reference directly your classes and modules and
+ # should not require anything. But if someone has legacy require calls around,
+ # they will work as expected, and in a compatible way. This feature is by now
+ # EXPERIMENTAL and UNDOCUMENTED.
+ #
+ # source://zeitwerk//lib/zeitwerk/core_ext/kernel.rb#19
+ def zeitwerk_original_require(name); end
end
end
@@ -31,7 +57,6 @@ module Zeitwerk
class << self
# This is a dangerous method.
#
- # : () -> void
#
# source://zeitwerk//lib/zeitwerk.rb#23
def with_loader; end
@@ -40,8 +65,6 @@ end
# source://zeitwerk//lib/zeitwerk/core_ext/module.rb#3
module Zeitwerk::ConstAdded
- # : (Symbol) -> void
- #
# source://zeitwerk//lib/zeitwerk/core_ext/module.rb#5
def const_added(cname); end
end
@@ -64,128 +87,87 @@ class Zeitwerk::Cref
# The type of the first argument is Module because Class < Module, class
# objects are also valid.
#
- # : (Module, Symbol) -> void
#
# @return [Cref] a new instance of Cref
#
# source://zeitwerk//lib/zeitwerk/cref.rb#28
def initialize(mod, cname); end
- # : (String) -> nil
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#46
def autoload(abspath); end
- # : () -> String?
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/cref.rb#41
def autoload?; end
- # : Symbol
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#22
def cname; end
- # : () -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/cref.rb#51
def defined?; end
- # : () -> top ! NameError
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#61
def get; end
- # : Module
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#19
def mod; end
- # : () -> String
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#35
def path; end
- # : () -> void ! NameError
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#66
def remove; end
- # : (top) -> top
- #
# source://zeitwerk//lib/zeitwerk/cref.rb#56
def set(value); end
- # : () -> String
- #
- # source://zeitwerk//lib/zeitwerk/cref.rb#35
+ # source://zeitwerk//lib/zeitwerk/cref.rb#38
def to_s; end
end
-# : [Value]
-#
# source://zeitwerk//lib/zeitwerk/cref/map.rb#73
class Zeitwerk::Cref::Map
- # : () -> void
- #
# @return [Map] a new instance of Map
#
# source://zeitwerk//lib/zeitwerk/cref/map.rb#75
def initialize; end
- # : (Zeitwerk::Cref) -> Value?
- #
# source://zeitwerk//lib/zeitwerk/cref/map.rb#90
def [](cref); end
- # : (Zeitwerk::Cref, Value) -> Value
- #
# source://zeitwerk//lib/zeitwerk/cref/map.rb#82
def []=(cref, value); end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/cref/map.rb#147
def clear; end
- # : (Zeitwerk::Cref) -> Value?
- #
# source://zeitwerk//lib/zeitwerk/cref/map.rb#105
def delete(cref); end
- # : (Value) -> void
- #
# source://zeitwerk//lib/zeitwerk/cref/map.rb#124
def delete_by_value(value); end
# Ad-hoc for loader_for, called from const_added. That is a hot path, I prefer
# to not create a cref in every call, since that is global.
#
- # : (Module, Symbol) -> Value?
#
# source://zeitwerk//lib/zeitwerk/cref/map.rb#113
def delete_mod_cname(mod, cname); end
# Order of yielded crefs is undefined.
#
- # : () { (Zeitwerk::Cref) -> void } -> void
#
# source://zeitwerk//lib/zeitwerk/cref/map.rb#136
def each_key; end
- # : () -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/cref/map.rb#154
def empty?; end
- # : (Zeitwerk::Cref, { () -> Value }) -> Value
- #
# source://zeitwerk//lib/zeitwerk/cref/map.rb#97
def get_or_set(cref, &block); end
end
@@ -195,15 +177,11 @@ class Zeitwerk::Error < ::StandardError; end
# source://zeitwerk//lib/zeitwerk/gem_inflector.rb#4
class Zeitwerk::GemInflector < ::Zeitwerk::Inflector
- # : (String) -> void
- #
# @return [GemInflector] a new instance of GemInflector
#
# source://zeitwerk//lib/zeitwerk/gem_inflector.rb#6
def initialize(root_file); end
- # : (String, String) -> String
- #
# source://zeitwerk//lib/zeitwerk/gem_inflector.rb#13
def camelize(basename, abspath); end
end
@@ -212,28 +190,20 @@ end
#
# source://zeitwerk//lib/zeitwerk/gem_loader.rb#5
class Zeitwerk::GemLoader < ::Zeitwerk::Loader
- # : (String, namespace: Module, warn_on_extra_files: boolish) -> void
- #
# @return [GemLoader] a new instance of GemLoader
#
# source://zeitwerk//lib/zeitwerk/gem_loader.rb#19
def initialize(root_file, namespace:, warn_on_extra_files:); end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/gem_loader.rb#34
def setup; end
private
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/gem_loader.rb#42
def warn_on_extra_files; end
class << self
- # : (String, namespace: Module, warn_on_extra_files: boolish) -> Zeitwerk::GemLoader
- #
# @private
#
# source://zeitwerk//lib/zeitwerk/gem_loader.rb#14
@@ -241,6 +211,7 @@ class Zeitwerk::GemLoader < ::Zeitwerk::Loader
private
+ # source://zeitwerk//lib/zeitwerk/gem_loader.rb#10
def new(*_arg0); end
end
end
@@ -256,7 +227,6 @@ class Zeitwerk::Inflector
#
# Takes into account hard-coded mappings configured with `inflect`.
#
- # : (String, String) -> String
#
# source://zeitwerk//lib/zeitwerk/inflector.rb#15
def camelize(basename, _abspath); end
@@ -273,7 +243,6 @@ class Zeitwerk::Inflector
# inflector.camelize("mysql_adapter", abspath) # => "MySQLAdapter"
# inflector.camelize("users_controller", abspath) # => "UsersController"
#
- # : (Hash[String, String]) -> void
#
# source://zeitwerk//lib/zeitwerk/inflector.rb#32
def inflect(inflections); end
@@ -283,7 +252,6 @@ class Zeitwerk::Inflector
# Hard-coded basename to constant name user maps that override the default
# inflection logic.
#
- # : () -> Hash[String, String]
#
# source://zeitwerk//lib/zeitwerk/inflector.rb#42
def overrides; end
@@ -293,8 +261,6 @@ end
#
# source://zeitwerk//lib/zeitwerk/internal.rb#4
module Zeitwerk::Internal
- # : (Symbol) -> void
- #
# source://zeitwerk//lib/zeitwerk/internal.rb#6
def internal(method_name); end
end
@@ -314,37 +280,34 @@ class Zeitwerk::Loader
# source://zeitwerk//lib/zeitwerk/loader.rb#107
def initialize; end
- # source://zeitwerk//lib/zeitwerk/loader.rb#66
+ # source://zeitwerk//lib/zeitwerk/loader.rb#67
def __autoloaded_dirs; end
- # source://zeitwerk//lib/zeitwerk/loader.rb#32
+ # source://zeitwerk//lib/zeitwerk/loader.rb#33
def __autoloads; end
- # source://zeitwerk//lib/zeitwerk/loader.rb#56
+ # source://zeitwerk//lib/zeitwerk/loader.rb#57
def __inceptions; end
- # source://zeitwerk//lib/zeitwerk/loader.rb#85
+ # source://zeitwerk//lib/zeitwerk/loader.rb#86
def __namespace_dirs; end
# source://zeitwerk//lib/zeitwerk/loader.rb#362
def __shadowed_file?(file); end
- # source://zeitwerk//lib/zeitwerk/loader.rb#96
+ # source://zeitwerk//lib/zeitwerk/loader.rb#97
def __shadowed_files; end
- # source://zeitwerk//lib/zeitwerk/loader.rb#76
+ # source://zeitwerk//lib/zeitwerk/loader.rb#77
def __to_unload; end
# Returns a hash that maps the absolute paths of the managed files and
# directories to their respective expected constant paths.
#
- # : () -> Hash[String, String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#247
def all_expected_cpaths; end
- # : (String | Pathname) -> String?
- #
# @raise [Zeitwerk::Error]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#277
@@ -356,7 +319,6 @@ class Zeitwerk::Loader
# This method is not thread-safe, please see how this can be achieved by
# client code in the README of the project.
#
- # : () -> void ! Zeitwerk::Error
#
# @raise [ReloadingDisabledError]
#
@@ -365,7 +327,6 @@ class Zeitwerk::Loader
# Sets autoloads in the root namespaces.
#
- # : () -> void
#
# source://zeitwerk//lib/zeitwerk/loader.rb#128
def setup; end
@@ -381,7 +342,6 @@ class Zeitwerk::Loader
# means `unload` + `setup`. This one is available to be used together with
# `unregister`, which is undocumented too.
#
- # : () -> void
#
# source://zeitwerk//lib/zeitwerk/loader.rb#154
def unload; end
@@ -392,7 +352,6 @@ class Zeitwerk::Loader
# This is an undocumented method that I wrote to help transition from the
# classic autoloader in Rails. Its usage was removed from Rails in 7.0.
#
- # : (String) -> bool
#
# @return [Boolean]
#
@@ -405,34 +364,26 @@ class Zeitwerk::Loader
# This is an undocumented method that I wrote to help transition from the
# classic autoloader in Rails. Its usage was removed from Rails in 7.0.
#
- # : () -> Array[String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#342
def unloadable_cpaths; end
# This is a dangerous method.
#
- # : () -> void
#
# source://zeitwerk//lib/zeitwerk/loader.rb#350
def unregister; end
private
- # : (Zeitwerk::Cref, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#513
def autoload_file(cref, file); end
- # : (Zeitwerk::Cref) -> String?
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#565
def autoload_path_set_by_me_for?(cref); end
- # : (Zeitwerk::Cref, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#484
def autoload_subdir(cref, subdir); end
@@ -442,7 +393,6 @@ class Zeitwerk::Loader
# Files are removed as they are autoloaded, but directories need to wait due
# to concurrency (see why in Zeitwerk::Loader::Callbacks#on_dir_autoloaded).
#
- # : Array[String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#66
def autoloaded_dirs; end
@@ -454,23 +404,16 @@ class Zeitwerk::Loader
# "/Users/fxn/blog/app/models/hotel/pricing.rb" => #,
# ...
#
- # : Hash[String, Zeitwerk::Cref]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#32
def autoloads; end
- # : (Zeitwerk::Cref, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#547
def define_autoload(cref, abspath); end
- # : (String, Module) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#466
def define_autoloads_for_dir(dir, parent); end
- # : Monitor
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#104
def dirs_autoload_monitor; end
@@ -494,13 +437,10 @@ class Zeitwerk::Loader
# The object Zeitwerk::Registry.inceptions, on the other hand, acts as a
# global registry for them.
#
- # : Zeitwerk::Cref::Map[String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#56
def inceptions; end
- # : Mutex
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#100
def mutex; end
@@ -509,7 +449,6 @@ class Zeitwerk::Loader
# When these crefs get defined we know their children are spread over those
# directories. We'll visit them to set up the corresponding autoloads.
#
- # : Zeitwerk::Cref::Map[String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#85
def namespace_dirs; end
@@ -517,28 +456,19 @@ class Zeitwerk::Loader
# `dir` is the directory that would have autovivified a namespace. `file` is
# the file where we've found the namespace is explicitly defined.
#
- # : (dir: String, file: String, cref: Zeitwerk::Cref) -> void
#
# source://zeitwerk//lib/zeitwerk/loader.rb#534
def promote_namespace_from_implicit_to_explicit(dir:, file:, cref:); end
- # : (String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#598
def raise_if_conflicting_directory(dir); end
- # : (Zeitwerk::Cref) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#574
def register_explicit_namespace(cref); end
- # : (Zeitwerk::Cref, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#584
def register_inception(cref, abspath); end
- # : (String, top, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#622
def run_on_unload_callbacks(cref, value, abspath); end
@@ -552,7 +482,6 @@ class Zeitwerk::Loader
# loader has only scanned the top-level, `shadowed_files` does not have the
# shadowed files that may exist deep in the project tree.
#
- # : Set[String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#96
def shadowed_files; end
@@ -563,28 +492,19 @@ class Zeitwerk::Loader
# On unload, the autoload paths are passed to callbacks, files deleted from
# $LOADED_FEATURES, and the crefs are deleted.
#
- # : Hash[String, Zeitwerk::Cref]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#76
def to_unload; end
- # : (Zeitwerk::Cref) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#629
def unload_autoload(cref); end
- # : (Zeitwerk::Cref) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#635
def unload_cref(cref); end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#579
def unregister_explicit_namespaces; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#590
def unregister_inceptions; end
@@ -592,25 +512,19 @@ class Zeitwerk::Loader
# Returns an array with the absolute paths of the root directories of all
# registered loaders. This is a read-only collection.
#
- # : () -> Array[String]
#
# source://zeitwerk//lib/zeitwerk/loader.rb#456
def all_dirs; end
- # : call(String) -> void | debug(String) -> void | nil
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#372
def default_logger; end
- # : call(String) -> void | debug(String) -> void | nil
- #
# source://zeitwerk//lib/zeitwerk/loader.rb#372
def default_logger=(_arg0); end
# Broadcasts `eager_load` to all loaders. Those that have not been setup
# are skipped.
#
- # : () -> void
#
# source://zeitwerk//lib/zeitwerk/loader.rb#428
def eager_load_all; end
@@ -618,7 +532,6 @@ class Zeitwerk::Loader
# Broadcasts `eager_load_namespace` to all loaders. Those that have not
# been setup are skipped.
#
- # : (Module) -> void
#
# source://zeitwerk//lib/zeitwerk/loader.rb#442
def eager_load_namespace(mod); end
@@ -638,7 +551,6 @@ class Zeitwerk::Loader
# This method returns a subclass of Zeitwerk::Loader, but the exact type
# is private, client code can only rely on the interface.
#
- # : (?warn_on_extra_files: boolish) -> Zeitwerk::GemLoader
#
# source://zeitwerk//lib/zeitwerk/loader.rb#390
def for_gem(warn_on_extra_files: T.unsafe(nil)); end
@@ -658,7 +570,6 @@ class Zeitwerk::Loader
# This method returns a subclass of Zeitwerk::Loader, but the exact type
# is private, client code can only rely on the interface.
#
- # : (Module) -> Zeitwerk::GemLoader
#
# source://zeitwerk//lib/zeitwerk/loader.rb#411
def for_gem_extension(namespace); end
@@ -689,8 +600,6 @@ module Zeitwerk::Loader::Callbacks
# source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#77
def on_namespace_loaded(cref, namespace); end
- # : (String, top, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#88
def run_on_load_callbacks(cpath, value, abspath); end
end
@@ -706,11 +615,11 @@ module Zeitwerk::Loader::Config
# source://zeitwerk//lib/zeitwerk/loader/config.rb#289
def __ignores?(abspath); end
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#30
def __roots; end
# Configure directories or glob patterns to be collapsed.
#
- # : (*(String | Pathname | Array[String | Pathname])) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#213
def collapse(*glob_patterns); end
@@ -724,7 +633,6 @@ module Zeitwerk::Loader::Config
#
# These are read-only collections, please add to them with `push_dir`.
#
- # : (?namespaces: boolish, ?ignored: boolish) -> Array[String] | Hash[String, Module]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#154
def dirs(namespaces: T.unsafe(nil), ignored: T.unsafe(nil)); end
@@ -732,7 +640,6 @@ module Zeitwerk::Loader::Config
# Let eager load ignore the given files or directories. The constants defined
# in those files are still autoloadable.
#
- # : (*(String | Pathname | Array[String | Pathname])) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#195
def do_not_eager_load(*paths); end
@@ -740,42 +647,31 @@ module Zeitwerk::Loader::Config
# You need to call this method before setup in order to be able to reload.
# There is no way to undo this, either you want to reload or you don't.
#
- # : () -> void ! Zeitwerk::Error
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#174
def enable_reloading; end
# Configure files, directories, or glob patterns to be totally ignored.
#
- # : (*(String | Pathname | Array[String | Pathname])) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#202
def ignore(*glob_patterns); end
- # : camelize(String, String) -> String
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#11
def inflector; end
- # : camelize(String, String) -> String
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#11
def inflector=(_arg0); end
# Logs to `$stdout`, handy shortcut for debugging.
#
- # : () -> void
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#281
def log!; end
- # : call(String) -> void | debug(String) -> void | nil
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#14
def logger; end
- # : call(String) -> void | debug(String) -> void | nil
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#14
def logger=(_arg0); end
@@ -793,7 +689,6 @@ module Zeitwerk::Loader::Config
# # ...
# end
#
- # : (String?) { (top, String) -> void } -> void ! TypeError
#
# @raise [TypeError]
#
@@ -803,7 +698,6 @@ module Zeitwerk::Loader::Config
# Configure a block to be called after setup and on each reload.
# If setup was already done, the block runs immediately.
#
- # : () { () -> void } -> void
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#225
def on_setup(&block); end
@@ -822,7 +716,6 @@ module Zeitwerk::Loader::Config
# # ...
# end
#
- # : (String?) { (top, String) -> void } -> void ! TypeError
#
# @raise [TypeError]
#
@@ -835,13 +728,10 @@ module Zeitwerk::Loader::Config
# the same process already manages that directory or one of its ascendants or
# descendants.
#
- # : (String | Pathname, namespace: Module) -> void ! Zeitwerk::Error
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#109
def push_dir(path, namespace: T.unsafe(nil)); end
- # : () -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#187
@@ -852,27 +742,21 @@ module Zeitwerk::Loader::Config
# Implemented as a method instead of via attr_reader for symmetry with the
# writer below.
#
- # : () -> String
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#133
def tag; end
# Sets a tag for the loader, useful for logging.
#
- # : (to_s() -> String) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#140
def tag=(tag); end
private
- # : () -> Array[String]
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#307
def actual_roots; end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#332
@@ -881,51 +765,39 @@ module Zeitwerk::Loader::Config
# The actual collection of absolute directory names at the time the collapse
# glob patterns were expanded. Computed on setup, and recomputed on reload.
#
- # : Set[String]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#56
def collapse_dirs; end
# Absolute paths of directories or glob patterns to be collapsed.
#
- # : Set[String]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#49
def collapse_glob_patterns; end
# Absolute paths of files or directories not to be eager loaded.
#
- # : Set[String]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#62
def eager_load_exclusions; end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#319
def excluded_from_eager_load?(abspath); end
- # : (Array[String]) -> Array[String]
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#342
def expand_glob_patterns(glob_patterns); end
- # : (String | Pathname | Array[String | Pathname]) -> Array[String]
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#337
def expand_paths(paths); end
# Absolute paths of files, directories, or glob patterns to be ignored.
#
- # : Set[String]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#35
def ignored_glob_patterns; end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#302
@@ -935,7 +807,6 @@ module Zeitwerk::Loader::Config
# ignored glob patterns were expanded. Computed on setup, and recomputed on
# reload.
#
- # : Set[String]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#43
def ignored_paths; end
@@ -945,39 +816,28 @@ module Zeitwerk::Loader::Config
# User-oriented callbacks to be fired when a constant is loaded.
#
- # : Hash[String, Array[{ (top, String) -> void }]]
- # | Hash[Symbol, Array[{ (String, top, String) -> void }]]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#75
def on_load_callbacks; end
# User-oriented callbacks to be fired on setup and on reload.
#
- # : Array[{ () -> void }]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#68
def on_setup_callbacks; end
# User-oriented callbacks to be fired before constants are removed.
#
- # : Hash[String, Array[{ (top, String) -> void }]]
- # | Hash[Symbol, Array[{ (String, top, String) -> void }]]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#82
def on_unload_callbacks; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#354
def recompute_collapse_dirs; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/loader/config.rb#349
def recompute_ignored_paths; end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#314
@@ -995,7 +855,6 @@ module Zeitwerk::Loader::Config
# This is a private collection maintained by the loader. The public
# interface for it is `push_dir` and `dirs`.
#
- # : Hash[String, Module]
#
# source://zeitwerk//lib/zeitwerk/loader/config.rb#29
def roots; end
@@ -1009,20 +868,15 @@ module Zeitwerk::Loader::EagerLoad
# specific files and directories with `do_not_eager_load`, and that can be
# overridden passing `force: true`.
#
- # : (?force: boolish) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#9
def eager_load(force: T.unsafe(nil)); end
- # : (String | Pathname) -> void
- #
# @raise [Zeitwerk::SetupRequired]
#
# source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#32
def eager_load_dir(path); end
- # : (Module) -> void
- #
# @raise [Zeitwerk::SetupRequired]
#
# source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#74
@@ -1035,7 +889,6 @@ module Zeitwerk::Loader::EagerLoad
# The method is implemented as `constantize` for files, in a sense, to be able
# to descend orderly and make sure the file is loadable.
#
- # : (String | Pathname) -> void
#
# @raise [Zeitwerk::Error]
#
@@ -1047,7 +900,6 @@ module Zeitwerk::Loader::EagerLoad
# The caller is responsible for making sure `namespace` is the namespace that
# corresponds to `dir`.
#
- # : (String, Module, ?force: boolish) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#160
def actual_eager_load_dir(dir, namespace, force: T.unsafe(nil)); end
@@ -1055,7 +907,6 @@ module Zeitwerk::Loader::EagerLoad
# In order to invoke this method, the caller has to ensure `child` is a
# strict namespace descendant of `root_namespace`.
#
- # : (Module, String, String, Module) -> void
#
# source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#193
def eager_load_child_namespace(child, child_name, root_dir, root_namespace); end
@@ -1065,13 +916,9 @@ end
module Zeitwerk::Loader::Helpers
private
- # : (String, String) -> Symbol ! Zeitwerk::NameError
- #
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#107
def cname_for(basename, abspath); end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#83
@@ -1081,39 +928,28 @@ module Zeitwerk::Loader::Helpers
# important to list as less directories as possible and return fast in the
# common case in which there are Ruby files.
#
- # : (String) -> bool
#
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#56
def has_at_least_one_ruby_file?(dir); end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#88
def hidden?(basename); end
- # : (to_s() -> String) -> void
- #
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#7
def log(message); end
- # : (String) { (String, String, Symbol) -> void } -> void
- #
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#15
def ls(dir); end
- # : (String) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#78
def ruby?(path); end
- # : (String) { (String) -> void } -> void
- #
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#93
def walk_up(abspath); end
end
@@ -1123,8 +959,6 @@ end
# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#103
module Zeitwerk::Loader::Helpers::CNAME_VALIDATOR; end
-# : Mutex
-#
# source://zeitwerk//lib/zeitwerk/loader.rb#21
Zeitwerk::Loader::MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
@@ -1133,8 +967,6 @@ class Zeitwerk::NameError < ::NameError; end
# source://zeitwerk//lib/zeitwerk/null_inflector.rb#1
class Zeitwerk::NullInflector
- # : (String, String) -> String
- #
# source://zeitwerk//lib/zeitwerk/null_inflector.rb#3
def camelize(basename, _abspath); end
end
@@ -1148,14 +980,11 @@ module Zeitwerk::RealModName
# with a permanent name, not so much what the user considers to be the name of
# a certain class or module of theirs.
#
- # : (Module) -> String?
#
# source://zeitwerk//lib/zeitwerk/real_mod_name.rb#16
def real_mod_name(mod); end
end
-# : UnboundMethod
-#
# source://zeitwerk//lib/zeitwerk/real_mod_name.rb#5
Zeitwerk::RealModName::UNBOUND_METHOD_MODULE_NAME = T.let(T.unsafe(nil), UnboundMethod)
@@ -1167,15 +996,12 @@ module Zeitwerk::Registry
# This information is used by our decorated `Kernel#require` to be able to
# invoke callbacks and autovivify modules.
#
- # : Zeitwerk::Registry::Autoloads
#
# @private
#
# source://zeitwerk//lib/zeitwerk/registry.rb#31
def autoloads; end
- # : Zeitwerk::Registry::ExplicitNamespaces
- #
# @private
#
# source://zeitwerk//lib/zeitwerk/registry.rb#35
@@ -1183,15 +1009,12 @@ module Zeitwerk::Registry
# Registers gem loaders to let `for_gem` be idempotent in case of reload.
#
- # : Hash[String, Zeitwerk::Loader]
#
# @private
#
# source://zeitwerk//lib/zeitwerk/registry.rb#22
def gem_loaders_by_root_file; end
- # : Zeitwerk::Registry::Inceptions
- #
# @private
#
# source://zeitwerk//lib/zeitwerk/registry.rb#39
@@ -1200,7 +1023,6 @@ module Zeitwerk::Registry
# This method returns always a loader, the same instance for the same root
# file. That is how Zeitwerk::Loader.for_gem is idempotent.
#
- # : (String, namespace: Module, warn_on_extra_files: boolish) -> Zeitwerk::Loader
#
# @private
#
@@ -1210,15 +1032,12 @@ module Zeitwerk::Registry
# Keeps track of all loaders. Useful to broadcast messages and to prevent
# them from being garbage collected.
#
- # : Zeitwerk::Registry::Loaders
#
# @private
#
# source://zeitwerk//lib/zeitwerk/registry.rb#16
def loaders; end
- # : (Zeitwerk::Loader) -> void
- #
# @private
#
# source://zeitwerk//lib/zeitwerk/registry.rb#43
@@ -1228,44 +1047,30 @@ end
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#2
class Zeitwerk::Registry::Autoloads
- # : () -> void
- #
# @return [Autoloads] a new instance of Autoloads
#
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#4
def initialize; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#34
def clear; end
- # : () -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#29
def empty?; end
- # : (String, Zeitwerk::Loader) -> Zeitwerk::Loader
- #
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#9
def register(abspath, loader); end
- # : (String) -> Zeitwerk::Loader?
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#14
def registered?(path); end
- # : (String) -> Zeitwerk::Loader?
- #
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#19
def unregister(abspath); end
- # : (Zeitwerk::Loader) -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/autoloads.rb#24
def unregister_loader(loader); end
end
@@ -1290,42 +1095,32 @@ end
#
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#21
class Zeitwerk::Registry::ExplicitNamespaces
- # : () -> void
- #
# @return [ExplicitNamespaces] a new instance of ExplicitNamespaces
#
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#23
def initialize; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#57
def clear; end
- # : (Module, Symbol) -> Zeitwerk::Loader?
- #
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#40
def loader_for(mod, cname); end
# Registers `cref` as being the constant path of an explicit namespace
# managed by `loader`.
#
- # : (Zeitwerk::Cref, Zeitwerk::Loader) -> void
#
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#35
def register(cref, loader); end
# This is an internal method only used by the test suite.
#
- # : (Zeitwerk::Cref) -> Zeitwerk::Loader?
#
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#52
def registered?(cref); end
- # : (Zeitwerk::Loader) -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/explicit_namespaces.rb#45
def unregister_loader(loader); end
end
@@ -1336,77 +1131,53 @@ end
#
# source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#5
class Zeitwerk::Registry::Inceptions
- # : () -> void
- #
# @return [Inceptions] a new instance of Inceptions
#
# source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#7
def initialize; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#27
def clear; end
- # : (Zeitwerk::Cref, String) -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#12
def register(cref, abspath); end
- # : (Zeitwerk::Cref) -> String?
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#17
def registered?(cref); end
- # : (Zeitwerk::Cref) -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/inceptions.rb#22
def unregister(cref); end
end
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#2
class Zeitwerk::Registry::Loaders
- # : () -> void
- #
# @return [Loaders] a new instance of Loaders
#
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#4
def initialize; end
- # : () -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#29
def clear; end
- # : ({ (Zeitwerk::Loader) -> void }) -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#9
def each(&block); end
- # : (Zeitwerk::Loader) -> void
- #
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#14
def register(loader); end
- # : (Zeitwerk::Loader) -> bool
- #
# @return [Boolean]
#
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#24
def registered?(loader); end
- # : (Zeitwerk::Loader) -> Zeitwerk::Loader?
- #
# source://zeitwerk//lib/zeitwerk/registry/loaders.rb#19
def unregister(loader); end
end
# source://zeitwerk//lib/zeitwerk/error.rb#7
class Zeitwerk::ReloadingDisabledError < ::Zeitwerk::Error
- # : () -> void
- #
# @return [ReloadingDisabledError] a new instance of ReloadingDisabledError
#
# source://zeitwerk//lib/zeitwerk/error.rb#9
@@ -1415,15 +1186,11 @@ end
# source://zeitwerk//lib/zeitwerk/error.rb#17
class Zeitwerk::SetupRequired < ::Zeitwerk::Error
- # : () -> void
- #
# @return [SetupRequired] a new instance of SetupRequired
#
# source://zeitwerk//lib/zeitwerk/error.rb#19
def initialize; end
end
-# : String
-#
# source://zeitwerk//lib/zeitwerk/version.rb#5
Zeitwerk::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/shims/lib/roast/execution_context.rbi b/sorbet/rbi/shims/lib/roast/execution_context.rbi
index c703ca34..2474190e 100644
--- a/sorbet/rbi/shims/lib/roast/execution_context.rbi
+++ b/sorbet/rbi/shims/lib/roast/execution_context.rbi
@@ -320,7 +320,7 @@ module Roast
# ### See Also
# - `chat` - Pure LLM interaction without local system access
#
- #: (?Symbol?) {(Roast::Cogs::Agent::Input, untyped, Integer) [self: Roast::CogInputContext] -> (String | void)} -> void
+ #: (?Symbol?) {(Roast::Cogs::Agent::Input, untyped, Integer) [self: Roast::CogInputContext] -> top} -> void
def agent(name = nil, &block); end
# Perform pure LLM interaction
@@ -376,7 +376,7 @@ module Roast
# ### See Also
# - `agent` - Run a coding agent with local filesystem access
#
- #: (?Symbol?) {(Roast::Cogs::Chat::Input, untyped, Integer) [self: Roast::CogInputContext] -> (String | void)} -> void
+ #: (?Symbol?) {(Roast::Cogs::Chat::Input, untyped, Integer) [self: Roast::CogInputContext] -> top} -> void
def chat(name = nil, &block); end
# Execute a shell command
@@ -438,7 +438,7 @@ module Roast
# ### See Also
# - `ruby` - Evaluate Ruby code within the workflow context
#
- #: (?Symbol?) {(Roast::Cogs::Cmd::Input, untyped, Integer) [self: Roast::CogInputContext] -> (String | Array[String] | void)} -> void
+ #: (?Symbol?) {(Roast::Cogs::Cmd::Input, untyped, Integer) [self: Roast::CogInputContext] -> top} -> void
def cmd(name = nil, &block); end
# Evaluate Ruby code within the workflow context