diff --git a/CHANGELOG.md b/CHANGELOG.md
index 294620a..ee9627c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,12 +1,13 @@
# Changelog
-## Unreleased
+## 1.9.2
- Rubocop offenses resolved
- Sorbet signatures added to `RSpec::Sorbet::Doubles`
- Added `RSpec::Sorbet.reset!` to restore handlers to previous state
- Added fix to prevent `SystemStackError` by keeping track of when handlers have been configured. (thanks [@alex-tan](https://github.com/alex-tan))
- Added logic to pass type error onwards to existing inline type error handler.
+- Slimmed down Gem RBIs to minimum needed for `srb tc` to pass in development.
## 1.9.1
diff --git a/bin/rbi b/bin/rbi
new file mode 100755
index 0000000..b554974
--- /dev/null
+++ b/bin/rbi
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -euo pipefail
+IFS=$'\n\t'
+set -vx
+
+bin/tapioca gems rspec-core rspec-expectations rspec-github rspec-support rspec
diff --git a/lib/rspec/sorbet/version.rb b/lib/rspec/sorbet/version.rb
index 5cb0079..ea0dc89 100644
--- a/lib/rspec/sorbet/version.rb
+++ b/lib/rspec/sorbet/version.rb
@@ -3,6 +3,6 @@
module RSpec
module Sorbet
- VERSION = "1.9.1"
+ VERSION = "1.9.2"
end
end
diff --git a/sorbet/rbi/gems/ast@2.4.2.rbi b/sorbet/rbi/gems/ast@2.4.2.rbi
deleted file mode 100644
index 3459704..0000000
--- a/sorbet/rbi/gems/ast@2.4.2.rbi
+++ /dev/null
@@ -1,54 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `ast` gem.
-# Please instead update this file by running `bin/tapioca gem ast`.
-
-# typed: true
-
-module AST; end
-
-class AST::Node
- def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
-
- def +(array); end
- def <<(element); end
- def ==(other); end
- def append(element); end
- def children; end
- def clone; end
- def concat(array); end
- def deconstruct; end
- def dup; end
- def eql?(other); end
- def hash; end
- def inspect(indent = T.unsafe(nil)); end
- def to_a; end
- def to_ast; end
- def to_s(indent = T.unsafe(nil)); end
- def to_sexp(indent = T.unsafe(nil)); end
- def to_sexp_array; end
- def type; end
- def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
-
- protected
-
- def assign_properties(properties); end
- def fancy_type; end
-
- private
-
- def original_dup; end
-end
-
-class AST::Processor
- include ::AST::Processor::Mixin
-end
-
-module AST::Processor::Mixin
- def handler_missing(node); end
- def process(node); end
- def process_all(nodes); end
-end
-
-module AST::Sexp
- def s(type, *children); end
-end
diff --git a/sorbet/rbi/gems/byebug@11.1.3.rbi b/sorbet/rbi/gems/byebug@11.1.3.rbi
deleted file mode 100644
index 54aa800..0000000
--- a/sorbet/rbi/gems/byebug@11.1.3.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `unparser` gem.
-# Please instead update this file by running `bin/tapioca gem unparser`.
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/coderay@1.1.3.rbi b/sorbet/rbi/gems/coderay@1.1.3.rbi
deleted file mode 100644
index d236e88..0000000
--- a/sorbet/rbi/gems/coderay@1.1.3.rbi
+++ /dev/null
@@ -1,1005 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `coderay` gem.
-# Please instead update this file by running `bin/tapioca gem coderay`.
-
-# typed: true
-
-module CodeRay
- class << self
- def coderay_path(*path); end
- def encode(code, lang, format, options = T.unsafe(nil)); end
- def encode_file(filename, format, options = T.unsafe(nil)); end
- def encode_tokens(tokens, format, options = T.unsafe(nil)); end
- def encoder(format, options = T.unsafe(nil)); end
- def get_scanner_options(options); end
- def highlight(code, lang, options = T.unsafe(nil), format = T.unsafe(nil)); end
- def highlight_file(filename, options = T.unsafe(nil), format = T.unsafe(nil)); end
- def scan(code, lang, options = T.unsafe(nil), &block); end
- def scan_file(filename, lang = T.unsafe(nil), options = T.unsafe(nil), &block); end
- def scanner(lang, options = T.unsafe(nil), &block); end
- end
-end
-
-CodeRay::CODERAY_PATH = T.let(T.unsafe(nil), String)
-
-class CodeRay::Duo
- def initialize(lang = T.unsafe(nil), format = T.unsafe(nil), options = T.unsafe(nil)); end
-
- def call(code, options = T.unsafe(nil)); end
- def encode(code, options = T.unsafe(nil)); end
- def encoder; end
- def format; end
- def format=(_arg0); end
- def highlight(code, options = T.unsafe(nil)); end
- def lang; end
- def lang=(_arg0); end
- def options; end
- def options=(_arg0); end
- def scanner; end
-
- class << self
- def [](*_arg0); end
- end
-end
-
-module CodeRay::Encoders
- extend ::CodeRay::PluginHost
-end
-
-class CodeRay::Encoders::CommentFilter < ::CodeRay::Encoders::TokenKindFilter; end
-CodeRay::Encoders::CommentFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-class CodeRay::Encoders::Count < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-class CodeRay::Encoders::Debug < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-end
-
-CodeRay::Encoders::Debug::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::DebugLint < ::CodeRay::Encoders::Debug
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-class CodeRay::Encoders::Div < ::CodeRay::Encoders::HTML; end
-CodeRay::Encoders::Div::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::Div::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::Encoder
- extend ::CodeRay::Plugin
-
- def initialize(options = T.unsafe(nil)); end
-
- def <<(token); end
- def begin_group(kind); end
- def begin_line(kind); end
- def encode(code, lang, options = T.unsafe(nil)); end
- def encode_tokens(tokens, options = T.unsafe(nil)); end
- def end_group(kind); end
- def end_line(kind); end
- def file_extension; end
- def highlight(code, lang, options = T.unsafe(nil)); end
- def options; end
- def options=(_arg0); end
- def scanner; end
- def scanner=(_arg0); end
- def text_token(text, kind); end
- def token(content, kind); end
- def tokens(tokens, options = T.unsafe(nil)); end
-
- protected
-
- def compile(tokens, options = T.unsafe(nil)); end
- def finish(options); end
- def get_output(options); end
- def output(data); end
- def setup(options); end
-
- class << self
- def const_missing(sym); end
- def file_extension; end
- end
-end
-
-CodeRay::Encoders::Encoder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::Encoder::PLUGIN_HOST = CodeRay::Encoders
-
-class CodeRay::Encoders::Filter < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-class CodeRay::Encoders::HTML < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def css; end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def break_lines(text, style); end
- def check_group_nesting(name, kind); end
- def check_options!(options); end
- def close_span; end
- def css_class_for_kinds(kinds); end
- def finish(options); end
- def make_span_for_kinds(method, hint); end
- def setup(options); end
- def style_for_kinds(kinds); end
-
- class << self
- def make_html_escape_hash; end
- def token_path_to_hint(hint, kinds); end
- end
-end
-
-class CodeRay::Encoders::HTML::CSS
- def initialize(style = T.unsafe(nil)); end
-
- def get_style_for_css_classes(css_classes); end
- def stylesheet; end
-
- private
-
- def parse(stylesheet); end
-
- class << self
- def load_stylesheet(style = T.unsafe(nil)); end
- end
-end
-
-CodeRay::Encoders::HTML::CSS::CSS_CLASS_PATTERN = T.let(T.unsafe(nil), Regexp)
-CodeRay::Encoders::HTML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::HTML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-CodeRay::Encoders::HTML::HTML_ESCAPE = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::HTML::HTML_ESCAPE_PATTERN = T.let(T.unsafe(nil), Regexp)
-
-module CodeRay::Encoders::HTML::Numbering
- class << self
- def number!(output, mode = T.unsafe(nil), options = T.unsafe(nil)); end
- end
-end
-
-module CodeRay::Encoders::HTML::Output
- def apply_title!(title); end
- def css; end
- def css=(_arg0); end
- def stylesheet(in_tag = T.unsafe(nil)); end
- def wrap!(element, *args); end
- def wrap_in!(template); end
- def wrapped_in; end
- def wrapped_in=(_arg0); end
- def wrapped_in?(element); end
-
- class << self
- def extended(o); end
- def make_stylesheet(css, in_tag = T.unsafe(nil)); end
- def page_template_for_css(css); end
- end
-end
-
-CodeRay::Encoders::HTML::Output::DIV = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-CodeRay::Encoders::HTML::Output::PAGE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-CodeRay::Encoders::HTML::Output::SPAN = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-CodeRay::Encoders::HTML::Output::TABLE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-
-class CodeRay::Encoders::HTML::Output::Template < ::String
- def apply(target, replacement); end
-
- class << self
- def wrap!(str, template, target); end
- end
-end
-
-CodeRay::Encoders::HTML::TOKEN_KIND_TO_INFO = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::HTML::TRANSPARENT_TOKEN_KINDS = T.let(T.unsafe(nil), Set)
-
-class CodeRay::Encoders::JSON < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def append(data); end
- def finish(options); end
- def setup(options); end
-end
-
-CodeRay::Encoders::JSON::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::LinesOfCode < ::CodeRay::Encoders::TokenKindFilter
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-CodeRay::Encoders::LinesOfCode::NON_EMPTY_LINE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Encoders::Lint < ::CodeRay::Encoders::Debug
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-class CodeRay::Encoders::Lint::EmptyToken < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
-class CodeRay::Encoders::Lint::IncorrectTokenGroupNesting < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
-class CodeRay::Encoders::Lint::InvalidTokenStream < ::StandardError; end
-class CodeRay::Encoders::Lint::UnknownTokenKind < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
-
-class CodeRay::Encoders::Null < ::CodeRay::Encoders::Encoder
- def text_token(text, kind); end
-end
-
-class CodeRay::Encoders::Page < ::CodeRay::Encoders::HTML; end
-CodeRay::Encoders::Page::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::Page::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-class CodeRay::Encoders::Span < ::CodeRay::Encoders::HTML; end
-CodeRay::Encoders::Span::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::Span::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::Statistic < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def block_token(action, kind); end
- def end_group(kind); end
- def end_line(kind); end
- def real_token_count; end
- def text_token(text, kind); end
- def type_stats; end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-CodeRay::Encoders::Statistic::STATS = T.let(T.unsafe(nil), String)
-CodeRay::Encoders::Statistic::TOKEN_TYPES_ROW = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::Statistic::TypeStats < ::Struct
- def count; end
- def count=(_); end
- def size; end
- def size=(_); end
-
- class << self
- def [](*_arg0); end
- def inspect; end
- def members; end
- def new(*_arg0); end
- end
-end
-
-class CodeRay::Encoders::Terminal < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def setup(options); end
-
- private
-
- def open_token(kind); end
-end
-
-CodeRay::Encoders::Terminal::TOKEN_COLORS = T.let(T.unsafe(nil), Hash)
-
-class CodeRay::Encoders::Text < ::CodeRay::Encoders::Encoder
- def text_token(text, kind); end
-
- protected
-
- def setup(options); end
-end
-
-CodeRay::Encoders::Text::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::Text::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::TokenKindFilter < ::CodeRay::Encoders::Filter
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def include_group?(kind); end
- def include_text_token?(text, kind); end
- def setup(options); end
-end
-
-CodeRay::Encoders::TokenKindFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-class CodeRay::Encoders::XML < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def end_group(kind); end
- def text_token(text, kind); end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-CodeRay::Encoders::XML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Encoders::XML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::Encoders::YAML < ::CodeRay::Encoders::Encoder
- def begin_group(kind); end
- def begin_line(kind); end
- def end_group(kind); end
- def end_line(kind); end
- def text_token(text, kind); end
-
- protected
-
- def finish(options); end
- def setup(options); end
-end
-
-CodeRay::Encoders::YAML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-module CodeRay::FileType
- class << self
- def [](filename, read_shebang = T.unsafe(nil)); end
- def fetch(filename, default = T.unsafe(nil), read_shebang = T.unsafe(nil)); end
-
- protected
-
- def type_from_shebang(filename); end
- end
-end
-
-CodeRay::FileType::TypeFromExt = T.let(T.unsafe(nil), Hash)
-CodeRay::FileType::TypeFromName = T.let(T.unsafe(nil), Hash)
-CodeRay::FileType::TypeFromShebang = T.let(T.unsafe(nil), Regexp)
-class CodeRay::FileType::UnknownFileType < ::Exception; end
-
-module CodeRay::Plugin
- def aliases; end
- def plugin_host(host = T.unsafe(nil)); end
- def plugin_id; end
- def register_for(id); end
- def title(title = T.unsafe(nil)); end
-end
-
-module CodeRay::PluginHost
- def [](id, *args, &blk); end
- def all_plugins; end
- def const_missing(const); end
- def default(id = T.unsafe(nil)); end
- def list; end
- def load(id, *args, &blk); end
- def load_all; end
- def load_plugin_map; end
- def map(hash); end
- def plugin_hash; end
- def plugin_path(*args); end
- def register(plugin, id); end
-
- protected
-
- def make_plugin_hash; end
- def path_to(plugin_id); end
- def validate_id(id); end
-
- class << self
- def extended(mod); end
- end
-end
-
-class CodeRay::PluginHost::HostNotFound < ::LoadError; end
-CodeRay::PluginHost::PLUGIN_HOSTS = T.let(T.unsafe(nil), Array)
-CodeRay::PluginHost::PLUGIN_HOSTS_BY_ID = T.let(T.unsafe(nil), Hash)
-class CodeRay::PluginHost::PluginNotFound < ::LoadError; end
-
-module CodeRay::Scanners
- extend ::CodeRay::PluginHost
-end
-
-class CodeRay::Scanners::C < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::C::DIRECTIVES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::C::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::C::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::C::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::C::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::C::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::C::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CPlusPlus = CodeRay::Scanners::Text
-
-class CodeRay::Scanners::CSS < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::CSS::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-module CodeRay::Scanners::CSS::RE; end
-CodeRay::Scanners::CSS::RE::AtKeyword = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::AttributeSelector = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Class = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Dimension = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Escape = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Function = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Hex = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::HexColor = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Id = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Ident = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::NMChar = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::NMStart = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Name = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Num = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Percentage = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::PseudoClass = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::String = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::String1 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::String2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Unicode = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::CSS::RE::Unit = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Clojure < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::Clojure::BASIC_IDENTIFIER = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::COMPLEX10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::COMPLEX16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::COMPLEX2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::COMPLEX8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::CORE_FORMS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Clojure::DECIMAL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::DIGIT = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::DIGIT10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::DIGIT16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::DIGIT2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::DIGIT8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::EXACTNESS = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::EXP = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::EXP_MARK = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Clojure::IMAG10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::IMAG16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::IMAG2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::IMAG8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::KEYWORD_NEXT_TOKEN_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Clojure::NUM = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::NUM10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::NUM16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::NUM2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::NUM8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Clojure::PREFIX10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::PREFIX16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::PREFIX2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::PREFIX8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::RADIX10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::RADIX16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::RADIX2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::RADIX8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::REAL10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::REAL16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::REAL2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::REAL8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::SIGN = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::SPECIAL_FORMS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Clojure::SUFFIX = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::SYMBOL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UINT10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UINT16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UINT2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UINT8 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UREAL10 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UREAL16 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UREAL2 = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Clojure::UREAL8 = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Debug < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-class CodeRay::Scanners::Delphi < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::Delphi::DIRECTIVES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Delphi::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-CodeRay::Scanners::Delphi::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Delphi::NAME_FOLLOWS = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-
-class CodeRay::Scanners::Diff < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-
- private
-
- def diff(a, b); end
-end
-
-CodeRay::Scanners::Diff::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-class CodeRay::Scanners::ERB < ::CodeRay::Scanners::Scanner
- protected
-
- def reset_instance; end
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::ERB::ERB_RUBY_BLOCK = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::ERB::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::ERB::START_OF_ERB = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Go < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::Go::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Go::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Go::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Go::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Go::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Go::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Go::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Groovy < ::CodeRay::Scanners::Java
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::Groovy::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Groovy::GROOVY_KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Groovy::GROOVY_MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Groovy::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Groovy::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Groovy::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Groovy::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Groovy::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::HAML < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::HAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-class CodeRay::Scanners::HTML < ::CodeRay::Scanners::Scanner
- def reset; end
-
- protected
-
- def scan_css(encoder, code, state = T.unsafe(nil)); end
- def scan_java_script(encoder, code); end
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::HTML::ATTR_NAME = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::HTML::ENTITY = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::HTML::EVENT_ATTRIBUTES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::HTML::HEX = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::HTML::IN_ATTRIBUTE = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-CodeRay::Scanners::HTML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::HTML::PLAIN_STRING_CONTENT = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::HTML::TAG_END = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::JSON < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::JSON::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::JSON::KEY = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::JSON::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::JSON::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Java < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-module CodeRay::Scanners::Java::BuiltinTypes; end
-CodeRay::Scanners::Java::BuiltinTypes::List = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::DIRECTIVES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Java::IDENT = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Java::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Java::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::RESERVED = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Java::TYPES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Java::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::JavaScript < ::CodeRay::Scanners::Scanner
- protected
-
- def reset_instance; end
- def scan_tokens(encoder, options); end
- def setup; end
- def xml_scanner; end
-end
-
-CodeRay::Scanners::JavaScript::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::JavaScript::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::JavaScript::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::JavaScript::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::JavaScript::KEY_CHECK_PATTERN = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::JavaScript::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::JavaScript::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::JavaScript::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::JavaScript::RESERVED_WORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::JavaScript::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::JavaScript::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Lua < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::Lua::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Lua::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Lua::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Lua::PREDEFINED_EXPRESSIONS = T.let(T.unsafe(nil), Array)
-
-class CodeRay::Scanners::PHP < ::CodeRay::Scanners::Scanner
- protected
-
- def reset_instance; end
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-CodeRay::Scanners::PHP::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-module CodeRay::Scanners::PHP::RE; end
-CodeRay::Scanners::PHP::RE::HTML_INDICATOR = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::PHP::RE::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::PHP::RE::OPERATOR = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::PHP::RE::PHP_END = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::PHP::RE::PHP_START = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::PHP::RE::VARIABLE = T.let(T.unsafe(nil), Regexp)
-module CodeRay::Scanners::PHP::Words; end
-CodeRay::Scanners::PHP::Words::BUILTIN_FUNCTIONS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::CLASSES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::EXCEPTIONS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-CodeRay::Scanners::PHP::Words::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::LANGUAGE_CONSTRUCTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::PREDEFINED = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::TYPES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::PHP::Words::VARIABLE_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-class CodeRay::Scanners::Python < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::Python::DEF_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Python::DESCRIPTOR = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Python::DOCSTRING_COMING = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Python::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Python::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Python::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Python::NAME = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Python::OLD_KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Python::OPERATOR = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Python::PREDEFINED_EXCEPTIONS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Python::PREDEFINED_METHODS_AND_TYPES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Python::PREDEFINED_VARIABLES_AND_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Python::STRING_CONTENT_REGEXP = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Python::STRING_DELIMITER_REGEXP = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Python::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Raydebug < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-class CodeRay::Scanners::Ruby < ::CodeRay::Scanners::Scanner
- def interpreted_string_state; end
-
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-module CodeRay::Scanners::Ruby::Patterns; end
-CodeRay::Scanners::Ruby::Patterns::BINARY = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::CHARACTER = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::CLASS_VARIABLE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::CONTROL_META_ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::DATA = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::DECIMAL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::EXPONENT = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_INTERPRETED = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_KIND = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_START = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::FLOAT_OR_INT = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::FLOAT_SUFFIX = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::GLOBAL_VARIABLE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::HEREDOC_OPEN = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::HEXADECIMAL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::IDENT = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Ruby::Patterns::INSTANCE_VARIABLE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Ruby::Patterns::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Ruby::Patterns::KEYWORD_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList)
-CodeRay::Scanners::Ruby::Patterns::METHOD_AFTER_DOT = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_EX = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OPERATOR = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OR_SYMBOL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::METHOD_SUFFIX = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::NUMERIC = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::OBJECT_VARIABLE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::OCTAL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Ruby::Patterns::PREFIX_VARIABLE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::QUOTE_TO_TYPE = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Ruby::Patterns::REGEXP_MODIFIERS = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::RUBYDOC = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::RUBYDOC_OR_DATA = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::SIMPLE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::SYMBOL = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::VALUE_FOLLOWS = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::Ruby::Patterns::VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Ruby::StringState < ::Struct
- def initialize(kind, interpreted, delim, heredoc = T.unsafe(nil)); end
-
- def heredoc_pattern(delim, interpreted, indented); end
-
- class << self
- def simple_key_pattern(delim); end
- end
-end
-
-CodeRay::Scanners::Ruby::StringState::CLOSING_PAREN = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Ruby::StringState::STRING_PATTERN = T.let(T.unsafe(nil), Hash)
-
-class CodeRay::Scanners::SQL < ::CodeRay::Scanners::Scanner
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::SQL::COMMANDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::DIRECTIVES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::ESCAPE = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::SQL::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-CodeRay::Scanners::SQL::KEYWORDS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::OBJECTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::SQL::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::SQL::STRING_PREFIXES = T.let(T.unsafe(nil), Regexp)
-CodeRay::Scanners::SQL::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-class CodeRay::Scanners::Sass < ::CodeRay::Scanners::CSS
- protected
-
- def scan_tokens(encoder, options); end
- def setup; end
-end
-
-class CodeRay::Scanners::Scanner < ::StringScanner
- include ::Enumerable
- extend ::CodeRay::Plugin
-
- def initialize(code = T.unsafe(nil), options = T.unsafe(nil)); end
-
- def binary_string; end
- def column(pos = T.unsafe(nil)); end
- def each(&block); end
- def file_extension; end
- def lang; end
- def line(pos = T.unsafe(nil)); end
- def reset; end
- def state; end
- def state=(_arg0); end
- def string=(code); end
- def tokenize(source = T.unsafe(nil), options = T.unsafe(nil)); end
- def tokens; end
-
- protected
-
- def raise_inspect(message, tokens, state = T.unsafe(nil), ambit = T.unsafe(nil), backtrace = T.unsafe(nil)); end
- def raise_inspect_arguments(message, tokens, state, ambit); end
- def reset_instance; end
- def scan_rest; end
- def scan_tokens(tokens, options); end
- def scanner_state_info(state); end
- def set_string_from_source(source); end
- def set_tokens_from_options(options); end
- def setup; end
- def tokens_last(tokens, n); end
- def tokens_size(tokens); end
-
- class << self
- def encoding(name = T.unsafe(nil)); end
- def file_extension(extension = T.unsafe(nil)); end
- def lang; end
- def normalize(code); end
-
- protected
-
- def encode_with_encoding(code, target_encoding); end
- def guess_encoding(s); end
- def to_unix(code); end
- end
-end
-
-CodeRay::Scanners::Scanner::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Scanners::Scanner::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-CodeRay::Scanners::Scanner::PLUGIN_HOST = CodeRay::Scanners
-CodeRay::Scanners::Scanner::SCANNER_STATE_INFO = T.let(T.unsafe(nil), String)
-CodeRay::Scanners::Scanner::SCAN_ERROR_MESSAGE = T.let(T.unsafe(nil), String)
-class CodeRay::Scanners::Scanner::ScanError < ::StandardError; end
-
-class CodeRay::Scanners::Taskpaper < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-class CodeRay::Scanners::Text < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::Text::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-class CodeRay::Scanners::XML < ::CodeRay::Scanners::HTML; end
-
-class CodeRay::Scanners::YAML < ::CodeRay::Scanners::Scanner
- protected
-
- def scan_tokens(encoder, options); end
-end
-
-CodeRay::Scanners::YAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Symbol)
-
-module CodeRay::Styles
- extend ::CodeRay::PluginHost
-end
-
-class CodeRay::Styles::Alpha < ::CodeRay::Styles::Style; end
-CodeRay::Styles::Alpha::CSS_MAIN_STYLES = T.let(T.unsafe(nil), String)
-CodeRay::Styles::Alpha::TOKEN_COLORS = T.let(T.unsafe(nil), String)
-
-class CodeRay::Styles::Style
- extend ::CodeRay::Plugin
-end
-
-CodeRay::Styles::Style::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-CodeRay::Styles::Style::PLUGIN_HOST = CodeRay::Styles
-CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash)
-
-class CodeRay::Tokens < ::Array
- def begin_group(kind); end
- def begin_line(kind); end
- def count; end
- def encode(encoder, options = T.unsafe(nil)); end
- def end_group(kind); end
- def end_line(kind); end
- def method_missing(meth, options = T.unsafe(nil)); end
- def scanner; end
- def scanner=(_arg0); end
- def split_into_parts(*sizes); end
- def text_token(*_arg0); end
- def to_s; end
- def tokens(*_arg0); end
-end
-
-class CodeRay::TokensProxy
- def initialize(input, lang, options = T.unsafe(nil), block = T.unsafe(nil)); end
-
- def block; end
- def block=(_arg0); end
- def each(*args, &blk); end
- def encode(encoder, options = T.unsafe(nil)); end
- def input; end
- def input=(_arg0); end
- def lang; end
- def lang=(_arg0); end
- def method_missing(method, *args, &blk); end
- def options; end
- def options=(_arg0); end
- def scanner; end
- def tokens; end
-end
-
-CodeRay::VERSION = T.let(T.unsafe(nil), String)
-
-class CodeRay::WordList < ::Hash
- def initialize(default = T.unsafe(nil)); end
-
- def add(words, value = T.unsafe(nil)); end
-end
-
-class CodeRay::WordList::CaseIgnoring < ::CodeRay::WordList
- def [](key); end
- def []=(key, value); end
-end
diff --git a/sorbet/rbi/gems/diff-lcs@1.5.0.rbi b/sorbet/rbi/gems/diff-lcs@1.5.0.rbi
deleted file mode 100644
index 1002d43..0000000
--- a/sorbet/rbi/gems/diff-lcs@1.5.0.rbi
+++ /dev/null
@@ -1,189 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `diff-lcs` gem.
-# Please instead update this file by running `bin/tapioca gem diff-lcs`.
-
-module Diff; end
-
-module Diff::LCS
- def diff(other, callbacks = T.unsafe(nil), &block); end
- def lcs(other, &block); end
- def patch(patchset); end
- def patch!(patchset); end
- def patch_me(patchset); end
- def sdiff(other, callbacks = T.unsafe(nil), &block); end
- def traverse_balanced(other, callbacks = T.unsafe(nil), &block); end
- def traverse_sequences(other, callbacks = T.unsafe(nil), &block); end
- def unpatch(patchset); end
- def unpatch!(patchset); end
- def unpatch_me(patchset); end
-
- class << self
- def LCS(seq1, seq2, &block); end
- def callbacks_for(callbacks); end
- def diff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
- def lcs(seq1, seq2, &block); end
- def patch(src, patchset, direction = T.unsafe(nil)); end
- def patch!(src, patchset); end
- def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
- def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil)); end
- def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil)); end
- def unpatch!(src, patchset); end
-
- private
-
- def diff_traversal(method, seq1, seq2, callbacks, &block); end
- end
-end
-
-Diff::LCS::BalancedCallbacks = Diff::LCS::DefaultCallbacks
-
-class Diff::LCS::Block
- def initialize(chunk); end
-
- def changes; end
- def diff_size; end
- def insert; end
- def op; end
- def remove; end
-end
-
-class Diff::LCS::Change
- include ::Comparable
-
- def initialize(*args); end
-
- def <=>(other); end
- def ==(other); end
- def action; end
- def adding?; end
- def changed?; end
- def deleting?; end
- def element; end
- def finished_a?; end
- def finished_b?; end
- def inspect(*_args); end
- def position; end
- def to_a; end
- def to_ary; end
- def unchanged?; end
-
- class << self
- def from_a(arr); end
- def valid_action?(action); end
- end
-end
-
-Diff::LCS::Change::IntClass = Integer
-Diff::LCS::Change::VALID_ACTIONS = T.let(T.unsafe(nil), Array)
-
-class Diff::LCS::ContextChange < ::Diff::LCS::Change
- def initialize(*args); end
-
- def <=>(other); end
- def ==(other); end
- def new_element; end
- def new_position; end
- def old_element; end
- def old_position; end
- def to_a; end
- def to_ary; end
-
- class << self
- def from_a(arr); end
- def simplify(event); end
- end
-end
-
-class Diff::LCS::ContextDiffCallbacks < ::Diff::LCS::DiffCallbacks
- def change(event); end
- def discard_a(event); end
- def discard_b(event); end
-end
-
-class Diff::LCS::DefaultCallbacks
- class << self
- def change(event); end
- def discard_a(event); end
- def discard_b(event); end
- def match(event); end
- end
-end
-
-class Diff::LCS::DiffCallbacks
- def initialize; end
-
- def diffs; end
- def discard_a(event); end
- def discard_b(event); end
- def finish; end
- def match(_event); end
-
- private
-
- def finish_hunk; end
-end
-
-class Diff::LCS::Hunk
- def initialize(data_old, data_new, piece, flag_context, file_length_difference); end
-
- def blocks; end
- def diff(format, last = T.unsafe(nil)); end
- def end_new; end
- def end_old; end
- def file_length_difference; end
- def flag_context; end
- def flag_context=(context); end
- def merge(hunk); end
- def missing_last_newline?(data); end
- def overlaps?(hunk); end
- def start_new; end
- def start_old; end
- def unshift(hunk); end
-
- private
-
- def context_diff(last = T.unsafe(nil)); end
- def context_range(mode, op, last = T.unsafe(nil)); end
- def ed_diff(format, _last = T.unsafe(nil)); end
- def encode(literal, target_encoding = T.unsafe(nil)); end
- def encode_as(string, *args); end
- def old_diff(_last = T.unsafe(nil)); end
- def unified_diff(last = T.unsafe(nil)); end
- def unified_range(mode, last); end
-end
-
-Diff::LCS::Hunk::ED_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
-Diff::LCS::Hunk::OLD_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
-
-module Diff::LCS::Internals
- class << self
- def analyze_patchset(patchset, depth = T.unsafe(nil)); end
- def intuit_diff_direction(src, patchset, limit = T.unsafe(nil)); end
- def lcs(a, b); end
-
- private
-
- def inverse_vector(a, vector); end
- def position_hash(enum, interval); end
- def replace_next_larger(enum, value, last_index = T.unsafe(nil)); end
- end
-end
-
-class Diff::LCS::SDiffCallbacks
- def initialize; end
-
- def change(event); end
- def diffs; end
- def discard_a(event); end
- def discard_b(event); end
- def match(event); end
-end
-
-Diff::LCS::SequenceCallbacks = Diff::LCS::DefaultCallbacks
-Diff::LCS::VERSION = T.let(T.unsafe(nil), String)
-
-class Integer < ::Numeric
- include ::JSON::Ext::Generator::GeneratorMethods::Integer
-end
diff --git a/sorbet/rbi/gems/em-websocket@0.5.3.rbi b/sorbet/rbi/gems/em-websocket@0.5.3.rbi
deleted file mode 100644
index 454c26d..0000000
--- a/sorbet/rbi/gems/em-websocket@0.5.3.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `em-websocket` gem.
-# Please instead update this file by running `bin/tapioca gem em-websocket`.
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/eventmachine@1.2.7.rbi b/sorbet/rbi/gems/eventmachine@1.2.7.rbi
deleted file mode 100644
index b83fb55..0000000
--- a/sorbet/rbi/gems/eventmachine@1.2.7.rbi
+++ /dev/null
@@ -1,45 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `eventmachine` gem.
-# Please instead update this file by running `bin/tapioca gem eventmachine`.
-
-# typed: true
-
-class IO
- include ::Enumerable
- include ::File::Constants
-end
-
-class IO::ConsoleMode
- def echo=(_arg0); end
- def raw(*_arg0); end
- def raw!(*_arg0); end
-
- private
-
- def initialize_copy(_arg0); end
-end
-
-class IO::EAGAINWaitReadable < ::Errno::EAGAIN
- include ::IO::WaitReadable
-end
-
-class IO::EAGAINWaitWritable < ::Errno::EAGAIN
- include ::IO::WaitWritable
-end
-
-class IO::EINPROGRESSWaitReadable < ::Errno::EINPROGRESS
- include ::IO::WaitReadable
-end
-
-class IO::EINPROGRESSWaitWritable < ::Errno::EINPROGRESS
- include ::IO::WaitWritable
-end
-
-IO::EWOULDBLOCKWaitReadable = IO::EAGAINWaitReadable
-IO::EWOULDBLOCKWaitWritable = IO::EAGAINWaitWritable
-
-class StringIO < ::Data
- include ::Enumerable
-end
-
-StringIO::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/ffaker@2.21.0.rbi b/sorbet/rbi/gems/ffaker@2.21.0.rbi
deleted file mode 100644
index 81fdd11..0000000
--- a/sorbet/rbi/gems/ffaker@2.21.0.rbi
+++ /dev/null
@@ -1,3196 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `ffaker` gem.
-# Please instead update this file by running `bin/tapioca gem ffaker`.
-
-module FFaker
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
-
- class << self
- def bothify(masks); end
- def hexify(*masks); end
- def letterify(*masks); end
- def numerify(*masks); end
- end
-end
-
-module FFaker::AWS
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AWS
-
- def instance_tenancy; end
- def instance_type; end
- def offering_type; end
- def product_description; end
-end
-
-module FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
-
- def building_number; end
- def city; end
- def city_prefix; end
- def city_suffix; end
- def country(given_code = T.unsafe(nil)); end
- def country_code(given_country = T.unsafe(nil)); end
- def neighborhood; end
- def secondary_address; end
- def street_address(include_secondary = T.unsafe(nil)); end
- def street_name; end
- def street_suffix; end
- def time_zone; end
- def uk_country; end
- def uk_county; end
- def uk_postcode; end
- def us_state; end
- def us_state_abbr; end
- def zip_code; end
-end
-
-FFaker::Address::CITY_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Address::COMPASS_DIRECTIONS = T.let(T.unsafe(nil), Array)
-FFaker::Address::SEC_ADDR = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressAU
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressAU
-
- def full_address(st_abbr = T.unsafe(nil)); end
- def postcode(st_abbr = T.unsafe(nil)); end
- def state; end
- def state_abbr; end
- def suburb(st_abbr = T.unsafe(nil), p_code = T.unsafe(nil)); end
- def time_zone(st_abbr = T.unsafe(nil)); end
-end
-
-FFaker::AddressAU::POSTCODE = T.let(T.unsafe(nil), Hash)
-FFaker::AddressAU::STATE = T.let(T.unsafe(nil), Array)
-FFaker::AddressAU::STATE_ABBR = T.let(T.unsafe(nil), Array)
-FFaker::AddressAU::SUBURB = T.let(T.unsafe(nil), Hash)
-FFaker::AddressAU::TIME_ZONE = T.let(T.unsafe(nil), Hash)
-
-module FFaker::AddressBR
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressBR
-
- def city; end
- def complement; end
- def full_address(with_complement: T.unsafe(nil)); end
- def neighborhood; end
- def state; end
- def state_abbr; end
- def street; end
- def street_prefix; end
- def zip_code; end
-end
-
-FFaker::AddressBR::STREET_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressCA
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressCA
-
- def city; end
- def postal_code; end
- def province; end
- def province_abbr; end
-end
-
-FFaker::AddressCA::POSTAL_CODE_CHARS = T.let(T.unsafe(nil), Array)
-FFaker::AddressCA::POSTAL_CODE_FORMAT = T.let(T.unsafe(nil), String)
-FFaker::AddressCA::PROVINCE_ABBRS = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressCH
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressCH
-
- def canton_abbr; end
- def postal_code; end
-end
-
-module FFaker::AddressCHDE
- include ::FFaker::Address
- include ::FFaker::AddressCH
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressCH
- extend ::FFaker::AddressCHDE
-
- def canton; end
-end
-
-module FFaker::AddressCHFR
- include ::FFaker::Address
- include ::FFaker::AddressCH
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressCH
- extend ::FFaker::AddressCHFR
-
- def canton; end
-end
-
-module FFaker::AddressCHIT
- include ::FFaker::Address
- include ::FFaker::AddressCH
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressCH
- extend ::FFaker::AddressCHIT
-
- def canton; end
-end
-
-module FFaker::AddressDA
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressDA
-
- def city; end
- def full_address; end
- def kommune; end
- def post_nr; end
- def region; end
- def state; end
- def street_address; end
- def street_name; end
- def zip_code; end
-end
-
-FFaker::AddressDA::REGION = T.let(T.unsafe(nil), Array)
-FFaker::AddressDA::STATE = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressDE
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressDE
-
- def city; end
- def state; end
- def street_address; end
- def street_name; end
- def zip_code; end
-
- private
-
- def random_type_of_street; end
-end
-
-module FFaker::AddressFI
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressFI
-
- def city; end
- def full_address; end
- def random_country; end
- def street_address; end
- def street_name; end
- def street_nbr; end
- def zip_code; end
-end
-
-FFaker::AddressFI::STREET_NBR_FORMATS = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressFR
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressFR
-
- def city; end
- def full_address; end
- def postal_code; end
- def region; end
- def street_address; end
-end
-
-FFaker::AddressFR::MOD = T.let(T.unsafe(nil), Array)
-FFaker::AddressFR::NUM = T.let(T.unsafe(nil), Array)
-FFaker::AddressFR::POSTAL_CODE_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::AddressFR::SEP = T.let(T.unsafe(nil), Array)
-FFaker::AddressFR::TYPE = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressGR
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressGR
-
- def city; end
- def region; end
- def street_address; end
- def street_name; end
- def street_nbr; end
- def zip_code; end
-end
-
-FFaker::AddressGR::REGION = T.let(T.unsafe(nil), Array)
-FFaker::AddressGR::STATE = T.let(T.unsafe(nil), Array)
-FFaker::AddressGR::STREET_NUMBER = T.let(T.unsafe(nil), Array)
-FFaker::AddressGR::STREET_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressID
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressID
-
- def city; end
- def state; end
- def state_abbr; end
- def street; end
- def street_prefix; end
- def zip_code; end
-end
-
-FFaker::AddressID::STREET_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressIN
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressIN
-
- def city; end
- def country; end
- def country_code; end
- def pincode; end
- def state; end
- def state_abbr; end
- def state_and_union_territory; end
- def state_and_union_territory_abbr; end
- def time_zone; end
- def union_territory; end
- def union_territory_abbr; end
- def zip_code; end
-end
-
-module FFaker::AddressIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AddressIT
-
- def city; end
- def full_address; end
- def postal_code; end
- def region; end
- def street_address; end
-end
-
-FFaker::AddressIT::NUM = T.let(T.unsafe(nil), Array)
-FFaker::AddressIT::POSTAL_CODE_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::AddressIT::SEP = T.let(T.unsafe(nil), Array)
-FFaker::AddressIT::TYPE = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressJA
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressJA
-
- def address; end
- def city; end
- def county; end
- def designated_city; end
- def designated_city_address; end
- def land_number; end
- def other_address; end
- def postal_code; end
- def prefecture; end
- def street; end
- def tokyo_ward; end
- def tokyo_ward_address; end
- def village; end
- def ward; end
-end
-
-FFaker::AddressJA::LAND_NUMBER_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::AddressJA::ZIP_FORMATS = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressKR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AddressKR
-
- def address_detail; end
- def borough; end
- def building_name; end
- def city; end
- def land_address; end
- def land_number; end
- def metropolitan_city; end
- def old_postal_code; end
- def postal_code; end
- def province; end
- def road_addess; end
- def street; end
- def town; end
-end
-
-FFaker::AddressKR::BUILDING_DONGS = T.let(T.unsafe(nil), Array)
-FFaker::AddressKR::BUILDING_SUFFIXES = T.let(T.unsafe(nil), Array)
-FFaker::AddressKR::METROPOLITAN_CITIES = T.let(T.unsafe(nil), Array)
-FFaker::AddressKR::PROVINCES = T.let(T.unsafe(nil), Array)
-FFaker::AddressKR::STREET_SUFFIXES = T.let(T.unsafe(nil), Array)
-FFaker::AddressKR::TOWN_SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressMX
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AddressMX
-
- def municipality(st_abbr = T.unsafe(nil)); end
- def postal_code; end
- def state; end
- def state_abbr(st_name = T.unsafe(nil)); end
- def zip_code; end
-end
-
-module FFaker::AddressNL
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressNL
-
- def city; end
- def postal_code; end
- def province; end
- def street_name; end
- def zip_code; end
-
- private
-
- def random_type_of_street; end
-end
-
-module FFaker::AddressPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AddressPL
-
- def building_number; end
- def city; end
- def full_address(include_country = T.unsafe(nil), include_secondary = T.unsafe(nil)); end
- def postal_code; end
- def province; end
- def secondary_number; end
- def square; end
- def square_prefix; end
- def state; end
- def street; end
- def street_address(include_secondary = T.unsafe(nil)); end
- def street_name; end
- def street_prefix; end
- def voivodeship; end
- def voivodeship_abbr; end
- def voivodeship_capital_city; end
- def zip_code; end
-end
-
-FFaker::AddressPL::SQUARE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::AddressPL::STREET_PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressRU
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressRU
-
- def city; end
- def province; end
- def street_address; end
- def street_name; end
- def street_number; end
- def zip_code; end
-end
-
-FFaker::AddressRU::POSTAL_CODE_FORMAT = T.let(T.unsafe(nil), Array)
-FFaker::AddressRU::STREET_NBR_FORMATS = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressSE
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressSE
-
- def city; end
- def full_address; end
- def random_country; end
- def street_address; end
- def street_name; end
- def street_nbr; end
- def zip_code; end
-end
-
-FFaker::AddressSE::STREET_NBR_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::AddressSE::ZIP_FORMATS = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressSN
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressSN
-
- def arrondissement; end
- def departement; end
- def region; end
-end
-
-module FFaker::AddressUA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AddressUA
-
- def appartment_number; end
- def building_number; end
- def city; end
- def country; end
- def province; end
- def street_address(include_secondary = T.unsafe(nil)); end
- def street_name; end
- def zip_code; end
-
- private
-
- def numerify_mask(masks_arr, allow_first_zero = T.unsafe(nil)); end
-end
-
-FFaker::AddressUA::APPARTMENT_NUMBER_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::AddressUA::BUILDING_NUMBER_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::AddressUA::POSTAL_CODE_FORMAT = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressUK
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressUK
-
- def country; end
- def county; end
- def postcode; end
-end
-
-FFaker::AddressUK::COUNTRY = T.let(T.unsafe(nil), Array)
-FFaker::AddressUK::POSTCODE = T.let(T.unsafe(nil), Array)
-
-module FFaker::AddressUS
- include ::FFaker::Address
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Address
- extend ::FFaker::AddressUS
-
- def continental_state; end
- def continental_state_abbr; end
- def state; end
- def state_abbr(st_name = T.unsafe(nil)); end
- def state_and_territories_abbr; end
- def zip_code; end
-
- private
-
- def capitalize_all_words(string); end
- def check_state_existence(state_name); end
- def find_abbr(state); end
-end
-
-FFaker::AddressUS::CONTINENTAL_STATE = T.let(T.unsafe(nil), Array)
-FFaker::AddressUS::CONTINENTAL_STATE_ABBR = T.let(T.unsafe(nil), Array)
-FFaker::AddressUS::STATE = T.let(T.unsafe(nil), Array)
-FFaker::AddressUS::STATE_ABBR = T.let(T.unsafe(nil), Array)
-FFaker::AddressUS::ZIP_FORMATS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Airline
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Airline
-
- def flight_number; end
- def name; end
-end
-
-FFaker::Airline::NAMES_LIST = T.let(T.unsafe(nil), Array)
-
-module FFaker::Animal
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Animal
-
- def common_name; end
-end
-
-module FFaker::AnimalBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AnimalBR
-
- def common_name; end
-end
-
-module FFaker::AnimalCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AnimalCN
-
- def common_name; end
-end
-
-module FFaker::AnimalES
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AnimalES
-
- def common_name; end
-end
-
-module FFaker::AnimalPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
-
- private
-
- def common_name; end
-
- class << self
- def common_name; end
- end
-end
-
-module FFaker::AnimalUS
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::AnimalUS
-
- def common_name; end
-end
-
-module FFaker::ArrayUtils
- extend ::FFaker::RandomUtils
-
- def freeze_all; end
- def rand; end
- def random_pick(num); end
- def shuffle; end
-
- class << self
- def const_array(argument); end
- def freeze_all(array); end
- def rand(array); end
- def random_pick(array, num); end
- def shuffle(array); end
- end
-end
-
-module FFaker::Avatar
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Avatar
-
- def image(slug = T.unsafe(nil), size = T.unsafe(nil), format = T.unsafe(nil), bgset = T.unsafe(nil)); end
-
- private
-
- def check_passed_params(size, format, bgset); end
- def invalid_background_number; end
- def invalid_format_error; end
- def invalid_size_error; end
-end
-
-FFaker::Avatar::SUPPORTED_FORMATS = T.let(T.unsafe(nil), Array)
-FFaker::BASE_LIB_PATH = T.let(T.unsafe(nil), String)
-
-module FFaker::BaconIpsum
- include ::FFaker::Lorem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Lorem
- extend ::FFaker::BaconIpsum
-
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::Bank
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Bank
-
- def card_expiry_date(year_range: T.unsafe(nil), year_latest: T.unsafe(nil), format: T.unsafe(nil)); end
- def card_number; end
- def card_type; end
- def iban(country_code: T.unsafe(nil)); end
-
- private
-
- def check_country_existence(country_code); end
- def formatify_iban(code); end
-end
-
-FFaker::Bank::COUNTRIES = T.let(T.unsafe(nil), Hash)
-
-module FFaker::Book
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Book
-
- def author; end
- def cover(slug = T.unsafe(nil), size = T.unsafe(nil), format = T.unsafe(nil), bgset = T.unsafe(nil)); end
- def description(sentence_count = T.unsafe(nil)); end
- def genre; end
- def isbn; end
- def orly_cover(name = T.unsafe(nil), book_author = T.unsafe(nil), top_text = T.unsafe(nil)); end
- def title; end
-
- private
-
- def simple_title; end
- def title_with_prefix; end
-end
-
-module FFaker::Boolean
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Boolean
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-module FFaker::CheesyLingo
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CheesyLingo
-
- def paragraph(number_of_phrases = T.unsafe(nil)); end
- def sentence; end
- def title; end
- def word; end
- def words(count = T.unsafe(nil)); end
-end
-
-FFaker::CheesyLingo::TITLE_1 = T.let(T.unsafe(nil), Array)
-FFaker::CheesyLingo::TITLE_2 = T.let(T.unsafe(nil), Array)
-
-module FFaker::Code
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Code
-
- def ean; end
- def npi(legacy: T.unsafe(nil)); end
-end
-
-module FFaker::Color
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Color
-
- def hex_code; end
- def hsl_array; end
- def hsl_list; end
- def hsla_array; end
- def hsla_list; end
- def name; end
- def rgb_array; end
- def rgb_list; end
- def rgba_array; end
- def rgba_list; end
-
- private
-
- def random_hue_value; end
- def random_opacity_value; end
- def random_percentage_string; end
- def random_rgb_value; end
-end
-
-FFaker::Color::NAMES_LIST = T.let(T.unsafe(nil), Array)
-
-module FFaker::ColorPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::ColorPL
-
- def name; end
-end
-
-FFaker::ColorPL::NAMES_LIST = T.let(T.unsafe(nil), Array)
-
-module FFaker::ColorUA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::ColorUA
-
- def name; end
-end
-
-FFaker::ColorUA::NAMES_LIST = T.let(T.unsafe(nil), Array)
-
-module FFaker::Company
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Company
-
- def bs; end
- def catch_phrase; end
- def name; end
- def position; end
- def suffix; end
-end
-
-FFaker::Company::POSITIONS = T.let(T.unsafe(nil), Array)
-FFaker::Company::POSITION_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Company::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::CompanyCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CompanyCN
-
- def name; end
- def suffix; end
- def type; end
-end
-
-FFaker::CompanyCN::SUFFIXES = T.let(T.unsafe(nil), Array)
-FFaker::CompanyCN::TYPES = T.let(T.unsafe(nil), Array)
-
-module FFaker::CompanyFR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CompanyFR
-
- def name; end
- def siren; end
- def siret; end
- def suffix; end
-end
-
-FFaker::CompanyFR::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::CompanyIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CompanyIT
-
- def name; end
- def partita_iva; end
- def prefix; end
- def suffix; end
-end
-
-FFaker::CompanyIT::PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::CompanyIT::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::CompanyJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CompanyJA
-
- def name; end
- def position; end
-end
-
-FFaker::CompanyJA::DETAILED_TYPES = T.let(T.unsafe(nil), Array)
-FFaker::CompanyJA::POSITIONS = T.let(T.unsafe(nil), Array)
-FFaker::CompanyJA::TYPES = T.let(T.unsafe(nil), Array)
-
-module FFaker::CompanySE
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CompanySE
-
- def name; end
- def suffix; end
-end
-
-FFaker::CompanySE::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::Conference
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Conference
-
- def name; end
-end
-
-FFaker::Conference::CONFERENCE_LIST = T.let(T.unsafe(nil), Array)
-module FFaker::CoursesFR; end
-
-module FFaker::CoursesFR::Mathematiques
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CoursesFR::Mathematiques
-
- def lesson; end
-end
-
-module FFaker::CoursesFR::Philosophie
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::CoursesFR::Philosophie
-
- def lesson; end
-end
-
-module FFaker::Currency
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Currency
-
- def code; end
- def name; end
- def symbol; end
-end
-
-FFaker::Currency::CURRENCY_NAME = T.let(T.unsafe(nil), Array)
-
-module FFaker::DizzleIpsum
- extend ::FFaker::Lorem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::DizzleIpsum
-
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::Education
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Education
-
- def degree; end
- def degree_short; end
- def major; end
- def school; end
- def school_generic_name; end
- def school_name; end
-end
-
-FFaker::Education::MAJOR_ADJ = T.let(T.unsafe(nil), Array)
-FFaker::Education::SCHOOL_ADJ = T.let(T.unsafe(nil), Array)
-FFaker::Education::SCHOOL_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::Education::SCHOOL_TYPE = T.let(T.unsafe(nil), Array)
-FFaker::Education::SCHOOL_UNI = T.let(T.unsafe(nil), Array)
-
-module FFaker::EducationCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::EducationCN
-
- def degree; end
- def location; end
- def major; end
- def school; end
-end
-
-FFaker::EducationCN::DEGREE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::EducationCN::DEGREE_SUFFIX = T.let(T.unsafe(nil), Array)
-FFaker::EducationCN::POSITION = T.let(T.unsafe(nil), Array)
-FFaker::EducationCN::SCHOOL_UNI = T.let(T.unsafe(nil), Array)
-
-module FFaker::Filesystem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Filesystem
-
- def directory(directory_separator = T.unsafe(nil)); end
- def extension; end
- def file_name(dir = T.unsafe(nil), name = T.unsafe(nil), ext = T.unsafe(nil), directory_separator = T.unsafe(nil)); end
- def mime_type; end
-end
-
-module FFaker::Food
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Food
-
- def fruit; end
- def herb_or_spice; end
- def ingredient; end
- def meat; end
- def vegetable; end
-end
-
-module FFaker::FoodPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::FoodPL
-
- def diary; end
- def fermented; end
- def food; end
- def fruit; end
- def herb; end
- def meat; end
- def preserves; end
- def processed; end
- def spice; end
- def unprocessed; end
- def vegetable; end
-end
-
-module FFaker::FreedomIpsum
- include ::FFaker::Lorem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Lorem
- extend ::FFaker::FreedomIpsum
-
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::Game
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Game
-
- def category; end
- def mechanic; end
- def title; end
-
- private
-
- def simple_title; end
- def title_with_prefix; end
-end
-
-module FFaker::Gender
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Gender
-
- def binary; end
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::Gender::BINARY_GENDERS = T.let(T.unsafe(nil), Array)
-FFaker::Gender::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderBR
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderBR::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderCN
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderCN::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderID
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderID
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderID::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderIT
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderIT::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderJA
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderJA::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderJP
- include ::FFaker::GenderJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderJA
-end
-
-module FFaker::GenderKR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderKR
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderKR::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderPL
-
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderPL::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::GenderRU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::GenderRU
-
- def binary; end
- def maybe; end
- def random; end
- def sample; end
-end
-
-FFaker::GenderRU::BINARY_GENDERS = T.let(T.unsafe(nil), Array)
-FFaker::GenderRU::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Geolocation
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Geolocation
-
- def boxed_coords(upper_left, lower_right); end
- def lat; end
- def lng; end
-end
-
-FFaker::Geolocation::LATLNG = T.let(T.unsafe(nil), Array)
-
-module FFaker::Guid
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Guid
-
- def guid; end
-end
-
-FFaker::HEX = T.let(T.unsafe(nil), Array)
-
-module FFaker::HTMLIpsum
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::HTMLIpsum
-
- def a(word_count = T.unsafe(nil)); end
- def body; end
- def dl(definitions = T.unsafe(nil)); end
- def fancy_string(count = T.unsafe(nil), include_breaks = T.unsafe(nil)); end
- def ol_long(items = T.unsafe(nil)); end
- def ol_short(items = T.unsafe(nil)); end
- def p(count = T.unsafe(nil), options = T.unsafe(nil)); end
- def table(rows = T.unsafe(nil)); end
- def ul_links(items = T.unsafe(nil)); end
- def ul_long(items = T.unsafe(nil)); end
- def ul_short(items = T.unsafe(nil)); end
-
- private
-
- def content_tag_for(element, content = T.unsafe(nil)); end
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(word_count = T.unsafe(nil)); end
-end
-
-module FFaker::HealthcareIpsum
- include ::FFaker::Lorem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Lorem
- extend ::FFaker::HealthcareIpsum
-
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::HealthcareRU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::HealthcareRU
-
- def doctor_specialization; end
-end
-
-module FFaker::HipsterIpsum
- include ::FFaker::Lorem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Lorem
- extend ::FFaker::HipsterIpsum
-
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::Identification
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Identification
-
- def drivers_license; end
- def ethnicity; end
- def gender; end
- def ssn; end
-end
-
-FFaker::Identification::ETHNICITIES = T.let(T.unsafe(nil), Array)
-FFaker::Identification::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationBR
-
- def cnpj; end
- def cnpj_verification_digits(cnpj); end
- def cpf; end
- def cpf_verification_digits(cpf); end
- def gender; end
- def pretty_cnpj; end
- def pretty_cpf; end
- def pretty_rg; end
- def rg; end
-
- private
-
- def document_verification_digits(verification_multipliers, document = T.unsafe(nil)); end
-end
-
-FFaker::IdentificationBR::CNPJ_VERIFICATION_MULTIPLIERS = T.let(T.unsafe(nil), Array)
-FFaker::IdentificationBR::CPF_VERIFICATION_MULTIPLIERS = T.let(T.unsafe(nil), Array)
-FFaker::IdentificationBR::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationES
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationES
-
- def gender; end
-end
-
-FFaker::IdentificationES::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationESCL
- extend ::FFaker::IdentificationES
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationESCL
-
- def rut; end
-
- private
-
- def dv(rut); end
-end
-
-module FFaker::IdentificationESCO
- include ::FFaker::IdentificationES
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationES
- extend ::FFaker::IdentificationESCO
-
- def blood_type; end
- def driver_license_category; end
- def drivers_license; end
- def expedition_date; end
- def id; end
-end
-
-FFaker::IdentificationESCO::BLOOD_TYPE = T.let(T.unsafe(nil), Array)
-FFaker::IdentificationESCO::LICENSE_CATEGORY = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationIN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationIN
-
- def aadhaar; end
-end
-
-FFaker::IdentificationIN::AADHAAR_FORMAT = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationIT
-
- def drivers_license; end
- def ethnicity; end
- def gender; end
- def ssn; end
-end
-
-FFaker::IdentificationIT::ETHNICITIES = T.let(T.unsafe(nil), Array)
-FFaker::IdentificationIT::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationKr
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationKr
-
- def rrn; end
-end
-
-module FFaker::IdentificationMX
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationMX
-
- def curp; end
- def rfc; end
- def rfc_persona_fisica; end
- def rfc_persona_moral; end
-
- private
-
- def date; end
-end
-
-FFaker::IdentificationMX::CONSONANTS = T.let(T.unsafe(nil), Array)
-FFaker::IdentificationMX::HOMOCLAVE = T.let(T.unsafe(nil), Array)
-FFaker::IdentificationMX::VOWELS = T.let(T.unsafe(nil), Array)
-
-module FFaker::IdentificationPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationPL
-
- def drivers_license; end
- def id; end
- def identity_card; end
- def pesel; end
-
- private
-
- def generate_valid_pesel_date; end
- def identity_card_checksum(letter_part, number_part); end
- def pesel_birthdate(date); end
- def pesel_century_differentiator(year); end
- def pesel_checksum(date, serial_number); end
-end
-
-module FFaker::IdentificationTW
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::IdentificationTW
-
- def id; end
-end
-
-FFaker::IdentificationTW::AREA_CODE = T.let(T.unsafe(nil), Hash)
-
-module FFaker::Image
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Image
-
- def file(size = T.unsafe(nil), format = T.unsafe(nil), bg_color = T.unsafe(nil), text_color = T.unsafe(nil), text = T.unsafe(nil)); end
- def url(size = T.unsafe(nil), format = T.unsafe(nil), bg_color = T.unsafe(nil), text_color = T.unsafe(nil), text = T.unsafe(nil)); end
-
- private
-
- def check_format!(format); end
- def check_size!(size); end
-end
-
-FFaker::Image::SUPPORTED_FORMATS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Internet
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Internet
-
- def disposable_email(name = T.unsafe(nil)); end
- def domain_name; end
- def domain_suffix; end
- def domain_word; end
- def email(name = T.unsafe(nil)); end
- def free_email(name = T.unsafe(nil)); end
- def http_url; end
- def ip_v4_address; end
- def mac(delimiter = T.unsafe(nil)); end
- def password(min_length = T.unsafe(nil), max_length = T.unsafe(nil)); end
- def safe_email(name = T.unsafe(nil)); end
- def slug(words = T.unsafe(nil), glue = T.unsafe(nil)); end
- def uri(protocol); end
- def user_name(name = T.unsafe(nil)); end
-
- private
-
- def sanitize(string); end
-end
-
-FFaker::Internet::BYTE = T.let(T.unsafe(nil), Array)
-FFaker::Internet::DISPOSABLE_HOSTS = T.let(T.unsafe(nil), Array)
-FFaker::Internet::DOMAIN_SUFFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Internet::HOSTS = T.let(T.unsafe(nil), Array)
-FFaker::Internet::MAC_LIMIT = T.let(T.unsafe(nil), Integer)
-FFaker::Internet::SAFE_DOMAIN_SUFFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Internet::SLUG_DELIMITERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::InternetSE
- include ::FFaker::Internet
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Internet
- extend ::FFaker::InternetSE
-
- def company_name_single_word; end
- def disposable_email(name = T.unsafe(nil)); end
- def domain_name; end
- def domain_suffix; end
- def domain_word; end
- def email(name = T.unsafe(nil)); end
- def free_email(name = T.unsafe(nil)); end
- def http_url; end
- def ip_v4_address; end
- def join_to_user_name(array_parts); end
- def login_user_name; end
- def slug(words = T.unsafe(nil), glue = T.unsafe(nil)); end
- def uri(protocol); end
- def user_name(name = T.unsafe(nil)); end
- def user_name_from_name(name); end
- def user_name_random; end
- def user_name_variant_long; end
- def user_name_variant_short; end
-end
-
-FFaker::InternetSE::BYTE = T.let(T.unsafe(nil), Array)
-FFaker::InternetSE::DISPOSABLE_HOSTS = T.let(T.unsafe(nil), Array)
-FFaker::InternetSE::DOMAIN_SUFFIXES = T.let(T.unsafe(nil), Array)
-FFaker::InternetSE::HOSTS = T.let(T.unsafe(nil), Array)
-FFaker::InternetSE::SLUG_DELIMITERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Job
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Job
-
- def title; end
-end
-
-module FFaker::JobBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobBR
-
- def title; end
-end
-
-module FFaker::JobCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobCN
-
- def title; end
-end
-
-module FFaker::JobFR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobFR
-
- def title; end
-end
-
-FFaker::JobFR::JOB_ADJECTIVES = T.let(T.unsafe(nil), Array)
-
-module FFaker::JobIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobIT
-
- def title; end
-end
-
-module FFaker::JobJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobJA
-
- def title; end
-end
-
-module FFaker::JobKR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobKR
-
- def title; end
-end
-
-module FFaker::JobVN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::JobVN
-
- def title; end
-end
-
-FFaker::LETTERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Locale
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Locale
-
- def code(given_language = T.unsafe(nil)); end
- def language(given_code = T.unsafe(nil)); end
-end
-
-module FFaker::Lorem
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Lorem
-
- def characters(character_count = T.unsafe(nil)); end
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremAR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremAR
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremBR
-
- def characters(character_count = T.unsafe(nil)); end
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremCN
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremFR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremFR
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremIE
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremIE
-
- def paragraph; end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase; end
- def phrases(sentence_count = T.unsafe(nil)); end
- def question; end
- def sentence; end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremIT
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremJA
-
- def character; end
- def characters(count = T.unsafe(nil)); end
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(count = T.unsafe(nil)); end
- def sentence; end
- def sentences(count = T.unsafe(nil)); end
- def word; end
- def words(count = T.unsafe(nil)); end
-end
-
-module FFaker::LoremKR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremKR
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-end
-
-module FFaker::LoremPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremPL
-
- def character; end
- def characters(count = T.unsafe(nil)); end
- def paragraph(count = T.unsafe(nil)); end
- def paragraphs(count = T.unsafe(nil)); end
- def phrase(count = T.unsafe(nil)); end
- def phrases(count = T.unsafe(nil)); end
- def sentence(count = T.unsafe(nil)); end
- def sentences(count = T.unsafe(nil)); end
- def word; end
- def words(count = T.unsafe(nil)); end
-
- private
-
- def end_of_sentence; end
-end
-
-module FFaker::LoremRU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremRU
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-
- private
-
- def capitalize_russian(string); end
- def sentence_type_mark; end
-end
-
-module FFaker::LoremUA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::LoremUA
-
- def paragraph(sentence_count = T.unsafe(nil)); end
- def paragraphs(paragraph_count = T.unsafe(nil)); end
- def phrase(word_count = T.unsafe(nil)); end
- def phrases(sentence_count = T.unsafe(nil)); end
- def sentence(word_count = T.unsafe(nil)); end
- def sentences(sentence_count = T.unsafe(nil)); end
- def word; end
- def words(num = T.unsafe(nil)); end
-
- private
-
- def capitalize_ukrainian(string); end
- def sentence_type_mark; end
-end
-
-module FFaker::ModuleUtils
- include ::FFaker::RandomUtils
-
- def const_missing(const_name); end
- def k(arg); end
- def luhn_check(number); end
- def underscore(string); end
- def unique(max_retries = T.unsafe(nil)); end
-end
-
-module FFaker::Movie
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Movie
-
- def rating; end
- def title; end
-
- private
-
- def maybe_adj_or_adv; end
- def simple_title; end
- def title_from_formula; end
- def title_with_prefix; end
- def title_with_suffix; end
-end
-
-FFaker::Movie::COLORS = T.let(T.unsafe(nil), Array)
-FFaker::Movie::RATINGS = T.let(T.unsafe(nil), Array)
-FFaker::Movie::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::Music
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Music
-
- def album; end
- def artist; end
- def genre; end
- def song; end
-end
-
-module FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
-
- def female_name_with_prefix; end
- def female_name_with_prefix_suffix; end
- def female_name_with_suffix; end
- def female_prefix; end
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def html_safe_last_name; end
- def html_safe_name; end
- def last_name; end
- def male_name_with_prefix; end
- def male_name_with_prefix_suffix; end
- def male_name_with_suffix; end
- def male_prefix; end
- def name; end
- def name_with_prefix; end
- def name_with_prefix_suffix; end
- def name_with_suffix; end
- def other_prefix; end
- def prefix; end
- def pronouns; end
- def suffix; end
-end
-
-FFaker::Name::FEMALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Name::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::Name::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::Name::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::Name::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::Name::MALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Name::OTHER_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Name::PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::Name::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameAR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameAR
-
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name_female; end
- def name_male; end
-end
-
-module FFaker::NameBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameBR
-
- def female_name_with_prefix; end
- def female_prefix; end
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def male_name_with_prefix; end
- def male_prefix; end
- def name; end
- def name_with_prefix; end
- def prefix; end
-end
-
-FFaker::NameBR::FEMALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameBR::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameBR::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameBR::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameBR::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameBR::MALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameBR::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameCN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameCN
-
- def first_name; end
- def last_first; end
- def last_name; end
- def name; end
-end
-
-FFaker::NameCN::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameCN::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameCS
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameCS
-
- def first_name(for_sex = T.unsafe(nil)); end
- def last_name(for_sex = T.unsafe(nil)); end
- def name(for_sex = T.unsafe(nil)); end
- def prefix; end
- def suffix; end
- def with_same_sex(sex = T.unsafe(nil)); end
-
- private
-
- def select_sex(sex); end
-end
-
-FFaker::NameCS::FEMALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameCS::FEMALE_LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameCS::FIRST_NAMES = T.let(T.unsafe(nil), Hash)
-FFaker::NameCS::GENDERS = T.let(T.unsafe(nil), Array)
-FFaker::NameCS::LAST_NAMES = T.let(T.unsafe(nil), Hash)
-FFaker::NameCS::MALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameCS::MALE_LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameCS::SUFFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameDA
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameDA
-
- def any_name; end
- def female_name; end
- def first_name(gender = T.unsafe(nil)); end
- def last_name; end
- def male_name; end
- def name(gender = T.unsafe(nil)); end
- def prefix; end
-
- private
-
- def generate_name(first_name); end
-end
-
-FFaker::NameDA::FEMALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameDA::MALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameDA::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameDE
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameDE
-
- def first_name; end
- def last_name; end
- def name; end
- def prefix; end
-end
-
-FFaker::NameDE::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameES
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
-
- private
-
- def female_name_with_prefix; end
- def female_prefix; end
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def male_name_with_prefix; end
- def male_prefix; end
- def name; end
- def name_with_prefix; end
- def prefix; end
-
- class << self
- def female_name_with_prefix; end
- def female_prefix; end
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def male_name_with_prefix; end
- def male_prefix; end
- def name; end
- def name_with_prefix; end
- def prefix; end
- end
-end
-
-FFaker::NameES::FEMALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameES::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameES::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameES::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameES::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameES::MALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameES::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameFR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameFR
-
- def first_name; end
- def last_name; end
- def name; end
- def prefix; end
-end
-
-FFaker::NameFR::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameFR::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameFR::PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameGA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameGA
-
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name; end
- def name_female; end
- def name_male; end
-end
-
-FFaker::NameGA::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameGA::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameGA::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameGR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameGR
-
- def female_first_name; end
- def female_full_name; end
- def female_last_name; end
- def first_name; end
- def full_name(gender = T.unsafe(nil)); end
- def last_name; end
- def male_first_name; end
- def male_full_name; end
- def male_last_name; end
- def name(gender = T.unsafe(nil)); end
-end
-
-FFaker::NameGR::FEMALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameGR::FEMALE_LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameGR::MALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameGR::MALE_LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameID
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameID
-
- def female_name_with_prefix; end
- def female_prefix; end
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def male_name_with_prefix; end
- def male_prefix; end
- def name; end
- def name_with_prefix; end
- def prefix; end
-end
-
-FFaker::NameID::FEMALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameID::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameID::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameID::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameID::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameID::MALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameID::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameIN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameIN
-
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name; end
- def name_female; end
- def name_male; end
-end
-
-FFaker::NameIN::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameIN::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameIN::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameIT
-
- def first_name; end
- def last_name; end
- def name; end
- def prefix; end
-end
-
-FFaker::NameIT::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameIT::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameIT::PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameJA
-
- def first_name; end
- def last_first; end
- def last_name; end
- def name; end
-end
-
-FFaker::NameJA::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameJA::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameKH
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameKH
-
- def first_name; end
- def last_name; end
- def name; end
- def nick_name; end
-end
-
-FFaker::NameKH::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameKH::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameKR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameKR
-
- def first_name; end
- def last_first; end
- def last_name; end
- def name; end
- def name_with_space; end
-end
-
-FFaker::NameKR::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameKR::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameMX
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameMX
-
- def female_name; end
- def female_prefix; end
- def first_name(gender = T.unsafe(nil)); end
- def full_name(gender = T.unsafe(nil), prefix = T.unsafe(nil)); end
- def full_name_no_prefix(gender = T.unsafe(nil)); end
- def full_name_prefix(gender = T.unsafe(nil)); end
- def last_name; end
- def male_name; end
- def male_prefix; end
- def middle_name(gender = T.unsafe(nil)); end
- def name(gender = T.unsafe(nil)); end
- def paternal_last_names; end
- def prefix; end
-end
-
-FFaker::NameMX::FEMALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameMX::FEMALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameMX::MALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameMX::MALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NameMX::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameNB
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameNB
-
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name; end
- def prefix; end
-end
-
-FFaker::NameNB::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameNL
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameNL
-
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name; end
- def prefix; end
-end
-
-FFaker::NameNL::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NamePH
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NamePH
-
- def last_name; end
- def name; end
-end
-
-FFaker::NamePH::AUTOCHTHONOUS_SURNAMES = T.let(T.unsafe(nil), Array)
-FFaker::NamePH::SPANISH_SURNAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NamePL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NamePL
-
- def academic_degree_prefix; end
- def female_first_name; end
- def female_full_name; end
- def female_last_name; end
- def female_name_with_prefix; end
- def female_prefix; end
- def first_name(gender = T.unsafe(nil)); end
- def full_name(gender = T.unsafe(nil)); end
- def last_name(gender = T.unsafe(nil)); end
- def male_first_name; end
- def male_full_name; end
- def male_last_name; end
- def male_name_with_prefix; end
- def male_prefix; end
- def name(gender = T.unsafe(nil)); end
- def name_with_prefix(gender = T.unsafe(nil)); end
- def prefix; end
-
- private
-
- def name_for_gender(name_type, gender); end
-end
-
-FFaker::NamePL::ACADEMIC_DEGREE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::FEMALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::FEMALE_LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::FEMALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::GENDERS = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::MALE_FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::MALE_LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::MALE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::NamePL::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameRU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameRU
-
- def female_name; end
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def last_name_female; end
- def last_name_male; end
- def male_name; end
- def middle_name_female; end
- def middle_name_male; end
- def name; end
-end
-
-FFaker::NameRU::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameRU::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameRU::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameRU::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameRU::LAST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameRU::LAST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameSE
- include ::FFaker::Name
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Name
- extend ::FFaker::NameSE
-
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name; end
- def prefix; end
-end
-
-FFaker::NameSE::PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameSN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameSN
-
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def name_female; end
- def name_male; end
- def name_sn; end
- def prefix_female; end
- def prefix_male; end
-end
-
-FFaker::NameSN::PREFIX_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameSN::PREFIX_MALE = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameTH
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameTH
-
- def first_name; end
- def last_name; end
- def name; end
- def nick_name; end
-end
-
-FFaker::NameTH::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameTH::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameTHEN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameTHEN
-
- def first_name; end
- def last_name; end
- def name; end
- def nick_name; end
-end
-
-FFaker::NameTHEN::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameTHEN::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameTW
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameTW
-
- def first_name; end
- def last_name; end
- def name; end
-end
-
-FFaker::NameTW::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameTW::LAST_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameUA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameUA
-
- def first_name; end
- def first_name_female; end
- def first_name_male; end
- def last_name; end
- def last_name_female; end
- def last_name_male; end
- def middle_name_female; end
- def middle_name_male; end
- def name; end
-end
-
-FFaker::NameUA::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::FIRST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::FIRST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::LAST_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::LAST_NAMES_MALE = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::MIDDLE_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::MIDDLE_NAMES_FEMALE = T.let(T.unsafe(nil), Array)
-FFaker::NameUA::MIDDLE_NAMES_MALE = T.let(T.unsafe(nil), Array)
-
-module FFaker::NameVN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NameVN
-
- def first_name; end
- def last_first; end
- def last_name; end
- def middle_name; end
- def name; end
-end
-
-FFaker::NameVN::FIRST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameVN::LAST_NAMES = T.let(T.unsafe(nil), Array)
-FFaker::NameVN::MIDDLE_NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::NatoAlphabet
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::NatoAlphabet
-
- def alphabetic_code; end
- def callsign; end
- def code; end
- def codify(masks); end
- def numeric_code; end
-end
-
-FFaker::NatoAlphabet::ALPHABET_CODES = T.let(T.unsafe(nil), Array)
-FFaker::NatoAlphabet::CODES = T.let(T.unsafe(nil), Array)
-FFaker::NatoAlphabet::NUMERIC_CODES = T.let(T.unsafe(nil), Array)
-FFaker::NatoAlphabet::STOP_CODE = T.let(T.unsafe(nil), String)
-
-module FFaker::Number
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Number
-
- def decimal(whole_digits: T.unsafe(nil), fractional_digits: T.unsafe(nil)); end
- def number(digits: T.unsafe(nil)); end
-
- private
-
- def generate_pattern(digits); end
-end
-
-module FFaker::PhoneNumber
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumber
-
- def area_code; end
- def exchange_code; end
- def imei(serial_number = T.unsafe(nil)); end
- def phone_calling_code; end
- def phone_number; end
- def short_phone_number; end
-end
-
-module FFaker::PhoneNumberAU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberAU
-
- def country_code; end
- def home_work_phone_number; end
- def home_work_phone_prefix; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def mobile_phone_prefix; end
- def phone_number; end
- def phone_prefix; end
-end
-
-FFaker::PhoneNumberAU::HOME_WORK_OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberAU::MOBILE_OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberAU::OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberBR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberBR
-
- def country_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-
- private
-
- def number(prefixes, country_prefix = T.unsafe(nil)); end
- def random_space; end
-end
-
-FFaker::PhoneNumberBR::AREA_CODE = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberBR::COUNTRY_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberBR::HOME_WORK_PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberBR::MOBILE_PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberBR::PHONE_NUMBER = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberCH
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberCH
-
- def free_phone_number; end
- def home_work_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
- def premium_rate_phone_number; end
- def shared_cost_phone_number; end
-end
-
-FFaker::PhoneNumberCH::AREA_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCH::COUNTRY_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCH::FREE_PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCH::MOBILE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCH::PHONE_NUMBER = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCH::PREMIUM_RATE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCH::SHARED_COST_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberCU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberCU
-
- def country_code; end
- def e164_country_code; end
- def e164_home_work_phone_number; end
- def e164_mobile_phone_number; end
- def e164_phone_number; end
- def general_phone_number; end
- def home_work_phone_number; end
- def home_work_phone_prefix; end
- def international_country_code; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def mobile_phone_prefix; end
- def phone_number; end
- def phone_prefix; end
-end
-
-FFaker::PhoneNumberCU::HOME_WORK_OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCU::MOBILE_OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberCU::OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberDA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberDA
-
- def country_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-end
-
-module FFaker::PhoneNumberDE
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberDE
-
- def country_code; end
- def home_work_phone_number(leading_zero = T.unsafe(nil)); end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number(leading_zero = T.unsafe(nil)); end
- def mobile_prefix(leading_zero = T.unsafe(nil)); end
- def phone_number; end
- def region_prefix(leading_zero = T.unsafe(nil)); end
-end
-
-module FFaker::PhoneNumberFR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberFR
-
- def country_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-
- private
-
- def number(prefixes, country_prefix = T.unsafe(nil)); end
- def random_space; end
-end
-
-FFaker::PhoneNumberFR::AREA_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberFR::COUNTRY_CODE = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberFR::HOME_WORK_PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberFR::MOBILE_PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberFR::NON_AREA_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberFR::PHONE_NUMBER = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberFR::PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberID
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberID
-
- def home_phone_number; end
- def international_home_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-end
-
-FFaker::PhoneNumberID::COUNTRY_CODE = T.let(T.unsafe(nil), String)
-
-module FFaker::PhoneNumberIT
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberIT
-
- def home_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-
- private
-
- def number(prefixes); end
- def random_space; end
-end
-
-FFaker::PhoneNumberIT::COUNTRY_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberIT::PHONE_NUMBER = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberJA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberJA
-
- def home_phone_number; end
- def home_phone_number_format(disit); end
- def home_phone_prefix(disit = T.unsafe(nil)); end
- def international_home_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def mobile_phone_number_format; end
- def mobile_prefix; end
- def phone_number; end
-
- private
-
- def select_home_phone_format(disit); end
-end
-
-FFaker::PhoneNumberJA::FOUR_DISIT_FORMAT = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::IP_PHONE_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::JAPAN_COUNTRY_CODE = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::JAPAN_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::MOBILE_NUMBER_FORMAT = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::MOBILE_PHONE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberJA::ONE_DISIT_FORMAT = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::THREE_DISIT_FORMAT = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberJA::TWO_DISIT_FORMAT = T.let(T.unsafe(nil), String)
-
-module FFaker::PhoneNumberKR
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberKR
-
- def contry_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-end
-
-FFaker::PhoneNumberKR::HOME_PHONE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberKR::MOBILE_PHONE_PREFIXES = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberMX
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberMX
-
- def country_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
- def toll_free_number; end
-end
-
-module FFaker::PhoneNumberNL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberNL
-
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-end
-
-FFaker::PhoneNumberNL::AREA_CODE_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberNL::COUNTRY_CODE = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberNL::MOBILE_PHONE_NUMBER = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberNL::PHONE_NUMBER = T.let(T.unsafe(nil), Hash)
-
-module FFaker::PhoneNumberPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
-
- private
-
- def area_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def mobile_phone_number_format; end
- def mobile_prefix; end
- def phone_number; end
- def phone_number_format; end
-
- class << self
- def area_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def mobile_phone_number_format; end
- def mobile_prefix; end
- def phone_number; end
- def phone_number_format; end
- end
-end
-
-FFaker::PhoneNumberPL::AREA_CODES = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberPL::COUNTRY_CODE = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberPL::MOBILE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberPL::PHONE_NUMBER_FORMAT = T.let(T.unsafe(nil), String)
-
-module FFaker::PhoneNumberRU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberRU
-
- def country_code; end
- def home_work_phone_number; end
- def home_work_phone_prefix; end
- def international_country_code; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def international_toll_free_number; end
- def mobile_phone_number; end
- def mobile_phone_prefix; end
- def phone_number; end
- def toll_free_number; end
-
- private
-
- def build_phone_number(country_code, prefix); end
-end
-
-FFaker::PhoneNumberRU::COUNTRY_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberRU::INTERNATIONAL_COUNTRY_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberRU::TOLL_FREE_PREFIX = T.let(T.unsafe(nil), String)
-
-module FFaker::PhoneNumberSE
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberSE
-
- def area_prefix; end
- def country_prefix; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def mobile_phone_number_format; end
- def mobile_prefix; end
- def phone_number; end
- def phone_number_format; end
-end
-
-FFaker::PhoneNumberSE::COUNTRY_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberSE::MOBILE_PHONE_FORMAT = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberSE::MOBILE_PHONE_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberSE::PHONE_FORMAT_PREFIX_2 = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberSE::PHONE_FORMAT_PREFIX_3 = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberSE::PHONE_FORMAT_PREFIX_4 = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberSG
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberSG
-
- def country_code; end
- def fixed_line_number; end
- def international_toll_free_number; end
- def mobile_number; end
- def mobile_or_pager_number; end
- def phone_number; end
- def premium_service_number; end
- def toll_free_number; end
- def voip_number; end
-end
-
-module FFaker::PhoneNumberSN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberSN
-
- def homework_number; end
- def homework_phone_prefix; end
- def mobile_number; end
- def mobile_phone_prefix; end
- def phone_number; end
- def short_phone_number; end
-end
-
-FFaker::PhoneNumberSN::HOME_WORK_OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberSN::MOBILE_OPERATORS_PREFIX = T.let(T.unsafe(nil), Array)
-
-module FFaker::PhoneNumberTW
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberTW
-
- def contry_code; end
- def home_work_phone_number; end
- def international_home_work_phone_number; end
- def international_mobile_phone_number; end
- def international_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-end
-
-FFaker::PhoneNumberTW::HOME_PHONE_PREFIXES = T.let(T.unsafe(nil), Array)
-FFaker::PhoneNumberTW::MOBILE_PHONE_PREFIX = T.let(T.unsafe(nil), String)
-
-module FFaker::PhoneNumberUA
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::PhoneNumberUA
-
- def home_phone_number; end
- def international_home_phone_number; end
- def international_mobile_phone_number; end
- def mobile_phone_number; end
- def phone_number; end
-
- private
-
- def international_number(prefixes); end
- def local_number(prefixes); end
-end
-
-FFaker::PhoneNumberUA::COUNTRY_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberUA::LOCAL_PREFIX = T.let(T.unsafe(nil), String)
-FFaker::PhoneNumberUA::PHONE_NUMBER = T.let(T.unsafe(nil), String)
-
-module FFaker::Product
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Product
-
- def brand; end
- def letters(count); end
- def model; end
- def product; end
- def product_name; end
-end
-
-FFaker::Product::ADDON = T.let(T.unsafe(nil), Array)
-FFaker::Product::B2 = T.let(T.unsafe(nil), Array)
-FFaker::Product::START = T.let(T.unsafe(nil), Array)
-FFaker::Product::SUFFIX = T.let(T.unsafe(nil), Array)
-FFaker::Product::VOWELS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Random
- class << self
- def new_rng; end
- def rand(max = T.unsafe(nil)); end
- def reset!; end
- def rng; end
- def seed; end
- def seed=(new_seed); end
- end
-end
-
-module FFaker::RandomUtils
- def fetch_sample(list, options = T.unsafe(nil)); end
- def rand(max = T.unsafe(nil)); end
- def shuffle(list); end
-end
-
-module FFaker::SSN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SSN
-
- def ssn; end
-end
-
-module FFaker::SSNMX
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SSNMX
-
- def imss; end
- def imss_undashed; end
- def issste; end
- def issste_undashed; end
- def ssn; end
- def ssn_undashed; end
-end
-
-module FFaker::SSNSE
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SSNSE
-
- def ssn(opts = T.unsafe(nil)); end
-
- private
-
- def generate_ssn(from, to, gender); end
- def raise_error_on_bad_arguments(from, to, gender); end
- def random_birth_time_between(from = T.unsafe(nil), to = T.unsafe(nil)); end
- def random_region_even; end
- def random_region_for(gender); end
- def random_region_odd; end
- def three_character_string(number); end
-end
-
-FFaker::SSNSE::GENDERS = T.let(T.unsafe(nil), Array)
-
-module FFaker::SemVer
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SemVer
-
- def next(previous_version = T.unsafe(nil)); end
-end
-
-FFaker::SemVer::UPDATE = T.let(T.unsafe(nil), Array)
-
-module FFaker::Skill
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Skill
-
- def specialties(num = T.unsafe(nil)); end
- def specialty; end
- def tech_skill; end
- def tech_skills(num = T.unsafe(nil)); end
-end
-
-module FFaker::Sport
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Sport
-
- def name; end
-end
-
-FFaker::Sport::NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::SportPL
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SportPL
-
- def name; end
- def summer; end
- def winter; end
-end
-
-FFaker::SportPL::ALL = T.let(T.unsafe(nil), Array)
-FFaker::SportPL::SUMMER = T.let(T.unsafe(nil), Array)
-FFaker::SportPL::WINTER = T.let(T.unsafe(nil), Array)
-
-module FFaker::SportRU
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SportRU
-
- def name; end
- def summer; end
- def winter; end
-end
-
-FFaker::SportRU::ALL = T.let(T.unsafe(nil), Array)
-FFaker::SportRU::SUMMER = T.let(T.unsafe(nil), Array)
-FFaker::SportRU::WINTER = T.let(T.unsafe(nil), Array)
-
-module FFaker::SportUS
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::SportUS
-
- def name; end
-end
-
-FFaker::SportUS::NAMES = T.let(T.unsafe(nil), Array)
-
-module FFaker::String
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::String
-
- def from_regexp(exp); end
-
- private
-
- def generate_range(tokens); end
- def generate_token(token, tokens); end
- def process_token(tokens); end
- def special(token); end
-end
-
-FFaker::String::BACKSLASH = T.let(T.unsafe(nil), String)
-FFaker::String::DASH = T.let(T.unsafe(nil), String)
-FFaker::String::ESCAPEABLE_CHARS = T.let(T.unsafe(nil), Array)
-FFaker::String::LETTERS = T.let(T.unsafe(nil), Array)
-FFaker::String::LOWERS = T.let(T.unsafe(nil), Array)
-FFaker::String::NUMBERS = T.let(T.unsafe(nil), Array)
-FFaker::String::SPACES = T.let(T.unsafe(nil), Array)
-FFaker::String::UPPERS = T.let(T.unsafe(nil), Array)
-FFaker::String::WORD_CHARS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Time
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Time
-
- def between(from, to); end
- def date(params = T.unsafe(nil)); end
- def datetime(params = T.unsafe(nil)); end
- def day_of_week(options = T.unsafe(nil)); end
- def month; end
-
- private
-
- def convert_to_time(value); end
-end
-
-FFaker::Time::DAYS_OF_WEEK = T.let(T.unsafe(nil), Array)
-FFaker::Time::MONTHS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Tweet
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Tweet
-
- def body(required_length = T.unsafe(nil)); end
- def mention; end
- def mentions(num = T.unsafe(nil)); end
- def tags(num_tags = T.unsafe(nil)); end
- def tweet(args = T.unsafe(nil)); end
-end
-
-class FFaker::UniqueUtils
- def initialize(generator, max_retries); end
-
- def clear; end
- def method_missing(name, *arguments); end
-
- private
-
- def add_results_to_hash(name, *arguments); end
- def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
-
- class << self
- def clear; end
- end
-end
-
-class FFaker::UniqueUtils::RetryLimitExceeded < ::StandardError; end
-
-module FFaker::Unit
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Unit
-
- def temperature_abbr; end
- def temperature_name; end
- def time_abbr; end
- def time_name; end
-
- private
-
- def temperature; end
- def time; end
-end
-
-FFaker::Unit::TEMPERATURE_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::Unit::TIME_UNITS = T.let(T.unsafe(nil), Array)
-
-module FFaker::UnitEnglish
- include ::FFaker::Unit
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Unit
- extend ::FFaker::UnitEnglish
-
- def area_abbr; end
- def area_name; end
- def length_abbr; end
- def length_name; end
- def liquid_abbr; end
- def liquid_name; end
- def mass_abbr; end
- def mass_name; end
- def volume_abbr; end
- def volume_name; end
-
- private
-
- def area; end
- def length; end
- def liquid; end
- def mass; end
- def volume; end
-end
-
-FFaker::UnitEnglish::AREA_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitEnglish::LENGTH_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitEnglish::LIQUID_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitEnglish::MASS_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitEnglish::VOLUME_UNITS = T.let(T.unsafe(nil), Array)
-
-module FFaker::UnitMetric
- include ::FFaker::Unit
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Unit
- extend ::FFaker::UnitMetric
-
- def area_abbr; end
- def area_name; end
- def length_abbr; end
- def length_name; end
- def liquid_abbr; end
- def liquid_name; end
- def mass_abbr; end
- def mass_name; end
- def volume_abbr; end
- def volume_name; end
-
- private
-
- def area; end
- def length; end
- def liquid; end
- def mass; end
- def volume; end
-end
-
-FFaker::UnitMetric::AREA_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitMetric::LENGTH_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitMetric::LIQUID_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitMetric::MASS_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::UnitMetric::VOLUME_UNITS = T.let(T.unsafe(nil), Array)
-FFaker::VERSION = T.let(T.unsafe(nil), String)
-
-module FFaker::Vehicle
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Vehicle
-
- def base_color; end
- def drivetrain; end
- def engine_cylinders; end
- def engine_displacement; end
- def fuel_type; end
- def interior_upholstery; end
- def make; end
- def manufacturer_color(count = T.unsafe(nil)); end
- def mfg_color(count = T.unsafe(nil)); end
- def model; end
- def transmission; end
- def transmission_abbr; end
- def trim; end
- def vin; end
- def year; end
-end
-
-FFaker::Vehicle::CYLINDERS = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::DRIVETRAINS = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::TRANSMISSIONS_ABBR = T.let(T.unsafe(nil), Array)
-
-module FFaker::Vehicle::VIN
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Vehicle::VIN
-
- def vin; end
-end
-
-FFaker::Vehicle::VIN::POSITION_WEIGHTS = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::VIN::TRANSLITERATION_VALUES = T.let(T.unsafe(nil), Hash)
-FFaker::Vehicle::VIN::VALID_ALPHA = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::VIN::VALID_ALPHANUMERIC = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::VIN::VALID_WMI_REGIONS = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::VIN::VALID_YEAR_CHARS = T.let(T.unsafe(nil), Array)
-FFaker::Vehicle::YEARS = T.let(T.unsafe(nil), Array)
-
-module FFaker::Venue
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Venue
-
- def name; end
-end
-
-FFaker::Venue::VENUE_LIST = T.let(T.unsafe(nil), Array)
-
-module FFaker::Youtube
- extend ::FFaker::RandomUtils
- extend ::FFaker::ModuleUtils
- extend ::FFaker::Youtube
-
- def embed_url; end
- def share_url; end
- def url; end
- def video_id; end
-end
diff --git a/sorbet/rbi/gems/ffi@1.15.5.rbi b/sorbet/rbi/gems/ffi@1.15.5.rbi
deleted file mode 100644
index 7e8c35a..0000000
--- a/sorbet/rbi/gems/ffi@1.15.5.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `ffi` gem.
-# Please instead update this file by running `bin/tapioca gem ffi`.
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/formatador@1.1.0.rbi b/sorbet/rbi/gems/formatador@1.1.0.rbi
deleted file mode 100644
index 731a061..0000000
--- a/sorbet/rbi/gems/formatador@1.1.0.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `formatador` gem.
-# Please instead update this file by running `bin/tapioca gem formatador`.
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/guard-compat@1.2.1.rbi b/sorbet/rbi/gems/guard-compat@1.2.1.rbi
deleted file mode 100644
index b569c83..0000000
--- a/sorbet/rbi/gems/guard-compat@1.2.1.rbi
+++ /dev/null
@@ -1,31 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `guard-compat` gem.
-# Please instead update this file by running `bin/tapioca gem guard-compat`.
-
-# typed: true
-
-module Guard; end
-
-module Guard::Compat
- class << self
- def matching_files(plugin, files); end
- def watched_directories; end
- end
-end
-
-module Guard::Compat::UI
- class << self
- def color(text, *colors); end
- def color_enabled?; end
- def debug(message, options = T.unsafe(nil)); end
- def deprecation(message, options = T.unsafe(nil)); end
- def error(message, options = T.unsafe(nil)); end
- def info(message, options = T.unsafe(nil)); end
- def notify(msg, options = T.unsafe(nil)); end
- def warning(message, options = T.unsafe(nil)); end
- end
-end
-
-class Guard::Plugin
- def initialize(_options = T.unsafe(nil)); end
-end
diff --git a/sorbet/rbi/gems/guard-livereload@2.5.2.rbi b/sorbet/rbi/gems/guard-livereload@2.5.2.rbi
deleted file mode 100644
index a5973ca..0000000
--- a/sorbet/rbi/gems/guard-livereload@2.5.2.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `guard-livereload` gem.
-# Please instead update this file by running `bin/tapioca gem guard-livereload`.
-
-# typed: true
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/guard-rspec@4.7.3.rbi b/sorbet/rbi/gems/guard-rspec@4.7.3.rbi
deleted file mode 100644
index d5b5b42..0000000
--- a/sorbet/rbi/gems/guard-rspec@4.7.3.rbi
+++ /dev/null
@@ -1,211 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `guard-rspec` gem.
-# Please instead update this file by running `bin/tapioca gem guard-rspec`.
-
-# typed: true
-
-module Guard; end
-
-class Guard::RSpec < ::Guard::Plugin
- def initialize(options = T.unsafe(nil)); end
-
- def options; end
- def options=(_arg0); end
- def reload; end
- def run_all; end
- def run_on_modifications(paths); end
- def runner; end
- def runner=(_arg0); end
- def start; end
-
- private
-
- def _throw_if_failed; end
-end
-
-class Guard::RSpec::Command < ::String
- def initialize(paths, options = T.unsafe(nil)); end
-
- def options; end
- def options=(_arg0); end
- def paths; end
- def paths=(_arg0); end
-
- private
-
- def _cmd_include_formatter?; end
- def _guard_formatter; end
- def _parts; end
- def _paths(options); end
- def _rspec_formatters; end
- def _visual_formatter; end
-end
-
-Guard::RSpec::Command::FAILURE_EXIT_CODE = T.let(T.unsafe(nil), Integer)
-
-class Guard::RSpec::Deprecator
- def initialize(options = T.unsafe(nil)); end
-
- def options; end
- def options=(_arg0); end
- def warns_about_deprecated_options; end
-
- private
-
- def _deprecated(message); end
- def _exclude_option; end
- def _focus_on_failed_option; end
- def _keep_failed_option; end
- def _spec_opts_env; end
- def _use_cmd_option; end
- def _version_option; end
-
- class << self
- def warns_about_deprecated_options(options = T.unsafe(nil)); end
- end
-end
-
-module Guard::RSpec::Inspectors; end
-
-class Guard::RSpec::Inspectors::BaseInspector
- def initialize(options = T.unsafe(nil)); end
-
- def failed(_locations); end
- def options; end
- def options=(_arg0); end
- def paths(_paths); end
- def reload; end
- def spec_paths; end
- def spec_paths=(_arg0); end
-
- private
-
- def _clean(paths); end
- def _collect_files(pattern); end
- def _paths_with_chdir(paths, chdir); end
- def _select_only_spec_dirs(paths); end
- def _select_only_spec_files(paths); end
- def _spec_paths_with_chdir; end
-end
-
-class Guard::RSpec::Inspectors::Factory
- class << self
- def create(options = T.unsafe(nil)); end
- end
-end
-
-class Guard::RSpec::Inspectors::FocusedInspector < ::Guard::RSpec::Inspectors::BaseInspector
- def initialize(options = T.unsafe(nil)); end
-
- def failed(locations); end
- def focused_locations; end
- def focused_locations=(_arg0); end
- def paths(paths); end
- def reload; end
-end
-
-class Guard::RSpec::Inspectors::KeepingInspector < ::Guard::RSpec::Inspectors::BaseInspector
- def initialize(options = T.unsafe(nil)); end
-
- def failed(locations); end
- def failed_locations; end
- def failed_locations=(_arg0); end
- def paths(paths); end
- def reload; end
-
- private
-
- def _location_path(location); end
- def _with_failed_locations(paths); end
-end
-
-class Guard::RSpec::Inspectors::SimpleInspector < ::Guard::RSpec::Inspectors::BaseInspector
- def failed(_locations); end
- def paths(paths); end
- def reload; end
-end
-
-class Guard::RSpec::Notifier
- def initialize(options = T.unsafe(nil)); end
-
- def notify(summary); end
- def notify_failure; end
- def options; end
- def options=(_arg0); end
-
- private
-
- def _image(failure_count, pending_count); end
- def _parse_summary(summary); end
- def _priority(image); end
-end
-
-module Guard::RSpec::Options
- class << self
- def with_defaults(options = T.unsafe(nil)); end
-
- private
-
- def _deep_merge(hash1, hash2); end
- end
-end
-
-Guard::RSpec::Options::DEFAULTS = T.let(T.unsafe(nil), Hash)
-
-class Guard::RSpec::RSpecProcess
- def initialize(command, formatter_tmp_file, options = T.unsafe(nil)); end
-
- def all_green?; end
- def options; end
- def results; end
-
- private
-
- def _read_results; end
- def _really_run; end
- def _run; end
- def _warn_unless_absolute_path(formatter_tmp_file); end
- def _with_desired_bundler_env; end
- def command; end
- def exit_code; end
- def formatter_tmp_file; end
-end
-
-class Guard::RSpec::RSpecProcess::Failure < ::RuntimeError; end
-
-class Guard::RSpec::Results
- def initialize(filename); end
-
- def failed_paths; end
- def summary; end
-end
-
-class Guard::RSpec::Results::InvalidData < ::RuntimeError; end
-
-class Guard::RSpec::Runner
- def initialize(options = T.unsafe(nil)); end
-
- def inspector; end
- def inspector=(_arg0); end
- def notifier; end
- def notifier=(_arg0); end
- def options; end
- def options=(_arg0); end
- def reload; end
- def run(paths); end
- def run_all; end
-
- private
-
- def _open_launchy; end
- def _really_run(cmd, options); end
- def _results_file(results_file, chdir); end
- def _run(paths, options, &block); end
-end
-
-class Guard::RSpec::Runner::NoCmdOptionError < ::RuntimeError
- def initialize; end
-end
-
-class Guard::RSpecDefaults; end
-Guard::RSpecDefaults::TEMPORARY_FILE_PATH = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/guard@2.18.0.rbi b/sorbet/rbi/gems/guard@2.18.0.rbi
deleted file mode 100644
index 4051ea5..0000000
--- a/sorbet/rbi/gems/guard@2.18.0.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `guard` gem.
-# Please instead update this file by running `bin/tapioca gem guard`.
-
-# typed: true
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/http_parser.rb@0.8.0.rbi b/sorbet/rbi/gems/http_parser.rb@0.8.0.rbi
deleted file mode 100644
index 9614435..0000000
--- a/sorbet/rbi/gems/http_parser.rb@0.8.0.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `http_parser.rb` gem.
-# Please instead update this file by running `bin/tapioca gem http_parser.rb`.
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/json@2.6.3.rbi b/sorbet/rbi/gems/json@2.6.3.rbi
deleted file mode 100644
index b379bc4..0000000
--- a/sorbet/rbi/gems/json@2.6.3.rbi
+++ /dev/null
@@ -1,1541 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `json` gem.
-# Please instead update this file by running `bin/tapioca gem json`.
-
-# Extends any Class to include _json_creatable?_ method.
-#
-# source://json//lib/json/common.rb#695
-class Class < ::Module
- # Returns true if this class can be used to create an instance
- # from a serialised JSON string. The class has to implement a class
- # method _json_create_ that expects a hash as first parameter. The hash
- # should include the required data.
- #
- # @return [Boolean]
- #
- # source://json//lib/json/common.rb#700
- def json_creatable?; end
-end
-
-# = JavaScript \Object Notation (\JSON)
-#
-# \JSON is a lightweight data-interchange format.
-#
-# A \JSON value is one of the following:
-# - Double-quoted text: "foo".
-# - Number: +1+, +1.0+, +2.0e2+.
-# - Boolean: +true+, +false+.
-# - Null: +null+.
-# - \Array: an ordered list of values, enclosed by square brackets:
-# ["foo", 1, 1.0, 2.0e2, true, false, null]
-#
-# - \Object: a collection of name/value pairs, enclosed by curly braces;
-# each name is double-quoted text;
-# the values may be any \JSON values:
-# {"a": "foo", "b": 1, "c": 1.0, "d": 2.0e2, "e": true, "f": false, "g": null}
-#
-# A \JSON array or object may contain nested arrays, objects, and scalars
-# to any depth:
-# {"foo": {"bar": 1, "baz": 2}, "bat": [0, 1, 2]}
-# [{"foo": 0, "bar": 1}, ["baz", 2]]
-#
-# == Using \Module \JSON
-#
-# To make module \JSON available in your code, begin with:
-# require 'json'
-#
-# All examples here assume that this has been done.
-#
-# === Parsing \JSON
-#
-# You can parse a \String containing \JSON data using
-# either of two methods:
-# - JSON.parse(source, opts)
-# - JSON.parse!(source, opts)
-#
-# where
-# - +source+ is a Ruby object.
-# - +opts+ is a \Hash object containing options
-# that control both input allowed and output formatting.
-#
-# The difference between the two methods
-# is that JSON.parse! omits some checks
-# and may not be safe for some +source+ data;
-# use it only for data from trusted sources.
-# Use the safer method JSON.parse for less trusted sources.
-#
-# ==== Parsing \JSON Arrays
-#
-# When +source+ is a \JSON array, JSON.parse by default returns a Ruby \Array:
-# json = '["foo", 1, 1.0, 2.0e2, true, false, null]'
-# ruby = JSON.parse(json)
-# ruby # => ["foo", 1, 1.0, 200.0, true, false, nil]
-# ruby.class # => Array
-#
-# The \JSON array may contain nested arrays, objects, and scalars
-# to any depth:
-# json = '[{"foo": 0, "bar": 1}, ["baz", 2]]'
-# JSON.parse(json) # => [{"foo"=>0, "bar"=>1}, ["baz", 2]]
-#
-# ==== Parsing \JSON \Objects
-#
-# When the source is a \JSON object, JSON.parse by default returns a Ruby \Hash:
-# json = '{"a": "foo", "b": 1, "c": 1.0, "d": 2.0e2, "e": true, "f": false, "g": null}'
-# ruby = JSON.parse(json)
-# ruby # => {"a"=>"foo", "b"=>1, "c"=>1.0, "d"=>200.0, "e"=>true, "f"=>false, "g"=>nil}
-# ruby.class # => Hash
-#
-# The \JSON object may contain nested arrays, objects, and scalars
-# to any depth:
-# json = '{"foo": {"bar": 1, "baz": 2}, "bat": [0, 1, 2]}'
-# JSON.parse(json) # => {"foo"=>{"bar"=>1, "baz"=>2}, "bat"=>[0, 1, 2]}
-#
-# ==== Parsing \JSON Scalars
-#
-# When the source is a \JSON scalar (not an array or object),
-# JSON.parse returns a Ruby scalar.
-#
-# \String:
-# ruby = JSON.parse('"foo"')
-# ruby # => 'foo'
-# ruby.class # => String
-# \Integer:
-# ruby = JSON.parse('1')
-# ruby # => 1
-# ruby.class # => Integer
-# \Float:
-# ruby = JSON.parse('1.0')
-# ruby # => 1.0
-# ruby.class # => Float
-# ruby = JSON.parse('2.0e2')
-# ruby # => 200
-# ruby.class # => Float
-# Boolean:
-# ruby = JSON.parse('true')
-# ruby # => true
-# ruby.class # => TrueClass
-# ruby = JSON.parse('false')
-# ruby # => false
-# ruby.class # => FalseClass
-# Null:
-# ruby = JSON.parse('null')
-# ruby # => nil
-# ruby.class # => NilClass
-#
-# ==== Parsing Options
-#
-# ====== Input Options
-#
-# Option +max_nesting+ (\Integer) specifies the maximum nesting depth allowed;
-# defaults to +100+; specify +false+ to disable depth checking.
-#
-# With the default, +false+:
-# source = '[0, [1, [2, [3]]]]'
-# ruby = JSON.parse(source)
-# ruby # => [0, [1, [2, [3]]]]
-# Too deep:
-# # Raises JSON::NestingError (nesting of 2 is too deep):
-# JSON.parse(source, {max_nesting: 1})
-# Bad value:
-# # Raises TypeError (wrong argument type Symbol (expected Fixnum)):
-# JSON.parse(source, {max_nesting: :foo})
-#
-# ---
-#
-# Option +allow_nan+ (boolean) specifies whether to allow
-# NaN, Infinity, and MinusInfinity in +source+;
-# defaults to +false+.
-#
-# With the default, +false+:
-# # Raises JSON::ParserError (225: unexpected token at '[NaN]'):
-# JSON.parse('[NaN]')
-# # Raises JSON::ParserError (232: unexpected token at '[Infinity]'):
-# JSON.parse('[Infinity]')
-# # Raises JSON::ParserError (248: unexpected token at '[-Infinity]'):
-# JSON.parse('[-Infinity]')
-# Allow:
-# source = '[NaN, Infinity, -Infinity]'
-# ruby = JSON.parse(source, {allow_nan: true})
-# ruby # => [NaN, Infinity, -Infinity]
-#
-# ====== Output Options
-#
-# Option +symbolize_names+ (boolean) specifies whether returned \Hash keys
-# should be Symbols;
-# defaults to +false+ (use Strings).
-#
-# With the default, +false+:
-# source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
-# ruby = JSON.parse(source)
-# ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil}
-# Use Symbols:
-# ruby = JSON.parse(source, {symbolize_names: true})
-# ruby # => {:a=>"foo", :b=>1.0, :c=>true, :d=>false, :e=>nil}
-#
-# ---
-#
-# Option +object_class+ (\Class) specifies the Ruby class to be used
-# for each \JSON object;
-# defaults to \Hash.
-#
-# With the default, \Hash:
-# source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
-# ruby = JSON.parse(source)
-# ruby.class # => Hash
-# Use class \OpenStruct:
-# ruby = JSON.parse(source, {object_class: OpenStruct})
-# ruby # => #
-#
-# ---
-#
-# Option +array_class+ (\Class) specifies the Ruby class to be used
-# for each \JSON array;
-# defaults to \Array.
-#
-# With the default, \Array:
-# source = '["foo", 1.0, true, false, null]'
-# ruby = JSON.parse(source)
-# ruby.class # => Array
-# Use class \Set:
-# ruby = JSON.parse(source, {array_class: Set})
-# ruby # => #
-#
-# ---
-#
-# Option +create_additions+ (boolean) specifies whether to use \JSON additions in parsing.
-# See {\JSON Additions}[#module-JSON-label-JSON+Additions].
-#
-# === Generating \JSON
-#
-# To generate a Ruby \String containing \JSON data,
-# use method JSON.generate(source, opts), where
-# - +source+ is a Ruby object.
-# - +opts+ is a \Hash object containing options
-# that control both input allowed and output formatting.
-#
-# ==== Generating \JSON from Arrays
-#
-# When the source is a Ruby \Array, JSON.generate returns
-# a \String containing a \JSON array:
-# ruby = [0, 's', :foo]
-# json = JSON.generate(ruby)
-# json # => '[0,"s","foo"]'
-#
-# The Ruby \Array array may contain nested arrays, hashes, and scalars
-# to any depth:
-# ruby = [0, [1, 2], {foo: 3, bar: 4}]
-# json = JSON.generate(ruby)
-# json # => '[0,[1,2],{"foo":3,"bar":4}]'
-#
-# ==== Generating \JSON from Hashes
-#
-# When the source is a Ruby \Hash, JSON.generate returns
-# a \String containing a \JSON object:
-# ruby = {foo: 0, bar: 's', baz: :bat}
-# json = JSON.generate(ruby)
-# json # => '{"foo":0,"bar":"s","baz":"bat"}'
-#
-# The Ruby \Hash array may contain nested arrays, hashes, and scalars
-# to any depth:
-# ruby = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad}
-# json = JSON.generate(ruby)
-# json # => '{"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}'
-#
-# ==== Generating \JSON from Other Objects
-#
-# When the source is neither an \Array nor a \Hash,
-# the generated \JSON data depends on the class of the source.
-#
-# When the source is a Ruby \Integer or \Float, JSON.generate returns
-# a \String containing a \JSON number:
-# JSON.generate(42) # => '42'
-# JSON.generate(0.42) # => '0.42'
-#
-# When the source is a Ruby \String, JSON.generate returns
-# a \String containing a \JSON string (with double-quotes):
-# JSON.generate('A string') # => '"A string"'
-#
-# When the source is +true+, +false+ or +nil+, JSON.generate returns
-# a \String containing the corresponding \JSON token:
-# JSON.generate(true) # => 'true'
-# JSON.generate(false) # => 'false'
-# JSON.generate(nil) # => 'null'
-#
-# When the source is none of the above, JSON.generate returns
-# a \String containing a \JSON string representation of the source:
-# JSON.generate(:foo) # => '"foo"'
-# JSON.generate(Complex(0, 0)) # => '"0+0i"'
-# JSON.generate(Dir.new('.')) # => '"#"'
-#
-# ==== Generating Options
-#
-# ====== Input Options
-#
-# Option +allow_nan+ (boolean) specifies whether
-# +NaN+, +Infinity+, and -Infinity may be generated;
-# defaults to +false+.
-#
-# With the default, +false+:
-# # Raises JSON::GeneratorError (920: NaN not allowed in JSON):
-# JSON.generate(JSON::NaN)
-# # Raises JSON::GeneratorError (917: Infinity not allowed in JSON):
-# JSON.generate(JSON::Infinity)
-# # Raises JSON::GeneratorError (917: -Infinity not allowed in JSON):
-# JSON.generate(JSON::MinusInfinity)
-#
-# Allow:
-# ruby = [Float::NaN, Float::Infinity, Float::MinusInfinity]
-# JSON.generate(ruby, allow_nan: true) # => '[NaN,Infinity,-Infinity]'
-#
-# ---
-#
-# Option +max_nesting+ (\Integer) specifies the maximum nesting depth
-# in +obj+; defaults to +100+.
-#
-# With the default, +100+:
-# obj = [[[[[[0]]]]]]
-# JSON.generate(obj) # => '[[[[[[0]]]]]]'
-#
-# Too deep:
-# # Raises JSON::NestingError (nesting of 2 is too deep):
-# JSON.generate(obj, max_nesting: 2)
-#
-# ====== Output Options
-#
-# The default formatting options generate the most compact
-# \JSON data, all on one line and with no whitespace.
-#
-# You can use these formatting options to generate
-# \JSON data in a more open format, using whitespace.
-# See also JSON.pretty_generate.
-#
-# - Option +array_nl+ (\String) specifies a string (usually a newline)
-# to be inserted after each \JSON array; defaults to the empty \String, ''.
-# - Option +object_nl+ (\String) specifies a string (usually a newline)
-# to be inserted after each \JSON object; defaults to the empty \String, ''.
-# - Option +indent+ (\String) specifies the string (usually spaces) to be
-# used for indentation; defaults to the empty \String, '';
-# defaults to the empty \String, '';
-# has no effect unless options +array_nl+ or +object_nl+ specify newlines.
-# - Option +space+ (\String) specifies a string (usually a space) to be
-# inserted after the colon in each \JSON object's pair;
-# defaults to the empty \String, ''.
-# - Option +space_before+ (\String) specifies a string (usually a space) to be
-# inserted before the colon in each \JSON object's pair;
-# defaults to the empty \String, ''.
-#
-# In this example, +obj+ is used first to generate the shortest
-# \JSON data (no whitespace), then again with all formatting options
-# specified:
-#
-# obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}}
-# json = JSON.generate(obj)
-# puts 'Compact:', json
-# opts = {
-# array_nl: "\n",
-# object_nl: "\n",
-# indent: ' ',
-# space_before: ' ',
-# space: ' '
-# }
-# puts 'Open:', JSON.generate(obj, opts)
-#
-# Output:
-# Compact:
-# {"foo":["bar","baz"],"bat":{"bam":0,"bad":1}}
-# Open:
-# {
-# "foo" : [
-# "bar",
-# "baz"
-# ],
-# "bat" : {
-# "bam" : 0,
-# "bad" : 1
-# }
-# }
-#
-# == \JSON Additions
-#
-# When you "round trip" a non-\String object from Ruby to \JSON and back,
-# you have a new \String, instead of the object you began with:
-# ruby0 = Range.new(0, 2)
-# json = JSON.generate(ruby0)
-# json # => '0..2"'
-# ruby1 = JSON.parse(json)
-# ruby1 # => '0..2'
-# ruby1.class # => String
-#
-# You can use \JSON _additions_ to preserve the original object.
-# The addition is an extension of a ruby class, so that:
-# - \JSON.generate stores more information in the \JSON string.
-# - \JSON.parse, called with option +create_additions+,
-# uses that information to create a proper Ruby object.
-#
-# This example shows a \Range being generated into \JSON
-# and parsed back into Ruby, both without and with
-# the addition for \Range:
-# ruby = Range.new(0, 2)
-# # This passage does not use the addition for Range.
-# json0 = JSON.generate(ruby)
-# ruby0 = JSON.parse(json0)
-# # This passage uses the addition for Range.
-# require 'json/add/range'
-# json1 = JSON.generate(ruby)
-# ruby1 = JSON.parse(json1, create_additions: true)
-# # Make a nice display.
-# display = <require 'json/add/bigdecimal'
-# - Complex: require 'json/add/complex'
-# - Date: require 'json/add/date'
-# - DateTime: require 'json/add/date_time'
-# - Exception: require 'json/add/exception'
-# - OpenStruct: require 'json/add/ostruct'
-# - Range: require 'json/add/range'
-# - Rational: require 'json/add/rational'
-# - Regexp: require 'json/add/regexp'
-# - Set: require 'json/add/set'
-# - Struct: require 'json/add/struct'
-# - Symbol: require 'json/add/symbol'
-# - Time: require 'json/add/time'
-#
-# To reduce punctuation clutter, the examples below
-# show the generated \JSON via +puts+, rather than the usual +inspect+,
-#
-# \BigDecimal:
-# require 'json/add/bigdecimal'
-# ruby0 = BigDecimal(0) # 0.0
-# json = JSON.generate(ruby0) # {"json_class":"BigDecimal","b":"27:0.0"}
-# ruby1 = JSON.parse(json, create_additions: true) # 0.0
-# ruby1.class # => BigDecimal
-#
-# \Complex:
-# require 'json/add/complex'
-# ruby0 = Complex(1+0i) # 1+0i
-# json = JSON.generate(ruby0) # {"json_class":"Complex","r":1,"i":0}
-# ruby1 = JSON.parse(json, create_additions: true) # 1+0i
-# ruby1.class # Complex
-#
-# \Date:
-# require 'json/add/date'
-# ruby0 = Date.today # 2020-05-02
-# json = JSON.generate(ruby0) # {"json_class":"Date","y":2020,"m":5,"d":2,"sg":2299161.0}
-# ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02
-# ruby1.class # Date
-#
-# \DateTime:
-# require 'json/add/date_time'
-# ruby0 = DateTime.now # 2020-05-02T10:38:13-05:00
-# json = JSON.generate(ruby0) # {"json_class":"DateTime","y":2020,"m":5,"d":2,"H":10,"M":38,"S":13,"of":"-5/24","sg":2299161.0}
-# ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02T10:38:13-05:00
-# ruby1.class # DateTime
-#
-# \Exception (and its subclasses including \RuntimeError):
-# require 'json/add/exception'
-# ruby0 = Exception.new('A message') # A message
-# json = JSON.generate(ruby0) # {"json_class":"Exception","m":"A message","b":null}
-# ruby1 = JSON.parse(json, create_additions: true) # A message
-# ruby1.class # Exception
-# ruby0 = RuntimeError.new('Another message') # Another message
-# json = JSON.generate(ruby0) # {"json_class":"RuntimeError","m":"Another message","b":null}
-# ruby1 = JSON.parse(json, create_additions: true) # Another message
-# ruby1.class # RuntimeError
-#
-# \OpenStruct:
-# require 'json/add/ostruct'
-# ruby0 = OpenStruct.new(name: 'Matz', language: 'Ruby') # #
-# json = JSON.generate(ruby0) # {"json_class":"OpenStruct","t":{"name":"Matz","language":"Ruby"}}
-# ruby1 = JSON.parse(json, create_additions: true) # #
-# ruby1.class # OpenStruct
-#
-# \Range:
-# require 'json/add/range'
-# ruby0 = Range.new(0, 2) # 0..2
-# json = JSON.generate(ruby0) # {"json_class":"Range","a":[0,2,false]}
-# ruby1 = JSON.parse(json, create_additions: true) # 0..2
-# ruby1.class # Range
-#
-# \Rational:
-# require 'json/add/rational'
-# ruby0 = Rational(1, 3) # 1/3
-# json = JSON.generate(ruby0) # {"json_class":"Rational","n":1,"d":3}
-# ruby1 = JSON.parse(json, create_additions: true) # 1/3
-# ruby1.class # Rational
-#
-# \Regexp:
-# require 'json/add/regexp'
-# ruby0 = Regexp.new('foo') # (?-mix:foo)
-# json = JSON.generate(ruby0) # {"json_class":"Regexp","o":0,"s":"foo"}
-# ruby1 = JSON.parse(json, create_additions: true) # (?-mix:foo)
-# ruby1.class # Regexp
-#
-# \Set:
-# require 'json/add/set'
-# ruby0 = Set.new([0, 1, 2]) # #
-# json = JSON.generate(ruby0) # {"json_class":"Set","a":[0,1,2]}
-# ruby1 = JSON.parse(json, create_additions: true) # #
-# ruby1.class # Set
-#
-# \Struct:
-# require 'json/add/struct'
-# Customer = Struct.new(:name, :address) # Customer
-# ruby0 = Customer.new("Dave", "123 Main") # #
-# json = JSON.generate(ruby0) # {"json_class":"Customer","v":["Dave","123 Main"]}
-# ruby1 = JSON.parse(json, create_additions: true) # #
-# ruby1.class # Customer
-#
-# \Symbol:
-# require 'json/add/symbol'
-# ruby0 = :foo # foo
-# json = JSON.generate(ruby0) # {"json_class":"Symbol","s":"foo"}
-# ruby1 = JSON.parse(json, create_additions: true) # foo
-# ruby1.class # Symbol
-#
-# \Time:
-# require 'json/add/time'
-# ruby0 = Time.now # 2020-05-02 11:28:26 -0500
-# json = JSON.generate(ruby0) # {"json_class":"Time","s":1588436906,"n":840560000}
-# ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02 11:28:26 -0500
-# ruby1.class # Time
-#
-#
-# === Custom \JSON Additions
-#
-# In addition to the \JSON additions provided,
-# you can craft \JSON additions of your own,
-# either for Ruby built-in classes or for user-defined classes.
-#
-# Here's a user-defined class +Foo+:
-# class Foo
-# attr_accessor :bar, :baz
-# def initialize(bar, baz)
-# self.bar = bar
-# self.baz = baz
-# end
-# end
-#
-# Here's the \JSON addition for it:
-# # Extend class Foo with JSON addition.
-# class Foo
-# # Serialize Foo object with its class name and arguments
-# def to_json(*args)
-# {
-# JSON.create_id => self.class.name,
-# 'a' => [ bar, baz ]
-# }.to_json(*args)
-# end
-# # Deserialize JSON string by constructing new Foo object with arguments.
-# def self.json_create(object)
-# new(*object['a'])
-# end
-# end
-#
-# Demonstration:
-# require 'json'
-# # This Foo object has no custom addition.
-# foo0 = Foo.new(0, 1)
-# json0 = JSON.generate(foo0)
-# obj0 = JSON.parse(json0)
-# # Lood the custom addition.
-# require_relative 'foo_addition'
-# # This foo has the custom addition.
-# foo1 = Foo.new(0, 1)
-# json1 = JSON.generate(foo1)
-# obj1 = JSON.parse(json1, create_additions: true)
-# # Make a nice display.
-# display = <" (String)
-# With custom addition: {"json_class":"Foo","a":[0,1]} (String)
-# Parsed JSON:
-# Without custom addition: "#" (String)
-# With custom addition: # (Foo)
-#
-# source://json//lib/json/version.rb#2
-module JSON
- private
-
- # :call-seq:
- # JSON.dump(obj, io = nil, limit = nil)
- #
- # Dumps +obj+ as a \JSON string, i.e. calls generate on the object and returns the result.
- #
- # The default options can be changed via method JSON.dump_default_options.
- #
- # - Argument +io+, if given, should respond to method +write+;
- # the \JSON \String is written to +io+, and +io+ is returned.
- # If +io+ is not given, the \JSON \String is returned.
- # - Argument +limit+, if given, is passed to JSON.generate as option +max_nesting+.
- #
- # ---
- #
- # When argument +io+ is not given, returns the \JSON \String generated from +obj+:
- # obj = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad}
- # json = JSON.dump(obj)
- # json # => "{\"foo\":[0,1],\"bar\":{\"baz\":2,\"bat\":3},\"bam\":\"bad\"}"
- #
- # When argument +io+ is given, writes the \JSON \String to +io+ and returns +io+:
- # path = 't.json'
- # File.open(path, 'w') do |file|
- # JSON.dump(obj, file)
- # end # => #
- # puts File.read(path)
- # Output:
- # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
- #
- # source://json//lib/json/common.rb#631
- def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.fast_generate(obj, opts) -> new_string
- #
- # Arguments +obj+ and +opts+ here are the same as
- # arguments +obj+ and +opts+ in JSON.generate.
- #
- # By default, generates \JSON data without checking
- # for circular references in +obj+ (option +max_nesting+ set to +false+, disabled).
- #
- # Raises an exception if +obj+ contains circular references:
- # a = []; b = []; a.push(b); b.push(a)
- # # Raises SystemStackError (stack level too deep):
- # JSON.fast_generate(a)
- #
- # source://json//lib/json/common.rb#335
- def fast_generate(obj, opts = T.unsafe(nil)); end
-
- # :stopdoc:
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
- #
- # source://json//lib/json/common.rb#335
- def fast_unparse(obj, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.generate(obj, opts = nil) -> new_string
- #
- # Returns a \String containing the generated \JSON data.
- #
- # See also JSON.fast_generate, JSON.pretty_generate.
- #
- # Argument +obj+ is the Ruby object to be converted to \JSON.
- #
- # Argument +opts+, if given, contains a \Hash of options for the generation.
- # See {Generating Options}[#module-JSON-label-Generating+Options].
- #
- # ---
- #
- # When +obj+ is an \Array, returns a \String containing a \JSON array:
- # obj = ["foo", 1.0, true, false, nil]
- # json = JSON.generate(obj)
- # json # => '["foo",1.0,true,false,null]'
- #
- # When +obj+ is a \Hash, returns a \String containing a \JSON object:
- # obj = {foo: 0, bar: 's', baz: :bat}
- # json = JSON.generate(obj)
- # json # => '{"foo":0,"bar":"s","baz":"bat"}'
- #
- # For examples of generating from other Ruby objects, see
- # {Generating \JSON from Other Objects}[#module-JSON-label-Generating+JSON+from+Other+Objects].
- #
- # ---
- #
- # Raises an exception if any formatting option is not a \String.
- #
- # Raises an exception if +obj+ contains circular references:
- # a = []; b = []; a.push(b); b.push(a)
- # # Raises JSON::NestingError (nesting of 100 is too deep):
- # JSON.generate(a)
- #
- # source://json//lib/json/common.rb#296
- def generate(obj, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.load(source, proc = nil, options = {}) -> object
- #
- # Returns the Ruby objects created by parsing the given +source+.
- #
- # - Argument +source+ must be, or be convertible to, a \String:
- # - If +source+ responds to instance method +to_str+,
- # source.to_str becomes the source.
- # - If +source+ responds to instance method +to_io+,
- # source.to_io.read becomes the source.
- # - If +source+ responds to instance method +read+,
- # source.read becomes the source.
- # - If both of the following are true, source becomes the \String 'null':
- # - Option +allow_blank+ specifies a truthy value.
- # - The source, as defined above, is +nil+ or the empty \String ''.
- # - Otherwise, +source+ remains the source.
- # - Argument +proc+, if given, must be a \Proc that accepts one argument.
- # It will be called recursively with each result (depth-first order).
- # See details below.
- # BEWARE: This method is meant to serialise data from trusted user input,
- # like from your own database server or clients under your control, it could
- # be dangerous to allow untrusted users to pass JSON sources into it.
- # - Argument +opts+, if given, contains a \Hash of options for the parsing.
- # See {Parsing Options}[#module-JSON-label-Parsing+Options].
- # The default options can be changed via method JSON.load_default_options=.
- #
- # ---
- #
- # When no +proc+ is given, modifies +source+ as above and returns the result of
- # parse(source, opts); see #parse.
- #
- # Source for following examples:
- # source = <<-EOT
- # {
- # "name": "Dave",
- # "age" :40,
- # "hats": [
- # "Cattleman's",
- # "Panama",
- # "Tophat"
- # ]
- # }
- # EOT
- #
- # Load a \String:
- # ruby = JSON.load(source)
- # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # Load an \IO object:
- # require 'stringio'
- # object = JSON.load(StringIO.new(source))
- # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # Load a \File object:
- # path = 't.json'
- # File.write(path, source)
- # File.open(path) do |file|
- # JSON.load(file)
- # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # ---
- #
- # When +proc+ is given:
- # - Modifies +source+ as above.
- # - Gets the +result+ from calling parse(source, opts).
- # - Recursively calls proc(result).
- # - Returns the final result.
- #
- # Example:
- # require 'json'
- #
- # # Some classes for the example.
- # class Base
- # def initialize(attributes)
- # @attributes = attributes
- # end
- # end
- # class User < Base; end
- # class Account < Base; end
- # class Admin < Base; end
- # # The JSON source.
- # json = <<-EOF
- # {
- # "users": [
- # {"type": "User", "username": "jane", "email": "jane@example.com"},
- # {"type": "User", "username": "john", "email": "john@example.com"}
- # ],
- # "accounts": [
- # {"account": {"type": "Account", "paid": true, "account_id": "1234"}},
- # {"account": {"type": "Account", "paid": false, "account_id": "1235"}}
- # ],
- # "admins": {"type": "Admin", "password": "0wn3d"}
- # }
- # EOF
- # # Deserializer method.
- # def deserialize_obj(obj, safe_types = %w(User Account Admin))
- # type = obj.is_a?(Hash) && obj["type"]
- # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj
- # end
- # # Call to JSON.load
- # ruby = JSON.load(json, proc {|obj|
- # case obj
- # when Hash
- # obj.each {|k, v| obj[k] = deserialize_obj v }
- # when Array
- # obj.map! {|v| deserialize_obj v }
- # end
- # })
- # pp ruby
- # Output:
- # {"users"=>
- # [#"User", "username"=>"jane", "email"=>"jane@example.com"}>,
- # #"User", "username"=>"john", "email"=>"john@example.com"}>],
- # "accounts"=>
- # [{"account"=>
- # #"Account", "paid"=>true, "account_id"=>"1234"}>},
- # {"account"=>
- # #"Account", "paid"=>false, "account_id"=>"1235"}>}],
- # "admins"=>
- # #"Admin", "password"=>"0wn3d"}>}
- #
- # source://json//lib/json/common.rb#557
- def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.load_file(path, opts={}) -> object
- #
- # Calls:
- # parse(File.read(path), opts)
- #
- # See method #parse.
- #
- # source://json//lib/json/common.rb#245
- def load_file(filespec, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.load_file!(path, opts = {})
- #
- # Calls:
- # JSON.parse!(File.read(path, opts))
- #
- # See method #parse!
- #
- # source://json//lib/json/common.rb#256
- def load_file!(filespec, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.parse(source, opts) -> object
- #
- # Returns the Ruby objects created by parsing the given +source+.
- #
- # Argument +source+ contains the \String to be parsed.
- #
- # Argument +opts+, if given, contains a \Hash of options for the parsing.
- # See {Parsing Options}[#module-JSON-label-Parsing+Options].
- #
- # ---
- #
- # When +source+ is a \JSON array, returns a Ruby \Array:
- # source = '["foo", 1.0, true, false, null]'
- # ruby = JSON.parse(source)
- # ruby # => ["foo", 1.0, true, false, nil]
- # ruby.class # => Array
- #
- # When +source+ is a \JSON object, returns a Ruby \Hash:
- # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
- # ruby = JSON.parse(source)
- # ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil}
- # ruby.class # => Hash
- #
- # For examples of parsing for all \JSON data types, see
- # {Parsing \JSON}[#module-JSON-label-Parsing+JSON].
- #
- # Parses nested JSON objects:
- # source = <<-EOT
- # {
- # "name": "Dave",
- # "age" :40,
- # "hats": [
- # "Cattleman's",
- # "Panama",
- # "Tophat"
- # ]
- # }
- # EOT
- # ruby = JSON.parse(source)
- # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # ---
- #
- # Raises an exception if +source+ is not valid JSON:
- # # Raises JSON::ParserError (783: unexpected token at ''):
- # JSON.parse('')
- #
- # source://json//lib/json/common.rb#215
- def parse(source, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.parse!(source, opts) -> object
- #
- # Calls
- # parse(source, opts)
- # with +source+ and possibly modified +opts+.
- #
- # Differences from JSON.parse:
- # - Option +max_nesting+, if not provided, defaults to +false+,
- # which disables checking for nesting depth.
- # - Option +allow_nan+, if not provided, defaults to +true+.
- #
- # source://json//lib/json/common.rb#230
- def parse!(source, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.pretty_generate(obj, opts = nil) -> new_string
- #
- # Arguments +obj+ and +opts+ here are the same as
- # arguments +obj+ and +opts+ in JSON.generate.
- #
- # Default options are:
- # {
- # indent: ' ', # Two spaces
- # space: ' ', # One space
- # array_nl: "\n", # Newline
- # object_nl: "\n" # Newline
- # }
- #
- # Example:
- # obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}}
- # json = JSON.pretty_generate(obj)
- # puts json
- # Output:
- # {
- # "foo": [
- # "bar",
- # "baz"
- # ],
- # "bat": {
- # "bam": 0,
- # "bad": 1
- # }
- # }
- #
- # source://json//lib/json/common.rb#390
- def pretty_generate(obj, opts = T.unsafe(nil)); end
-
- # :stopdoc:
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
- #
- # source://json//lib/json/common.rb#390
- def pretty_unparse(obj, opts = T.unsafe(nil)); end
-
- # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
- #
- # source://json//lib/json/common.rb#575
- def recurse_proc(result, &proc); end
-
- # source://json//lib/json/common.rb#557
- def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # :stopdoc:
- # I want to deprecate these later, so I'll first be silent about them, and
- # later delete them.
- #
- # source://json//lib/json/common.rb#296
- def unparse(obj, opts = T.unsafe(nil)); end
-
- class << self
- # :call-seq:
- # JSON[object] -> new_array or new_string
- #
- # If +object+ is a \String,
- # calls JSON.parse with +object+ and +opts+ (see method #parse):
- # json = '[0, 1, null]'
- # JSON[json]# => [0, 1, nil]
- #
- # Otherwise, calls JSON.generate with +object+ and +opts+ (see method #generate):
- # ruby = [0, 1, nil]
- # JSON[ruby] # => '[0,1,null]'
- #
- # source://json//lib/json/common.rb#18
- def [](object, opts = T.unsafe(nil)); end
-
- # source://json//lib/json/common.rb#81
- def create_fast_state; end
-
- # Returns the current create identifier.
- # See also JSON.create_id=.
- #
- # source://json//lib/json/common.rb#126
- def create_id; end
-
- # Sets create identifier, which is used to decide if the _json_create_
- # hook of a class should be called; initial value is +json_class+:
- # JSON.create_id # => 'json_class'
- #
- # source://json//lib/json/common.rb#120
- def create_id=(new_value); end
-
- # source://json//lib/json/common.rb#91
- def create_pretty_state; end
-
- # Return the constant located at _path_. The format of _path_ has to be
- # either ::A::B::C or A::B::C. In any case, A has to be located at the top
- # level (absolute namespace path?). If there doesn't exist a constant at
- # the given path, an ArgumentError is raised.
- #
- # source://json//lib/json/common.rb#42
- def deep_const_get(path); end
-
- # :call-seq:
- # JSON.dump(obj, io = nil, limit = nil)
- #
- # Dumps +obj+ as a \JSON string, i.e. calls generate on the object and returns the result.
- #
- # The default options can be changed via method JSON.dump_default_options.
- #
- # - Argument +io+, if given, should respond to method +write+;
- # the \JSON \String is written to +io+, and +io+ is returned.
- # If +io+ is not given, the \JSON \String is returned.
- # - Argument +limit+, if given, is passed to JSON.generate as option +max_nesting+.
- #
- # ---
- #
- # When argument +io+ is not given, returns the \JSON \String generated from +obj+:
- # obj = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad}
- # json = JSON.dump(obj)
- # json # => "{\"foo\":[0,1],\"bar\":{\"baz\":2,\"bat\":3},\"bam\":\"bad\"}"
- #
- # When argument +io+ is given, writes the \JSON \String to +io+ and returns +io+:
- # path = 't.json'
- # File.open(path, 'w') do |file|
- # JSON.dump(obj, file)
- # end # => #
- # puts File.read(path)
- # Output:
- # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
- #
- # source://json//lib/json/common.rb#631
- def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
-
- # Sets or returns the default options for the JSON.dump method.
- # Initially:
- # opts = JSON.dump_default_options
- # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
- #
- # source://json//lib/json/common.rb#596
- def dump_default_options; end
-
- # Sets or returns the default options for the JSON.dump method.
- # Initially:
- # opts = JSON.dump_default_options
- # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
- #
- # source://json//lib/json/common.rb#596
- def dump_default_options=(_arg0); end
-
- # :call-seq:
- # JSON.fast_generate(obj, opts) -> new_string
- #
- # Arguments +obj+ and +opts+ here are the same as
- # arguments +obj+ and +opts+ in JSON.generate.
- #
- # By default, generates \JSON data without checking
- # for circular references in +obj+ (option +max_nesting+ set to +false+, disabled).
- #
- # Raises an exception if +obj+ contains circular references:
- # a = []; b = []; a.push(b); b.push(a)
- # # Raises SystemStackError (stack level too deep):
- # JSON.fast_generate(a)
- #
- # source://json//lib/json/common.rb#335
- def fast_generate(obj, opts = T.unsafe(nil)); end
-
- # :stopdoc:
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
- #
- # source://json//lib/json/common.rb#335
- def fast_unparse(obj, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.generate(obj, opts = nil) -> new_string
- #
- # Returns a \String containing the generated \JSON data.
- #
- # See also JSON.fast_generate, JSON.pretty_generate.
- #
- # Argument +obj+ is the Ruby object to be converted to \JSON.
- #
- # Argument +opts+, if given, contains a \Hash of options for the generation.
- # See {Generating Options}[#module-JSON-label-Generating+Options].
- #
- # ---
- #
- # When +obj+ is an \Array, returns a \String containing a \JSON array:
- # obj = ["foo", 1.0, true, false, nil]
- # json = JSON.generate(obj)
- # json # => '["foo",1.0,true,false,null]'
- #
- # When +obj+ is a \Hash, returns a \String containing a \JSON object:
- # obj = {foo: 0, bar: 's', baz: :bat}
- # json = JSON.generate(obj)
- # json # => '{"foo":0,"bar":"s","baz":"bat"}'
- #
- # For examples of generating from other Ruby objects, see
- # {Generating \JSON from Other Objects}[#module-JSON-label-Generating+JSON+from+Other+Objects].
- #
- # ---
- #
- # Raises an exception if any formatting option is not a \String.
- #
- # Raises an exception if +obj+ contains circular references:
- # a = []; b = []; a.push(b); b.push(a)
- # # Raises JSON::NestingError (nesting of 100 is too deep):
- # JSON.generate(a)
- #
- # source://json//lib/json/common.rb#296
- def generate(obj, opts = T.unsafe(nil)); end
-
- # Returns the JSON generator module that is used by JSON. This is
- # either JSON::Ext::Generator or JSON::Pure::Generator:
- # JSON.generator # => JSON::Ext::Generator
- #
- # source://json//lib/json/common.rb#103
- def generator; end
-
- # Set the module _generator_ to be used by JSON.
- #
- # source://json//lib/json/common.rb#58
- def generator=(generator); end
-
- # Encodes string using String.encode.
- #
- # source://json//lib/json/common.rb#653
- def iconv(to, from, string); end
-
- # :call-seq:
- # JSON.load(source, proc = nil, options = {}) -> object
- #
- # Returns the Ruby objects created by parsing the given +source+.
- #
- # - Argument +source+ must be, or be convertible to, a \String:
- # - If +source+ responds to instance method +to_str+,
- # source.to_str becomes the source.
- # - If +source+ responds to instance method +to_io+,
- # source.to_io.read becomes the source.
- # - If +source+ responds to instance method +read+,
- # source.read becomes the source.
- # - If both of the following are true, source becomes the \String 'null':
- # - Option +allow_blank+ specifies a truthy value.
- # - The source, as defined above, is +nil+ or the empty \String ''.
- # - Otherwise, +source+ remains the source.
- # - Argument +proc+, if given, must be a \Proc that accepts one argument.
- # It will be called recursively with each result (depth-first order).
- # See details below.
- # BEWARE: This method is meant to serialise data from trusted user input,
- # like from your own database server or clients under your control, it could
- # be dangerous to allow untrusted users to pass JSON sources into it.
- # - Argument +opts+, if given, contains a \Hash of options for the parsing.
- # See {Parsing Options}[#module-JSON-label-Parsing+Options].
- # The default options can be changed via method JSON.load_default_options=.
- #
- # ---
- #
- # When no +proc+ is given, modifies +source+ as above and returns the result of
- # parse(source, opts); see #parse.
- #
- # Source for following examples:
- # source = <<-EOT
- # {
- # "name": "Dave",
- # "age" :40,
- # "hats": [
- # "Cattleman's",
- # "Panama",
- # "Tophat"
- # ]
- # }
- # EOT
- #
- # Load a \String:
- # ruby = JSON.load(source)
- # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # Load an \IO object:
- # require 'stringio'
- # object = JSON.load(StringIO.new(source))
- # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # Load a \File object:
- # path = 't.json'
- # File.write(path, source)
- # File.open(path) do |file|
- # JSON.load(file)
- # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # ---
- #
- # When +proc+ is given:
- # - Modifies +source+ as above.
- # - Gets the +result+ from calling parse(source, opts).
- # - Recursively calls proc(result).
- # - Returns the final result.
- #
- # Example:
- # require 'json'
- #
- # # Some classes for the example.
- # class Base
- # def initialize(attributes)
- # @attributes = attributes
- # end
- # end
- # class User < Base; end
- # class Account < Base; end
- # class Admin < Base; end
- # # The JSON source.
- # json = <<-EOF
- # {
- # "users": [
- # {"type": "User", "username": "jane", "email": "jane@example.com"},
- # {"type": "User", "username": "john", "email": "john@example.com"}
- # ],
- # "accounts": [
- # {"account": {"type": "Account", "paid": true, "account_id": "1234"}},
- # {"account": {"type": "Account", "paid": false, "account_id": "1235"}}
- # ],
- # "admins": {"type": "Admin", "password": "0wn3d"}
- # }
- # EOF
- # # Deserializer method.
- # def deserialize_obj(obj, safe_types = %w(User Account Admin))
- # type = obj.is_a?(Hash) && obj["type"]
- # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj
- # end
- # # Call to JSON.load
- # ruby = JSON.load(json, proc {|obj|
- # case obj
- # when Hash
- # obj.each {|k, v| obj[k] = deserialize_obj v }
- # when Array
- # obj.map! {|v| deserialize_obj v }
- # end
- # })
- # pp ruby
- # Output:
- # {"users"=>
- # [#"User", "username"=>"jane", "email"=>"jane@example.com"}>,
- # #"User", "username"=>"john", "email"=>"john@example.com"}>],
- # "accounts"=>
- # [{"account"=>
- # #"Account", "paid"=>true, "account_id"=>"1234"}>},
- # {"account"=>
- # #"Account", "paid"=>false, "account_id"=>"1235"}>}],
- # "admins"=>
- # #"Admin", "password"=>"0wn3d"}>}
- #
- # source://json//lib/json/common.rb#557
- def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # Sets or returns default options for the JSON.load method.
- # Initially:
- # opts = JSON.load_default_options
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
- #
- # source://json//lib/json/common.rb#420
- def load_default_options; end
-
- # Sets or returns default options for the JSON.load method.
- # Initially:
- # opts = JSON.load_default_options
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
- #
- # source://json//lib/json/common.rb#420
- def load_default_options=(_arg0); end
-
- # :call-seq:
- # JSON.load_file(path, opts={}) -> object
- #
- # Calls:
- # parse(File.read(path), opts)
- #
- # See method #parse.
- #
- # source://json//lib/json/common.rb#245
- def load_file(filespec, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.load_file!(path, opts = {})
- #
- # Calls:
- # JSON.parse!(File.read(path, opts))
- #
- # See method #parse!
- #
- # source://json//lib/json/common.rb#256
- def load_file!(filespec, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.parse(source, opts) -> object
- #
- # Returns the Ruby objects created by parsing the given +source+.
- #
- # Argument +source+ contains the \String to be parsed.
- #
- # Argument +opts+, if given, contains a \Hash of options for the parsing.
- # See {Parsing Options}[#module-JSON-label-Parsing+Options].
- #
- # ---
- #
- # When +source+ is a \JSON array, returns a Ruby \Array:
- # source = '["foo", 1.0, true, false, null]'
- # ruby = JSON.parse(source)
- # ruby # => ["foo", 1.0, true, false, nil]
- # ruby.class # => Array
- #
- # When +source+ is a \JSON object, returns a Ruby \Hash:
- # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
- # ruby = JSON.parse(source)
- # ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil}
- # ruby.class # => Hash
- #
- # For examples of parsing for all \JSON data types, see
- # {Parsing \JSON}[#module-JSON-label-Parsing+JSON].
- #
- # Parses nested JSON objects:
- # source = <<-EOT
- # {
- # "name": "Dave",
- # "age" :40,
- # "hats": [
- # "Cattleman's",
- # "Panama",
- # "Tophat"
- # ]
- # }
- # EOT
- # ruby = JSON.parse(source)
- # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
- #
- # ---
- #
- # Raises an exception if +source+ is not valid JSON:
- # # Raises JSON::ParserError (783: unexpected token at ''):
- # JSON.parse('')
- #
- # source://json//lib/json/common.rb#215
- def parse(source, opts = T.unsafe(nil)); end
-
- # :call-seq:
- # JSON.parse!(source, opts) -> object
- #
- # Calls
- # parse(source, opts)
- # with +source+ and possibly modified +opts+.
- #
- # Differences from JSON.parse:
- # - Option +max_nesting+, if not provided, defaults to +false+,
- # which disables checking for nesting depth.
- # - Option +allow_nan+, if not provided, defaults to +true+.
- #
- # source://json//lib/json/common.rb#230
- def parse!(source, opts = T.unsafe(nil)); end
-
- # Returns the JSON parser class that is used by JSON. This is either
- # JSON::Ext::Parser or JSON::Pure::Parser:
- # JSON.parser # => JSON::Ext::Parser
- #
- # source://json//lib/json/common.rb#29
- def parser; end
-
- # Set the JSON parser class _parser_ to be used by JSON.
- #
- # source://json//lib/json/common.rb#32
- def parser=(parser); end
-
- # :call-seq:
- # JSON.pretty_generate(obj, opts = nil) -> new_string
- #
- # Arguments +obj+ and +opts+ here are the same as
- # arguments +obj+ and +opts+ in JSON.generate.
- #
- # Default options are:
- # {
- # indent: ' ', # Two spaces
- # space: ' ', # One space
- # array_nl: "\n", # Newline
- # object_nl: "\n" # Newline
- # }
- #
- # Example:
- # obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}}
- # json = JSON.pretty_generate(obj)
- # puts json
- # Output:
- # {
- # "foo": [
- # "bar",
- # "baz"
- # ],
- # "bat": {
- # "bam": 0,
- # "bad": 1
- # }
- # }
- #
- # source://json//lib/json/common.rb#390
- def pretty_generate(obj, opts = T.unsafe(nil)); end
-
- # :stopdoc:
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
- #
- # source://json//lib/json/common.rb#390
- def pretty_unparse(obj, opts = T.unsafe(nil)); end
-
- # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
- #
- # source://json//lib/json/common.rb#575
- def recurse_proc(result, &proc); end
-
- # source://json//lib/json/common.rb#557
- def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # Sets or Returns the JSON generator state class that is used by JSON. This is
- # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
- # JSON.state # => JSON::Ext::Generator::State
- #
- # source://json//lib/json/common.rb#108
- def state; end
-
- # Sets or Returns the JSON generator state class that is used by JSON. This is
- # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
- # JSON.state # => JSON::Ext::Generator::State
- #
- # source://json//lib/json/common.rb#108
- def state=(_arg0); end
-
- # :stopdoc:
- # I want to deprecate these later, so I'll first be silent about them, and
- # later delete them.
- #
- # source://json//lib/json/common.rb#296
- def unparse(obj, opts = T.unsafe(nil)); end
- end
-end
-
-# source://json//lib/json/common.rb#114
-JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
-
-# source://json//lib/json/common.rb#111
-JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
-
-# source://json//lib/json/generic_object.rb#5
-class JSON::GenericObject < ::OpenStruct
- # source://json//lib/json/generic_object.rb#63
- def as_json(*_arg0); end
-
- # source://json//lib/json/generic_object.rb#47
- def to_hash; end
-
- # source://json//lib/json/generic_object.rb#67
- def to_json(*a); end
-
- # source://json//lib/json/generic_object.rb#59
- def |(other); end
-
- class << self
- # source://json//lib/json/generic_object.rb#41
- def dump(obj, *args); end
-
- # source://json//lib/json/generic_object.rb#21
- def from_hash(object); end
-
- # Sets the attribute json_creatable
- #
- # @param value the value to set the attribute json_creatable to.
- #
- # source://json//lib/json/generic_object.rb#13
- def json_creatable=(_arg0); end
-
- # @return [Boolean]
- #
- # source://json//lib/json/generic_object.rb#9
- def json_creatable?; end
-
- # source://json//lib/json/generic_object.rb#15
- def json_create(data); end
-
- # source://json//lib/json/generic_object.rb#36
- def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
- end
-end
-
-# The base exception for JSON errors.
-#
-# source://json//lib/json/common.rb#137
-class JSON::JSONError < ::StandardError
- class << self
- # source://json//lib/json/common.rb#138
- def wrap(exception); end
- end
-end
-
-# source://json//lib/json/common.rb#35
-JSON::Parser = JSON::Ext::Parser
-
-# source://json//lib/json/common.rb#73
-JSON::State = JSON::Ext::Generator::State
-
-# For backwards compatibility
-#
-# source://json//lib/json/common.rb#159
-JSON::UnparserError = JSON::GeneratorError
-
-# source://json//lib/json/common.rb#658
-module Kernel
- private
-
- # If _object_ is string-like, parse the string and return the parsed result as
- # a Ruby data structure. Otherwise, generate a JSON text from the Ruby data
- # structure object and return it.
- #
- # The _opts_ argument is passed through to generate/parse respectively. See
- # generate and parse for their documentation.
- #
- # source://json//lib/json/common.rb#685
- def JSON(object, *args); end
-
- # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
- # one line.
- #
- # source://json//lib/json/common.rb#663
- def j(*objs); end
-
- # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
- # indentation and over many lines.
- #
- # source://json//lib/json/common.rb#672
- def jj(*objs); end
-end
diff --git a/sorbet/rbi/gems/listen@3.8.0.rbi b/sorbet/rbi/gems/listen@3.8.0.rbi
deleted file mode 100644
index abdce8a..0000000
--- a/sorbet/rbi/gems/listen@3.8.0.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `listen` gem.
-# Please instead update this file by running `bin/tapioca gem listen`.
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
diff --git a/sorbet/rbi/gems/lumberjack@1.2.8.rbi b/sorbet/rbi/gems/lumberjack@1.2.8.rbi
deleted file mode 100644
index 926f6b6..0000000
--- a/sorbet/rbi/gems/lumberjack@1.2.8.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `lumberjack` gem.
-# Please instead update this file by running `bin/tapioca gem lumberjack`.
-
-# typed: true
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/method_source@1.0.0.rbi b/sorbet/rbi/gems/method_source@1.0.0.rbi
deleted file mode 100644
index 5807b25..0000000
--- a/sorbet/rbi/gems/method_source@1.0.0.rbi
+++ /dev/null
@@ -1,72 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `method_source` gem.
-# Please instead update this file by running `bin/tapioca gem method_source`.
-
-# typed: true
-
-module MethodSource
- extend ::MethodSource::CodeHelpers
-
- class << self
- def comment_helper(source_location, name = T.unsafe(nil)); end
- def extract_code(source_location); end
- def lines_for(file_name, name = T.unsafe(nil)); end
- def source_helper(source_location, name = T.unsafe(nil)); end
- def valid_expression?(str); end
- end
-end
-
-module MethodSource::CodeHelpers
- def comment_describing(file, line_number); end
- def complete_expression?(str); end
- def expression_at(file, line_number, options = T.unsafe(nil)); end
-
- private
-
- def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
- def extract_last_comment(lines); end
-end
-
-module MethodSource::CodeHelpers::IncompleteExpression
- class << self
- def ===(ex); end
- def rbx?; end
- end
-end
-
-MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
-MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
-
-module MethodSource::MethodExtensions
- def comment; end
- def source; end
-
- class << self
- def included(klass); end
- end
-end
-
-module MethodSource::ReeSourceLocation
- def source_location; end
-end
-
-module MethodSource::SourceLocation; end
-
-module MethodSource::SourceLocation::MethodExtensions
- def source_location; end
-
- private
-
- def trace_func(event, file, line, id, binding, classname); end
-end
-
-module MethodSource::SourceLocation::ProcExtensions
- def source_location; end
-end
-
-module MethodSource::SourceLocation::UnboundMethodExtensions
- def source_location; end
-end
-
-class MethodSource::SourceNotFoundError < ::StandardError; end
-MethodSource::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/multi_json@1.15.0.rbi b/sorbet/rbi/gems/multi_json@1.15.0.rbi
deleted file mode 100644
index b650d02..0000000
--- a/sorbet/rbi/gems/multi_json@1.15.0.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `multi_json` gem.
-# Please instead update this file by running `bin/tapioca gem multi_json`.
-
-# typed: true
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/nenv@0.3.0.rbi b/sorbet/rbi/gems/nenv@0.3.0.rbi
deleted file mode 100644
index 7154359..0000000
--- a/sorbet/rbi/gems/nenv@0.3.0.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `nenv` gem.
-# Please instead update this file by running `bin/tapioca gem nenv`.
-
-# typed: true
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/netrc@0.11.0.rbi b/sorbet/rbi/gems/netrc@0.11.0.rbi
deleted file mode 100644
index 062a557..0000000
--- a/sorbet/rbi/gems/netrc@0.11.0.rbi
+++ /dev/null
@@ -1,158 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `netrc` gem.
-# Please instead update this file by running `bin/tapioca gem netrc`.
-
-# source://netrc//lib/netrc.rb#3
-class Netrc
- # @return [Netrc] a new instance of Netrc
- #
- # source://netrc//lib/netrc.rb#166
- def initialize(path, data); end
-
- # source://netrc//lib/netrc.rb#180
- def [](k); end
-
- # source://netrc//lib/netrc.rb#188
- def []=(k, info); end
-
- # source://netrc//lib/netrc.rb#200
- def delete(key); end
-
- # source://netrc//lib/netrc.rb#211
- def each(&block); end
-
- # source://netrc//lib/netrc.rb#196
- def length; end
-
- # source://netrc//lib/netrc.rb#215
- def new_item(m, l, p); end
-
- # Returns the value of attribute new_item_prefix.
- #
- # source://netrc//lib/netrc.rb#178
- def new_item_prefix; end
-
- # Sets the attribute new_item_prefix
- #
- # @param value the value to set the attribute new_item_prefix to.
- #
- # source://netrc//lib/netrc.rb#178
- def new_item_prefix=(_arg0); end
-
- # source://netrc//lib/netrc.rb#219
- def save; end
-
- # source://netrc//lib/netrc.rb#233
- def unparse; end
-
- class << self
- # source://netrc//lib/netrc.rb#42
- def check_permissions(path); end
-
- # source://netrc//lib/netrc.rb#33
- def config; end
-
- # @yield [self.config]
- #
- # source://netrc//lib/netrc.rb#37
- def configure; end
-
- # source://netrc//lib/netrc.rb#10
- def default_path; end
-
- # source://netrc//lib/netrc.rb#14
- def home_path; end
-
- # source://netrc//lib/netrc.rb#85
- def lex(lines); end
-
- # source://netrc//lib/netrc.rb#29
- def netrc_filename; end
-
- # Returns two values, a header and a list of items.
- # Each item is a tuple, containing some or all of:
- # - machine keyword (including trailing whitespace+comments)
- # - machine name
- # - login keyword (including surrounding whitespace+comments)
- # - login
- # - password keyword (including surrounding whitespace+comments)
- # - password
- # - trailing chars
- # This lets us change individual fields, then write out the file
- # with all its original formatting.
- #
- # source://netrc//lib/netrc.rb#129
- def parse(ts); end
-
- # Reads path and parses it as a .netrc file. If path doesn't
- # exist, returns an empty object. Decrypt paths ending in .gpg.
- #
- # source://netrc//lib/netrc.rb#51
- def read(path = T.unsafe(nil)); end
-
- # @return [Boolean]
- #
- # source://netrc//lib/netrc.rb#112
- def skip?(s); end
- end
-end
-
-# source://netrc//lib/netrc.rb#8
-Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
-
-# source://netrc//lib/netrc.rb#244
-class Netrc::Entry < ::Struct
- # Returns the value of attribute login
- #
- # @return [Object] the current value of login
- def login; end
-
- # Sets the attribute login
- #
- # @param value [Object] the value to set the attribute login to.
- # @return [Object] the newly set value
- def login=(_); end
-
- # Returns the value of attribute password
- #
- # @return [Object] the current value of password
- def password; end
-
- # Sets the attribute password
- #
- # @param value [Object] the value to set the attribute password to.
- # @return [Object] the newly set value
- def password=(_); end
-
- def to_ary; end
-
- class << self
- def [](*_arg0); end
- def inspect; end
- def keyword_init?; end
- def members; end
- def new(*_arg0); end
- end
-end
-
-# source://netrc//lib/netrc.rb#250
-class Netrc::Error < ::StandardError; end
-
-# source://netrc//lib/netrc.rb#68
-class Netrc::TokenArray < ::Array
- # source://netrc//lib/netrc.rb#76
- def readto; end
-
- # source://netrc//lib/netrc.rb#69
- def take; end
-end
-
-# source://netrc//lib/netrc.rb#4
-Netrc::VERSION = T.let(T.unsafe(nil), String)
-
-# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
-#
-# source://netrc//lib/netrc.rb#7
-Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
diff --git a/sorbet/rbi/gems/notiffany@0.1.3.rbi b/sorbet/rbi/gems/notiffany@0.1.3.rbi
deleted file mode 100644
index e7482d2..0000000
--- a/sorbet/rbi/gems/notiffany@0.1.3.rbi
+++ /dev/null
@@ -1,8 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `notiffany` gem.
-# Please instead update this file by running `bin/tapioca gem notiffany`.
-
-# typed: true
-
-# THIS IS AN EMPTY RBI FILE.
-# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
diff --git a/sorbet/rbi/gems/parallel@1.22.1.rbi b/sorbet/rbi/gems/parallel@1.22.1.rbi
deleted file mode 100644
index 5b00e82..0000000
--- a/sorbet/rbi/gems/parallel@1.22.1.rbi
+++ /dev/null
@@ -1,116 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `parallel` gem.
-# Please instead update this file by running `bin/tapioca gem parallel`.
-
-module Parallel
- extend ::Parallel::ProcessorCount
-
- class << self
- def all?(*args, &block); end
- def any?(*args, &block); end
- def each(array, options = T.unsafe(nil), &block); end
- def each_with_index(array, options = T.unsafe(nil), &block); end
- def flat_map(*args, &block); end
- def in_processes(options = T.unsafe(nil), &block); end
- def in_threads(options = T.unsafe(nil)); end
- def map(source, options = T.unsafe(nil), &block); end
- def map_with_index(array, options = T.unsafe(nil), &block); end
- def worker_number; end
- def worker_number=(worker_num); end
-
- private
-
- def add_progress_bar!(job_factory, options); end
- def call_with_index(item, index, options, &block); end
- def create_workers(job_factory, options, &block); end
- def extract_count_from_options(options); end
- def instrument_finish(item, index, result, options); end
- def instrument_start(item, index, options); end
- def process_incoming_jobs(read, write, job_factory, options, &block); end
- def replace_worker(job_factory, workers, index, options, blk); end
- def with_instrumentation(item, index, options); end
- def work_direct(job_factory, options, &block); end
- def work_in_processes(job_factory, options, &blk); end
- def work_in_ractors(job_factory, options); end
- def work_in_threads(job_factory, options, &block); end
- def worker(job_factory, options, &block); end
- end
-end
-
-class Parallel::Break < ::StandardError
- def initialize(value = T.unsafe(nil)); end
-
- def value; end
-end
-
-class Parallel::DeadWorker < ::StandardError; end
-
-class Parallel::ExceptionWrapper
- def initialize(exception); end
-
- def exception; end
-end
-
-class Parallel::JobFactory
- def initialize(source, mutex); end
-
- def next; end
- def pack(item, index); end
- def size; end
- def unpack(data); end
-
- private
-
- def producer?; end
- def queue_wrapper(array); end
-end
-
-class Parallel::Kill < ::Parallel::Break; end
-
-module Parallel::ProcessorCount
- def physical_processor_count; end
- def processor_count; end
-end
-
-Parallel::Stop = T.let(T.unsafe(nil), Object)
-
-class Parallel::UndumpableException < ::StandardError
- def initialize(original); end
-
- def backtrace; end
-end
-
-class Parallel::UserInterruptHandler
- class << self
- def kill(thing); end
- def kill_on_ctrl_c(pids, options); end
-
- private
-
- def restore_interrupt(old, signal); end
- def trap_interrupt(signal); end
- end
-end
-
-Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
-Parallel::VERSION = T.let(T.unsafe(nil), String)
-Parallel::Version = T.let(T.unsafe(nil), String)
-
-class Parallel::Worker
- def initialize(read, write, pid); end
-
- def close_pipes; end
- def pid; end
- def read; end
- def stop; end
- def thread; end
- def thread=(_arg0); end
- def work(data); end
- def write; end
-
- private
-
- def wait; end
-end
diff --git a/sorbet/rbi/gems/parser@3.2.1.1.rbi b/sorbet/rbi/gems/parser@3.2.1.1.rbi
deleted file mode 100644
index 8166bb0..0000000
--- a/sorbet/rbi/gems/parser@3.2.1.1.rbi
+++ /dev/null
@@ -1,5451 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `parser` gem.
-# Please instead update this file by running `bin/tapioca gem parser`.
-
-# @api public
-#
-# source://parser//lib/parser.rb#19
-module Parser; end
-
-# @api public
-#
-# source://parser//lib/parser.rb#24
-module Parser::AST; end
-
-# {Parser::AST::Node} contains information about a single AST node and its
-# child nodes. It extends the basic [AST::Node](https://www.rubydoc.info/gems/ast/AST/Node)
-# class provided by gem [ast](https://www.rubydoc.info/gems/ast).
-#
-# @api public
-#
-# source://parser//lib/parser/ast/node.rb#17
-class Parser::AST::Node < ::AST::Node
- # Assigns various properties to this AST node. Currently only the
- # location can be set.
- #
- # @api public
- # @option properties
- # @param properties [Hash]
- #
- # source://parser//lib/parser/ast/node.rb#30
- def assign_properties(properties); end
-
- # Source map for this Node.
- #
- # @api public
- # @return [Parser::Source::Map]
- #
- # source://parser//lib/parser/ast/node.rb#18
- def loc; end
-
- # Source map for this Node.
- #
- # @api public
- # @return [Parser::Source::Map]
- #
- # source://parser//lib/parser/ast/node.rb#18
- def location; end
-end
-
-# @api public
-#
-# source://parser//lib/parser/ast/processor.rb#9
-class Parser::AST::Processor < ::AST::Processor
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_alias(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_and(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_and_asgn(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_arg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_arg_expr(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_args(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#103
- def on_argument(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_array(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_array_pattern(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_array_pattern_with_tail(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_back_ref(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_begin(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_block(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_block_pass(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_blockarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_blockarg_expr(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_break(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_case(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_case_match(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#87
- def on_casgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_class(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#79
- def on_const(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_const_pattern(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#179
- def on_csend(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_cvar(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#56
- def on_cvasgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#158
- def on_def(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_defined?(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#167
- def on_defs(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_dstr(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_dsym(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_eflipflop(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#286
- def on_empty_else(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_ensure(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_erange(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_find_pattern(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_for(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_forward_arg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_forwarded_kwrestarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_forwarded_restarg(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_gvar(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#56
- def on_gvasgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_hash(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_hash_pattern(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_if(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_if_guard(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_iflipflop(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_in_match(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_in_pattern(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_index(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_indexasgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_irange(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_ivar(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#56
- def on_ivasgn(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_kwarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_kwargs(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_kwbegin(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_kwoptarg(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_kwrestarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_kwsplat(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_lambda(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_lvar(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#56
- def on_lvasgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_masgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_alt(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_as(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_current_line(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_pattern(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_pattern_p(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_rest(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_match_var(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_match_with_lvasgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_mlhs(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_module(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_next(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_not(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#32
- def on_nth_ref(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#196
- def on_numblock(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#68
- def on_op_asgn(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_optarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_or(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_or_asgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_pair(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_pin(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_postexe(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_preexe(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#130
- def on_procarg0(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_redo(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_regexp(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_resbody(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_rescue(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_restarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_restarg_expr(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_retry(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_return(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_sclass(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#179
- def on_send(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#116
- def on_shadowarg(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_splat(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_super(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_undef(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_unless_guard(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_until(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_until_post(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#27
- def on_var(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#43
- def on_vasgn(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_when(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_while(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_while_post(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_xstr(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def on_yield(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#279
- def process_argument_node(node); end
-
- # @api public
- #
- # source://parser//lib/parser/ast/processor.rb#10
- def process_regular_node(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#271
- def process_var_asgn_node(node); end
-
- # @api public
- # @private
- #
- # source://parser//lib/parser/ast/processor.rb#263
- def process_variable_node(node); end
-end
-
-# Base class for version-specific parsers.
-#
-# @api public
-#
-# source://parser//lib/parser/base.rb#29
-class Parser::Base < ::Racc::Parser
- # @api public
- # @param builder [Parser::Builders::Default] The AST builder to use.
- # @return [Base] a new instance of Base
- #
- # source://parser//lib/parser/base.rb#126
- def initialize(builder = T.unsafe(nil)); end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#114
- def builder; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#117
- def context; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#119
- def current_arg_stack; end
-
- # @api public
- # @return [Parser::Diagnostic::Engine]
- #
- # source://parser//lib/parser/base.rb#113
- def diagnostics; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#112
- def lexer; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#118
- def max_numparam_stack; end
-
- # Parses a source buffer and returns the AST, or `nil` in case of a non fatal error.
- #
- # @api public
- # @param source_buffer [Parser::Source::Buffer] The source buffer to parse.
- # @return [Parser::AST::Node, nil]
- #
- # source://parser//lib/parser/base.rb#186
- def parse(source_buffer); end
-
- # Parses a source buffer and returns the AST and the source code comments.
- #
- # @api public
- # @return [Array]
- # @see #parse
- # @see Parser::Source::Comment#associate
- #
- # source://parser//lib/parser/base.rb#204
- def parse_with_comments(source_buffer); end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#121
- def pattern_hash_keys; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#120
- def pattern_variables; end
-
- # Resets the state of the parser.
- #
- # @api public
- #
- # source://parser//lib/parser/base.rb#167
- def reset; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#116
- def source_buffer; end
-
- # @api public
- # @return [Parser::StaticEnvironment]
- #
- # source://parser//lib/parser/base.rb#115
- def static_env; end
-
- # Parses a source buffer and returns the AST, the source code comments,
- # and the tokens emitted by the lexer. In case of a fatal error, a {SyntaxError}
- # is raised, unless `recover` is true. In case of an error
- # (non-fatal or recovered), `nil` is returned instead of the AST, and
- # comments as well as tokens are only returned up to the location of
- # the error.
- #
- # Currently, token stream format returned by #tokenize is not documented,
- # but is considered part of a public API and only changed according
- # to Semantic Versioning.
- #
- # However, note that the exact token composition of various constructs
- # might vary. For example, a string `"foo"` is represented equally well
- # by `:tSTRING_BEG " :tSTRING_CONTENT foo :tSTRING_END "` and
- # `: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.
- # @return [Array]
- #
- # source://parser//lib/parser/base.rb#233
- def tokenize(source_buffer, recover = T.unsafe(nil)); end
-
- private
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#257
- def check_kwarg_name(name_t); end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#266
- def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#251
- def next_token; end
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#282
- def on_error(error_token_id, error_value, value_stack); end
-
- class << self
- # @api public
- # @return [Parser::Base] parser with the default options set.
- #
- # source://parser//lib/parser/base.rb#84
- def default_parser; end
-
- # Parses a string of Ruby code and returns the AST. If the source
- # cannot be parsed, {SyntaxError} is raised and a diagnostic is
- # printed to `stderr`.
- #
- # @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.
- # @return [Parser::AST::Node]
- #
- # source://parser//lib/parser/base.rb#30
- def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
-
- # Parses Ruby source code by reading it from a file. If the source
- # cannot be parsed, {SyntaxError} is raised and a diagnostic is
- # printed to `stderr`.
- #
- # @api public
- # @param filename [String] Path to the file to parse.
- # @return [Parser::AST::Node]
- # @see #parse
- #
- # source://parser//lib/parser/base.rb#64
- def parse_file(filename); end
-
- # Parses Ruby source code by reading it from a file and returns the AST and
- # comments. If the source cannot be parsed, {SyntaxError} is raised and a
- # diagnostic is printed to `stderr`.
- #
- # @api public
- # @param filename [String] Path to the file to parse.
- # @return [Array]
- # @see #parse
- #
- # source://parser//lib/parser/base.rb#77
- def parse_file_with_comments(filename); end
-
- # Parses a string of Ruby code and returns the AST and comments. If the
- # source cannot be parsed, {SyntaxError} is raised and a diagnostic is
- # printed to `stderr`.
- #
- # @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.
- # @return [Array]
- #
- # source://parser//lib/parser/base.rb#49
- def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
-
- private
-
- # @api public
- #
- # source://parser//lib/parser/base.rb#97
- def setup_source_buffer(file, line, string, encoding); end
- end
-end
-
-# @api public
-#
-# source://parser//lib/parser.rb#77
-module Parser::Builders; end
-
-# source://parser//lib/parser/builders/default.rb#8
-class Parser::Builders::Default
- # source://parser//lib/parser/builders/default.rb#243
- def initialize; end
-
- # source://parser//lib/parser/builders/default.rb#701
- def __ENCODING__(__ENCODING__t); end
-
- # source://parser//lib/parser/builders/default.rb#348
- def __FILE__(__FILE__t); end
-
- # source://parser//lib/parser/builders/default.rb#312
- def __LINE__(__LINE__t); end
-
- # source://parser//lib/parser/builders/default.rb#627
- def accessible(node); end
-
- # source://parser//lib/parser/builders/default.rb#876
- def alias(alias_t, to, from); end
-
- # source://parser//lib/parser/builders/default.rb#915
- def arg(name_t); end
-
- # source://parser//lib/parser/builders/default.rb#1005
- def arg_expr(expr); end
-
- # source://parser//lib/parser/builders/default.rb#885
- def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#440
- def array(begin_t, elements, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1588
- def array_pattern(lbrack_t, elements, rbrack_t); end
-
- # source://parser//lib/parser/builders/default.rb#765
- def assign(lhs, eql_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#710
- def assignable(node); end
-
- # source://parser//lib/parser/builders/default.rb#540
- def associate(begin_t, pairs, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1169
- def attr_asgn(receiver, dot_t, selector_t); end
-
- # source://parser//lib/parser/builders/default.rb#617
- def back_ref(token); end
-
- # source://parser//lib/parser/builders/default.rb#1433
- def begin(begin_t, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1375
- def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1451
- def begin_keyword(begin_t, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1203
- def binary_op(receiver, operator_t, arg); end
-
- # source://parser//lib/parser/builders/default.rb#1120
- def block(method_call, begin_t, args, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1155
- def block_pass(amper_t, arg); end
-
- # source://parser//lib/parser/builders/default.rb#980
- def blockarg(amper_t, name_t); end
-
- # source://parser//lib/parser/builders/default.rb#1025
- def blockarg_expr(amper_t, expr); end
-
- # source://parser//lib/parser/builders/default.rb#1111
- def call_lambda(lambda_t); end
-
- # source://parser//lib/parser/builders/default.rb#1094
- def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1066
- def call_type_for_dot(dot_t); end
-
- # source://parser//lib/parser/builders/default.rb#1308
- def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1471
- def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#343
- def character(char_t); end
-
- # source://parser//lib/parser/builders/default.rb#284
- def complex(complex_t); end
-
- # source://parser//lib/parser/builders/default.rb#1421
- def compstmt(statements); end
-
- # source://parser//lib/parser/builders/default.rb#1284
- def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1290
- def condition_mod(if_true, if_false, cond_t, cond); end
-
- # source://parser//lib/parser/builders/default.rb#684
- def const(name_t); end
-
- # source://parser//lib/parser/builders/default.rb#696
- def const_fetch(scope, t_colon2, name_t); end
-
- # source://parser//lib/parser/builders/default.rb#689
- def const_global(t_colon3, name_t); end
-
- # source://parser//lib/parser/builders/default.rb#761
- def const_op_assignable(node); end
-
- # source://parser//lib/parser/builders/default.rb#1618
- def const_pattern(const, ldelim_t, pattern, rdelim_t); end
-
- # source://parser//lib/parser/builders/default.rb#612
- def cvar(token); end
-
- # source://parser//lib/parser/builders/default.rb#388
- def dedent_string(node, dedent_level); end
-
- # source://parser//lib/parser/builders/default.rb#812
- def def_class(class_t, name, lt_t, superclass, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#843
- def def_endless_method(def_t, name_t, args, assignment_t, body); end
-
- # source://parser//lib/parser/builders/default.rb#861
- def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end
-
- # source://parser//lib/parser/builders/default.rb#835
- def def_method(def_t, name_t, args, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#825
- def def_module(module_t, name, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#819
- def def_sclass(class_t, lshft_t, expr, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#851
- def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#237
- def emit_file_line_as_literals; end
-
- # source://parser//lib/parser/builders/default.rb#237
- def emit_file_line_as_literals=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#265
- def false(false_t); end
-
- # source://parser//lib/parser/builders/default.rb#1609
- def find_pattern(lbrack_t, elements, rbrack_t); end
-
- # source://parser//lib/parser/builders/default.rb#276
- def float(float_t); end
-
- # source://parser//lib/parser/builders/default.rb#1329
- def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#911
- def forward_arg(dots_t); end
-
- # source://parser//lib/parser/builders/default.rb#901
- def forward_only_args(begin_t, dots_t, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1082
- def forwarded_args(dots_t); end
-
- # source://parser//lib/parser/builders/default.rb#1090
- def forwarded_kwrestarg(dstar_t); end
-
- # source://parser//lib/parser/builders/default.rb#1086
- def forwarded_restarg(star_t); end
-
- # source://parser//lib/parser/builders/default.rb#607
- def gvar(token); end
-
- # source://parser//lib/parser/builders/default.rb#1582
- def hash_pattern(lbrace_t, kwargs, rbrace_t); end
-
- # source://parser//lib/parser/builders/default.rb#597
- def ident(token); end
-
- # source://parser//lib/parser/builders/default.rb#1498
- def if_guard(if_t, if_body); end
-
- # source://parser//lib/parser/builders/default.rb#1477
- def in_match(lhs, in_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#1492
- def in_pattern(in_t, pattern, guard, then_t, body); end
-
- # source://parser//lib/parser/builders/default.rb#1178
- def index(receiver, lbrack_t, indexes, rbrack_t); end
-
- # source://parser//lib/parser/builders/default.rb#1192
- def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
-
- # source://parser//lib/parser/builders/default.rb#272
- def integer(integer_t); end
-
- # source://parser//lib/parser/builders/default.rb#602
- def ivar(token); end
-
- # source://parser//lib/parser/builders/default.rb#1337
- def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#942
- def kwarg(name_t); end
-
- # source://parser//lib/parser/builders/default.rb#968
- def kwnilarg(dstar_t, nil_t); end
-
- # source://parser//lib/parser/builders/default.rb#949
- def kwoptarg(name_t, value); end
-
- # source://parser//lib/parser/builders/default.rb#956
- def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#535
- def kwsplat(dstar_t, arg); end
-
- # source://parser//lib/parser/builders/default.rb#1277
- def logical_op(type, lhs, op_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#1315
- def loop(type, keyword_t, cond, do_t, body, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1320
- def loop_mod(type, body, keyword_t, cond); end
-
- # source://parser//lib/parser/builders/default.rb#1632
- def match_alt(left, pipe_t, right); end
-
- # source://parser//lib/parser/builders/default.rb#1639
- def match_as(value, assoc_t, as); end
-
- # source://parser//lib/parser/builders/default.rb#1518
- def match_hash_var(name_t); end
-
- # source://parser//lib/parser/builders/default.rb#1532
- def match_hash_var_from_str(begin_t, strings, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1670
- def match_label(label_type, label); end
-
- # source://parser//lib/parser/builders/default.rb#1646
- def match_nil_pattern(dstar_t, nil_t); end
-
- # source://parser//lib/parser/builders/default.rb#1225
- def match_op(receiver, match_t, arg); end
-
- # source://parser//lib/parser/builders/default.rb#1651
- def match_pair(label_type, label, value); end
-
- # source://parser//lib/parser/builders/default.rb#1482
- def match_pattern(lhs, match_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#1487
- def match_pattern_p(lhs, match_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#1571
- def match_rest(star_t, name_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1506
- def match_var(name_t); end
-
- # source://parser//lib/parser/builders/default.rb#1614
- def match_with_trailing_comma(match, comma_t); end
-
- # source://parser//lib/parser/builders/default.rb#803
- def multi_assign(lhs, eql_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#798
- def multi_lhs(begin_t, items, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#255
- def nil(nil_t); end
-
- # source://parser//lib/parser/builders/default.rb#1253
- def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#622
- def nth_ref(token); end
-
- # source://parser//lib/parser/builders/default.rb#897
- def numargs(max_numparam); end
-
- # source://parser//lib/parser/builders/default.rb#1036
- def objc_kwarg(kwname_t, assoc_t, name_t); end
-
- # source://parser//lib/parser/builders/default.rb#1050
- def objc_restarg(star_t, name = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1160
- def objc_varargs(pair, rest_of_varargs); end
-
- # source://parser//lib/parser/builders/default.rb#772
- def op_assign(lhs, op_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#922
- def optarg(name_t, eql_t, value); end
-
- # source://parser//lib/parser/builders/default.rb#488
- def pair(key, assoc_t, value); end
-
- # source://parser//lib/parser/builders/default.rb#505
- def pair_keyword(key_t, value); end
-
- # source://parser//lib/parser/builders/default.rb#521
- def pair_label(key_t); end
-
- # source://parser//lib/parser/builders/default.rb#493
- def pair_list_18(list); end
-
- # source://parser//lib/parser/builders/default.rb#513
- def pair_quoted(begin_t, parts, end_t, value); end
-
- # source://parser//lib/parser/builders/default.rb#225
- def parser; end
-
- # source://parser//lib/parser/builders/default.rb#225
- def parser=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#1627
- def pin(pin_t, var); end
-
- # source://parser//lib/parser/builders/default.rb#1360
- def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
-
- # source://parser//lib/parser/builders/default.rb#1355
- def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
-
- # source://parser//lib/parser/builders/default.rb#990
- def procarg0(arg); end
-
- # source://parser//lib/parser/builders/default.rb#583
- def range_exclusive(lhs, dot3_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#578
- def range_inclusive(lhs, dot2_t, rhs); end
-
- # source://parser//lib/parser/builders/default.rb#280
- def rational(rational_t); end
-
- # source://parser//lib/parser/builders/default.rb#426
- def regexp_compose(begin_t, parts, end_t, options); end
-
- # source://parser//lib/parser/builders/default.rb#417
- def regexp_options(regopt_t); end
-
- # source://parser//lib/parser/builders/default.rb#1367
- def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
-
- # source://parser//lib/parser/builders/default.rb#931
- def restarg(star_t, name_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1014
- def restarg_expr(star_t, expr = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#592
- def self(token); end
-
- # source://parser//lib/parser/builders/default.rb#973
- def shadowarg(name_t); end
-
- # source://parser//lib/parser/builders/default.rb#445
- def splat(star_t, arg = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#319
- def string(string_t); end
-
- # source://parser//lib/parser/builders/default.rb#329
- def string_compose(begin_t, parts, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#324
- def string_internal(string_t); end
-
- # source://parser//lib/parser/builders/default.rb#355
- def symbol(symbol_t); end
-
- # source://parser//lib/parser/builders/default.rb#365
- def symbol_compose(begin_t, parts, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#360
- def symbol_internal(symbol_t); end
-
- # source://parser//lib/parser/builders/default.rb#469
- def symbols_compose(begin_t, parts, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1295
- def ternary(cond, question_t, if_true, colon_t, if_false); end
-
- # source://parser//lib/parser/builders/default.rb#260
- def true(true_t); end
-
- # source://parser//lib/parser/builders/default.rb#294
- def unary_num(unary_t, numeric); end
-
- # source://parser//lib/parser/builders/default.rb#1241
- def unary_op(op_t, receiver); end
-
- # source://parser//lib/parser/builders/default.rb#871
- def undef_method(undef_t, names); end
-
- # source://parser//lib/parser/builders/default.rb#1502
- def unless_guard(unless_t, unless_body); end
-
- # source://parser//lib/parser/builders/default.rb#1302
- def when(when_t, patterns, then_t, body); end
-
- # source://parser//lib/parser/builders/default.rb#455
- def word(parts); end
-
- # source://parser//lib/parser/builders/default.rb#464
- def words_compose(begin_t, parts, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#381
- def xstring_compose(begin_t, parts, end_t); end
-
- private
-
- # source://parser//lib/parser/builders/default.rb#1809
- def arg_name_collides?(this_name, that_name); end
-
- # source://parser//lib/parser/builders/default.rb#2005
- def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1979
- def binary_op_map(left_e, op_t, right_e); end
-
- # source://parser//lib/parser/builders/default.rb#2107
- def block_map(receiver_l, begin_t, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1784
- def check_assignment_to_numparam(name, loc); end
-
- # source://parser//lib/parser/builders/default.rb#1686
- def check_condition(cond); end
-
- # source://parser//lib/parser/builders/default.rb#1755
- def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1730
- def check_duplicate_args(args, map = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1842
- def check_duplicate_pattern_key(name, loc); end
-
- # source://parser//lib/parser/builders/default.rb#1832
- def check_duplicate_pattern_variable(name, loc); end
-
- # source://parser//lib/parser/builders/default.rb#1824
- def check_lvar_name(name, loc); end
-
- # source://parser//lib/parser/builders/default.rb#1799
- def check_reserved_for_numparam(name, loc); end
-
- # source://parser//lib/parser/builders/default.rb#2264
- def collapse_string_parts?(parts); end
-
- # source://parser//lib/parser/builders/default.rb#1930
- def collection_map(begin_t, parts, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#2134
- def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1965
- def constant_map(scope, colon2_t, name_t); end
-
- # source://parser//lib/parser/builders/default.rb#2038
- def definition_map(keyword_t, operator_t, name_t, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1871
- def delimited_string_map(string_t); end
-
- # source://parser//lib/parser/builders/default.rb#2286
- def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#2178
- def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
-
- # source://parser//lib/parser/builders/default.rb#2044
- def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end
-
- # source://parser//lib/parser/builders/default.rb#1926
- def expr_map(loc); end
-
- # source://parser//lib/parser/builders/default.rb#2159
- def for_map(keyword_t, in_t, begin_t, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#2206
- def guard_map(keyword_t, guard_body_e); end
-
- # source://parser//lib/parser/builders/default.rb#2096
- def index_map(receiver_e, lbrack_t, rbrack_t); end
-
- # source://parser//lib/parser/builders/default.rb#1862
- def join_exprs(left_expr, right_expr); end
-
- # source://parser//lib/parser/builders/default.rb#2112
- def keyword_map(keyword_t, begin_t, args, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#2129
- def keyword_mod_map(pre_e, keyword_t, post_e); end
-
- # source://parser//lib/parser/builders/default.rb#2015
- def kwarg_map(name_t, value_e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#2317
- def kwargs?(node); end
-
- # source://parser//lib/parser/builders/default.rb#2281
- def loc(token); end
-
- # source://parser//lib/parser/builders/default.rb#2028
- def module_definition_map(keyword_t, name_e, operator_t, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#1854
- def n(type, children, source_map); end
-
- # source://parser//lib/parser/builders/default.rb#1858
- def n0(type, source_map); end
-
- # source://parser//lib/parser/builders/default.rb#288
- def numeric(kind, token); end
-
- # source://parser//lib/parser/builders/default.rb#1896
- def pair_keyword_map(key_t, value_e); end
-
- # source://parser//lib/parser/builders/default.rb#1911
- def pair_quoted_map(begin_t, end_t, value_e); end
-
- # source://parser//lib/parser/builders/default.rb#1882
- def prefix_string_map(symbol); end
-
- # source://parser//lib/parser/builders/default.rb#1993
- def range_map(start_e, op_t, end_e); end
-
- # source://parser//lib/parser/builders/default.rb#1960
- def regexp_map(begin_t, end_t, options_e); end
-
- # source://parser//lib/parser/builders/default.rb#2165
- def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
-
- # source://parser//lib/parser/builders/default.rb#2307
- def rewrite_hash_args_to_kwargs(args); end
-
- # source://parser//lib/parser/builders/default.rb#2078
- def send_binary_op_map(lhs_e, selector_t, rhs_e); end
-
- # source://parser//lib/parser/builders/default.rb#2101
- def send_index_map(receiver_e, lbrack_t, rbrack_t); end
-
- # source://parser//lib/parser/builders/default.rb#2052
- def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#2084
- def send_unary_op_map(selector_t, arg_e); end
-
- # source://parser//lib/parser/builders/default.rb#2237
- def static_regexp(parts, options); end
-
- # source://parser//lib/parser/builders/default.rb#2257
- def static_regexp_node(node); end
-
- # source://parser//lib/parser/builders/default.rb#2220
- def static_string(nodes); end
-
- # source://parser//lib/parser/builders/default.rb#1946
- def string_map(begin_t, parts, end_t); end
-
- # source://parser//lib/parser/builders/default.rb#2273
- def string_value(token); end
-
- # source://parser//lib/parser/builders/default.rb#2154
- def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
-
- # source://parser//lib/parser/builders/default.rb#1867
- def token_map(token); end
-
- # source://parser//lib/parser/builders/default.rb#1983
- def unary_op_map(op_t, arg_e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/builders/default.rb#1891
- def unquoted_map(token); end
-
- # source://parser//lib/parser/builders/default.rb#2295
- def validate_definee(definee); end
-
- # source://parser//lib/parser/builders/default.rb#1769
- def validate_no_forward_arg_after_restarg(args); end
-
- # source://parser//lib/parser/builders/default.rb#2269
- def value(token); end
-
- # source://parser//lib/parser/builders/default.rb#2072
- def var_send_map(variable_e); end
-
- # source://parser//lib/parser/builders/default.rb#1975
- def variable_map(name_t); end
-
- class << self
- # source://parser//lib/parser/builders/default.rb#97
- def emit_arg_inside_procarg0; end
-
- # source://parser//lib/parser/builders/default.rb#97
- def emit_arg_inside_procarg0=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#58
- def emit_encoding; end
-
- # source://parser//lib/parser/builders/default.rb#58
- def emit_encoding=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#126
- def emit_forward_arg; end
-
- # source://parser//lib/parser/builders/default.rb#126
- def emit_forward_arg=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#80
- def emit_index; end
-
- # source://parser//lib/parser/builders/default.rb#80
- def emit_index=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#174
- def emit_kwargs; end
-
- # source://parser//lib/parser/builders/default.rb#174
- def emit_kwargs=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#22
- def emit_lambda; end
-
- # source://parser//lib/parser/builders/default.rb#22
- def emit_lambda=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#203
- def emit_match_pattern; end
-
- # source://parser//lib/parser/builders/default.rb#203
- def emit_match_pattern=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#40
- def emit_procarg0; end
-
- # source://parser//lib/parser/builders/default.rb#40
- def emit_procarg0=(_arg0); end
-
- # source://parser//lib/parser/builders/default.rb#211
- def modernize; end
- end
-end
-
-# {Parser::ClobberingError} is raised when {Parser::Source::Rewriter}
-# detects a clobbering rewrite action. This class inherits {RuntimeError}
-# rather than {StandardError} for backward compatibility.
-#
-# @api public
-#
-# source://parser//lib/parser/clobbering_error.rb#11
-class Parser::ClobberingError < ::RuntimeError; end
-
-# Context of parsing that is represented by a stack of scopes.
-#
-# Supported states:
-# + :class - in the class body (class A; end)
-# + :module - in the module body (module M; end)
-# + :sclass - in the singleton class body (class << obj; end)
-# + :def - in the method body (def m; end)
-# + :defs - in the singleton method body (def self.m; end)
-# + :def_open_args - in the arglist of the method definition
-# keep in mind that it's set **only** after reducing the first argument,
-# if you need to handle the first argument check `lex_state == expr_fname`
-# + :block - in the block body (tap {})
-# + :lambda - in the lambda body (-> {})
-#
-# source://parser//lib/parser/context.rb#18
-class Parser::Context
- # @return [Context] a new instance of Context
- #
- # source://parser//lib/parser/context.rb#29
- def initialize; end
-
- # source://parser//lib/parser/context.rb#43
- def in_argdef; end
-
- # source://parser//lib/parser/context.rb#43
- def in_argdef=(_arg0); end
-
- # source://parser//lib/parser/context.rb#43
- def in_block; end
-
- # source://parser//lib/parser/context.rb#43
- def in_block=(_arg0); end
-
- # source://parser//lib/parser/context.rb#43
- def in_class; end
-
- # source://parser//lib/parser/context.rb#43
- def in_class=(_arg0); end
-
- # source://parser//lib/parser/context.rb#43
- def in_def; end
-
- # source://parser//lib/parser/context.rb#43
- def in_def=(_arg0); end
-
- # source://parser//lib/parser/context.rb#43
- def in_defined; end
-
- # source://parser//lib/parser/context.rb#43
- def in_defined=(_arg0); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/context.rb#45
- def in_dynamic_block?; end
-
- # source://parser//lib/parser/context.rb#43
- def in_kwarg; end
-
- # source://parser//lib/parser/context.rb#43
- def in_kwarg=(_arg0); end
-
- # source://parser//lib/parser/context.rb#43
- def in_lambda; end
-
- # source://parser//lib/parser/context.rb#43
- def in_lambda=(_arg0); end
-
- # source://parser//lib/parser/context.rb#33
- def reset; end
-end
-
-# source://parser//lib/parser/context.rb#19
-Parser::Context::FLAGS = T.let(T.unsafe(nil), Array)
-
-# Stack that holds names of current arguments,
-# i.e. while parsing
-# def m1(a = (def m2(b = def m3(c = 1); end); end)); end
-# ^
-# stack is [:a, :b, :c]
-#
-# Emulates `p->cur_arg` in MRI's parse.y
-#
-# @api private
-#
-# source://parser//lib/parser/current_arg_stack.rb#14
-class Parser::CurrentArgStack
- # @api private
- # @return [CurrentArgStack] a new instance of CurrentArgStack
- #
- # source://parser//lib/parser/current_arg_stack.rb#17
- def initialize; end
-
- # @api private
- # @return [Boolean]
- #
- # source://parser//lib/parser/current_arg_stack.rb#22
- def empty?; end
-
- # @api private
- #
- # source://parser//lib/parser/current_arg_stack.rb#34
- def pop; end
-
- # @api private
- #
- # source://parser//lib/parser/current_arg_stack.rb#26
- def push(value); end
-
- # @api private
- #
- # source://parser//lib/parser/current_arg_stack.rb#38
- def reset; end
-
- # @api private
- #
- # source://parser//lib/parser/current_arg_stack.rb#30
- def set(value); end
-
- # @api private
- #
- # source://parser//lib/parser/current_arg_stack.rb#15
- def stack; end
-
- # @api private
- #
- # source://parser//lib/parser/current_arg_stack.rb#42
- def top; end
-end
-
-# @api private
-#
-# source://parser//lib/parser/deprecation.rb#7
-module Parser::Deprecation
- # @api private
- #
- # source://parser//lib/parser/deprecation.rb#9
- def warn_of_deprecation; end
-
- # @api private
- #
- # source://parser//lib/parser/deprecation.rb#8
- def warned_of_deprecation=(_arg0); end
-end
-
-# @api public
-#
-# 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]
- # @return [Diagnostic] a new instance of Diagnostic
- #
- # source://parser//lib/parser/diagnostic.rb#49
- def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end
-
- # @api public
- # @return [Symbol] extended arguments that describe the error
- # @see Parser::MESSAGES
- #
- # source://parser//lib/parser/diagnostic.rb#39
- def arguments; end
-
- # Supplementary error-related source ranges.
- #
- # @api public
- # @return [Array]
- #
- # source://parser//lib/parser/diagnostic.rb#40
- def highlights; end
-
- # @api public
- # @return [Symbol] diagnostic level
- # @see LEVELS
- #
- # source://parser//lib/parser/diagnostic.rb#39
- def level; end
-
- # Main error-related source range.
- #
- # @api public
- # @return [Parser::Source::Range]
- #
- # source://parser//lib/parser/diagnostic.rb#40
- def location; end
-
- # @api public
- # @return [String] the rendered message.
- #
- # source://parser//lib/parser/diagnostic.rb#69
- def message; end
-
- # @api public
- # @return [Symbol] reason for error
- # @see Parser::MESSAGES
- #
- # source://parser//lib/parser/diagnostic.rb#39
- def reason; end
-
- # Renders the diagnostic message as a clang-like diagnostic.
- #
- # @api public
- # @example
- # diagnostic.render # =>
- # # [
- # # "(fragment:0):1:5: error: unexpected token $end",
- # # "foo +",
- # # " ^"
- # # ]
- # @return [Array]
- #
- # source://parser//lib/parser/diagnostic.rb#86
- def render; end
-
- private
-
- # If necessary, shrink a `Range` so as to include only the first line.
- #
- # @api public
- # @return [Parser::Source::Range]
- #
- # source://parser//lib/parser/diagnostic.rb#142
- def first_line_only(range); end
-
- # If necessary, shrink a `Range` so as to include only the last line.
- #
- # @api public
- # @return [Parser::Source::Range]
- #
- # source://parser//lib/parser/diagnostic.rb#155
- def last_line_only(range); end
-
- # Renders one source line in clang diagnostic style, with highlights.
- #
- # @api public
- # @return [Array]
- #
- # source://parser//lib/parser/diagnostic.rb#110
- def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end
-end
-
-# source://parser//lib/parser/diagnostic/engine.rb#36
-class Parser::Diagnostic::Engine
- # source://parser//lib/parser/diagnostic/engine.rb#45
- def initialize(consumer = T.unsafe(nil)); end
-
- # source://parser//lib/parser/diagnostic/engine.rb#39
- def all_errors_are_fatal; end
-
- # source://parser//lib/parser/diagnostic/engine.rb#39
- def all_errors_are_fatal=(_arg0); end
-
- # source://parser//lib/parser/diagnostic/engine.rb#37
- def consumer; end
-
- # source://parser//lib/parser/diagnostic/engine.rb#37
- def consumer=(_arg0); end
-
- # source://parser//lib/parser/diagnostic/engine.rb#40
- def ignore_warnings; end
-
- # source://parser//lib/parser/diagnostic/engine.rb#40
- def ignore_warnings=(_arg0); end
-
- # source://parser//lib/parser/diagnostic/engine.rb#64
- def process(diagnostic); end
-
- protected
-
- # source://parser//lib/parser/diagnostic/engine.rb#86
- def ignore?(diagnostic); end
-
- # source://parser//lib/parser/diagnostic/engine.rb#97
- def raise?(diagnostic); end
-end
-
-# Collection of the available diagnostic levels.
-#
-# @api public
-# @return [Array]
-#
-# source://parser//lib/parser/diagnostic.rb#37
-Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array)
-
-# line 3 "lib/parser/lexer.rl"
-#
-# === BEFORE YOU START ===
-#
-# Read the Ruby Hacking Guide chapter 11, available in English at
-# http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/
-#
-# Remember two things about Ragel scanners:
-#
-# 1) Longest match wins.
-#
-# 2) If two matches have the same length, the first
-# in source code wins.
-#
-# General rules of making Ragel and Bison happy:
-#
-# * `p` (position) and `@te` contain the index of the character
-# they're pointing to ("current"), plus one. `@ts` contains the index
-# of the corresponding character. The code for extracting matched token is:
-#
-# @source_buffer.slice(@ts...@te)
-#
-# * If your input is `foooooooobar` and the rule is:
-#
-# 'f' 'o'+
-#
-# the result will be:
-#
-# foooooooobar
-# ^ ts=0 ^ p=te=9
-#
-# * A Ragel lexer action should not emit more than one token, unless
-# you know what you are doing.
-#
-# * All Ragel commands (fnext, fgoto, ...) end with a semicolon.
-#
-# * If an action emits the token and transitions to another state, use
-# these Ragel commands:
-#
-# emit($whatever)
-# fnext $next_state; fbreak;
-#
-# If you perform `fgoto` in an action which does not emit a token nor
-# rewinds the stream pointer, the parser's side-effectful,
-# context-sensitive lookahead actions will break in a hard to detect
-# and debug way.
-#
-# * If an action does not emit a token:
-#
-# fgoto $next_state;
-#
-# * If an action features lookbehind, i.e. matches characters with the
-# intent of passing them to another action:
-#
-# p = @ts - 1
-# fgoto $next_state;
-#
-# or, if the lookbehind consists of a single character:
-#
-# fhold; fgoto $next_state;
-#
-# * Ragel merges actions. So, if you have `e_lparen = '(' %act` and
-# `c_lparen = '('` and a lexer action `e_lparen | c_lparen`, the result
-# _will_ invoke the action `act`.
-#
-# e_something stands for "something with **e**mbedded action".
-#
-# * EOF is explicit and is matched by `c_eof`. If you want to introspect
-# the state of the lexer, add this rule to the state:
-#
-# c_eof => do_eof;
-#
-# * If you proceed past EOF, the lexer will complain:
-#
-# NoMethodError: undefined method `ord' for nil:NilClass
-#
-# source://parser//lib/parser/lexer-F1.rb#82
-class Parser::Lexer
- # @return [Lexer] a new instance of Lexer
- #
- # source://parser//lib/parser/lexer-F1.rb#8250
- def initialize(version); end
-
- # Return next token: [type, value].
- #
- # source://parser//lib/parser/lexer-F1.rb#8410
- def advance; end
-
- # Returns the value of attribute cmdarg.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def cmdarg; end
-
- # Sets the attribute cmdarg
- #
- # @param value the value to set the attribute cmdarg to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def cmdarg=(_arg0); end
-
- # Returns the value of attribute cmdarg_stack.
- #
- # source://parser//lib/parser/lexer-F1.rb#8248
- def cmdarg_stack; end
-
- # Returns the value of attribute command_start.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def command_start; end
-
- # Sets the attribute command_start
- #
- # @param value the value to set the attribute command_start to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def command_start=(_arg0); end
-
- # Returns the value of attribute comments.
- #
- # source://parser//lib/parser/lexer-F1.rb#8246
- def comments; end
-
- # Sets the attribute comments
- #
- # @param value the value to set the attribute comments to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8246
- def comments=(_arg0); end
-
- # Returns the value of attribute cond.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def cond; end
-
- # Sets the attribute cond
- #
- # @param value the value to set the attribute cond to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def cond=(_arg0); end
-
- # Returns the value of attribute cond_stack.
- #
- # source://parser//lib/parser/lexer-F1.rb#8248
- def cond_stack; end
-
- # Returns the value of attribute context.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def context; end
-
- # Sets the attribute context
- #
- # @param value the value to set the attribute context to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8244
- def context=(_arg0); end
-
- # source://parser//lib/parser/lexer-F1.rb#8405
- def dedent_level; end
-
- # Returns the value of attribute diagnostics.
- #
- # source://parser//lib/parser/lexer-F1.rb#8240
- def diagnostics; end
-
- # Sets the attribute diagnostics
- #
- # @param value the value to set the attribute diagnostics to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8240
- def diagnostics=(_arg0); end
-
- # source://parser//lib/parser/lexer-F1.rb#8358
- def encoding; end
-
- # Returns the value of attribute force_utf32.
- #
- # source://parser//lib/parser/lexer-F1.rb#8242
- def force_utf32; end
-
- # Sets the attribute force_utf32
- #
- # @param value the value to set the attribute force_utf32 to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8242
- def force_utf32=(_arg0); end
-
- # Returns the value of attribute lambda_stack.
- #
- # source://parser//lib/parser/lexer-F1.rb#8248
- def lambda_stack; end
-
- # Returns the value of attribute paren_nest.
- #
- # source://parser//lib/parser/lexer-F1.rb#8248
- def paren_nest; end
-
- # source://parser//lib/parser/lexer-F1.rb#8392
- def pop_cmdarg; end
-
- # source://parser//lib/parser/lexer-F1.rb#8401
- def pop_cond; end
-
- # source://parser//lib/parser/lexer-F1.rb#8387
- def push_cmdarg; end
-
- # source://parser//lib/parser/lexer-F1.rb#8396
- def push_cond; end
-
- # source://parser//lib/parser/lexer-F1.rb#8281
- def reset(reset_state = T.unsafe(nil)); end
-
- # %
- #
- # source://parser//lib/parser/lexer-F1.rb#8238
- def source_buffer; end
-
- # source://parser//lib/parser/lexer-F1.rb#8334
- def source_buffer=(source_buffer); end
-
- # source://parser//lib/parser/lexer-F1.rb#8379
- def state; end
-
- # source://parser//lib/parser/lexer-F1.rb#8383
- def state=(state); end
-
- # Returns the value of attribute static_env.
- #
- # source://parser//lib/parser/lexer-F1.rb#8241
- def static_env; end
-
- # Sets the attribute static_env
- #
- # @param value the value to set the attribute static_env to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8241
- def static_env=(_arg0); end
-
- # Returns the value of attribute tokens.
- #
- # source://parser//lib/parser/lexer-F1.rb#8246
- def tokens; end
-
- # Sets the attribute tokens
- #
- # @param value the value to set the attribute tokens to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8246
- def tokens=(_arg0); end
-
- # Returns the value of attribute version.
- #
- # source://parser//lib/parser/lexer-F1.rb#8248
- def version; end
-
- protected
-
- # source://parser//lib/parser/lexer-F1.rb#14631
- def arg_or_cmdarg(cmd_state); end
-
- # source://parser//lib/parser/lexer-F1.rb#14693
- def check_ambiguous_slash(tm); end
-
- # source://parser//lib/parser/lexer-F1.rb#14655
- def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14661
- def e_lbrace; end
-
- # source://parser//lib/parser/lexer-F1.rb#14605
- def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14714
- def emit_class_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14742
- def emit_colon_with_digits(p, tm, diag_msg); end
-
- # source://parser//lib/parser/lexer-F1.rb#14639
- def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14651
- def emit_comment_from_range(p, pe); end
-
- # source://parser//lib/parser/lexer-F1.rb#14621
- def emit_do(do_block = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14704
- def emit_global_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14722
- def emit_instance_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14730
- def emit_rbrace_rparen_rbrack; end
-
- # source://parser//lib/parser/lexer-F1.rb#14752
- def emit_singleton_class; end
-
- # source://parser//lib/parser/lexer-F1.rb#14615
- def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14670
- def numeric_literal_int; end
-
- # source://parser//lib/parser/lexer-F1.rb#14689
- def on_newline(p); end
-
- # source://parser//lib/parser/lexer-F1.rb#14601
- def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-F1.rb#14592
- def stack_pop; end
-
- # source://parser//lib/parser/lexer-F1.rb#14597
- def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/lexer-F1.rb#14588
- def version?(*versions); end
-
- class << self
- # Returns the value of attribute lex_en_expr_arg.
- #
- # source://parser//lib/parser/lexer-F1.rb#8186
- def lex_en_expr_arg; end
-
- # Sets the attribute lex_en_expr_arg
- #
- # @param value the value to set the attribute lex_en_expr_arg to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8186
- def lex_en_expr_arg=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_beg.
- #
- # source://parser//lib/parser/lexer-F1.rb#8202
- def lex_en_expr_beg; end
-
- # Sets the attribute lex_en_expr_beg
- #
- # @param value the value to set the attribute lex_en_expr_beg to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8202
- def lex_en_expr_beg=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_cmdarg.
- #
- # source://parser//lib/parser/lexer-F1.rb#8190
- def lex_en_expr_cmdarg; end
-
- # Sets the attribute lex_en_expr_cmdarg
- #
- # @param value the value to set the attribute lex_en_expr_cmdarg to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8190
- def lex_en_expr_cmdarg=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_dot.
- #
- # source://parser//lib/parser/lexer-F1.rb#8182
- def lex_en_expr_dot; end
-
- # Sets the attribute lex_en_expr_dot
- #
- # @param value the value to set the attribute lex_en_expr_dot to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8182
- def lex_en_expr_dot=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_end.
- #
- # source://parser//lib/parser/lexer-F1.rb#8214
- def lex_en_expr_end; end
-
- # Sets the attribute lex_en_expr_end
- #
- # @param value the value to set the attribute lex_en_expr_end to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8214
- def lex_en_expr_end=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_endarg.
- #
- # source://parser//lib/parser/lexer-F1.rb#8194
- def lex_en_expr_endarg; end
-
- # Sets the attribute lex_en_expr_endarg
- #
- # @param value the value to set the attribute lex_en_expr_endarg to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8194
- def lex_en_expr_endarg=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_endfn.
- #
- # source://parser//lib/parser/lexer-F1.rb#8178
- def lex_en_expr_endfn; end
-
- # Sets the attribute lex_en_expr_endfn
- #
- # @param value the value to set the attribute lex_en_expr_endfn to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8178
- def lex_en_expr_endfn=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_fname.
- #
- # source://parser//lib/parser/lexer-F1.rb#8174
- def lex_en_expr_fname; end
-
- # Sets the attribute lex_en_expr_fname
- #
- # @param value the value to set the attribute lex_en_expr_fname to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8174
- def lex_en_expr_fname=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_labelarg.
- #
- # source://parser//lib/parser/lexer-F1.rb#8206
- def lex_en_expr_labelarg; end
-
- # Sets the attribute lex_en_expr_labelarg
- #
- # @param value the value to set the attribute lex_en_expr_labelarg to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8206
- def lex_en_expr_labelarg=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_mid.
- #
- # source://parser//lib/parser/lexer-F1.rb#8198
- def lex_en_expr_mid; end
-
- # Sets the attribute lex_en_expr_mid
- #
- # @param value the value to set the attribute lex_en_expr_mid to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8198
- def lex_en_expr_mid=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_value.
- #
- # source://parser//lib/parser/lexer-F1.rb#8210
- def lex_en_expr_value; end
-
- # Sets the attribute lex_en_expr_value
- #
- # @param value the value to set the attribute lex_en_expr_value to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8210
- def lex_en_expr_value=(_arg0); end
-
- # Returns the value of attribute lex_en_expr_variable.
- #
- # source://parser//lib/parser/lexer-F1.rb#8170
- def lex_en_expr_variable; end
-
- # Sets the attribute lex_en_expr_variable
- #
- # @param value the value to set the attribute lex_en_expr_variable to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8170
- def lex_en_expr_variable=(_arg0); end
-
- # Returns the value of attribute lex_en_inside_string.
- #
- # source://parser//lib/parser/lexer-F1.rb#8230
- def lex_en_inside_string; end
-
- # Sets the attribute lex_en_inside_string
- #
- # @param value the value to set the attribute lex_en_inside_string to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8230
- def lex_en_inside_string=(_arg0); end
-
- # Returns the value of attribute lex_en_leading_dot.
- #
- # source://parser//lib/parser/lexer-F1.rb#8218
- def lex_en_leading_dot; end
-
- # Sets the attribute lex_en_leading_dot
- #
- # @param value the value to set the attribute lex_en_leading_dot to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8218
- def lex_en_leading_dot=(_arg0); end
-
- # Returns the value of attribute lex_en_line_begin.
- #
- # source://parser//lib/parser/lexer-F1.rb#8226
- def lex_en_line_begin; end
-
- # Sets the attribute lex_en_line_begin
- #
- # @param value the value to set the attribute lex_en_line_begin to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8226
- def lex_en_line_begin=(_arg0); end
-
- # Returns the value of attribute lex_en_line_comment.
- #
- # source://parser//lib/parser/lexer-F1.rb#8222
- def lex_en_line_comment; end
-
- # Sets the attribute lex_en_line_comment
- #
- # @param value the value to set the attribute lex_en_line_comment to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8222
- def lex_en_line_comment=(_arg0); end
-
- # Returns the value of attribute lex_error.
- #
- # source://parser//lib/parser/lexer-F1.rb#8165
- def lex_error; end
-
- # Sets the attribute lex_error
- #
- # @param value the value to set the attribute lex_error to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8165
- def lex_error=(_arg0); end
-
- # Returns the value of attribute lex_start.
- #
- # source://parser//lib/parser/lexer-F1.rb#8161
- def lex_start; end
-
- # Sets the attribute lex_start
- #
- # @param value the value to set the attribute lex_start to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8161
- def lex_start=(_arg0); end
-
- private
-
- # Returns the value of attribute _lex_eof_trans.
- #
- # source://parser//lib/parser/lexer-F1.rb#8064
- def _lex_eof_trans; end
-
- # Sets the attribute _lex_eof_trans
- #
- # @param value the value to set the attribute _lex_eof_trans to.
- #
- # source://parser//lib/parser/lexer-F1.rb#8064
- def _lex_eof_trans=(_arg0); end
-
- # Returns the value of attribute _lex_from_state_actions.
- #
- # source://parser//lib/parser/lexer-F1.rb#7967
- def _lex_from_state_actions; end
-
- # Sets the attribute _lex_from_state_actions
- #
- # @param value the value to set the attribute _lex_from_state_actions to.
- #
- # source://parser//lib/parser/lexer-F1.rb#7967
- def _lex_from_state_actions=(_arg0); end
-
- # Returns the value of attribute _lex_index_offsets.
- #
- # source://parser//lib/parser/lexer-F1.rb#461
- def _lex_index_offsets; end
-
- # Sets the attribute _lex_index_offsets
- #
- # @param value the value to set the attribute _lex_index_offsets to.
- #
- # source://parser//lib/parser/lexer-F1.rb#461
- def _lex_index_offsets=(_arg0); end
-
- # Returns the value of attribute _lex_indicies.
- #
- # source://parser//lib/parser/lexer-F1.rb#558
- def _lex_indicies; end
-
- # Sets the attribute _lex_indicies
- #
- # @param value the value to set the attribute _lex_indicies to.
- #
- # source://parser//lib/parser/lexer-F1.rb#558
- def _lex_indicies=(_arg0); end
-
- # Returns the value of attribute _lex_key_spans.
- #
- # source://parser//lib/parser/lexer-F1.rb#364
- def _lex_key_spans; end
-
- # Sets the attribute _lex_key_spans
- #
- # @param value the value to set the attribute _lex_key_spans to.
- #
- # source://parser//lib/parser/lexer-F1.rb#364
- def _lex_key_spans=(_arg0); end
-
- # Returns the value of attribute _lex_to_state_actions.
- #
- # source://parser//lib/parser/lexer-F1.rb#7870
- def _lex_to_state_actions; end
-
- # Sets the attribute _lex_to_state_actions
- #
- # @param value the value to set the attribute _lex_to_state_actions to.
- #
- # source://parser//lib/parser/lexer-F1.rb#7870
- def _lex_to_state_actions=(_arg0); end
-
- # Returns the value of attribute _lex_trans_actions.
- #
- # source://parser//lib/parser/lexer-F1.rb#7722
- def _lex_trans_actions; end
-
- # Sets the attribute _lex_trans_actions
- #
- # @param value the value to set the attribute _lex_trans_actions to.
- #
- # source://parser//lib/parser/lexer-F1.rb#7722
- def _lex_trans_actions=(_arg0); end
-
- # Returns the value of attribute _lex_trans_keys.
- #
- # source://parser//lib/parser/lexer-F1.rb#87
- def _lex_trans_keys; end
-
- # Sets the attribute _lex_trans_keys
- #
- # @param value the value to set the attribute _lex_trans_keys to.
- #
- # source://parser//lib/parser/lexer-F1.rb#87
- def _lex_trans_keys=(_arg0); end
-
- # Returns the value of attribute _lex_trans_targs.
- #
- # source://parser//lib/parser/lexer-F1.rb#7574
- def _lex_trans_targs; end
-
- # Sets the attribute _lex_trans_targs
- #
- # @param value the value to set the attribute _lex_trans_targs to.
- #
- # source://parser//lib/parser/lexer-F1.rb#7574
- def _lex_trans_targs=(_arg0); end
- end
-end
-
-# source://parser//lib/parser/lexer/dedenter.rb#5
-class Parser::Lexer::Dedenter
- # source://parser//lib/parser/lexer/dedenter.rb#9
- def initialize(dedent_level); end
-
- # source://parser//lib/parser/lexer/dedenter.rb#36
- def dedent(string); end
-
- # source://parser//lib/parser/lexer/dedenter.rb#83
- def interrupt; end
-end
-
-# source://parser//lib/parser/lexer/dedenter.rb#7
-Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
-
-# source://parser//lib/parser/lexer-F1.rb#14799
-Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-F1.rb#14785
-Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-F1.rb#14792
-Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-F1.rb#8362
-Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer/literal.rb#6
-class Parser::Lexer::Literal
- # source://parser//lib/parser/lexer/literal.rb#40
- def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer/literal.rb#114
- def backslash_delimited?; end
-
- # source://parser//lib/parser/lexer/literal.rb#37
- def dedent_level; end
-
- # source://parser//lib/parser/lexer/literal.rb#189
- def end_interp_brace_and_try_closing; end
-
- # source://parser//lib/parser/lexer/literal.rb#216
- def extend_content; end
-
- # source://parser//lib/parser/lexer/literal.rb#220
- def extend_space(ts, te); end
-
- # source://parser//lib/parser/lexer/literal.rb#195
- def extend_string(string, ts, te); end
-
- # source://parser//lib/parser/lexer/literal.rb#202
- def flush_string; end
-
- # source://parser//lib/parser/lexer/literal.rb#102
- def heredoc?; end
-
- # source://parser//lib/parser/lexer/literal.rb#37
- def heredoc_e; end
-
- # source://parser//lib/parser/lexer/literal.rb#166
- def infer_indent_level(line); end
-
- # source://parser//lib/parser/lexer/literal.rb#89
- def interpolate?; end
-
- # source://parser//lib/parser/lexer/literal.rb#122
- def munge_escape?(character); end
-
- # source://parser//lib/parser/lexer/literal.rb#132
- def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer/literal.rb#106
- def plain_heredoc?; end
-
- # source://parser//lib/parser/lexer/literal.rb#98
- def regexp?; end
-
- # source://parser//lib/parser/lexer/literal.rb#38
- def saved_herebody_s; end
-
- # source://parser//lib/parser/lexer/literal.rb#38
- def saved_herebody_s=(_arg0); end
-
- # source://parser//lib/parser/lexer/literal.rb#110
- def squiggly_heredoc?; end
-
- # source://parser//lib/parser/lexer/literal.rb#185
- def start_interp_brace; end
-
- # source://parser//lib/parser/lexer/literal.rb#37
- def str_s; end
-
- # source://parser//lib/parser/lexer/literal.rb#230
- def supports_line_continuation_via_slash?; end
-
- # source://parser//lib/parser/lexer/literal.rb#118
- def type; end
-
- # source://parser//lib/parser/lexer/literal.rb#93
- def words?; end
-
- protected
-
- # source://parser//lib/parser/lexer/literal.rb#248
- def clear_buffer; end
-
- # source://parser//lib/parser/lexer/literal.rb#244
- def coerce_encoding(string); end
-
- # source://parser//lib/parser/lexer/literal.rb#236
- def delimiter?(delimiter); end
-
- # source://parser//lib/parser/lexer/literal.rb#264
- def emit(token, type, s, e); end
-
- # source://parser//lib/parser/lexer/literal.rb#259
- def emit_start_tok; end
-end
-
-# source://parser//lib/parser/lexer/literal.rb#7
-Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer/literal.rb#9
-Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
-
-# Mapping of strings to parser tokens.
-#
-# source://parser//lib/parser/lexer-F1.rb#14759
-Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-F1.rb#14779
-Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer/stack_state.rb#5
-class Parser::Lexer::StackState
- # source://parser//lib/parser/lexer/stack_state.rb#6
- def initialize(name); end
-
- # source://parser//lib/parser/lexer/stack_state.rb#34
- def active?; end
-
- # source://parser//lib/parser/lexer/stack_state.rb#11
- def clear; end
-
- # source://parser//lib/parser/lexer/stack_state.rb#38
- def empty?; end
-
- # source://parser//lib/parser/lexer/stack_state.rb#42
- def inspect; end
-
- # source://parser//lib/parser/lexer/stack_state.rb#29
- def lexpop; end
-
- # source://parser//lib/parser/lexer/stack_state.rb#22
- def pop; end
-
- # source://parser//lib/parser/lexer/stack_state.rb#15
- def push(bit); end
-
- # source://parser//lib/parser/lexer/stack_state.rb#42
- def to_s; end
-end
-
-# line 3 "lib/parser/lexer-strings.rl"
-#
-# source://parser//lib/parser/lexer-strings.rb#6
-class Parser::LexerStrings
- # @return [LexerStrings] a new instance of LexerStrings
- #
- # source://parser//lib/parser/lexer-strings.rb#3300
- def initialize(lexer, version); end
-
- # source://parser//lib/parser/lexer-strings.rb#3339
- def advance(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5069
- def close_interp_on_current_literal(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5043
- def continue_lexing(current_literal); end
-
- # source://parser//lib/parser/lexer-strings.rb#5092
- def dedent_level; end
-
- # Returns the value of attribute herebody_s.
- #
- # source://parser//lib/parser/lexer-strings.rb#3295
- def herebody_s; end
-
- # Sets the attribute herebody_s
- #
- # @param value the value to set the attribute herebody_s to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3295
- def herebody_s=(_arg0); end
-
- # source://parser//lib/parser/lexer-strings.rb#5047
- def literal; end
-
- # source://parser//lib/parser/lexer-strings.rb#5015
- def next_state_for_literal(literal); end
-
- # This hook is triggered by "main" lexer on every newline character
- #
- # source://parser//lib/parser/lexer-strings.rb#5100
- def on_newline(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5051
- def pop_literal; end
-
- # === LITERAL STACK ===
- #
- # source://parser//lib/parser/lexer-strings.rb#5009
- def push_literal(*args); end
-
- # source://parser//lib/parser/lexer-strings.rb#4999
- def read_character_constant(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#3314
- def reset; end
-
- # Set by "main" lexer
- #
- # source://parser//lib/parser/lexer-strings.rb#3298
- def source_buffer; end
-
- # Set by "main" lexer
- #
- # source://parser//lib/parser/lexer-strings.rb#3298
- def source_buffer=(_arg0); end
-
- # Set by "main" lexer
- #
- # source://parser//lib/parser/lexer-strings.rb#3298
- def source_pts; end
-
- # Set by "main" lexer
- #
- # source://parser//lib/parser/lexer-strings.rb#3298
- def source_pts=(_arg0); end
-
- protected
-
- # source://parser//lib/parser/lexer-strings.rb#5397
- def check_ambiguous_slash(tm); end
-
- # source://parser//lib/parser/lexer-strings.rb#5408
- def check_invalid_escapes(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5136
- def cond; end
-
- # source://parser//lib/parser/lexer-strings.rb#5132
- def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-strings.rb#5128
- def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-strings.rb#5387
- def emit_character_constant; end
-
- # source://parser//lib/parser/lexer-strings.rb#5364
- def emit_interp_var(interp_var_kind); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/lexer-strings.rb#5140
- def emit_invalid_escapes?; end
-
- # source://parser//lib/parser/lexer-strings.rb#5291
- def encode_escape(ord); end
-
- # source://parser//lib/parser/lexer-strings.rb#5375
- def encode_escaped_char(p); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/lexer-strings.rb#5112
- def eof_codepoint?(point); end
-
- # source://parser//lib/parser/lexer-strings.rb#5210
- def extend_interp_code(current_literal); end
-
- # source://parser//lib/parser/lexer-strings.rb#5225
- def extend_interp_digit_var; end
-
- # source://parser//lib/parser/lexer-strings.rb#5355
- def extend_interp_var(current_literal); end
-
- # source://parser//lib/parser/lexer-strings.rb#5234
- def extend_string_eol_check_eof(current_literal, pe); end
-
- # source://parser//lib/parser/lexer-strings.rb#5251
- def extend_string_eol_heredoc_intertwined(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5241
- def extend_string_eol_heredoc_line; end
-
- # source://parser//lib/parser/lexer-strings.rb#5267
- def extend_string_eol_words(current_literal, p); end
-
- # String escaping
- #
- # source://parser//lib/parser/lexer-strings.rb#5154
- def extend_string_escaped; end
-
- # source://parser//lib/parser/lexer-strings.rb#5287
- def extend_string_for_token_range(current_literal, string); end
-
- # source://parser//lib/parser/lexer-strings.rb#5279
- def extend_string_slice_end(lookahead); end
-
- # source://parser//lib/parser/lexer-strings.rb#5124
- def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-strings.rb#5347
- def read_post_meta_or_ctrl_char(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5379
- def slash_c_char; end
-
- # source://parser//lib/parser/lexer-strings.rb#5383
- def slash_m_char; end
-
- # source://parser//lib/parser/lexer-strings.rb#5120
- def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end
-
- # source://parser//lib/parser/lexer-strings.rb#5295
- def unescape_char(p); end
-
- # source://parser//lib/parser/lexer-strings.rb#5307
- def unicode_points(p); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/lexer-strings.rb#5116
- def version?(*versions); end
-
- class << self
- # Returns the value of attribute lex_en_character.
- #
- # source://parser//lib/parser/lexer-strings.rb#3275
- def lex_en_character; end
-
- # Sets the attribute lex_en_character
- #
- # @param value the value to set the attribute lex_en_character to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3275
- def lex_en_character=(_arg0); end
-
- # Returns the value of attribute lex_en_interp_backslash_delimited.
- #
- # source://parser//lib/parser/lexer-strings.rb#3255
- def lex_en_interp_backslash_delimited; end
-
- # Sets the attribute lex_en_interp_backslash_delimited
- #
- # @param value the value to set the attribute lex_en_interp_backslash_delimited to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3255
- def lex_en_interp_backslash_delimited=(_arg0); end
-
- # Returns the value of attribute lex_en_interp_backslash_delimited_words.
- #
- # source://parser//lib/parser/lexer-strings.rb#3263
- def lex_en_interp_backslash_delimited_words; end
-
- # Sets the attribute lex_en_interp_backslash_delimited_words
- #
- # @param value the value to set the attribute lex_en_interp_backslash_delimited_words to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3263
- def lex_en_interp_backslash_delimited_words=(_arg0); end
-
- # Returns the value of attribute lex_en_interp_string.
- #
- # source://parser//lib/parser/lexer-strings.rb#3243
- def lex_en_interp_string; end
-
- # Sets the attribute lex_en_interp_string
- #
- # @param value the value to set the attribute lex_en_interp_string to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3243
- def lex_en_interp_string=(_arg0); end
-
- # Returns the value of attribute lex_en_interp_words.
- #
- # source://parser//lib/parser/lexer-strings.rb#3239
- def lex_en_interp_words; end
-
- # Sets the attribute lex_en_interp_words
- #
- # @param value the value to set the attribute lex_en_interp_words to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3239
- def lex_en_interp_words=(_arg0); end
-
- # Returns the value of attribute lex_en_plain_backslash_delimited.
- #
- # source://parser//lib/parser/lexer-strings.rb#3259
- def lex_en_plain_backslash_delimited; end
-
- # Sets the attribute lex_en_plain_backslash_delimited
- #
- # @param value the value to set the attribute lex_en_plain_backslash_delimited to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3259
- def lex_en_plain_backslash_delimited=(_arg0); end
-
- # Returns the value of attribute lex_en_plain_backslash_delimited_words.
- #
- # source://parser//lib/parser/lexer-strings.rb#3267
- def lex_en_plain_backslash_delimited_words; end
-
- # Sets the attribute lex_en_plain_backslash_delimited_words
- #
- # @param value the value to set the attribute lex_en_plain_backslash_delimited_words to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3267
- def lex_en_plain_backslash_delimited_words=(_arg0); end
-
- # Returns the value of attribute lex_en_plain_string.
- #
- # source://parser//lib/parser/lexer-strings.rb#3251
- def lex_en_plain_string; end
-
- # Sets the attribute lex_en_plain_string
- #
- # @param value the value to set the attribute lex_en_plain_string to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3251
- def lex_en_plain_string=(_arg0); end
-
- # Returns the value of attribute lex_en_plain_words.
- #
- # source://parser//lib/parser/lexer-strings.rb#3247
- def lex_en_plain_words; end
-
- # Sets the attribute lex_en_plain_words
- #
- # @param value the value to set the attribute lex_en_plain_words to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3247
- def lex_en_plain_words=(_arg0); end
-
- # Returns the value of attribute lex_en_regexp_modifiers.
- #
- # source://parser//lib/parser/lexer-strings.rb#3271
- def lex_en_regexp_modifiers; end
-
- # Sets the attribute lex_en_regexp_modifiers
- #
- # @param value the value to set the attribute lex_en_regexp_modifiers to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3271
- def lex_en_regexp_modifiers=(_arg0); end
-
- # Returns the value of attribute lex_en_unknown.
- #
- # source://parser//lib/parser/lexer-strings.rb#3279
- def lex_en_unknown; end
-
- # Sets the attribute lex_en_unknown
- #
- # @param value the value to set the attribute lex_en_unknown to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3279
- def lex_en_unknown=(_arg0); end
-
- # Returns the value of attribute lex_error.
- #
- # source://parser//lib/parser/lexer-strings.rb#3234
- def lex_error; end
-
- # Sets the attribute lex_error
- #
- # @param value the value to set the attribute lex_error to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3234
- def lex_error=(_arg0); end
-
- # Returns the value of attribute lex_start.
- #
- # source://parser//lib/parser/lexer-strings.rb#3230
- def lex_start; end
-
- # Sets the attribute lex_start
- #
- # @param value the value to set the attribute lex_start to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3230
- def lex_start=(_arg0); end
-
- private
-
- # Returns the value of attribute _lex_actions.
- #
- # source://parser//lib/parser/lexer-strings.rb#11
- def _lex_actions; end
-
- # Sets the attribute _lex_actions
- #
- # @param value the value to set the attribute _lex_actions to.
- #
- # source://parser//lib/parser/lexer-strings.rb#11
- def _lex_actions=(_arg0); end
-
- # Returns the value of attribute _lex_eof_trans.
- #
- # source://parser//lib/parser/lexer-strings.rb#3184
- def _lex_eof_trans; end
-
- # Sets the attribute _lex_eof_trans
- #
- # @param value the value to set the attribute _lex_eof_trans to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3184
- def _lex_eof_trans=(_arg0); end
-
- # Returns the value of attribute _lex_from_state_actions.
- #
- # source://parser//lib/parser/lexer-strings.rb#3138
- def _lex_from_state_actions; end
-
- # Sets the attribute _lex_from_state_actions
- #
- # @param value the value to set the attribute _lex_from_state_actions to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3138
- def _lex_from_state_actions=(_arg0); end
-
- # Returns the value of attribute _lex_index_offsets.
- #
- # source://parser//lib/parser/lexer-strings.rb#244
- def _lex_index_offsets; end
-
- # Sets the attribute _lex_index_offsets
- #
- # @param value the value to set the attribute _lex_index_offsets to.
- #
- # source://parser//lib/parser/lexer-strings.rb#244
- def _lex_index_offsets=(_arg0); end
-
- # Returns the value of attribute _lex_indicies.
- #
- # source://parser//lib/parser/lexer-strings.rb#290
- def _lex_indicies; end
-
- # Sets the attribute _lex_indicies
- #
- # @param value the value to set the attribute _lex_indicies to.
- #
- # source://parser//lib/parser/lexer-strings.rb#290
- def _lex_indicies=(_arg0); end
-
- # Returns the value of attribute _lex_key_spans.
- #
- # source://parser//lib/parser/lexer-strings.rb#198
- def _lex_key_spans; end
-
- # Sets the attribute _lex_key_spans
- #
- # @param value the value to set the attribute _lex_key_spans to.
- #
- # source://parser//lib/parser/lexer-strings.rb#198
- def _lex_key_spans=(_arg0); end
-
- # Returns the value of attribute _lex_to_state_actions.
- #
- # source://parser//lib/parser/lexer-strings.rb#3092
- def _lex_to_state_actions; end
-
- # Sets the attribute _lex_to_state_actions
- #
- # @param value the value to set the attribute _lex_to_state_actions to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3092
- def _lex_to_state_actions=(_arg0); end
-
- # Returns the value of attribute _lex_trans_actions.
- #
- # source://parser//lib/parser/lexer-strings.rb#3029
- def _lex_trans_actions; end
-
- # Sets the attribute _lex_trans_actions
- #
- # @param value the value to set the attribute _lex_trans_actions to.
- #
- # source://parser//lib/parser/lexer-strings.rb#3029
- def _lex_trans_actions=(_arg0); end
-
- # Returns the value of attribute _lex_trans_keys.
- #
- # source://parser//lib/parser/lexer-strings.rb#76
- def _lex_trans_keys; end
-
- # Sets the attribute _lex_trans_keys
- #
- # @param value the value to set the attribute _lex_trans_keys to.
- #
- # source://parser//lib/parser/lexer-strings.rb#76
- def _lex_trans_keys=(_arg0); end
-
- # Returns the value of attribute _lex_trans_targs.
- #
- # source://parser//lib/parser/lexer-strings.rb#2966
- def _lex_trans_targs; end
-
- # Sets the attribute _lex_trans_targs
- #
- # @param value the value to set the attribute _lex_trans_targs to.
- #
- # source://parser//lib/parser/lexer-strings.rb#2966
- def _lex_trans_targs=(_arg0); end
- end
-end
-
-# %
-#
-# source://parser//lib/parser/lexer-strings.rb#3287
-Parser::LexerStrings::ESCAPES = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-strings.rb#5414
-Parser::LexerStrings::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-strings.rb#3332
-Parser::LexerStrings::LEX_STATES = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/lexer-strings.rb#3293
-Parser::LexerStrings::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp)
-
-# Diagnostic messages (errors, warnings and notices) that can be generated.
-#
-# @api public
-# @see Diagnostic
-#
-# source://parser//lib/parser/messages.rb#11
-Parser::MESSAGES = T.let(T.unsafe(nil), Hash)
-
-# Holds p->max_numparam from parse.y
-#
-# @api private
-#
-# source://parser//lib/parser/max_numparam_stack.rb#8
-class Parser::MaxNumparamStack
- # @api private
- # @return [MaxNumparamStack] a new instance of MaxNumparamStack
- #
- # source://parser//lib/parser/max_numparam_stack.rb#13
- def initialize; end
-
- # @api private
- # @return [Boolean]
- #
- # source://parser//lib/parser/max_numparam_stack.rb#17
- def empty?; end
-
- # @api private
- # @return [Boolean]
- #
- # source://parser//lib/parser/max_numparam_stack.rb#29
- def has_numparams?; end
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#21
- def has_ordinary_params!; end
-
- # @api private
- # @return [Boolean]
- #
- # source://parser//lib/parser/max_numparam_stack.rb#25
- def has_ordinary_params?; end
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#45
- def pop; end
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#41
- def push(static:); end
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#33
- def register(numparam); end
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#9
- def stack; end
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#37
- def top; end
-
- private
-
- # @api private
- #
- # source://parser//lib/parser/max_numparam_stack.rb#51
- def set(value); end
-end
-
-# @api private
-#
-# source://parser//lib/parser/max_numparam_stack.rb#11
-Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer)
-
-# @api private
-#
-# source://parser//lib/parser/messages.rb#107
-module Parser::Messages
- class << self
- # Formats the message, returns a raw template if there's nothing to interpolate
- #
- # Code like `format("", {})` gives a warning, and so this method tries interpolating
- # only if `arguments` hash is not empty.
- #
- # @api private
- #
- # source://parser//lib/parser/messages.rb#114
- def compile(reason, arguments); end
- end
-end
-
-# Parser metadata
-#
-# source://parser//lib/parser/meta.rb#5
-module Parser::Meta; end
-
-# All node types that parser can produce. Not all parser versions
-# will be able to produce every possible node.
-#
-# source://parser//lib/parser/meta.rb#9
-Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set)
-
-# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead.
-# It has a backwards compatible API and uses {Parser::Source::TreeRewriter}
-# instead of {Parser::Source::Rewriter}.
-# Please check the documentation for {Parser::Source::Rewriter} for details.
-#
-# @api public
-# @deprecated Use {Parser::TreeRewriter}
-#
-# source://parser//lib/parser/rewriter.rb#22
-class Parser::Rewriter < ::Parser::AST::Processor
- extend ::Parser::Deprecation
-
- # @api public
- # @return [Rewriter] a new instance of Rewriter
- #
- # source://parser//lib/parser/rewriter.rb#98
- def initialize(*_arg0); end
-
- # Returns `true` if the specified node is an assignment node, returns false
- # otherwise.
- #
- # @api public
- # @param node [Parser::AST::Node]
- # @return [Boolean]
- #
- # source://parser//lib/parser/rewriter.rb#38
- def assignment?(node); end
-
- # Inserts new code after the given source range.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/rewriter.rb#77
- def insert_after(range, content); end
-
- # Inserts new code before the given source range.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/rewriter.rb#67
- def insert_before(range, content); end
-
- # Removes the source range.
- #
- # @api public
- # @param range [Parser::Source::Range]
- #
- # source://parser//lib/parser/rewriter.rb#47
- def remove(range); end
-
- # Replaces the code of the source range `range` with `content`.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/rewriter.rb#87
- def replace(range, content); end
-
- # Rewrites the AST/source buffer and returns a String containing the new
- # version.
- #
- # @api public
- # @param source_buffer [Parser::Source::Buffer]
- # @param ast [Parser::AST::Node]
- # @return [String]
- #
- # source://parser//lib/parser/rewriter.rb#23
- def rewrite(source_buffer, ast); end
-
- # Wraps the given source range with the given values.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/rewriter.rb#57
- def wrap(range, before, after); end
-end
-
-# @api public
-#
-# source://parser//lib/parser/rewriter.rb#91
-Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
-
-# @api public
-#
-# source://parser//lib/parser.rb#30
-module Parser::Source; end
-
-# A buffer with source code. {Buffer} contains the source code itself,
-# associated location information (name and first line), and takes care
-# of encoding.
-#
-# A source buffer is immutable once populated.
-#
-# @api public
-#
-# source://parser//lib/parser/source/buffer.rb#25
-class Parser::Source::Buffer
- # @api public
- # @return [Buffer] a new instance of Buffer
- #
- # source://parser//lib/parser/source/buffer.rb#105
- def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
-
- # Convert a character index into the source to a column number.
- #
- # @api private
- # @param position [Integer]
- # @return [Integer] column
- #
- # source://parser//lib/parser/source/buffer.rb#242
- def column_for_position(position); end
-
- # Convert a character index into the source to a `[line, column]` tuple.
- #
- # @api public
- # @param position [Integer]
- # @return [[Integer, Integer]] `[line, column]`
- #
- # source://parser//lib/parser/source/buffer.rb#217
- def decompose_position(position); end
-
- # First line of the buffer, 1 by default.
- #
- # @api public
- # @return [Integer] first line
- #
- # source://parser//lib/parser/source/buffer.rb#26
- def first_line; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#312
- def freeze; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#318
- def inspect; end
-
- # Number of last line in the buffer
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/buffer.rb#307
- def last_line; end
-
- # Convert a character index into the source to a line number.
- #
- # @api private
- # @param position [Integer]
- # @return [Integer] line
- #
- # source://parser//lib/parser/source/buffer.rb#231
- def line_for_position(position); end
-
- # Extract line `lineno` as a new `Range`, taking `first_line` into account.
- #
- # @api public
- # @param lineno [Integer]
- # @raise [IndexError] if `lineno` is out of bounds
- # @return [Range]
- #
- # source://parser//lib/parser/source/buffer.rb#284
- def line_range(lineno); end
-
- # Buffer name. If the buffer was created from a file, the name corresponds
- # to relative path to the file.
- #
- # @api public
- # @return [String] buffer name
- #
- # source://parser//lib/parser/source/buffer.rb#26
- def name; end
-
- # Populate this buffer from a string without encoding autodetection.
- #
- # @api public
- # @param input [String]
- # @raise [ArgumentError] if already populated
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#180
- def raw_source=(input); end
-
- # Populate this buffer from correspondingly named file.
- #
- # @api public
- # @example
- # Parser::Source::Buffer.new('foo/bar.rb').read
- # @raise [ArgumentError] if already populated
- # @return [Buffer] self
- #
- # source://parser//lib/parser/source/buffer.rb#131
- def read; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#194
- def slice(start, length = T.unsafe(nil)); end
-
- # Source code contained in this buffer.
- #
- # @api public
- # @raise [RuntimeError] if buffer is not populated yet
- # @return [String] source code
- #
- # source://parser//lib/parser/source/buffer.rb#145
- def source; end
-
- # Populate this buffer from a string with encoding autodetection.
- # `input` is mutated if not frozen.
- #
- # @api public
- # @param input [String]
- # @raise [ArgumentError] if already populated
- # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#162
- def source=(input); end
-
- # Extract line `lineno` from source, taking `first_line` into account.
- #
- # @api public
- # @param lineno [Integer]
- # @raise [IndexError] if `lineno` is out of bounds
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#273
- def source_line(lineno); end
-
- # Return an `Array` of source code lines.
- #
- # @api public
- # @return [Array]
- #
- # source://parser//lib/parser/source/buffer.rb#252
- def source_lines; end
-
- # @api public
- # @return [Range] A range covering the whole source
- #
- # source://parser//lib/parser/source/buffer.rb#298
- def source_range; end
-
- private
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#348
- def bsearch(line_begins, position); end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#325
- def line_begins; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#339
- def line_index_for_position(position); end
-
- class << self
- # Try to recognize encoding of `string` as Ruby would, i.e. by looking for
- # magic encoding comment or UTF-8 BOM. `string` can be in any encoding.
- #
- # @api public
- # @param string [String]
- # @return [String, nil] encoding name, if recognized
- #
- # source://parser//lib/parser/source/buffer.rb#51
- def recognize_encoding(string); end
-
- # Recognize encoding of `input` and process it so it could be lexed.
- #
- # * If `input` does not contain BOM or magic encoding comment, it is
- # kept in the original encoding.
- # * If the detected encoding is binary, `input` is kept in binary.
- # * Otherwise, `input` is re-encoded into UTF-8 and returned as a
- # new string.
- #
- # This method mutates the encoding of `input`, but not its content.
- #
- # @api public
- # @param input [String]
- # @raise [EncodingError]
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#90
- def reencode_string(input); end
- end
-end
-
-# @api private
-#
-# source://parser//lib/parser/source/buffer.rb#31
-Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp)
-
-# A comment in the source code.
-#
-# @api public
-#
-# source://parser//lib/parser/source/comment.rb#17
-class Parser::Source::Comment
- # @api public
- # @param range [Parser::Source::Range]
- # @return [Comment] a new instance of Comment
- #
- # source://parser//lib/parser/source/comment.rb#67
- def initialize(range); end
-
- # Compares comments. Two comments are equal if they
- # correspond to the same source range.
- #
- # @api public
- # @param other [Object]
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/comment.rb#120
- def ==(other); end
-
- # @api public
- # @return [Boolean] true if this is a block comment.
- # @see #type
- #
- # source://parser//lib/parser/source/comment.rb#109
- def document?; end
-
- # @api public
- # @return [Boolean] true if this is an inline comment.
- # @see #type
- #
- # source://parser//lib/parser/source/comment.rb#101
- def inline?; end
-
- # @api public
- # @return [String] a human-readable representation of this comment
- #
- # source://parser//lib/parser/source/comment.rb#128
- def inspect; end
-
- # @api public
- # @return [Parser::Source::Range]
- #
- # source://parser//lib/parser/source/comment.rb#20
- def loc; end
-
- # @api public
- # @return [Parser::Source::Range]
- #
- # source://parser//lib/parser/source/comment.rb#20
- def location; end
-
- # @api public
- # @return [String]
- #
- # source://parser//lib/parser/source/comment.rb#18
- def text; end
-
- # Type of this comment.
- #
- # * Inline comments correspond to `:inline`:
- #
- # # whatever
- #
- # * Block comments correspond to `:document`:
- #
- # =begin
- # hi i am a document
- # =end
- #
- # @api public
- # @return [Symbol]
- #
- # source://parser//lib/parser/source/comment.rb#89
- def type; end
-
- class << self
- # Associate `comments` with `ast` nodes by their corresponding node.
- #
- # @api public
- # @deprecated Use {associate_locations}.
- # @param ast [Parser::AST::Node]
- # @param comments [Array]
- # @return [Hash>]
- # @see Parser::Source::Comment::Associator#associate
- #
- # source://parser//lib/parser/source/comment.rb#32
- def associate(ast, comments); end
-
- # Associate `comments` with `ast` nodes using identity.
- #
- # @api public
- # @param ast [Parser::AST::Node]
- # @param comments [Array]
- # @return [Hash>]
- # @see Parser::Source::Comment::Associator#associate_by_identity
- #
- # source://parser//lib/parser/source/comment.rb#59
- def associate_by_identity(ast, comments); end
-
- # Associate `comments` with `ast` nodes by their location in the
- # source.
- #
- # @api public
- # @param ast [Parser::AST::Node]
- # @param comments [Array]
- # @return [Hash>]
- # @see Parser::Source::Comment::Associator#associate_locations
- #
- # source://parser//lib/parser/source/comment.rb#46
- def associate_locations(ast, comments); end
- end
-end
-
-# source://parser//lib/parser/source/comment/associator.rb#45
-class Parser::Source::Comment::Associator
- # source://parser//lib/parser/source/comment/associator.rb#51
- def initialize(ast, comments); end
-
- # source://parser//lib/parser/source/comment/associator.rb#92
- def associate; end
-
- # source://parser//lib/parser/source/comment/associator.rb#115
- def associate_by_identity; end
-
- # source://parser//lib/parser/source/comment/associator.rb#103
- def associate_locations; end
-
- # source://parser//lib/parser/source/comment/associator.rb#46
- def skip_directives; end
-
- # source://parser//lib/parser/source/comment/associator.rb#46
- def skip_directives=(_arg0); end
-
- private
-
- # source://parser//lib/parser/source/comment/associator.rb#182
- def advance_comment; end
-
- # source://parser//lib/parser/source/comment/associator.rb#214
- def advance_through_directives; end
-
- # source://parser//lib/parser/source/comment/associator.rb#206
- def associate_and_advance_comment(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#123
- def children_in_source_order(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#187
- def current_comment_before?(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#194
- def current_comment_before_end?(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#201
- def current_comment_decorates?(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#135
- def do_associate; end
-
- # source://parser//lib/parser/source/comment/associator.rb#166
- def process_leading_comments(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#173
- def process_trailing_comments(node); end
-
- # source://parser//lib/parser/source/comment/associator.rb#148
- def visit(node); end
-end
-
-# source://parser//lib/parser/source/comment/associator.rb#212
-Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp)
-
-# source://parser//lib/parser/source/comment/associator.rb#122
-Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set)
-
-# {Map} relates AST nodes to the source code they were parsed from.
-# More specifically, a {Map} or its subclass contains a set of ranges:
-#
-# * `expression`: smallest range which includes all source corresponding
-# to the node and all `expression` ranges of its children.
-# * other ranges (`begin`, `end`, `operator`, ...): node-specific ranges
-# pointing to various interesting tokens corresponding to the node.
-#
-# Note that the {Map::Heredoc} map is the only one whose `expression` does
-# not include other ranges. It only covers the heredoc marker (`< 2]').children[0].loc
-# # => >
-#
-# The {file:doc/AST_FORMAT.md} document describes how ranges associated to source
-# code tokens. For example, the entry
-#
-# (array (int 1) (int 2))
-#
-# "[1, 2]"
-# ^ begin
-# ^ end
-# ~~~~~~ expression
-#
-# means that if `node` is an {Parser::AST::Node} `(array (int 1) (int 2))`,
-# then `node.loc` responds to `begin`, `end` and `expression`, and
-# `node.loc.begin` returns a range pointing at the opening bracket, and so on.
-#
-# If you want to write code polymorphic by the source map (i.e. accepting
-# several subclasses of {Map}), use `respond_to?` instead of `is_a?` to
-# check whether the map features the range you need. Concrete {Map}
-# subclasses may not be preserved between versions, but their interfaces
-# will be kept compatible.
-#
-# You can visualize the source maps with `ruby-parse -E` command-line tool.
-#
-# @api public
-# @example
-# require 'parser/current'
-#
-# p Parser::CurrentRuby.parse('[1, 2]').loc
-# # => #,
-# # @begin=#,
-# # @expression=#>
-#
-# source://parser//lib/parser/source/map.rb#70
-class Parser::Source::Map
- # @api public
- # @param expression [Range]
- # @return [Map] a new instance of Map
- #
- # source://parser//lib/parser/source/map.rb#76
- def initialize(expression); end
-
- # Compares source maps.
- #
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/map.rb#140
- def ==(other); end
-
- # A shortcut for `self.expression.column`.
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/map.rb#109
- def column; end
-
- # @api public
- # @return [Range]
- #
- # source://parser//lib/parser/source/map.rb#72
- def expression; end
-
- # A shortcut for `self.expression.line`.
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/map.rb#99
- def first_line; end
-
- # A shortcut for `self.expression.last_column`.
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/map.rb#125
- def last_column; end
-
- # A shortcut for `self.expression.last_line`.
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/map.rb#117
- def last_line; end
-
- # A shortcut for `self.expression.line`.
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/map.rb#99
- def line; end
-
- # The node that is described by this map. Nodes and maps have 1:1 correspondence.
- #
- # @api public
- # @return [Parser::AST::Node]
- #
- # source://parser//lib/parser/source/map.rb#71
- def node; end
-
- # @api private
- #
- # source://parser//lib/parser/source/map.rb#89
- def node=(node); end
-
- # Converts this source map to a hash with keys corresponding to
- # ranges. For example, if called on an instance of {Collection},
- # which adds the `begin` and `end` ranges, the resulting hash
- # will contain keys `:expression`, `:begin` and `:end`.
- #
- # @api public
- # @example
- # require 'parser/current'
- #
- # p Parser::CurrentRuby.parse('[1, 2]').loc.to_hash
- # # => {
- # # :begin => #,
- # # :end => #,
- # # :expression => #
- # # }
- # @return [Hash]
- #
- # source://parser//lib/parser/source/map.rb#166
- def to_hash; end
-
- # @api private
- #
- # source://parser//lib/parser/source/map.rb#132
- def with_expression(expression_l); end
-
- protected
-
- # @api public
- #
- # source://parser//lib/parser/source/map.rb#180
- def update_expression(expression_l); end
-
- # @api public
- #
- # source://parser//lib/parser/source/map.rb#176
- def with(&block); end
-
- private
-
- # @api private
- #
- # source://parser//lib/parser/source/map.rb#82
- def initialize_copy(other); end
-end
-
-# source://parser//lib/parser/source/map/collection.rb#6
-class Parser::Source::Map::Collection < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/collection.rb#10
- def initialize(begin_l, end_l, expression_l); end
-
- # source://parser//lib/parser/source/map/collection.rb#7
- def begin; end
-
- # source://parser//lib/parser/source/map/collection.rb#8
- def end; end
-end
-
-# source://parser//lib/parser/source/map/condition.rb#6
-class Parser::Source::Map::Condition < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/condition.rb#12
- def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end
-
- # source://parser//lib/parser/source/map/condition.rb#8
- def begin; end
-
- # source://parser//lib/parser/source/map/condition.rb#9
- def else; end
-
- # source://parser//lib/parser/source/map/condition.rb#10
- def end; end
-
- # source://parser//lib/parser/source/map/condition.rb#7
- def keyword; end
-end
-
-# source://parser//lib/parser/source/map/constant.rb#6
-class Parser::Source::Map::Constant < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/constant.rb#11
- def initialize(double_colon, name, expression); end
-
- # source://parser//lib/parser/source/map/constant.rb#7
- def double_colon; end
-
- # source://parser//lib/parser/source/map/constant.rb#8
- def name; end
-
- # source://parser//lib/parser/source/map/constant.rb#9
- def operator; end
-
- # source://parser//lib/parser/source/map/constant.rb#20
- def with_operator(operator_l); end
-
- protected
-
- # source://parser//lib/parser/source/map/constant.rb#26
- def update_operator(operator_l); end
-end
-
-# source://parser//lib/parser/source/map/definition.rb#6
-class Parser::Source::Map::Definition < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/definition.rb#12
- def initialize(keyword_l, operator_l, name_l, end_l); end
-
- # source://parser//lib/parser/source/map/definition.rb#10
- def end; end
-
- # source://parser//lib/parser/source/map/definition.rb#7
- def keyword; end
-
- # source://parser//lib/parser/source/map/definition.rb#9
- def name; end
-
- # source://parser//lib/parser/source/map/definition.rb#8
- def operator; end
-end
-
-# source://parser//lib/parser/source/map/for.rb#6
-class Parser::Source::Map::For < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/for.rb#10
- def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end
-
- # source://parser//lib/parser/source/map/for.rb#8
- def begin; end
-
- # source://parser//lib/parser/source/map/for.rb#8
- def end; end
-
- # source://parser//lib/parser/source/map/for.rb#7
- def in; end
-
- # source://parser//lib/parser/source/map/for.rb#7
- def keyword; end
-end
-
-# source://parser//lib/parser/source/map/heredoc.rb#6
-class Parser::Source::Map::Heredoc < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/heredoc.rb#10
- def initialize(begin_l, body_l, end_l); end
-
- # source://parser//lib/parser/source/map/heredoc.rb#7
- def heredoc_body; end
-
- # source://parser//lib/parser/source/map/heredoc.rb#8
- def heredoc_end; end
-end
-
-# source://parser//lib/parser/source/map/index.rb#6
-class Parser::Source::Map::Index < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/index.rb#11
- def initialize(begin_l, end_l, expression_l); end
-
- # source://parser//lib/parser/source/map/index.rb#7
- def begin; end
-
- # source://parser//lib/parser/source/map/index.rb#8
- def end; end
-
- # source://parser//lib/parser/source/map/index.rb#9
- def operator; end
-
- # source://parser//lib/parser/source/map/index.rb#21
- def with_operator(operator_l); end
-
- protected
-
- # source://parser//lib/parser/source/map/index.rb#27
- def update_operator(operator_l); end
-end
-
-# source://parser//lib/parser/source/map/keyword.rb#6
-class Parser::Source::Map::Keyword < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/keyword.rb#11
- def initialize(keyword_l, begin_l, end_l, expression_l); end
-
- # source://parser//lib/parser/source/map/keyword.rb#8
- def begin; end
-
- # source://parser//lib/parser/source/map/keyword.rb#9
- def end; end
-
- # source://parser//lib/parser/source/map/keyword.rb#7
- def keyword; end
-end
-
-# source://parser//lib/parser/source/map/method_definition.rb#6
-class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/method_definition.rb#13
- def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end
-
- # source://parser//lib/parser/source/map/method_definition.rb#11
- def assignment; end
-
- # source://parser//lib/parser/source/map/method_definition.rb#10
- def end; end
-
- # source://parser//lib/parser/source/map/method_definition.rb#7
- def keyword; end
-
- # source://parser//lib/parser/source/map/method_definition.rb#9
- def name; end
-
- # source://parser//lib/parser/source/map/method_definition.rb#8
- def operator; end
-end
-
-# source://parser//lib/parser/source/map/objc_kwarg.rb#6
-class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/objc_kwarg.rb#11
- def initialize(keyword_l, operator_l, argument_l, expression_l); end
-
- # source://parser//lib/parser/source/map/objc_kwarg.rb#9
- def argument; end
-
- # source://parser//lib/parser/source/map/objc_kwarg.rb#7
- def keyword; end
-
- # source://parser//lib/parser/source/map/objc_kwarg.rb#8
- def operator; end
-end
-
-# source://parser//lib/parser/source/map/operator.rb#6
-class Parser::Source::Map::Operator < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/operator.rb#9
- def initialize(operator, expression); end
-
- # source://parser//lib/parser/source/map/operator.rb#7
- def operator; end
-end
-
-# source://parser//lib/parser/source/map/rescue_body.rb#6
-class Parser::Source::Map::RescueBody < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/rescue_body.rb#11
- def initialize(keyword_l, assoc_l, begin_l, expression_l); end
-
- # source://parser//lib/parser/source/map/rescue_body.rb#8
- def assoc; end
-
- # source://parser//lib/parser/source/map/rescue_body.rb#9
- def begin; end
-
- # source://parser//lib/parser/source/map/rescue_body.rb#7
- def keyword; end
-end
-
-# source://parser//lib/parser/source/map/send.rb#6
-class Parser::Source::Map::Send < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/send.rb#13
- def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end
-
- # source://parser//lib/parser/source/map/send.rb#10
- def begin; end
-
- # source://parser//lib/parser/source/map/send.rb#7
- def dot; end
-
- # source://parser//lib/parser/source/map/send.rb#11
- def end; end
-
- # source://parser//lib/parser/source/map/send.rb#9
- def operator; end
-
- # source://parser//lib/parser/source/map/send.rb#8
- def selector; end
-
- # source://parser//lib/parser/source/map/send.rb#24
- def with_operator(operator_l); end
-
- protected
-
- # source://parser//lib/parser/source/map/send.rb#30
- def update_operator(operator_l); end
-end
-
-# source://parser//lib/parser/source/map/ternary.rb#6
-class Parser::Source::Map::Ternary < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/ternary.rb#10
- def initialize(question_l, colon_l, expression_l); end
-
- # source://parser//lib/parser/source/map/ternary.rb#8
- def colon; end
-
- # source://parser//lib/parser/source/map/ternary.rb#7
- def question; end
-end
-
-# source://parser//lib/parser/source/map/variable.rb#6
-class Parser::Source::Map::Variable < ::Parser::Source::Map
- # source://parser//lib/parser/source/map/variable.rb#10
- def initialize(name_l, expression_l = T.unsafe(nil)); end
-
- # source://parser//lib/parser/source/map/variable.rb#7
- def name; end
-
- # source://parser//lib/parser/source/map/variable.rb#8
- def operator; end
-
- # source://parser//lib/parser/source/map/variable.rb#19
- def with_operator(operator_l); end
-
- protected
-
- # source://parser//lib/parser/source/map/variable.rb#25
- def update_operator(operator_l); end
-end
-
-# A range of characters in a particular source buffer.
-#
-# The range is always exclusive, i.e. a range with `begin_pos` of 3 and
-# `end_pos` of 5 will contain the following characters:
-#
-# example
-# ^^
-#
-# @api public
-#
-# source://parser//lib/parser/source/range.rb#26
-class Parser::Source::Range
- include ::Comparable
-
- # @api public
- # @param source_buffer [Buffer]
- # @param begin_pos [Integer]
- # @param end_pos [Integer]
- # @return [Range] a new instance of Range
- #
- # source://parser//lib/parser/source/range.rb#37
- def initialize(source_buffer, begin_pos, end_pos); end
-
- # Compare ranges, first by begin_pos, then by end_pos.
- #
- # @api public
- #
- # source://parser//lib/parser/source/range.rb#301
- def <=>(other); end
-
- # by the given amount(s)
- #
- # @api public
- # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos
- # @return [Range] the same range as this range but with the given end point(s) adjusted
- #
- # source://parser//lib/parser/source/range.rb#193
- def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
-
- # @api public
- # @return [Range] a zero-length range located just before the beginning
- # of this range.
- #
- # source://parser//lib/parser/source/range.rb#55
- def begin; end
-
- # @api public
- # @return [Integer] index of the first character in the range
- #
- # source://parser//lib/parser/source/range.rb#30
- def begin_pos; end
-
- # @api public
- # @return [Integer] zero-based column number of the beginning of this range.
- #
- # source://parser//lib/parser/source/range.rb#92
- def column; end
-
- # @api public
- # @raise RangeError
- # @return [::Range] a range of columns spanned by this range.
- #
- # source://parser//lib/parser/source/range.rb#114
- def column_range; end
-
- # Return `other.contains?(self)`
- #
- # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing?
- #
- # @api public
- # @param other [Range]
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/range.rb#274
- def contained?(other); end
-
- # Returns true iff this range contains (strictly) `other`.
- #
- # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing?
- #
- # @api public
- # @param other [Range]
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/range.rb#262
- def contains?(other); end
-
- # Returns true iff both ranges intersect and also have different elements from one another.
- #
- # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing?
- #
- # @api public
- # @param other [Range]
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/range.rb#286
- def crossing?(other); end
-
- # Return `true` iff this range and `other` are disjoint.
- #
- # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing?
- #
- # @api public
- # @param other [Range]
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/range.rb#236
- def disjoint?(other); end
-
- # Checks if a range is empty; if it contains no characters
- #
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/range.rb#294
- def empty?; end
-
- # @api public
- # @return [Range] a zero-length range located just after the end
- # of this range.
- #
- # source://parser//lib/parser/source/range.rb#63
- def end; end
-
- # @api public
- # @return [Integer] index of the character after the last character in the range
- #
- # source://parser//lib/parser/source/range.rb#30
- def end_pos; end
-
- # @api public
- def eql?(_arg0); end
-
- # Line number of the beginning of this range. By default, the first line
- # of a buffer is 1; as such, line numbers are most commonly one-based.
- #
- # @api public
- # @return [Integer] line number of the beginning of this range.
- # @see Buffer
- #
- # source://parser//lib/parser/source/range.rb#83
- def first_line; end
-
- # Support for Ranges be used in as Hash indices and in Sets.
- #
- # @api public
- #
- # source://parser//lib/parser/source/range.rb#313
- def hash; end
-
- # @api public
- # @return [String] a human-readable representation of this range.
- #
- # source://parser//lib/parser/source/range.rb#320
- def inspect; end
-
- # @api public
- # @param other [Range]
- # @return [Range] overlapping region of this range and `other`, or `nil`
- # if they do not overlap
- #
- # source://parser//lib/parser/source/range.rb#220
- def intersect(other); end
-
- # `is?` provides a concise way to compare the source corresponding to this range.
- # For example, `r.source == '(' || r.source == 'begin'` is equivalent to
- # `r.is?('(', 'begin')`.
- #
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/range.rb#141
- def is?(*what); end
-
- # @api public
- # @param other [Range]
- # @return [Range] smallest possible range spanning both this range and `other`.
- #
- # source://parser//lib/parser/source/range.rb#209
- def join(other); end
-
- # @api public
- # @return [Integer] zero-based column number of the end of this range.
- #
- # source://parser//lib/parser/source/range.rb#106
- def last_column; end
-
- # @api public
- # @return [Integer] line number of the end of this range.
- #
- # source://parser//lib/parser/source/range.rb#99
- def last_line; end
-
- # @api public
- # @return [Integer] amount of characters included in this range.
- #
- # source://parser//lib/parser/source/range.rb#70
- def length; end
-
- # Line number of the beginning of this range. By default, the first line
- # of a buffer is 1; as such, line numbers are most commonly one-based.
- #
- # @api public
- # @return [Integer] line number of the beginning of this range.
- # @see Buffer
- #
- # source://parser//lib/parser/source/range.rb#83
- def line; end
-
- # Return `true` iff this range is not disjoint from `other`.
- #
- # @api public
- # @param other [Range]
- # @return [Boolean] `true` if this range and `other` overlap
- #
- # source://parser//lib/parser/source/range.rb#250
- def overlaps?(other); end
-
- # @api public
- # @param new_size [Integer]
- # @return [Range] a range beginning at the same point as this range and length `new_size`.
- #
- # source://parser//lib/parser/source/range.rb#201
- def resize(new_size); end
-
- # @api public
- # @return [Integer] amount of characters included in this range.
- #
- # source://parser//lib/parser/source/range.rb#70
- def size; end
-
- # @api public
- # @return [String] all source code covered by this range.
- #
- # source://parser//lib/parser/source/range.rb#132
- def source; end
-
- # @api public
- # @return [Parser::Source::Buffer]
- #
- # source://parser//lib/parser/source/range.rb#29
- def source_buffer; end
-
- # @api public
- # @return [String] a line of source code containing the beginning of this range.
- #
- # source://parser//lib/parser/source/range.rb#125
- def source_line; end
-
- # @api public
- # @return [Array] a set of character indexes contained in this range.
- #
- # source://parser//lib/parser/source/range.rb#148
- def to_a; end
-
- # @api public
- # @return [Range] a Ruby range with the same `begin_pos` and `end_pos`
- #
- # source://parser//lib/parser/source/range.rb#155
- def to_range; end
-
- # Composes a GNU/Clang-style string representation of the beginning of this
- # range.
- #
- # For example, for the following range in file `foo.rb`,
- #
- # def foo
- # ^^^
- #
- # `to_s` will return `foo.rb:1:5`.
- # Note that the column index is one-based.
- #
- # @api public
- # @return [String]
- #
- # source://parser//lib/parser/source/range.rb#173
- def to_s; end
-
- # to the given value(s).
- #
- # @api public
- # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos
- # @return [Range] the same range as this range but with the given end point(s) changed
- #
- # source://parser//lib/parser/source/range.rb#184
- def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
-end
-
-# {Rewriter} is deprecated. Use {TreeRewriter} instead.
-#
-# TreeRewriter has simplified semantics, and customizable policies
-# with regards to clobbering. Please read the documentation.
-#
-# Keep in mind:
-# - Rewriter was discarding the `end_pos` of the given range for `insert_before`,
-# and the `begin_pos` for `insert_after`. These are meaningful in TreeRewriter.
-# - TreeRewriter's wrap/insert_before/insert_after are multiple by default, while
-# Rewriter would raise clobbering errors if the non '_multi' version was called.
-# - The TreeRewriter policy closest to Rewriter's behavior is:
-# different_replacements: :raise,
-# swallowed_insertions: :raise,
-# crossing_deletions: :accept
-#
-# @api public
-# @deprecated Use {TreeRewriter}
-#
-# source://parser//lib/parser/source/rewriter.rb#31
-class Parser::Source::Rewriter
- extend ::Parser::Deprecation
-
- # @api public
- # @deprecated Use {TreeRewriter}
- # @param source_buffer [Source::Buffer]
- # @return [Rewriter] a new instance of Rewriter
- #
- # source://parser//lib/parser/source/rewriter.rb#39
- def initialize(source_buffer); end
-
- # @api public
- # @return [Diagnostic::Engine]
- #
- # source://parser//lib/parser/source/rewriter.rb#33
- def diagnostics; end
-
- # Inserts new code after the given source range.
- #
- # @api public
- # @deprecated Use {TreeRewriter#insert_after}
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#131
- def insert_after(range, content); end
-
- # Inserts new code after the given source range by allowing other
- # insertions at the same position.
- # Note that an insertion with latter invocation comes _after_ earlier
- # insertion at the same position in the rewritten source.
- #
- # @api public
- # @deprecated Use {TreeRewriter#insert_after}
- # @example Inserting ')]'
- # rewriter.
- # insert_after_multi(range, ')').
- # insert_after_multi(range, ']').
- # process
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#153
- def insert_after_multi(range, content); end
-
- # Inserts new code before the given source range.
- #
- # @api public
- # @deprecated Use {TreeRewriter#insert_before}
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#80
- def insert_before(range, content); end
-
- # Inserts new code before the given source range by allowing other
- # insertions at the same position.
- # Note that an insertion with latter invocation comes _before_ earlier
- # insertion at the same position in the rewritten source.
- #
- # @api public
- # @deprecated Use {TreeRewriter#insert_before}
- # @example Inserting '[('
- # rewriter.
- # insert_before_multi(range, '(').
- # insert_before_multi(range, '[').
- # process
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#117
- def insert_before_multi(range, content); end
-
- # Applies all scheduled changes to the `source_buffer` and returns
- # modified source as a new string.
- #
- # @api public
- # @deprecated Use {TreeRewriter#process}
- # @return [String]
- #
- # source://parser//lib/parser/source/rewriter.rb#178
- def process; end
-
- # Removes the source range.
- #
- # @api public
- # @deprecated Use {TreeRewriter#remove}
- # @param range [Range]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#67
- def remove(range); end
-
- # Replaces the code of the source range `range` with `content`.
- #
- # @api public
- # @deprecated Use {TreeRewriter#replace}
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#167
- def replace(range, content); end
-
- # @api public
- # @return [Source::Buffer]
- #
- # source://parser//lib/parser/source/rewriter.rb#32
- def source_buffer; end
-
- # Provides a protected block where a sequence of multiple rewrite actions
- # are handled atomically. If any of the actions failed by clobbering,
- # all the actions are rolled back.
- #
- # @api public
- # @deprecated Use {TreeRewriter#transaction}
- # @example
- # begin
- # rewriter.transaction do
- # rewriter.insert_before(range_of_something, '(')
- # rewriter.insert_after(range_of_something, ')')
- # end
- # rescue Parser::ClobberingError
- # end
- # @raise [RuntimeError] when no block is passed
- # @raise [RuntimeError] when already in a transaction
- #
- # source://parser//lib/parser/source/rewriter.rb#216
- def transaction; end
-
- # Inserts new code before and after the given source range.
- #
- # @api public
- # @deprecated Use {TreeRewriter#wrap}
- # @param range [Range]
- # @param before [String]
- # @param after [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/rewriter.rb#94
- def wrap(range, before, after); end
-
- private
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#476
- def active_clobber; end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#484
- def active_clobber=(value); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#480
- def active_insertions; end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#492
- def active_insertions=(value); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#472
- def active_queue; end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#500
- def adjacent?(range1, range2); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#351
- def adjacent_insertion_mask(range); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#366
- def adjacent_insertions?(range); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#347
- def adjacent_position_mask(range); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#377
- def adjacent_updates?(range); end
-
- # Schedule a code update. If it overlaps with another update, check
- # whether they conflict, and raise a clobbering error if they do.
- # (As a special case, zero-length ranges at the same position are
- # considered to "overlap".) Otherwise, merge them.
- #
- # Updates which are adjacent to each other, but do not overlap, are also
- # merged.
- #
- # RULES:
- #
- # - Insertion ("replacing" a zero-length range):
- # - Two insertions at the same point conflict. This is true even
- # if the earlier insertion has already been merged with an adjacent
- # update, and even if they are both inserting the same text.
- # - An insertion never conflicts with a replace or remove operation
- # on its right or left side, which does not overlap it (in other
- # words, which does not update BOTH its right and left sides).
- # - An insertion always conflicts with a remove operation which spans
- # both its sides.
- # - An insertion conflicts with a replace operation which spans both its
- # sides, unless the replacement text is longer than the replaced text
- # by the size of the insertion (or more), and the portion of
- # replacement text immediately after the insertion position is
- # identical to the inserted text.
- #
- # - Removal operations never conflict with each other.
- #
- # - Replacement operations:
- # - Take the portion of each replacement text which falls within:
- # - The other operation's replaced region
- # - The other operation's replacement text, if it extends past the
- # end of its own replaced region (in other words, if the replacement
- # text is longer than the text it replaces)
- # - If and only if the taken texts are identical for both operations,
- # they do not conflict.
- #
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#280
- def append(action); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#389
- def can_merge?(action, existing); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#355
- def clobbered_insertion?(insertion); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#343
- def clobbered_position_mask(range); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#468
- def in_transaction?; end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#410
- def merge_actions(action, existing); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#419
- def merge_actions!(action, existing); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#425
- def merge_replacements(actions); end
-
- # @api public
- # @raise [ClobberingError]
- #
- # source://parser//lib/parser/source/rewriter.rb#450
- def raise_clobber_error(action, existing); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#335
- def record_insertion(range); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#339
- def record_replace(range); end
-
- # @api public
- #
- # source://parser//lib/parser/source/rewriter.rb#445
- def replace_actions(old, updated); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/rewriter.rb#383
- def replace_compatible_with_insertion?(replace, insertion); end
-end
-
-# source://parser//lib/parser/source/rewriter/action.rb#9
-class Parser::Source::Rewriter::Action
- include ::Comparable
-
- # source://parser//lib/parser/source/rewriter/action.rb#15
- def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end
-
- # source://parser//lib/parser/source/rewriter/action.rb#24
- def <=>(other); end
-
- # source://parser//lib/parser/source/rewriter/action.rb#12
- def allow_multiple_insertions; end
-
- # source://parser//lib/parser/source/rewriter/action.rb#12
- def allow_multiple_insertions?; end
-
- # source://parser//lib/parser/source/rewriter/action.rb#12
- def order; end
-
- # source://parser//lib/parser/source/rewriter/action.rb#12
- def range; end
-
- # source://parser//lib/parser/source/rewriter/action.rb#12
- def replacement; end
-
- # source://parser//lib/parser/source/rewriter/action.rb#30
- def to_s; end
-end
-
-# @api public
-#
-# source://parser//lib/parser/source/rewriter.rb#504
-Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
-
-# {TreeRewriter} performs the heavy lifting in the source rewriting process.
-# It schedules code updates to be performed in the correct order.
-#
-# For simple cases, the resulting source will be obvious.
-#
-# Examples for more complex cases follow. Assume these examples are acting on
-# the source `'puts(:hello, :world)`. The methods #wrap, #remove, etc.
-# receive a Range as first argument; for clarity, examples below use english
-# sentences and a string of raw code instead.
-#
-# ## Overlapping ranges:
-#
-# Any two rewriting actions on overlapping ranges will fail and raise
-# a `ClobberingError`, unless they are both deletions (covered next).
-#
-# * wrap ':hello, ' with '(' and ')'
-# * wrap ', :world' with '(' and ')'
-# => CloberringError
-#
-# ## Overlapping deletions:
-#
-# * remove ':hello, '
-# * remove ', :world'
-#
-# The overlapping ranges are merged and `':hello, :world'` will be removed.
-# This policy can be changed. `:crossing_deletions` defaults to `:accept`
-# but can be set to `:warn` or `:raise`.
-#
-# ## Multiple actions at the same end points:
-#
-# Results will always be independent on the order they were given.
-# Exception: rewriting actions done on exactly the same range (covered next).
-#
-# Example:
-# * replace ', ' by ' => '
-# * wrap ':hello, :world' with '{' and '}'
-# * replace ':world' with ':everybody'
-# * wrap ':world' with '[', ']'
-#
-# The resulting string will be `'puts({:hello => [:everybody]})'`
-# and this result is independent on the order the instructions were given in.
-#
-# Note that if the two "replace" were given as a single replacement of ', :world'
-# for ' => :everybody', the result would be a `ClobberingError` because of the wrap
-# in square brackets.
-#
-# ## Multiple wraps on same range:
-# * wrap ':hello' with '(' and ')'
-# * wrap ':hello' with '[' and ']'
-#
-# The wraps are combined in order given and results would be `'puts([(:hello)], :world)'`.
-#
-# ## Multiple replacements on same range:
-# * replace ':hello' by ':hi', then
-# * replace ':hello' by ':hey'
-#
-# The replacements are made in the order given, so the latter replacement
-# supersedes the former and ':hello' will be replaced by ':hey'.
-#
-# This policy can be changed. `:different_replacements` defaults to `:accept`
-# but can be set to `:warn` or `:raise`.
-#
-# ## Swallowed insertions:
-# wrap 'world' by '__', '__'
-# replace ':hello, :world' with ':hi'
-#
-# A containing replacement will swallow the contained rewriting actions
-# and `':hello, :world'` will be replaced by `':hi'`.
-#
-# This policy can be changed for swallowed insertions. `:swallowed_insertions`
-# defaults to `:accept` but can be set to `:warn` or `:raise`
-#
-# ## Implementation
-# The updates are organized in a tree, according to the ranges they act on
-# (where children are strictly contained by their parent), hence the name.
-#
-# @api public
-#
-# source://parser//lib/parser/source/tree_rewriter.rb#91
-class Parser::Source::TreeRewriter
- extend ::Parser::Deprecation
-
- # @api public
- # @param source_buffer [Source::Buffer]
- # @return [TreeRewriter] a new instance of TreeRewriter
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#98
- def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end
-
- # Returns a representation of the rewriter as nested insertions (:wrap) and replacements.
- #
- # rewriter.as_actions # =>[ [:wrap, 1...10, '(', ')'],
- # [:wrap, 2...6, '', '!'], # aka "insert_after"
- # [:replace, 2...4, 'foo'],
- # [:replace, 5...6, ''], # aka "removal"
- # ],
- #
- # Contrary to `as_replacements`, this representation is sufficient to recreate exactly
- # the rewriter.
- #
- # @api public
- # @return [Array<(Symbol, Range, String{, String})>]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#299
- def as_nested_actions; end
-
- # Returns a representation of the rewriter as an ordered list of replacements.
- #
- # rewriter.as_replacements # => [ [1...1, '('],
- # [2...4, 'foo'],
- # [5...6, ''],
- # [6...6, '!'],
- # [10...10, ')'],
- # ]
- #
- # This representation is sufficient to recreate the result of `process` but it is
- # not sufficient to recreate completely the rewriter for further merging/actions.
- # See `as_nested_actions`
- #
- # @api public
- # @return [Array] an ordered list of pairs of range & replacement
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#281
- def as_replacements; end
-
- # @api public
- # @return [Diagnostic::Engine]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#93
- def diagnostics; end
-
- # Returns true iff no (non trivial) update has been recorded
- #
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#125
- def empty?; end
-
- # For special cases where one needs to merge a rewriter attached to a different source_buffer
- # or that needs to be offset. Policies of the receiver are used.
- #
- # @api public
- # @param rewriter [TreeRewriter] from different source_buffer
- # @param offset [Integer]
- # @raise [IndexError] if action ranges (once offset) don't fit the current buffer
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#168
- def import!(foreign_rewriter, offset: T.unsafe(nil)); end
-
- # @api public
- # @return [Boolean]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#329
- def in_transaction?; end
-
- # Shortcut for `wrap(range, nil, content)`
- #
- # @api public
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#242
- def insert_after(range, content); end
-
- # @api private
- # @deprecated Use insert_after or wrap
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#351
- def insert_after_multi(range, text); end
-
- # Shortcut for `wrap(range, content, nil)`
- #
- # @api public
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#230
- def insert_before(range, content); end
-
- # @api private
- # @deprecated Use insert_after or wrap
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#342
- def insert_before_multi(range, text); end
-
- # @api public
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#334
- def inspect; end
-
- # Returns a new rewriter that consists of the updates of the received
- # and the given argument. Policies of the receiver are used.
- #
- # @api public
- # @param with [Rewriter]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] merge of receiver and argument
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#155
- def merge(with); end
-
- # Merges the updates of argument with the receiver.
- # Policies of the receiver are used.
- # This action is atomic in that it won't change the receiver
- # unless it succeeds.
- #
- # @api public
- # @param with [Rewriter]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#139
- def merge!(with); end
-
- # Applies all scheduled changes to the `source_buffer` and returns
- # modified source as a new string.
- #
- # @api public
- # @return [String]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#252
- def process; end
-
- # Shortcut for `replace(range, '')`
- #
- # @api public
- # @param range [Range]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#217
- def remove(range); end
-
- # Replaces the code of the source range `range` with `content`.
- #
- # @api public
- # @param range [Range]
- # @param content [String]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#193
- def replace(range, content); end
-
- # @api public
- # @return [Source::Buffer]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#92
- def source_buffer; end
-
- # Provides a protected block where a sequence of multiple rewrite actions
- # are handled atomically. If any of the actions failed by clobbering,
- # all the actions are rolled back. Transactions can be nested.
- #
- # @api public
- # @raise [RuntimeError] when no block is passed
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#310
- def transaction; end
-
- # 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]
- # @raise [ClobberingError] when clobbering is detected
- # @return [Rewriter] self
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#206
- def wrap(range, insert_before, insert_after); end
-
- protected
-
- # @api public
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#365
- def action_root; end
-
- private
-
- # @api public
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#369
- def action_summary; end
-
- # @api public
- # @raise [ArgumentError]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#392
- def check_policy_validity; end
-
- # @api public
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#404
- def check_range_validity(range); end
-
- # @api public
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#397
- def combine(range, attributes); end
-
- # @api public
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#411
- def enforce_policy(event); end
-
- # @api public
- # @raise [Parser::ClobberingError]
- #
- # source://parser//lib/parser/source/tree_rewriter.rb#418
- def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end
-end
-
-# @api public
-#
-# source://parser//lib/parser/source/tree_rewriter.rb#391
-Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
-
-# source://parser//lib/parser/source/tree_rewriter/action.rb#13
-class Parser::Source::TreeRewriter::Action
- # source://parser//lib/parser/source/tree_rewriter/action.rb#16
- def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#28
- def combine(action); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#67
- def contract; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#33
- def empty?; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
- def insert_after; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
- def insert_before; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#57
- def insertion?; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#80
- def moved(source_buffer, offset); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#49
- def nested_actions; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#40
- def ordered_replacements; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
- def range; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
- def replacement; end
-
- protected
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#158
- def analyse_hierarchy(action); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#145
- def bsearch_child_index(from = T.unsafe(nil)); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#224
- def call_enforcer_for_merge(action); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#204
- def check_fusible(action, *fusible); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#94
- def children; end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#129
- def combine_children(more_children); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#102
- def do_combine(action); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#135
- def fuse_deletions(action, fusible, other_sibblings); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#215
- def merge(action); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#110
- def place_in_hierarchy(action); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#232
- def swallow(children); end
-
- # source://parser//lib/parser/source/tree_rewriter/action.rb#96
- def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end
-end
-
-# @api public
-#
-# source://parser//lib/parser/source/tree_rewriter.rb#356
-Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
-
-# @api public
-#
-# source://parser//lib/parser/source/tree_rewriter.rb#417
-Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
-
-# source://parser//lib/parser/static_environment.rb#5
-class Parser::StaticEnvironment
- # @return [StaticEnvironment] a new instance of StaticEnvironment
- #
- # source://parser//lib/parser/static_environment.rb#11
- def initialize; end
-
- # source://parser//lib/parser/static_environment.rb#40
- def declare(name); end
-
- # source://parser//lib/parser/static_environment.rb#58
- def declare_anonymous_blockarg; end
-
- # source://parser//lib/parser/static_environment.rb#74
- def declare_anonymous_kwrestarg; end
-
- # source://parser//lib/parser/static_environment.rb#66
- def declare_anonymous_restarg; end
-
- # source://parser//lib/parser/static_environment.rb#50
- def declare_forward_args; end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/static_environment.rb#46
- def declared?(name); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/static_environment.rb#62
- def declared_anonymous_blockarg?; end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/static_environment.rb#78
- def declared_anonymous_kwrestarg?; end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/static_environment.rb#70
- def declared_anonymous_restarg?; end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/static_environment.rb#54
- def declared_forward_args?; end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/static_environment.rb#82
- def empty?; end
-
- # source://parser//lib/parser/static_environment.rb#27
- def extend_dynamic; end
-
- # source://parser//lib/parser/static_environment.rb#20
- def extend_static; end
-
- # source://parser//lib/parser/static_environment.rb#15
- def reset; end
-
- # source://parser//lib/parser/static_environment.rb#34
- def unextend; end
-end
-
-# source://parser//lib/parser/static_environment.rb#7
-Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol)
-
-# source://parser//lib/parser/static_environment.rb#9
-Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol)
-
-# source://parser//lib/parser/static_environment.rb#8
-Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol)
-
-# source://parser//lib/parser/static_environment.rb#6
-Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
-
-# {Parser::SyntaxError} is raised whenever parser detects a syntax error,
-# similar to the standard SyntaxError class.
-#
-# @api public
-#
-# source://parser//lib/parser/syntax_error.rb#13
-class Parser::SyntaxError < ::StandardError
- # @api public
- # @return [SyntaxError] a new instance of SyntaxError
- #
- # source://parser//lib/parser/syntax_error.rb#16
- def initialize(diagnostic); end
-
- # @api public
- # @return [Parser::Diagnostic]
- #
- # source://parser//lib/parser/syntax_error.rb#14
- def diagnostic; end
-end
-
-# {Parser::TreeRewriter} offers a basic API that makes it easy to rewrite
-# existing ASTs. It's built on top of {Parser::AST::Processor} and
-# {Parser::Source::TreeRewriter}
-#
-# For example, assume you want to remove `do` tokens from a while statement.
-# You can do this as following:
-#
-# require 'parser/current'
-#
-# class RemoveDo < Parser::TreeRewriter
-# def on_while(node)
-# # Check if the statement starts with "do"
-# if node.location.begin.is?('do')
-# remove(node.location.begin)
-# end
-# end
-# end
-#
-# code = <<-EOF
-# while true do
-# puts 'hello'
-# end
-# EOF
-#
-# ast = Parser::CurrentRuby.parse code
-# buffer = Parser::Source::Buffer.new('(example)', source: code)
-# rewriter = RemoveDo.new
-#
-# # Rewrite the AST, returns a String with the new form.
-# puts rewriter.rewrite(buffer, ast)
-#
-# This would result in the following Ruby code:
-#
-# while true
-# puts 'hello'
-# end
-#
-# Keep in mind that {Parser::TreeRewriter} does not take care of indentation when
-# inserting/replacing code so you'll have to do this yourself.
-#
-# See also [a blog entry](http://whitequark.org/blog/2013/04/26/lets-play-with-ruby-code/)
-# describing rewriters in greater detail.
-#
-# @api public
-#
-# source://parser//lib/parser/tree_rewriter.rb#61
-class Parser::TreeRewriter < ::Parser::AST::Processor
- # Returns `true` if the specified node is an assignment node, returns false
- # otherwise.
- #
- # @api public
- # @param node [Parser::AST::Node]
- # @return [Boolean]
- #
- # source://parser//lib/parser/tree_rewriter.rb#79
- def assignment?(node); end
-
- # Inserts new code after the given source range.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/tree_rewriter.rb#118
- def insert_after(range, content); end
-
- # Inserts new code before the given source range.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/tree_rewriter.rb#108
- def insert_before(range, content); end
-
- # Removes the source range.
- #
- # @api public
- # @param range [Parser::Source::Range]
- #
- # source://parser//lib/parser/tree_rewriter.rb#88
- def remove(range); end
-
- # Replaces the code of the source range `range` with `content`.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/tree_rewriter.rb#128
- def replace(range, content); end
-
- # Rewrites the AST/source buffer and returns a String containing the new
- # 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)
- # @return [String]
- #
- # source://parser//lib/parser/tree_rewriter.rb#62
- def rewrite(source_buffer, ast, **policy); end
-
- # Wraps the given source range with the given values.
- #
- # @api public
- # @param range [Parser::Source::Range]
- # @param content [String]
- #
- # source://parser//lib/parser/tree_rewriter.rb#98
- def wrap(range, before, after); end
-end
-
-# source://parser//lib/parser/version.rb#4
-Parser::VERSION = T.let(T.unsafe(nil), String)
-
-# source://parser//lib/parser/variables_stack.rb#5
-class Parser::VariablesStack
- # @return [VariablesStack] a new instance of VariablesStack
- #
- # source://parser//lib/parser/variables_stack.rb#6
- def initialize; end
-
- # source://parser//lib/parser/variables_stack.rb#27
- def declare(name); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/variables_stack.rb#31
- def declared?(name); end
-
- # @return [Boolean]
- #
- # source://parser//lib/parser/variables_stack.rb#11
- def empty?; end
-
- # source://parser//lib/parser/variables_stack.rb#19
- def pop; end
-
- # source://parser//lib/parser/variables_stack.rb#15
- def push; end
-
- # source://parser//lib/parser/variables_stack.rb#23
- def reset; end
-end
diff --git a/sorbet/rbi/gems/pry-byebug@3.10.1.rbi b/sorbet/rbi/gems/pry-byebug@3.10.1.rbi
deleted file mode 100644
index baa002d..0000000
--- a/sorbet/rbi/gems/pry-byebug@3.10.1.rbi
+++ /dev/null
@@ -1,1150 +0,0 @@
-# typed: ignore
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `pry-byebug` gem.
-# Please instead update this file by running `bin/tapioca gem pry-byebug`.
-
-# source://pry-byebug//lib/byebug/processors/pry_processor.rb#5
-module Byebug
- extend ::Byebug::Helpers::ReflectionHelper
-
- # source://byebug/11.1.3/lib/byebug/core.rb#31
- def displays; end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#31
- def displays=(_arg0); end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#25
- def init_file; end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#25
- def init_file=(_arg0); end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#41
- def mode; end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#41
- def mode=(_arg0); end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#52
- def run_init_script; end
-
- private
-
- def add_catchpoint(_arg0); end
- def breakpoints; end
- def catchpoints; end
- def contexts; end
- def current_context; end
- def debug_load(*_arg0); end
- def lock; end
- def post_mortem=(_arg0); end
- def post_mortem?; end
- def raised_exception; end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#102
- def rc_dirs; end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#91
- def run_rc_file(rc_file); end
-
- def start; end
- def started?; end
- def stop; end
- def stoppable?; end
- def thread_context(_arg0); end
- def tracing=(_arg0); end
- def tracing?; end
- def unlock; end
- def verbose=(_arg0); end
- def verbose?; end
-
- class << self
- # source://byebug/11.1.3/lib/byebug/remote.rb#25
- def actual_control_port; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#20
- def actual_port; end
-
- def add_catchpoint(_arg0); end
-
- # source://byebug/11.1.3/lib/byebug/attacher.rb#10
- def attach; end
-
- def breakpoints; end
- def catchpoints; end
- def contexts; end
- def current_context; end
- def debug_load(*_arg0); end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#76
- def handle_post_mortem; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#32
- def interrupt; end
-
- # source://byebug/11.1.3/lib/byebug/core.rb#61
- def load_settings; end
-
- def lock; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#59
- def parse_host_and_port(host_port_spec); end
-
- def post_mortem=(_arg0); end
- def post_mortem?; end
- def raised_exception; end
-
- # source://byebug/11.1.3/lib/byebug/attacher.rb#21
- def spawn(host = T.unsafe(nil), port = T.unsafe(nil)); end
-
- def start; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#55
- def start_client(host = T.unsafe(nil), port = T.unsafe(nil)); end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#48
- def start_control(host = T.unsafe(nil), port = T.unsafe(nil)); end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#39
- def start_server(host = T.unsafe(nil), port = T.unsafe(nil)); end
-
- def started?; end
- def stop; end
- def stoppable?; end
- def thread_context(_arg0); end
- def tracing=(_arg0); end
- def tracing?; end
- def unlock; end
- def verbose=(_arg0); end
- def verbose?; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#17
- def wait_connection; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#17
- def wait_connection=(_arg0); end
-
- private
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#66
- def client; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#76
- def control; end
-
- # source://byebug/11.1.3/lib/byebug/remote.rb#70
- def server; end
- end
-end
-
-class Byebug::DebugThread < ::Thread
- class << self
- def inherited; end
- end
-end
-
-# Extends raw byebug's processor.
-#
-# source://pry-byebug//lib/byebug/processors/pry_processor.rb#9
-class Byebug::PryProcessor < ::Byebug::CommandProcessor
- # Called when a breakpoint is hit. Note that `at_line`` is called
- # inmediately after with the context's `stop_reason == :breakpoint`, so we
- # must not resume the pry instance here
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#80
- def at_breakpoint(breakpoint); end
-
- # Called when the debugger wants to stop at a regular line
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#64
- def at_line; end
-
- # Called when the debugger wants to stop right before a method return
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#71
- def at_return(_return_value); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def bold(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output(*args, **_arg1, &block); end
-
- # Set up a number of navigational commands to be performed by Byebug.
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#45
- def perform(action, options = T.unsafe(nil)); end
-
- # Returns the value of attribute pry.
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#10
- def pry; end
-
- # Sets the attribute pry
- #
- # @param value the value to set the attribute pry to.
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#10
- def pry=(_arg0); end
-
- # Wrap a Pry REPL to catch navigational commands and act on them.
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#26
- def run(&_block); end
-
- private
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#93
- def n_hits(breakpoint); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#114
- def perform_backtrace(_options); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#142
- def perform_down(options); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#130
- def perform_finish(*_arg0); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#150
- def perform_frame(options); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#120
- def perform_next(options); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#125
- def perform_step(options); end
-
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#134
- def perform_up(options); end
-
- # Resume an existing Pry REPL at the paused point.
- #
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#102
- def resume_pry; end
-
- class << self
- # source://pry-byebug//lib/byebug/processors/pry_processor.rb#16
- def start; end
- end
-end
-
-class Byebug::ThreadsTable; end
-
-# source://pry-byebug//lib/pry/byebug/breakpoints.rb#3
-class Pry
- extend ::Forwardable
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#81
- def initialize(options = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#212
- def add_sticky_local(name, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#35
- def backtrace; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#35
- def backtrace=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#32
- def binding_stack; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#32
- def binding_stack=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#145
- def complete(str); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#50
- def config; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#124
- def current_binding; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#124
- def current_context; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#33
- def custom_completions; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#33
- def custom_completions=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#255
- def eval(line, options = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#34
- def eval_string; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#34
- def eval_string=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#286
- def evaluate_ruby(code); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#394
- def exec_hook(name, *args, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#42
- def exit_value; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#173
- def inject_local(name, value, binding); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#201
- def inject_sticky_locals!; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#45
- def input_ring; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#39
- def last_dir; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#39
- def last_dir=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#41
- def last_exception; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#418
- def last_exception=(exception); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#38
- def last_file; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#38
- def last_file=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#37
- def last_result; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#37
- def last_result=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#440
- def last_result_is_exception?; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#190
- def memory_size; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#195
- def memory_size=(size); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#538
- def output; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#48
- def output_ring; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#530
- def pager; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def pager=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#522
- def pop_prompt; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#325
- def process_command(val); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#360
- def process_command_safely(val); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#101
- def prompt; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#108
- def prompt=(new_prompt); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#131
- def push_binding(object); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#118
- def push_initial_binding(target = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#506
- def push_prompt(new_prompt); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#592
- def quiet?; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#582
- def raise_up(*args); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#586
- def raise_up!(*args); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#554
- def raise_up_common(force, *args); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#282
- def repl(target = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#231
- def reset_eval_string; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#375
- def run_command(val); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#453
- def select_prompt; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#409
- def set_last_result(result, code = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#447
- def should_print?; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#298
- def show_result(result); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#216
- def sticky_locals; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#36
- def suppress_output; end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#36
- def suppress_output=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#428
- def update_input_history(code); end
-
- private
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#680
- def ensure_correct_encoding!(val); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#688
- def generate_prompt(prompt_proc, conf); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#598
- def handle_line(line, options); end
-
- # source://pry/0.14.2/lib/pry/pry_instance.rb#697
- def prompt_stack; end
-
- class << self
- # source://pry/0.14.2/lib/pry/code.rb#12
- def Code(obj); end
-
- # source://pry/0.14.2/lib/pry/method.rb#9
- def Method(obj); end
-
- # source://pry/0.14.2/lib/pry/wrapped_module.rb#7
- def WrappedModule(obj); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#294
- def auto_resize!; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#347
- def binding_for(target); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#22
- def cli; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#22
- def cli=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#25
- def config; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#25
- def config=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#46
- def configure; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#380
- def critical_section; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#63
- def current; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#19
- def current_line; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#19
- def current_line=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#18
- def custom_completions; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#18
- def custom_completions=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#21
- def eval_path; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#21
- def eval_path=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#139
- def final_session_setup; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def history(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def history=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#375
- def in_critical_section?; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#338
- def init; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#257
- def initial_session?; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#129
- def initial_session_setup; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#24
- def last_internal_error; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#24
- def last_internal_error=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#20
- def line_buffer; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#20
- def line_buffer=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#69
- def load_file_at_toplevel(file); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#202
- def load_file_through_repl(file_name); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#251
- def load_history; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#77
- def load_rc_files; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#101
- def load_requires; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#109
- def load_traps; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#113
- def load_win32console; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#55
- def main; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def memory_size(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def memory_size=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def pager(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def pager=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def prompt(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def prompt=(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#23
- def quiet; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#23
- def quiet=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#86
- def rc_files_to_load; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#94
- def real_path_to(file); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#326
- def reset_defaults; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#277
- def run_command(command_string, options = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#156
- def start(target = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#354
- def toplevel_binding; end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#372
- def toplevel_binding=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#225
- def view_clip(obj, options = T.unsafe(nil)); end
-
- private
-
- # source://pry/0.14.2/lib/pry/pry_class.rb#388
- def mutex_available?; end
- end
-end
-
-# source://pry-byebug//lib/pry/byebug/breakpoints.rb#4
-module Pry::Byebug; end
-
-# Wrapper for Byebug.breakpoints that respects our Processor and has better
-# failure behavior. Acts as an Enumerable.
-#
-# source://pry-byebug//lib/pry/byebug/breakpoints.rb#9
-module Pry::Byebug::Breakpoints
- extend ::Enumerable
- extend ::Pry::Byebug::Breakpoints
-
- # Adds a file breakpoint.
- #
- # @raise [ArgumentError]
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#63
- def add_file(file, line, expression = T.unsafe(nil)); end
-
- # Adds a method breakpoint.
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#51
- def add_method(method, expression = T.unsafe(nil)); end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#44
- def breakpoints; end
-
- # Changes the conditional expression for a breakpoint.
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#78
- def change(id, expression = T.unsafe(nil)); end
-
- # Deletes an existing breakpoint with the given ID.
- #
- # @raise [ArgumentError]
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#89
- def delete(id); end
-
- # Deletes all breakpoints.
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#100
- def delete_all; end
-
- # Disables a breakpoint with the given ID.
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#115
- def disable(id); end
-
- # Disables all breakpoints.
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#122
- def disable_all; end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#136
- def each(&block); end
-
- # Enables a disabled breakpoint with the given ID.
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#108
- def enable(id); end
-
- # @raise [ArgumentError]
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#144
- def find_by_id(id); end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#140
- def last; end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#132
- def size; end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#128
- def to_a; end
-
- private
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#153
- def change_status(id, enabled = T.unsafe(nil)); end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#159
- def validate_expression(exp); end
-end
-
-# Breakpoint in a file:line location
-#
-# source://pry-byebug//lib/pry/byebug/breakpoints.rb#16
-class Pry::Byebug::Breakpoints::FileBreakpoint < ::SimpleDelegator
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#17
- def source_code; end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#21
- def to_s; end
-end
-
-# Breakpoint in a Class#method location
-#
-# source://pry-byebug//lib/pry/byebug/breakpoints.rb#29
-class Pry::Byebug::Breakpoints::MethodBreakpoint < ::SimpleDelegator
- # @return [MethodBreakpoint] a new instance of MethodBreakpoint
- #
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#30
- def initialize(byebug_bp, method); end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#35
- def source_code; end
-
- # source://pry-byebug//lib/pry/byebug/breakpoints.rb#39
- def to_s; end
-end
-
-class Pry::REPL
- extend ::Forwardable
-
- # source://pry/0.14.2/lib/pry/repl.rb#22
- def initialize(pry, options = T.unsafe(nil)); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output(*args, **_arg1, &block); end
-
- # source://pry/0.14.2/lib/pry/repl.rb#9
- def pry; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#9
- def pry=(_arg0); end
-
- # source://pry/0.14.2/lib/pry/repl.rb#36
- def start; end
-
- private
-
- # source://pry/0.14.2/lib/pry/repl.rb#237
- def calculate_overhang(current_prompt, original_val, indented_val); end
-
- # source://pry/0.14.2/lib/pry/repl.rb#205
- def coolline_available?; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#84
- def epilogue; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#127
- def handle_read_errors; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#195
- def input_readline(*args); end
-
- # source://pry/0.14.2/lib/pry/repl.rb#217
- def piping?; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#47
- def prologue; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#93
- def read; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#169
- def read_line(current_prompt); end
-
- # source://pry/0.14.2/lib/pry/repl.rb#201
- def readline_available?; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#66
- def repl; end
-
- # source://pry/0.14.2/lib/pry/repl.rb#224
- def set_readline_output; end
-
- class << self
- # source://pry-byebug//lib/pry-byebug/pry_ext.rb#8
- def start(options = T.unsafe(nil)); end
-
- # source://pry-byebug//lib/pry-byebug/pry_ext.rb#8
- def start_with_pry_byebug(options = T.unsafe(nil)); end
-
- # source://pry/0.14.2/lib/pry/repl.rb#14
- def start_without_pry_byebug(options); end
- end
-end
-
-# Main container module for Pry-Byebug functionality
-#
-# source://pry-byebug//lib/pry-byebug/helpers/location.rb#3
-module PryByebug
- # Reference to currently running pry-remote server. Used by the processor.
- #
- # source://pry-byebug//lib/pry-byebug/base.rb#10
- def current_remote_server; end
-
- # Reference to currently running pry-remote server. Used by the processor.
- #
- # source://pry-byebug//lib/pry-byebug/base.rb#10
- def current_remote_server=(_arg0); end
-
- private
-
- # Ensures that a command is executed in a local file context.
- #
- # source://pry-byebug//lib/pry-byebug/base.rb#25
- def check_file_context(target, msg = T.unsafe(nil)); end
-
- # Checks that a target binding is in a local file context.
- #
- # source://pry-byebug//lib/pry-byebug/base.rb#17
- def file_context?(target); end
-
- class << self
- # Ensures that a command is executed in a local file context.
- #
- # @raise [Pry::CommandError]
- #
- # source://pry-byebug//lib/pry-byebug/base.rb#25
- def check_file_context(target, msg = T.unsafe(nil)); end
-
- # Checks that a target binding is in a local file context.
- #
- # @return [Boolean]
- #
- # source://pry-byebug//lib/pry-byebug/base.rb#17
- def file_context?(target); end
- end
-end
-
-# Display the current stack
-#
-# source://pry-byebug//lib/pry-byebug/commands/backtrace.rb#9
-class PryByebug::BacktraceCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
-
- # source://pry-byebug//lib/pry-byebug/commands/backtrace.rb#23
- def process; end
-end
-
-# Add, show and remove breakpoints
-#
-# source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#12
-class PryByebug::BreakCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Breakpoints
- include ::PryByebug::Helpers::Location
- include ::PryByebug::Helpers::Multiline
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#50
- def options(opt); end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#62
- def process; end
-
- private
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#111
- def add_breakpoint(place, condition); end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#93
- def new_breakpoint; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#102
- def option_to_method(option); end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#106
- def print_all; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#88
- def process_condition; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#78
- def process_delete; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#78
- def process_delete_all; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#78
- def process_disable; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#78
- def process_disable_all; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#78
- def process_enable; end
-
- # source://pry-byebug//lib/pry-byebug/commands/breakpoint.rb#84
- def process_show; end
-end
-
-# Continue program execution until the next breakpoint
-#
-# source://pry-byebug//lib/pry-byebug/commands/continue.rb#11
-class PryByebug::ContinueCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
- include ::PryByebug::Helpers::Breakpoints
- include ::PryByebug::Helpers::Location
-
- # source://pry-byebug//lib/pry-byebug/commands/continue.rb#31
- def process; end
-end
-
-# Travel down the frame stack
-#
-# source://pry-byebug//lib/pry-byebug/commands/down.rb#9
-class PryByebug::DownCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
-
- # source://pry-byebug//lib/pry-byebug/commands/down.rb#27
- def process; end
-end
-
-# Exit pry REPL with Byebug.stop
-#
-# source://pry-byebug//lib/pry-byebug/commands/exit_all.rb#9
-class PryByebug::ExitAllCommand < ::Pry::Command::ExitAll
- # source://pry-byebug//lib/pry-byebug/commands/exit_all.rb#10
- def process; end
-end
-
-# Run until the end of current frame
-#
-# source://pry-byebug//lib/pry-byebug/commands/finish.rb#9
-class PryByebug::FinishCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
-
- # source://pry-byebug//lib/pry-byebug/commands/finish.rb#20
- def process; end
-end
-
-# Move to a specific frame in the callstack
-#
-# source://pry-byebug//lib/pry-byebug/commands/frame.rb#9
-class PryByebug::FrameCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
-
- # source://pry-byebug//lib/pry-byebug/commands/frame.rb#27
- def process; end
-end
-
-# source://pry-byebug//lib/pry-byebug/helpers/location.rb#4
-module PryByebug::Helpers; end
-
-# Common helpers for breakpoint related commands
-#
-# source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#10
-module PryByebug::Helpers::Breakpoints
- # Prints a message with bold font.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#21
- def bold_puts(msg); end
-
- # Byebug's array of breakpoints.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#14
- def breakpoints; end
-
- # Max width of breakpoints id column
- #
- # source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#77
- def max_width; end
-
- # Prints a header for the breakpoint list.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#63
- def print_breakpoints_header; end
-
- # Print out full information about a breakpoint.
- #
- # Includes surrounding code at that point.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#30
- def print_full_breakpoint(breakpoint); end
-
- # Print out concise information about a breakpoint.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/breakpoints.rb#52
- def print_short_breakpoint(breakpoint); end
-end
-
-# Compatibility helper to handle source location
-#
-# source://pry-byebug//lib/pry-byebug/helpers/location.rb#8
-module PryByebug::Helpers::Location
- private
-
- # Current file in the target binding. Used as the default breakpoint
- # location.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/location.rb#15
- def current_file(source = T.unsafe(nil)); end
-
- class << self
- # Current file in the target binding. Used as the default breakpoint
- # location.
- #
- # source://pry-byebug//lib/pry-byebug/helpers/location.rb#15
- def current_file(source = T.unsafe(nil)); end
- end
-end
-
-# Helpers to help handling multiline inputs
-#
-# source://pry-byebug//lib/pry-byebug/helpers/multiline.rb#8
-module PryByebug::Helpers::Multiline
- # Returns true if we are in a multiline context and, as a side effect,
- # updates the partial evaluation string with the current input.
- #
- # Returns false otherwise
- #
- # source://pry-byebug//lib/pry-byebug/helpers/multiline.rb#15
- def check_multiline_context; end
-end
-
-# Helpers to aid breaking out of the REPL loop
-#
-# source://pry-byebug//lib/pry-byebug/helpers/navigation.rb#8
-module PryByebug::Helpers::Navigation
- # Breaks out of the REPL loop and signals tracer
- #
- # source://pry-byebug//lib/pry-byebug/helpers/navigation.rb#12
- def breakout_navigation(action, options = T.unsafe(nil)); end
-end
-
-# Run a number of lines and then stop again
-#
-# source://pry-byebug//lib/pry-byebug/commands/next.rb#10
-class PryByebug::NextCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
- include ::PryByebug::Helpers::Multiline
-
- # source://pry-byebug//lib/pry-byebug/commands/next.rb#29
- def process; end
-end
-
-# Run a number of Ruby statements and then stop again
-#
-# source://pry-byebug//lib/pry-byebug/commands/step.rb#9
-class PryByebug::StepCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
-
- # source://pry-byebug//lib/pry-byebug/commands/step.rb#26
- def process; end
-end
-
-# Travel up the frame stack
-#
-# source://pry-byebug//lib/pry-byebug/commands/up.rb#9
-class PryByebug::UpCommand < ::Pry::ClassCommand
- include ::PryByebug::Helpers::Navigation
-
- # source://pry-byebug//lib/pry-byebug/commands/up.rb#27
- def process; end
-end
diff --git a/sorbet/rbi/gems/pry@0.14.2.rbi b/sorbet/rbi/gems/pry@0.14.2.rbi
deleted file mode 100644
index 8abc654..0000000
--- a/sorbet/rbi/gems/pry@0.14.2.rbi
+++ /dev/null
@@ -1,10075 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `pry` gem.
-# Please instead update this file by running `bin/tapioca gem pry`.
-
-# source://pry//lib/pry/core_extensions.rb#115
-class BasicObject
- # Return a binding object for the receiver.
- #
- # The `self` of the binding is set to the current object, and it contains no
- # local variables.
- #
- # The default definee (http://yugui.jp/articles/846) is set such that new
- # methods defined will be added to the singleton class of the BasicObject.
- #
- # @return [Binding]
- #
- # source://pry//lib/pry/core_extensions.rb#125
- def __binding__; end
-end
-
-# source://pry//lib/pry/core_extensions.rb#24
-class Object < ::BasicObject
- include ::Kernel
- include ::PP::ObjectMixin
-
- # Return a binding object for the receiver.
- #
- # The `self` of the binding is set to the current object, and it contains no
- # local variables.
- #
- # The default definee (http://yugui.jp/articles/846) is set such that:
- #
- # * If `self` is a class or module, then new methods created in the binding
- # will be defined in that class or module (as in `class Foo; end`).
- # * If `self` is a normal object, then new methods created in the binding will
- # be defined on its singleton class (as in `class << self; end`).
- # * If `self` doesn't have a real singleton class (i.e. it is a Fixnum, Float,
- # Symbol, nil, true, or false), then new methods will be created on the
- # object's class (as in `self.class.class_eval{ }`)
- #
- # Newly created constants, including classes and modules, will also be added
- # to the default definee.
- #
- # @return [Binding]
- #
- # source://pry//lib/pry/core_extensions.rb#70
- def __binding__; end
-
- # Start a Pry REPL on self.
- #
- # If `self` is a Binding then that will be used to evaluate expressions;
- # otherwise a new binding will be created.
- #
- # @example With a binding
- # binding.pry
- # @example On any object
- # "dummy".pry
- # @example With options
- # def my_method
- # binding.pry :quiet => true
- # end
- # my_method()
- # @param object [Object] the object or binding to pry
- # (__deprecated__, use `object.pry`)
- # @param hash [Hash] the options hash
- # @see Pry.start
- #
- # source://pry//lib/pry/core_extensions.rb#43
- def pry(object = T.unsafe(nil), hash = T.unsafe(nil)); end
-end
-
-# source://pry//lib/pry/version.rb#3
-class Pry
- extend ::Forwardable
- extend ::Pry::Forwardable
-
- # Create a new {Pry} instance.
- #
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @param options [Hash]
- # @return [Pry] a new instance of Pry
- #
- # source://pry//lib/pry/pry_instance.rb#81
- def initialize(options = T.unsafe(nil)); end
-
- # Add a sticky local to this Pry instance.
- # A sticky local is a local that persists between all bindings in a session.
- #
- # @param name [Symbol] The name of the sticky local.
- # @yield The block that defines the content of the local. The local
- # will be refreshed at each tick of the repl loop.
- #
- # source://pry//lib/pry/pry_instance.rb#212
- def add_sticky_local(name, &block); end
-
- # Returns the value of attribute backtrace.
- #
- # source://pry//lib/pry/pry_instance.rb#35
- def backtrace; end
-
- # Sets the attribute backtrace
- #
- # @param value the value to set the attribute backtrace to.
- #
- # source://pry//lib/pry/pry_instance.rb#35
- def backtrace=(_arg0); end
-
- # Returns the value of attribute binding_stack.
- #
- # source://pry//lib/pry/pry_instance.rb#32
- def binding_stack; end
-
- # Sets the attribute binding_stack
- #
- # @param value the value to set the attribute binding_stack to.
- #
- # source://pry//lib/pry/pry_instance.rb#32
- def binding_stack=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands=(*args, **_arg1, &block); end
-
- # Generate completions.
- #
- # @param str [String] What the user has typed so far
- # @return [Array] Possible completions
- #
- # source://pry//lib/pry/pry_instance.rb#145
- def complete(str); end
-
- # Returns the value of attribute config.
- #
- # source://pry//lib/pry/pry_instance.rb#50
- def config; end
-
- # The currently active `Binding`.
- #
- # @return [Binding] The currently active `Binding` for the session.
- #
- # source://pry//lib/pry/pry_instance.rb#124
- def current_binding; end
-
- # The currently active `Binding`.
- # support previous API
- #
- # @return [Binding] The currently active `Binding` for the session.
- #
- # source://pry//lib/pry/pry_instance.rb#124
- def current_context; end
-
- # Returns the value of attribute custom_completions.
- #
- # source://pry//lib/pry/pry_instance.rb#33
- def custom_completions; end
-
- # Sets the attribute custom_completions
- #
- # @param value the value to set the attribute custom_completions to.
- #
- # source://pry//lib/pry/pry_instance.rb#33
- def custom_completions=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor=(*args, **_arg1, &block); end
-
- # Pass a line of input to Pry.
- #
- # This is the equivalent of `Binding#eval` but with extra Pry!
- #
- # In particular:
- # 1. Pry commands will be executed immediately if the line matches.
- # 2. Partial lines of input will be queued up until a complete expression has
- # been accepted.
- # 3. Output is written to `#output` in pretty colours, not returned.
- #
- # Once this method has raised an exception or returned false, this instance
- # is no longer usable. {#exit_value} will return the session's breakout
- # value if applicable.
- #
- # @option options
- # @param line [String?] The line of input; `nil` if the user types ``
- # @param options [Hash] a customizable set of options
- # @raise [Exception] If the user uses the `raise-up` command, this method
- # will raise that exception.
- # @return [Boolean] Is Pry ready to accept more input?
- #
- # source://pry//lib/pry/pry_instance.rb#255
- def eval(line, options = T.unsafe(nil)); end
-
- # Returns the value of attribute eval_string.
- #
- # source://pry//lib/pry/pry_instance.rb#34
- def eval_string; end
-
- # Sets the attribute eval_string
- #
- # @param value the value to set the attribute eval_string to.
- #
- # source://pry//lib/pry/pry_instance.rb#34
- def eval_string=(_arg0); end
-
- # source://pry//lib/pry/pry_instance.rb#286
- def evaluate_ruby(code); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler=(*args, **_arg1, &block); end
-
- # Execute the specified hook.
- # If executing a hook raises an exception, we log that and then continue sucessfully.
- # To debug such errors, use the global variable $pry_hook_error, which is set as a
- # result.
- #
- # @param name [Symbol] The hook name to execute
- # @param args [*Object] The arguments to pass to the hook
- # @return [Object, Exception] The return value of the hook or the exception raised
- #
- # source://pry//lib/pry/pry_instance.rb#394
- def exec_hook(name, *args, &block); end
-
- # Returns the value of attribute exit_value.
- #
- # source://pry//lib/pry/pry_instance.rb#42
- def exit_value; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks=(*args, **_arg1, &block); end
-
- # Injects a local variable into the provided binding.
- #
- # @param name [String] The name of the local to inject.
- # @param value [Object] The value to set the local to.
- # @param binding [Binding] The binding to set the local on.
- # @return [Object] The value the local was set to.
- #
- # source://pry//lib/pry/pry_instance.rb#173
- def inject_local(name, value, binding); end
-
- # Inject all the sticky locals into the current binding.
- #
- # source://pry//lib/pry/pry_instance.rb#201
- def inject_sticky_locals!; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input=(*args, **_arg1, &block); end
-
- # @since v0.12.0
- #
- # source://pry//lib/pry/pry_instance.rb#45
- def input_ring; end
-
- # Returns the value of attribute last_dir.
- #
- # source://pry//lib/pry/pry_instance.rb#39
- def last_dir; end
-
- # Sets the attribute last_dir
- #
- # @param value the value to set the attribute last_dir to.
- #
- # source://pry//lib/pry/pry_instance.rb#39
- def last_dir=(_arg0); end
-
- # Returns the value of attribute last_exception.
- #
- # source://pry//lib/pry/pry_instance.rb#41
- def last_exception; end
-
- # Set the last exception for a session.
- #
- # @param exception [Exception] The last exception.
- #
- # source://pry//lib/pry/pry_instance.rb#418
- def last_exception=(exception); end
-
- # Returns the value of attribute last_file.
- #
- # source://pry//lib/pry/pry_instance.rb#38
- def last_file; end
-
- # Sets the attribute last_file
- #
- # @param value the value to set the attribute last_file to.
- #
- # source://pry//lib/pry/pry_instance.rb#38
- def last_file=(_arg0); end
-
- # Returns the value of attribute last_result.
- #
- # source://pry//lib/pry/pry_instance.rb#37
- def last_result; end
-
- # Sets the attribute last_result
- #
- # @param value the value to set the attribute last_result to.
- #
- # source://pry//lib/pry/pry_instance.rb#37
- def last_result=(_arg0); end
-
- # @return [Boolean] True if the last result is an exception that was raised,
- # as opposed to simply an instance of Exception (like the result of
- # Exception.new)
- #
- # source://pry//lib/pry/pry_instance.rb#440
- def last_result_is_exception?; end
-
- # @return [Integer] The maximum amount of objects remembered by the inp and
- # out arrays. Defaults to 100.
- #
- # source://pry//lib/pry/pry_instance.rb#190
- def memory_size; end
-
- # source://pry//lib/pry/pry_instance.rb#195
- def memory_size=(size); end
-
- # Returns an output device
- #
- # @example
- # pry_instance.output.puts "ohai!"
- #
- # source://pry//lib/pry/pry_instance.rb#538
- def output; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output=(*args, **_arg1, &block); end
-
- # @since v0.12.0
- #
- # source://pry//lib/pry/pry_instance.rb#48
- def output_ring; end
-
- # Returns the currently configured pager
- #
- # @example
- # pry_instance.pager.page text
- #
- # source://pry//lib/pry/pry_instance.rb#530
- def pager; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def pager=(*args, **_arg1, &block); end
-
- # Pops the current prompt off of the prompt stack. If the prompt you are
- # popping is the last prompt, it will not be popped. Use this to restore the
- # previous prompt.
- #
- # @example
- # pry = Pry.new(prompt: Pry::Prompt[:my_prompt1])
- # pry.push_prompt(Pry::Prompt[:my_prompt2])
- # pry.pop_prompt # => prompt2
- # pry.pop_prompt # => prompt1
- # pry.pop_prompt # => prompt1
- # @return [Pry::Prompt] the prompt being popped
- #
- # source://pry//lib/pry/pry_instance.rb#522
- def pop_prompt; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print=(*args, **_arg1, &block); end
-
- # If the given line is a valid command, process it in the context of the
- # current `eval_string` and binding.
- #
- # @param val [String] The line to process.
- # @return [Boolean] `true` if `val` is a command, `false` otherwise
- #
- # source://pry//lib/pry/pry_instance.rb#325
- def process_command(val); end
-
- # Same as process_command, but outputs exceptions to `#output` instead of
- # raising.
- #
- # @param val [String] The line to process.
- # @return [Boolean] `true` if `val` is a command, `false` otherwise
- #
- # source://pry//lib/pry/pry_instance.rb#360
- def process_command_safely(val); end
-
- # This is the prompt at the top of the prompt stack.
- #
- # @return [Pry::Prompt] the current prompt
- #
- # source://pry//lib/pry/pry_instance.rb#101
- def prompt; end
-
- # Sets the Pry prompt.
- #
- # @param new_prompt [Pry::Prompt]
- # @return [void]
- #
- # source://pry//lib/pry/pry_instance.rb#108
- def prompt=(new_prompt); end
-
- # Push a binding for the given object onto the stack. If this instance is
- # currently stopped, mark it as usable again.
- #
- # source://pry//lib/pry/pry_instance.rb#131
- def push_binding(object); end
-
- # Initialize this instance by pushing its initial context into the binding
- # stack. If no target is given, start at the top level.
- #
- # source://pry//lib/pry/pry_instance.rb#118
- def push_initial_binding(target = T.unsafe(nil)); end
-
- # Pushes the current prompt onto a stack that it can be restored from later.
- # Use this if you wish to temporarily change the prompt.
- #
- # @example
- # push_prompt(Pry::Prompt[:my_prompt])
- # @param new_prompt [Pry::Prompt]
- # @return [Pry::Prompt] new_prompt
- #
- # source://pry//lib/pry/pry_instance.rb#506
- def push_prompt(new_prompt); end
-
- # Convenience accessor for the `quiet` config key.
- #
- # @return [Boolean]
- #
- # source://pry//lib/pry/pry_instance.rb#592
- def quiet?; end
-
- # source://pry//lib/pry/pry_instance.rb#582
- def raise_up(*args); end
-
- # source://pry//lib/pry/pry_instance.rb#586
- def raise_up!(*args); end
-
- # Raise an exception out of Pry.
- #
- # See Kernel#raise for documentation of parameters.
- # See rb_make_exception for the inbuilt implementation.
- #
- # This is necessary so that the raise-up command can tell the
- # difference between an exception the user has decided to raise,
- # and a mistake in specifying that exception.
- #
- # (i.e. raise-up RunThymeError.new should not be the same as
- # raise-up NameError, "unititialized constant RunThymeError")
- #
- # @raise [TypeError]
- #
- # source://pry//lib/pry/pry_instance.rb#554
- def raise_up_common(force, *args); end
-
- # Potentially deprecated. Use `Pry::REPL.new(pry, :target => target).start`
- # (If nested sessions are going to exist, this method is fine, but a goal is
- # to come up with an alternative to nested sessions altogether.)
- #
- # source://pry//lib/pry/pry_instance.rb#282
- def repl(target = T.unsafe(nil)); end
-
- # Reset the current eval string. If the user has entered part of a multiline
- # expression, this discards that input.
- #
- # source://pry//lib/pry/pry_instance.rb#231
- def reset_eval_string; end
-
- # Run the specified command.
- #
- # @example
- # pry_instance.run_command("ls -m")
- # @param val [String] The command (and its params) to execute.
- # @return [Pry::Command::VOID_VALUE]
- #
- # source://pry//lib/pry/pry_instance.rb#375
- def run_command(val); end
-
- # Returns the appropriate prompt to use.
- #
- # @return [String] The prompt.
- #
- # source://pry//lib/pry/pry_instance.rb#453
- def select_prompt; end
-
- # Set the last result of an eval.
- # This method should not need to be invoked directly.
- #
- # @param result [Object] The result.
- # @param code [String] The code that was run.
- #
- # source://pry//lib/pry/pry_instance.rb#409
- def set_last_result(result, code = T.unsafe(nil)); end
-
- # Whether the print proc should be invoked.
- # Currently only invoked if the output is not suppressed.
- #
- # @return [Boolean] Whether the print proc should be invoked.
- #
- # source://pry//lib/pry/pry_instance.rb#447
- def should_print?; end
-
- # Output the result or pass to an exception handler (if result is an exception).
- #
- # source://pry//lib/pry/pry_instance.rb#298
- def show_result(result); end
-
- # source://pry//lib/pry/pry_instance.rb#216
- def sticky_locals; end
-
- # Returns the value of attribute suppress_output.
- #
- # source://pry//lib/pry/pry_instance.rb#36
- def suppress_output; end
-
- # Sets the attribute suppress_output
- #
- # @param value the value to set the attribute suppress_output to.
- #
- # source://pry//lib/pry/pry_instance.rb#36
- def suppress_output=(_arg0); end
-
- # Update Pry's internal state after evalling code.
- # This method should not need to be invoked directly.
- #
- # @param code [String] The code we just eval'd
- #
- # source://pry//lib/pry/pry_instance.rb#428
- def update_input_history(code); end
-
- private
-
- # Force `eval_string` into the encoding of `val`. [Issue #284]
- #
- # source://pry//lib/pry/pry_instance.rb#680
- def ensure_correct_encoding!(val); end
-
- # source://pry//lib/pry/pry_instance.rb#688
- def generate_prompt(prompt_proc, conf); end
-
- # source://pry//lib/pry/pry_instance.rb#598
- def handle_line(line, options); end
-
- # the array that the prompt stack is stored in
- #
- # source://pry//lib/pry/pry_instance.rb#697
- def prompt_stack; end
-
- class << self
- # Convert the given object into an instance of `Pry::Code`, if it isn't
- # already one.
- #
- # @param obj [Code, Method, UnboundMethod, Proc, Pry::Method, String, Array, IO]
- #
- # source://pry//lib/pry/code.rb#12
- def Code(obj); end
-
- # If the given object is a `Pry::Method`, return it unaltered. If it's
- # anything else, return it wrapped in a `Pry::Method` instance.
- #
- # source://pry//lib/pry/method.rb#9
- def Method(obj); end
-
- # If the given object is a `Pry::WrappedModule`, return it unaltered. If it's
- # anything else, return it wrapped in a `Pry::WrappedModule` instance.
- #
- # source://pry//lib/pry/wrapped_module.rb#7
- def WrappedModule(obj); end
-
- # source://pry//lib/pry/pry_class.rb#294
- def auto_resize!; end
-
- # Return a `Binding` object for `target` or return `target` if it is
- # already a `Binding`.
- # In the case where `target` is top-level then return `TOPLEVEL_BINDING`
- #
- # @param target [Object] The object to get a `Binding` object for.
- # @return [Binding] The `Binding` object.
- #
- # source://pry//lib/pry/pry_class.rb#347
- def binding_for(target); end
-
- # Returns the value of attribute cli.
- #
- # source://pry//lib/pry/pry_class.rb#22
- def cli; end
-
- # Sets the attribute cli
- #
- # @param value the value to set the attribute cli to.
- #
- # source://pry//lib/pry/pry_class.rb#22
- def cli=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def color=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def commands=(*args, **_arg1, &block); end
-
- # Returns the value of attribute config.
- #
- # source://pry//lib/pry/pry_class.rb#25
- def config; end
-
- # Sets the attribute config
- #
- # @param value the value to set the attribute config to.
- #
- # source://pry//lib/pry/pry_class.rb#25
- def config=(_arg0); end
-
- # @example
- # Pry.configure do |config|
- # config.eager_load! # optional
- # config.input = # ..
- # config.foo = 2
- # end
- # @yield [config] Yields a block with {Pry.config} as its argument.
- #
- # source://pry//lib/pry/pry_class.rb#46
- def configure; end
-
- # source://pry//lib/pry/pry_class.rb#380
- def critical_section; end
-
- # @return [Pry::Config] Returns a value store for an instance of Pry running on the current thread.
- #
- # source://pry//lib/pry/pry_class.rb#63
- def current; end
-
- # Returns the value of attribute current_line.
- #
- # source://pry//lib/pry/pry_class.rb#19
- def current_line; end
-
- # Sets the attribute current_line
- #
- # @param value the value to set the attribute current_line to.
- #
- # source://pry//lib/pry/pry_class.rb#19
- def current_line=(_arg0); end
-
- # Returns the value of attribute custom_completions.
- #
- # source://pry//lib/pry/pry_class.rb#18
- def custom_completions; end
-
- # Sets the attribute custom_completions
- #
- # @param value the value to set the attribute custom_completions to.
- #
- # source://pry//lib/pry/pry_class.rb#18
- def custom_completions=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def editor=(*args, **_arg1, &block); end
-
- # Returns the value of attribute eval_path.
- #
- # source://pry//lib/pry/pry_class.rb#21
- def eval_path; end
-
- # Sets the attribute eval_path
- #
- # @param value the value to set the attribute eval_path to.
- #
- # source://pry//lib/pry/pry_class.rb#21
- def eval_path=(_arg0); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def exception_handler=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def extra_sticky_locals=(*args, **_arg1, &block); end
-
- # source://pry//lib/pry/pry_class.rb#139
- def final_session_setup; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def history(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def history=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def hooks=(*args, **_arg1, &block); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/pry_class.rb#375
- def in_critical_section?; end
-
- # Basic initialization.
- #
- # source://pry//lib/pry/pry_class.rb#338
- def init; end
-
- # @return [Boolean] Whether this is the first time a Pry session has
- # been started since loading the Pry class.
- #
- # source://pry//lib/pry/pry_class.rb#257
- def initial_session?; end
-
- # Do basic setup for initial session including: loading pryrc, plugins,
- # requires, and history.
- #
- # source://pry//lib/pry/pry_class.rb#129
- def initial_session_setup; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def input=(*args, **_arg1, &block); end
-
- # Returns the value of attribute last_internal_error.
- #
- # source://pry//lib/pry/pry_class.rb#24
- def last_internal_error; end
-
- # Sets the attribute last_internal_error
- #
- # @param value the value to set the attribute last_internal_error to.
- #
- # source://pry//lib/pry/pry_class.rb#24
- def last_internal_error=(_arg0); end
-
- # Returns the value of attribute line_buffer.
- #
- # source://pry//lib/pry/pry_class.rb#20
- def line_buffer; end
-
- # Sets the attribute line_buffer
- #
- # @param value the value to set the attribute line_buffer to.
- #
- # source://pry//lib/pry/pry_class.rb#20
- def line_buffer=(_arg0); end
-
- # Load the given file in the context of `Pry.toplevel_binding`
- #
- # @param file [String] The unexpanded file path.
- #
- # source://pry//lib/pry/pry_class.rb#69
- def load_file_at_toplevel(file); end
-
- # Execute the file through the REPL loop, non-interactively.
- #
- # @param file_name [String] File name to load through the REPL.
- #
- # source://pry//lib/pry/pry_class.rb#202
- def load_file_through_repl(file_name); end
-
- # Load Readline history if required.
- #
- # source://pry//lib/pry/pry_class.rb#251
- def load_history; end
-
- # Load RC files if appropriate This method can also be used to reload the
- # files if they have changed.
- #
- # source://pry//lib/pry/pry_class.rb#77
- def load_rc_files; end
-
- # Load any Ruby files specified with the -r flag on the command line.
- #
- # source://pry//lib/pry/pry_class.rb#101
- def load_requires; end
-
- # Trap interrupts on jruby, and make them behave like MRI so we can
- # catch them.
- #
- # source://pry//lib/pry/pry_class.rb#109
- def load_traps; end
-
- # source://pry//lib/pry/pry_class.rb#113
- def load_win32console; end
-
- # @return [main] returns the special instance of Object, "main".
- #
- # source://pry//lib/pry/pry_class.rb#55
- def main; end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def memory_size(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def memory_size=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def output=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def pager(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def pager=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def print=(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def prompt(*args, **_arg1, &block); end
-
- # source://forwardable/1.3.2/forwardable.rb#229
- def prompt=(*args, **_arg1, &block); end
-
- # Returns the value of attribute quiet.
- #
- # source://pry//lib/pry/pry_class.rb#23
- def quiet; end
-
- # Sets the attribute quiet
- #
- # @param value the value to set the attribute quiet to.
- #
- # source://pry//lib/pry/pry_class.rb#23
- def quiet=(_arg0); end
-
- # Load the local RC file (./.pryrc)
- #
- # source://pry//lib/pry/pry_class.rb#86
- def rc_files_to_load; end
-
- # Expand a file to its canonical name (following symlinks as appropriate)
- #
- # source://pry//lib/pry/pry_class.rb#94
- def real_path_to(file); end
-
- # Set all the configurable options back to their default values
- #
- # source://pry//lib/pry/pry_class.rb#326
- def reset_defaults; end
-
- # Run a Pry command from outside a session. The commands available are
- # those referenced by `Pry.config.commands` (the default command set).
- #
- # @example Run at top-level with no output.
- # Pry.run_command "ls"
- # @example Run under Pry class, returning only public methods.
- # Pry.run_command "ls -m", :target => Pry
- # @example Display command output.
- # Pry.run_command "ls -av", :show_output => true
- # @option options
- # @option options
- # @param command_string [String] The Pry command (including arguments,
- # if any).
- # @param options [Hash] Optional named parameters.
- # @return [nil]
- #
- # source://pry//lib/pry/pry_class.rb#277
- def run_command(command_string, options = T.unsafe(nil)); end
-
- # Start a Pry REPL.
- # This method also loads `pryrc` as necessary the first time it is invoked.
- #
- # @example
- # Pry.start(Object.new, :input => MyInput.new)
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @param target [Object, Binding] The receiver of the Pry session
- # @param options [Hash]
- #
- # source://pry//lib/pry/pry_class.rb#156
- def start(target = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # source://pry//lib/pry/pry_class.rb#354
- def toplevel_binding; end
-
- # Sets the attribute toplevel_binding
- #
- # @param value the value to set the attribute toplevel_binding to.
- #
- # source://pry//lib/pry/pry_class.rb#372
- def toplevel_binding=(_arg0); end
-
- # An inspector that clips the output to `max_length` chars.
- # In case of > `max_length` chars the `# notation is used.
- #
- # @option options
- # @option options
- # @param obj [Object] The object to view.
- # @param options [Hash]
- # @return [String] The string representation of `obj`.
- #
- # source://pry//lib/pry/pry_class.rb#225
- def view_clip(obj, options = T.unsafe(nil)); end
-
- private
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/pry_class.rb#388
- def mutex_available?; end
- end
-end
-
-# @return [Array] Code of the method used when implementing Pry's
-# __binding__, along with line indication to be used with instance_eval (and
-# friends).
-# @see Object#__binding__
-#
-# source://pry//lib/pry/core_extensions.rb#9
-Pry::BINDING_METHOD_IMPL = T.let(T.unsafe(nil), Array)
-
-# source://pry//lib/pry/basic_object.rb#4
-class Pry::BasicObject < ::BasicObject
- include ::Kernel
-end
-
-# source://pry//lib/pry/basic_object.rb#6
-Pry::BasicObject::Dir = Dir
-
-# source://pry//lib/pry/basic_object.rb#6
-Pry::BasicObject::ENV = T.let(T.unsafe(nil), Object)
-
-# source://pry//lib/pry/basic_object.rb#6
-Pry::BasicObject::File = File
-
-# source://pry//lib/pry/basic_object.rb#6
-Pry::BasicObject::Kernel = Kernel
-
-# source://pry//lib/pry/basic_object.rb#6
-Pry::BasicObject::LoadError = LoadError
-
-# source://pry//lib/pry/basic_object.rb#6
-Pry::BasicObject::Pry = Pry
-
-# A super-class for Commands that are created with a single block.
-#
-# This class ensures that the block is called with the correct number of
-# arguments and the right context.
-#
-# Create subclasses using {Pry::CommandSet#command}.
-#
-# source://pry//lib/pry/block_command.rb#13
-class Pry::BlockCommand < ::Pry::Command
- # Call the block that was registered with this command.
- #
- # @param args [Array] The arguments passed
- # @return [Object] The return value of the block
- #
- # source://pry//lib/pry/block_command.rb#14
- def call(*args); end
-
- # source://pry//lib/pry/block_command.rb#18
- def help; end
-end
-
-# Manage the processing of command line options
-#
-# source://pry//lib/pry/cli.rb#7
-class Pry::CLI
- class << self
- # Add a block responsible for processing parsed options.
- #
- # source://pry//lib/pry/cli.rb#39
- def add_option_processor(&block); end
-
- # Add another set of CLI options (a Pry::Slop block)
- #
- # source://pry//lib/pry/cli.rb#24
- def add_options(&block); end
-
- # @return [Array] The input array of strings to process
- # as CLI options.
- #
- # source://pry//lib/pry/cli.rb#21
- def input_args; end
-
- # @return [Array] The input array of strings to process
- # as CLI options.
- #
- # source://pry//lib/pry/cli.rb#21
- def input_args=(_arg0); end
-
- # @return [Array] The Procs that process the parsed options. Plugins can
- # utilize this facility in order to add and process their own Pry
- # options.
- #
- # source://pry//lib/pry/cli.rb#17
- def option_processors; end
-
- # @return [Array] The Procs that process the parsed options. Plugins can
- # utilize this facility in order to add and process their own Pry
- # options.
- #
- # source://pry//lib/pry/cli.rb#17
- def option_processors=(_arg0); end
-
- # @return [Proc] The Proc defining the valid command line options.
- #
- # source://pry//lib/pry/cli.rb#12
- def options; end
-
- # @return [Proc] The Proc defining the valid command line options.
- #
- # source://pry//lib/pry/cli.rb#12
- def options=(_arg0); end
-
- # source://pry//lib/pry/cli.rb#52
- def parse_options(args = T.unsafe(nil)); end
-
- # Clear `options` and `option_processors`
- #
- # source://pry//lib/pry/cli.rb#47
- def reset; end
-
- # source://pry//lib/pry/cli.rb#90
- def start(opts); end
- end
-end
-
-# source://pry//lib/pry/cli.rb#8
-class Pry::CLI::NoOptionsError < ::StandardError; end
-
-# A super-class of Commands with structure.
-#
-# This class implements the bare-minimum functionality that a command should
-# have, namely a --help switch, and then delegates actual processing to its
-# subclasses.
-#
-# Create subclasses using {Pry::CommandSet#create_command}, and override the
-# `options(opt)` method to set up an instance of Pry::Slop, and the `process`
-# method to actually run the command. If necessary, you can also override
-# `setup` which will be called before `options`, for example to require any
-# gems your command needs to run, or to set up state.
-#
-# source://pry//lib/pry/class_command.rb#15
-class Pry::ClassCommand < ::Pry::Command
- # Returns the value of attribute args.
- #
- # source://pry//lib/pry/class_command.rb#64
- def args; end
-
- # Sets the attribute args
- #
- # @param value the value to set the attribute args to.
- #
- # source://pry//lib/pry/class_command.rb#64
- def args=(_arg0); end
-
- # Set up `opts` and `args`, and then call `process`.
- #
- # This method will display help if necessary.
- #
- # @param args [Array] The arguments passed
- # @return [Object] The return value of `process` or VOID_VALUE
- #
- # source://pry//lib/pry/class_command.rb#72
- def call(*args); end
-
- # Generate shell completions
- #
- # @param search [String] The line typed so far
- # @return [Array] the words to complete
- #
- # source://pry//lib/pry/class_command.rb#105
- def complete(search); end
-
- # Return the help generated by Pry::Slop for this command.
- #
- # source://pry//lib/pry/class_command.rb#87
- def help; end
-
- # A method to setup Pry::Slop so it can parse the options your command expects.
- #
- # method, as it may be called by Pry at any time for introspection reasons.
- # If you need to set up default values, use `setup` instead.
- #
- # @example
- # def options(opt)
- # opt.banner "Gists methods or classes"
- # opt.on(:c, :class, "gist a class") do
- # @action = :class
- # end
- # end
- # @note Please don't do anything side-effecty in the main part of this
- #
- # source://pry//lib/pry/class_command.rb#171
- def options(opt); end
-
- # Returns the value of attribute opts.
- #
- # source://pry//lib/pry/class_command.rb#63
- def opts; end
-
- # Sets the attribute opts
- #
- # @param value the value to set the attribute opts to.
- #
- # source://pry//lib/pry/class_command.rb#63
- def opts=(_arg0); end
-
- # The actual body of your command should go here.
- #
- # The `opts` mehod can be called to get the options that Pry::Slop has passed,
- # and `args` gives the remaining, unparsed arguments.
- #
- # The return value of this method is discarded unless the command was
- # created with `:keep_retval => true`, in which case it is returned to the
- # repl.
- #
- # @example
- # def process
- # if opts.present?(:class)
- # gist_class
- # else
- # gist_method
- # end
- # end
- # @raise [CommandError]
- #
- # source://pry//lib/pry/class_command.rb#190
- def process; end
-
- # A method called just before `options(opt)` as part of `call`.
- #
- # This method can be used to set up any context your command needs to run,
- # for example requiring gems, or setting default values for options.
- #
- # @example
- # def setup
- # require 'gist'
- # @action = :method
- # end
- #
- # source://pry//lib/pry/class_command.rb#121
- def setup; end
-
- # Return an instance of Pry::Slop that can parse either subcommands or the
- # options that this command accepts.
- #
- # source://pry//lib/pry/class_command.rb#93
- def slop; end
-
- # A method to setup Pry::Slop commands so it can parse the subcommands your
- # command expects. If you need to set up default values, use `setup`
- # instead.
- #
- # @example A minimal example
- # def subcommands(cmd)
- # cmd.command :download do |opt|
- # description 'Downloads a content from a server'
- #
- # opt.on :verbose, 'Use verbose output'
- #
- # run do |options, arguments|
- # ContentDownloader.download(options, arguments)
- # end
- # end
- # end
- # @example Define the invokation block anywhere you want
- # def subcommands(cmd)
- # cmd.command :download do |opt|
- # description 'Downloads a content from a server'
- #
- # opt.on :verbose, 'Use verbose output'
- # end
- # end
- #
- # def process
- # # Perform calculations...
- # opts.fetch_command(:download).run do |options, arguments|
- # ContentDownloader.download(options, arguments)
- # end
- # # More calculations...
- # end
- #
- # source://pry//lib/pry/class_command.rb#156
- def subcommands(cmd); end
-
- class << self
- # source://pry//lib/pry/class_command.rb#29
- def doc; end
-
- # source://pry//lib/pry/class_command.rb#37
- def file; end
-
- # Ensure that subclasses inherit the options, description and
- # match from a ClassCommand super class.
- #
- # source://pry//lib/pry/class_command.rb#19
- def inherited(klass); end
-
- # source://pry//lib/pry/class_command.rb#42
- def line; end
-
- # source://pry//lib/pry/class_command.rb#25
- def source; end
-
- # source://pry//lib/pry/class_command.rb#37
- def source_file; end
-
- # source://pry//lib/pry/class_command.rb#42
- def source_line; end
-
- # source://pry//lib/pry/class_command.rb#33
- def source_location; end
-
- private
-
- # The object used to extract the source for the command.
- #
- # This should be a `Pry::Method(block)` for a command made with `create_command`
- # and a `Pry::WrappedModule(self)` for a command that's a standard class.
- #
- # @return [Pry::WrappedModule, Pry::Method]
- #
- # source://pry//lib/pry/class_command.rb#54
- def source_object; end
- end
-end
-
-# `Pry::Code` is a class that encapsulates lines of source code and their
-# line numbers and formats them for terminal output. It can read from a file
-# or method definition or be instantiated with a `String` or an `Array`.
-#
-# In general, the formatting methods in `Code` return a new `Code` object
-# which will format the text as specified when `#to_s` is called. This allows
-# arbitrary chaining of formatting methods without mutating the original
-# object.
-#
-# source://pry//lib/pry/code.rb#32
-class Pry::Code
- extend ::MethodSource::CodeHelpers
-
- # Instantiate a `Code` object containing code from the given `Array`,
- # `String`, or `IO`. The first line will be line 1 unless specified
- # otherwise. If you need non-contiguous line numbers, you can create an
- # empty `Code` object and then use `#push` to insert the lines.
- #
- # @param lines [Array, String, IO]
- # @param start_line [Integer?]
- # @param code_type [Symbol?]
- # @return [Code] a new instance of Code
- #
- # source://pry//lib/pry/code.rb#87
- def initialize(lines = T.unsafe(nil), start_line = T.unsafe(nil), code_type = T.unsafe(nil)); end
-
- # Append the given line. +lineno+ is one more than the last existing
- # line, unless specified otherwise.
- #
- # @param line [String]
- # @return [void]
- #
- # source://pry//lib/pry/code.rb#102
- def <<(line); end
-
- # Two `Code` objects are equal if they contain the same lines with the same
- # numbers. Otherwise, call `to_s` and `chomp` and compare as Strings.
- #
- # @param other [Code, Object]
- # @return [Boolean]
- #
- # source://pry//lib/pry/code.rb#325
- def ==(other); end
-
- # Remove all lines except for the +lines+ after and excluding +lineno+.
- #
- # @param lineno [Integer]
- # @param lines [Integer]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#195
- def after(lineno, lines = T.unsafe(nil)); end
-
- # Remove all lines except for the +lines+ on either side of and including
- # +lineno+.
- #
- # @param lineno [Integer]
- # @param lines [Integer]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#182
- def around(lineno, lines = T.unsafe(nil)); end
-
- # Remove all lines except for the +lines+ up to and excluding +lineno+.
- #
- # @param lineno [Integer]
- # @param lines [Integer]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#168
- def before(lineno, lines = T.unsafe(nil)); end
-
- # Remove all lines that aren't in the given range, expressed either as a
- # `Range` object or a first and last line number (inclusive). Negative
- # indices count from the end of the array of lines.
- #
- # @param start_line [Range, Integer]
- # @param end_line [Integer?]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#135
- def between(start_line, end_line = T.unsafe(nil)); end
-
- # @return [Symbol] The type of code stored in this wrapper.
- #
- # source://pry//lib/pry/code.rb#77
- def code_type; end
-
- # @return [Symbol] The type of code stored in this wrapper.
- #
- # source://pry//lib/pry/code.rb#77
- def code_type=(_arg0); end
-
- # Get the comment that describes the expression on the given line number.
- #
- # @param line_number [Integer] (1-based)
- # @return [String] the code.
- #
- # source://pry//lib/pry/code.rb#286
- def comment_describing(line_number); end
-
- # Get the multiline expression that starts on the given line number.
- #
- # @param line_number [Integer] (1-based)
- # @return [String] the code.
- #
- # source://pry//lib/pry/code.rb#294
- def expression_at(line_number, consume = T.unsafe(nil)); end
-
- # Remove all lines that don't match the given `pattern`.
- #
- # @param pattern [Regexp]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#207
- def grep(pattern); end
-
- # @return [String] a (possibly highlighted) copy of the source code.
- #
- # source://pry//lib/pry/code.rb#263
- def highlighted; end
-
- # Return the number of lines stored.
- #
- # @return [Integer]
- #
- # source://pry//lib/pry/code.rb#316
- def length; end
-
- # @return [Integer] the number of digits in the last line.
- #
- # source://pry//lib/pry/code.rb#252
- def max_lineno_width; end
-
- # Forward any missing methods to the output of `#to_s`.
- #
- # source://pry//lib/pry/code.rb#335
- def method_missing(method_name, *args, &block); end
-
- # Get the (approximate) Module.nesting at the give line number.
- #
- # @param line_number [Integer] line number starting from 1
- # @return [Array] a list of open modules.
- #
- # source://pry//lib/pry/code.rb#302
- def nesting_at(line_number); end
-
- # Writes a formatted representation (based on the configuration of the
- # object) to the given output, which must respond to `#<<`.
- #
- # source://pry//lib/pry/code.rb#269
- def print_to_output(output, color = T.unsafe(nil)); end
-
- # Append the given line. +lineno+ is one more than the last existing
- # line, unless specified otherwise.
- #
- # @param line [String]
- # @return [void]
- #
- # source://pry//lib/pry/code.rb#102
- def push(line); end
-
- # Return an unformatted String of the code.
- #
- # @return [String]
- #
- # source://pry//lib/pry/code.rb#309
- def raw; end
-
- # Filter the lines using the given block.
- #
- # @return [Code]
- # @yield [LOC]
- #
- # source://pry//lib/pry/code.rb#122
- def reject(&block); end
-
- # Filter the lines using the given block.
- #
- # @return [Code]
- # @yield [LOC]
- #
- # source://pry//lib/pry/code.rb#112
- def select(&block); end
-
- # Take `num_lines` from `start_line`, forward or backwards.
- #
- # @param start_line [Integer]
- # @param num_lines [Integer]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#150
- def take_lines(start_line, num_lines); end
-
- # @return [String] a formatted representation (based on the configuration of
- # the object).
- #
- # source://pry//lib/pry/code.rb#258
- def to_s; end
-
- # Format output with the specified number of spaces in front of every line,
- # unless `spaces` is falsy.
- #
- # @param spaces [Integer?]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#244
- def with_indentation(spaces = T.unsafe(nil)); end
-
- # Format output with line numbers next to it, unless `y_n` is falsy.
- #
- # @param y_n [Boolean?]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#221
- def with_line_numbers(y_n = T.unsafe(nil)); end
-
- # Format output with a marker next to the given +lineno+, unless +lineno+ is
- # falsy.
- #
- # @param lineno [Integer?]
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#232
- def with_marker(lineno = T.unsafe(nil)); end
-
- protected
-
- # An abstraction of the `dup.instance_eval` pattern used throughout this
- # class.
- #
- # source://pry//lib/pry/code.rb#353
- def alter(&block); end
-
- private
-
- # Check whether String responds to missing methods.
- #
- # @return [Boolean]
- #
- # source://pry//lib/pry/code.rb#345
- def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
-
- class << self
- # Instantiate a `Code` object containing code loaded from a file or
- # Pry's line buffer.
- #
- # @param filename [String] The name of a file, or "(pry)".
- # @param code_type [Symbol] The type of code the file contains.
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#42
- def from_file(filename, code_type = T.unsafe(nil)); end
-
- # Instantiate a `Code` object containing code extracted from a
- # `::Method`, `UnboundMethod`, `Proc`, or `Pry::Method` object.
- #
- # @param meth [::Method, UnboundMethod, Proc, Pry::Method] The method
- # object.
- # @param start_line [Integer, nil] The line number to start on, or nil to
- # use the method's original line numbers.
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#55
- def from_method(meth, start_line = T.unsafe(nil)); end
-
- # Attempt to extract the source code for module (or class) `mod`.
- #
- # @param mod [Module, Class] The module (or class) of interest.
- # @param candidate_rank [Integer] The module candidate (by rank)
- # to use (see `Pry::WrappedModule::Candidate` for more information).
- # @param start_line [Integer, nil] The line number to start on, or nil to
- # use the method's original line numbers.
- # @return [Code]
- #
- # source://pry//lib/pry/code.rb#69
- def from_module(mod, candidate_rank = T.unsafe(nil), start_line = T.unsafe(nil)); end
- end
-end
-
-# Represents a range of lines in a code listing.
-#
-# @api private
-#
-# source://pry//lib/pry/code/code_range.rb#8
-class Pry::Code::CodeRange
- # @api private
- # @param start_line [Integer]
- # @param end_line [Integer?]
- # @return [CodeRange] a new instance of CodeRange
- #
- # source://pry//lib/pry/code/code_range.rb#11
- def initialize(start_line, end_line = T.unsafe(nil)); end
-
- # @api private
- # @param lines [Array]
- # @return [Range]
- #
- # source://pry//lib/pry/code/code_range.rb#19
- def indices_range(lines); end
-
- private
-
- # @api private
- #
- # source://pry//lib/pry/code/code_range.rb#27
- def end_line; end
-
- # @api private
- # @return [Integer]
- #
- # source://pry//lib/pry/code/code_range.rb#57
- def find_end_index(lines); end
-
- # @api private
- # @return [Integer]
- #
- # source://pry//lib/pry/code/code_range.rb#50
- def find_start_index(lines); end
-
- # If `end_line` is equal to `nil`, then calculate it from the first
- # parameter, `start_line`. Otherwise, leave it as it is.
- #
- # @api private
- # @return [void]
- #
- # source://pry//lib/pry/code/code_range.rb#32
- def force_set_end_line; end
-
- # Finds indices of `start_line` and `end_line` in the given Array of
- # +lines+.
- #
- # @api private
- # @param lines [Array]
- # @return [Array]
- #
- # source://pry//lib/pry/code/code_range.rb#45
- def indices(lines); end
-
- # For example, if the range is 4..10, then `start_line` would be equal to
- # 4 and `end_line` to 10.
- #
- # @api private
- # @return [void]
- #
- # source://pry//lib/pry/code/code_range.rb#66
- def set_end_line_from_range; end
-
- # @api private
- #
- # source://pry//lib/pry/code/code_range.rb#25
- def start_line; end
-end
-
-# Represents a line of code (which may, in fact, contain multiple lines if
-# the entirety was eval'd as a single unit following the `edit` command).
-#
-# A line of code is a tuple, which consists of a line and a line number. A
-# `LOC` object's state (namely, the line parameter) can be changed via
-# instance methods. `Pry::Code` heavily uses this class.
-#
-# @api private
-# @example
-# loc = LOC.new("def example\n :example\nend", 1)
-# puts loc.line
-# def example
-# :example
-# end
-# #=> nil
-#
-# loc.indent(3)
-# loc.line #=> " def example\n :example\nend"
-#
-# source://pry//lib/pry/code/loc.rb#23
-class Pry::Code::LOC
- # @api private
- # @param line [String] The line of code.
- # @param lineno [Integer] The position of the +line+.
- # @return [LOC] a new instance of LOC
- #
- # source://pry//lib/pry/code/loc.rb#29
- def initialize(line, lineno); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/code/loc.rb#34
- def ==(other); end
-
- # Prepends the line number `lineno` to the `line`.
- #
- # @api private
- # @param max_width [Integer]
- # @return [void]
- #
- # source://pry//lib/pry/code/loc.rb#64
- def add_line_number(max_width = T.unsafe(nil), color = T.unsafe(nil)); end
-
- # Prepends a marker "=>" or an empty marker to the +line+.
- #
- # @api private
- # @param marker_lineno [Integer] If it is equal to the `lineno`, then
- # prepend a hashrocket. Otherwise, an empty marker.
- # @return [void]
- #
- # source://pry//lib/pry/code/loc.rb#81
- def add_marker(marker_lineno); end
-
- # Paints the `line` of code.
- #
- # @api private
- # @param code_type [Symbol]
- # @return [void]
- #
- # source://pry//lib/pry/code/loc.rb#56
- def colorize(code_type); end
-
- # @api private
- #
- # source://pry//lib/pry/code/loc.rb#38
- def dup; end
-
- # @api private
- #
- # source://pry//lib/pry/code/loc.rb#98
- def handle_multiline_entries_from_edit_command(line, max_width); end
-
- # Indents the `line` with +distance+ spaces.
- #
- # @api private
- # @param distance [Integer]
- # @return [void]
- #
- # source://pry//lib/pry/code/loc.rb#94
- def indent(distance); end
-
- # @api private
- # @return [String]
- #
- # source://pry//lib/pry/code/loc.rb#43
- def line; end
-
- # @api private
- # @return [Integer]
- #
- # source://pry//lib/pry/code/loc.rb#48
- def lineno; end
-
- # @api private
- # @return [Array]
- #
- # source://pry//lib/pry/code/loc.rb#25
- def tuple; end
-end
-
-# source://pry//lib/pry/code/code_file.rb#6
-class Pry::CodeFile
- # @param filename [String] The name of a file with code to be detected
- # @param code_type [Symbol] The type of code the `filename` contains
- # @return [CodeFile] a new instance of CodeFile
- #
- # source://pry//lib/pry/code/code_file.rb#41
- def initialize(filename, code_type = T.unsafe(nil)); end
-
- # @return [String] The code contained in the current `@filename`.
- #
- # source://pry//lib/pry/code/code_file.rb#47
- def code; end
-
- # @return [Symbol] The type of code stored in this wrapper.
- #
- # source://pry//lib/pry/code/code_file.rb#37
- def code_type; end
-
- private
-
- # @raise [MethodSource::SourceNotFoundError] if the `filename` is not
- # readable for some reason.
- # @return [String] absolute path for the given `filename`.
- #
- # source://pry//lib/pry/code/code_file.rb#64
- def abs_path; end
-
- # @return [Array] All the paths that contain code that Pry can use for its
- # API's. Skips directories.
- #
- # source://pry//lib/pry/code/code_file.rb#80
- def code_path; end
-
- # @return [String]
- #
- # source://pry//lib/pry/code/code_file.rb#110
- def from_load_path; end
-
- # @return [String]
- #
- # source://pry//lib/pry/code/code_file.rb#105
- def from_pry_init_pwd; end
-
- # @return [String]
- #
- # source://pry//lib/pry/code/code_file.rb#100
- def from_pwd; end
-
- # @param path [String]
- # @return [Boolean] if the path, with or without the default ext,
- # is a readable file then `true`, otherwise `false`.
- #
- # source://pry//lib/pry/code/code_file.rb#73
- def readable?(path); end
-
- # @param filename [String]
- # @param default [Symbol] (:unknown) the file type to assume if none could be
- # detected.
- # @return [Symbol, nil] The SyntaxHighlighter type of a file from its
- # extension, or `nil` if `:unknown`.
- #
- # source://pry//lib/pry/code/code_file.rb#89
- def type_from_filename(filename, default = T.unsafe(nil)); end
-end
-
-# source://pry//lib/pry/code/code_file.rb#7
-Pry::CodeFile::DEFAULT_EXT = T.let(T.unsafe(nil), String)
-
-# List of all supported languages.
-#
-# @return [Hash]
-#
-# source://pry//lib/pry/code/code_file.rb#11
-Pry::CodeFile::EXTENSIONS = T.let(T.unsafe(nil), Hash)
-
-# source://pry//lib/pry/code/code_file.rb#28
-Pry::CodeFile::FILES = T.let(T.unsafe(nil), Hash)
-
-# Store the current working directory. This allows show-source etc. to work if
-# your process has changed directory since boot. [Issue #675]
-#
-# source://pry//lib/pry/code/code_file.rb#34
-Pry::CodeFile::INITIAL_PWD = T.let(T.unsafe(nil), String)
-
-# This class is responsible for taking a string (identifying a
-# command/class/method/etc) and returning the relevant type of object.
-# For example, if the user looks up "show-source" then a
-# `Pry::Command` will be returned. Alternatively, if the user passes in "Pry#repl" then
-# a `Pry::Method` object will be returned.
-#
-# The `CodeObject.lookup` method is responsible for 1. figuring out what kind of
-# object the user wants (applying precedence rules in doing so -- i.e methods
-# get precedence over commands with the same name) and 2. Returning
-# the appropriate object. If the user fails to provide a string
-# identifer for the object (i.e they pass in `nil` or "") then the
-# object looked up will be the 'current method' or 'current class'
-# associated with the Binding.
-#
-# TODO: This class is a clusterfuck. We need a much more robust
-# concept of what a "Code Object" really is. Currently
-# commands/classes/candidates/methods and so on just share a very
-# ill-defined interface.
-#
-# source://pry//lib/pry/code_object.rb#22
-class Pry::CodeObject
- include ::Pry::Helpers::OptionsHelpers
- include ::Pry::Helpers::CommandHelpers
-
- # @return [CodeObject] a new instance of CodeObject
- #
- # source://pry//lib/pry/code_object.rb#82
- def initialize(str, pry_instance, options = T.unsafe(nil)); end
-
- # TODO: just make it so find_command_by_match_or_listing doesn't raise?
- #
- # source://pry//lib/pry/code_object.rb#94
- def command_lookup; end
-
- # lookup variables and constants and `self` that are not modules
- #
- # source://pry//lib/pry/code_object.rb#118
- def default_lookup; end
-
- # when no paramter is given (i.e CodeObject.lookup(nil)), then we
- # lookup the 'current object' from the binding.
- #
- # source://pry//lib/pry/code_object.rb#102
- def empty_lookup; end
-
- # source://pry//lib/pry/code_object.rb#136
- def method_or_class_lookup; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/code_object.rb#79
- def pry_instance; end
-
- # Sets the attribute pry_instance
- #
- # @param value the value to set the attribute pry_instance to.
- #
- # source://pry//lib/pry/code_object.rb#79
- def pry_instance=(_arg0); end
-
- # Returns the value of attribute str.
- #
- # source://pry//lib/pry/code_object.rb#77
- def str; end
-
- # Sets the attribute str
- #
- # @param value the value to set the attribute str to.
- #
- # source://pry//lib/pry/code_object.rb#77
- def str=(_arg0); end
-
- # Returns the value of attribute super_level.
- #
- # source://pry//lib/pry/code_object.rb#80
- def super_level; end
-
- # Sets the attribute super_level
- #
- # @param value the value to set the attribute super_level to.
- #
- # source://pry//lib/pry/code_object.rb#80
- def super_level=(_arg0); end
-
- # Returns the value of attribute target.
- #
- # source://pry//lib/pry/code_object.rb#78
- def target; end
-
- # Sets the attribute target
- #
- # @param value the value to set the attribute target to.
- #
- # source://pry//lib/pry/code_object.rb#78
- def target=(_arg0); end
-
- private
-
- # Returns true if `str` looks like a method, i.e Klass#method
- # We need to consider this case because method lookups should fall
- # through to the `method_or_class_lookup()` method but a
- # defined?() on a "Klass#method` string will see the `#` as a
- # comment and only evaluate the `Klass` part.
- #
- # @param str [String]
- # @return [Boolean] Whether the string looks like an instance method.
- #
- # source://pry//lib/pry/code_object.rb#163
- def looks_like_an_instance_method?(str); end
-
- # grab the nth (`super_level`) super of `obj
- #
- # @param obj [Object]
- # @param super_level [Fixnum] How far up the super chain to ascend.
- # @raise [Pry::CommandError]
- #
- # source://pry//lib/pry/code_object.rb#188
- def lookup_super(obj, super_level); end
-
- # We use this method to decide whether code is safe to eval. Method's are
- # generally not, but everything else is.
- # TODO: is just checking != "method" enough??
- # TODO: see duplication of this method in Pry::WrappedModule
- #
- # @param str [String] The string to lookup
- # @return [Boolean]
- #
- # source://pry//lib/pry/code_object.rb#173
- def safe_to_evaluate?(str); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/code_object.rb#152
- def sourcable_object?(obj); end
-
- # source://pry//lib/pry/code_object.rb#181
- def target_self; end
-
- class << self
- # source://pry//lib/pry/code_object.rb#69
- def lookup(str, pry_instance, options = T.unsafe(nil)); end
- end
-end
-
-# source://pry//lib/pry/code_object.rb#23
-module Pry::CodeObject::Helpers
- # @return [Boolean]
- #
- # source://pry//lib/pry/code_object.rb#30
- def c_method?; end
-
- # @note If a module defined by C was extended with a lot of methods written
- # in Ruby, this method would fail.
- # @return [Boolean] `true` if this module was defined by means of the C API,
- # `false` if it's a Ruby module.
- #
- # source://pry//lib/pry/code_object.rb#46
- def c_module?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/code_object.rb#38
- def command?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/code_object.rb#34
- def module_with_yard_docs?; end
-
- # we need this helper as some Pry::Method objects can wrap Procs
- #
- # @return [Boolean]
- #
- # source://pry//lib/pry/code_object.rb#26
- def real_method_object?; end
-end
-
-# PP subclass for streaming inspect output in color.
-#
-# source://pry//lib/pry/color_printer.rb#8
-class Pry::ColorPrinter < ::PP
- # source://pry//lib/pry/color_printer.rb#25
- def pp(object); end
-
- # source://pry//lib/pry/color_printer.rb#37
- def text(str, max_width = T.unsafe(nil)); end
-
- private
-
- # source://pry//lib/pry/color_printer.rb#49
- def highlight_object_literal(object_literal); end
-
- # source://pry//lib/pry/color_printer.rb#55
- def inspect_object(object); end
-
- class << self
- # source://pry//lib/pry/color_printer.rb#11
- def default(_output, value, pry_instance); end
-
- # source://pry//lib/pry/color_printer.rb#18
- def pp(obj, output = T.unsafe(nil), max_width = T.unsafe(nil)); end
- end
-end
-
-# N.B. using a regular expresion here so that "raise-up 'foo'" does the right thing.
-#
-# source://pry//lib/pry/command.rb#11
-class Pry::Command
- include ::Pry::Helpers::BaseHelpers
- include ::Pry::Helpers::OptionsHelpers
- include ::Pry::Helpers::CommandHelpers
- include ::Pry::Helpers::Text
- extend ::Pry::Helpers::DocumentationHelpers
- extend ::Pry::CodeObject::Helpers
-
- # Instantiate a command, in preparation for calling it.
- #
- # @param context [Hash] The runtime context to use with this command.
- # @return [Command] a new instance of Command
- #
- # source://pry//lib/pry/command.rb#230
- def initialize(context = T.unsafe(nil)); end
-
- # source://pry//lib/pry/command.rb#292
- def _pry_; end
-
- # Sets the attribute pry_instance
- #
- # @param value the value to set the attribute pry_instance to.
- #
- # source://pry//lib/pry/command.rb#217
- def _pry_=(_arg0); end
-
- # Returns the value of attribute arg_string.
- #
- # source://pry//lib/pry/command.rb#213
- def arg_string; end
-
- # Sets the attribute arg_string
- #
- # @param value the value to set the attribute arg_string to.
- #
- # source://pry//lib/pry/command.rb#213
- def arg_string=(_arg0); end
-
- # source://pry//lib/pry/command.rb#253
- def block; end
-
- # Returns the value of attribute captures.
- #
- # source://pry//lib/pry/command.rb#211
- def captures; end
-
- # Sets the attribute captures
- #
- # @param value the value to set the attribute captures to.
- #
- # source://pry//lib/pry/command.rb#211
- def captures=(_arg0); end
-
- # Display a warning if a command collides with a local/method in
- # the current scope.
- #
- # source://pry//lib/pry/command.rb#329
- def check_for_command_collision(command_match, arg_string); end
-
- # The block we pass *into* a command so long as `:takes_block` is
- # not equal to `false`
- #
- # @example
- # my-command | do
- # puts "block content"
- # end
- #
- # source://pry//lib/pry/command.rb#226
- def command_block; end
-
- # The block we pass *into* a command so long as `:takes_block` is
- # not equal to `false`
- #
- # @example
- # my-command | do
- # puts "block content"
- # end
- #
- # source://pry//lib/pry/command.rb#226
- def command_block=(_arg0); end
-
- # source://pry//lib/pry/command.rb#261
- def command_name; end
-
- # source://pry//lib/pry/command.rb#257
- def command_options; end
-
- # Returns the value of attribute command_set.
- #
- # source://pry//lib/pry/command.rb#215
- def command_set; end
-
- # Sets the attribute command_set
- #
- # @param value the value to set the attribute command_set to.
- #
- # source://pry//lib/pry/command.rb#215
- def command_set=(_arg0); end
-
- # source://pry//lib/pry/command.rb#284
- def commands; end
-
- # Generate completions for this command
- #
- # @param _search [String] The line typed so far
- # @return [Array] Completion words
- #
- # source://pry//lib/pry/command.rb#411
- def complete(_search); end
-
- # Returns the value of attribute context.
- #
- # source://pry//lib/pry/command.rb#214
- def context; end
-
- # Sets the attribute context
- #
- # @param value the value to set the attribute context to.
- #
- # source://pry//lib/pry/command.rb#214
- def context=(_arg0); end
-
- # source://pry//lib/pry/command.rb#249
- def description; end
-
- # Returns the value of attribute eval_string.
- #
- # source://pry//lib/pry/command.rb#212
- def eval_string; end
-
- # Sets the attribute eval_string
- #
- # @param value the value to set the attribute eval_string to.
- #
- # source://pry//lib/pry/command.rb#212
- def eval_string=(_arg0); end
-
- # Returns the value of attribute hooks.
- #
- # source://pry//lib/pry/command.rb#216
- def hooks; end
-
- # Sets the attribute hooks
- #
- # @param value the value to set the attribute hooks to.
- #
- # source://pry//lib/pry/command.rb#216
- def hooks=(_arg0); end
-
- # Revaluate the string (str) and perform interpolation.
- #
- # @param str [String] The string to reevaluate with interpolation.
- # @return [String] The reevaluated string with interpolations
- # applied (if any).
- #
- # source://pry//lib/pry/command.rb#318
- def interpolate_string(str); end
-
- # source://pry//lib/pry/command.rb#245
- def match; end
-
- # Make those properties accessible to instances
- #
- # source://pry//lib/pry/command.rb#241
- def name; end
-
- # Properties of one execution of a command (passed by {Pry#run_command} as a hash of
- # context and expanded in `#initialize`
- #
- # source://pry//lib/pry/command.rb#209
- def output; end
-
- # Properties of one execution of a command (passed by {Pry#run_command} as a hash of
- # context and expanded in `#initialize`
- #
- # source://pry//lib/pry/command.rb#209
- def output=(_arg0); end
-
- # Process a line that Command.matches? this command.
- #
- # @param line [String] The line to process
- # @return [Object, Command::VOID_VALUE]
- #
- # source://pry//lib/pry/command.rb#394
- def process_line(line); end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/command.rb#217
- def pry_instance; end
-
- # Sets the attribute pry_instance
- #
- # @param value the value to set the attribute pry_instance to.
- #
- # source://pry//lib/pry/command.rb#217
- def pry_instance=(_arg0); end
-
- # Run a command from another command.
- #
- # @example
- # run "show-input"
- # @example
- # run ".ls"
- # @example
- # run "amend-line", "5", 'puts "hello world"'
- # @param command_string [String] The string that invokes the command
- # @param args [Array] Further arguments to pass to the command
- #
- # source://pry//lib/pry/command.rb#278
- def run(command_string, *args); end
-
- # source://pry//lib/pry/command.rb#265
- def source; end
-
- # @example
- # state.my_state = "my state" # this will not conflict with any
- # # `state.my_state` used in another command.
- # @return [Hash] Pry commands can store arbitrary state
- # here. This state persists between subsequent command invocations.
- # All state saved here is unique to the command, it does not
- # need to be namespaced.
- #
- # source://pry//lib/pry/command.rb#309
- def state; end
-
- # Returns the value of attribute target.
- #
- # source://pry//lib/pry/command.rb#210
- def target; end
-
- # Sets the attribute target
- #
- # @param value the value to set the attribute target to.
- #
- # source://pry//lib/pry/command.rb#210
- def target=(_arg0); end
-
- # @return [Object] The value of `self` inside the `target` binding.
- #
- # source://pry//lib/pry/command.rb#298
- def target_self; end
-
- # Extract necessary information from a line that Command.matches? this
- # command.
- #
- # Returns an array of four elements:
- #
- # ```
- # [String] the portion of the line that matched with the Command match
- # [String] a string of all the arguments (i.e. everything but the match)
- # [Array] the captures caught by the command_regex
- # [Array] the arguments obtained by splitting the arg_string
- # ```
- #
- # @param val [String] The line of input
- # @return [Array]
- #
- # source://pry//lib/pry/command.rb#356
- def tokenize(val); end
-
- # source://pry//lib/pry/command.rb#288
- def void; end
-
- private
-
- # source://pry//lib/pry/command.rb#485
- def after_hooks; end
-
- # source://pry//lib/pry/command.rb#481
- def before_hooks; end
-
- # Run the command with the given `args`.
- #
- # This is a public wrapper around `#call` which ensures all preconditions
- # are met.
- #
- # @param args [Array] The arguments to pass to this command.
- # @return [Object] The return value of the `#call` method, or
- # {Command::VOID_VALUE}.
- #
- # source://pry//lib/pry/command.rb#425
- def call_safely(*args); end
-
- # Run the `#call` method and all the registered hooks.
- #
- # @param args [Array] The arguments to `#call`
- # @return [Object] The return value from `#call`
- #
- # source://pry//lib/pry/command.rb#492
- def call_with_hooks(*args); end
-
- # source://pry//lib/pry/command.rb#476
- def find_hooks(event); end
-
- # Normalize method arguments according to its arity.
- #
- # @param method [Integer]
- # @param args [Array]
- # @return [Array] a (possibly shorter) array of the arguments to pass
- #
- # source://pry//lib/pry/command.rb#509
- def normalize_method_args(method, args); end
-
- # Pass a block argument to a command.
- #
- # @param arg_string [String] The arguments (as a string) passed to the command.
- # We inspect these for a '| do' or a '| {' and if we find it we use it
- # to start a block input sequence. Once we have a complete
- # block, we save it to an accessor that can be retrieved from the command context.
- # Note that if we find the '| do' or '| {' we delete this and the
- # elements following it from `arg_string`.
- #
- # source://pry//lib/pry/command.rb#451
- def pass_block(arg_string); end
-
- # source://pry//lib/pry/command.rb#436
- def use_unpatched_symbol; end
-
- class << self
- # Define or get the command's banner
- #
- # source://pry//lib/pry/command.rb#61
- def banner(arg = T.unsafe(nil)); end
-
- # source://pry//lib/pry/command.rb#66
- def block; end
-
- # Sets the attribute block
- #
- # @param value the value to set the attribute block to.
- #
- # source://pry//lib/pry/command.rb#30
- def block=(_arg0); end
-
- # source://pry//lib/pry/command.rb#109
- def command_name; end
-
- # Define or get the command's options
- #
- # source://pry//lib/pry/command.rb#51
- def command_options(arg = T.unsafe(nil)); end
-
- # Sets the attribute command_options
- #
- # @param value the value to set the attribute command_options to.
- #
- # source://pry//lib/pry/command.rb#32
- def command_options=(_arg0); end
-
- # source://pry//lib/pry/command.rb#165
- def command_regex; end
-
- # source://pry//lib/pry/command.rb#172
- def convert_to_regex(obj); end
-
- # source://pry//lib/pry/command.rb#89
- def default_options(match); end
-
- # Define or get the command's description
- #
- # source://pry//lib/pry/command.rb#45
- def description(arg = T.unsafe(nil)); end
-
- # Sets the attribute description
- #
- # @param value the value to set the attribute description to.
- #
- # source://pry//lib/pry/command.rb#31
- def description=(_arg0); end
-
- # source://pry//lib/pry/command.rb#75
- def doc; end
-
- # source://pry//lib/pry/command.rb#79
- def file; end
-
- # The group in which the command should be displayed in "help" output.
- # This is usually auto-generated from directory naming, but it can be
- # manually overridden if necessary.
- # Group should not be changed once it is initialized.
- #
- # source://pry//lib/pry/command.rb#185
- def group(name = T.unsafe(nil)); end
-
- # source://pry//lib/pry/command.rb#105
- def inspect; end
-
- # source://pry//lib/pry/command.rb#84
- def line; end
-
- # source://pry//lib/pry/command.rb#35
- def match(arg = T.unsafe(nil)); end
-
- # Sets the attribute match
- #
- # @param value the value to set the attribute match to.
- #
- # source://pry//lib/pry/command.rb#33
- def match=(_arg0); end
-
- # How well does this command match the given line?
- #
- # Higher scores are better because they imply that this command matches
- # the line more closely.
- #
- # The score is calculated by taking the number of characters at the start
- # of the string that are used only to identify the command, not as part of
- # the arguments.
- #
- # @example
- # /\.(.*)/.match_score(".foo") #=> 1
- # /\.*(.*)/.match_score("...foo") #=> 3
- # 'hi'.match_score("hi there") #=> 2
- # @param val [String] A line input at the REPL
- # @return [Fixnum]
- #
- # source://pry//lib/pry/command.rb#153
- def match_score(val); end
-
- # Should this command be called for the given line?
- #
- # @param val [String] A line input at the REPL
- # @return [Boolean]
- #
- # source://pry//lib/pry/command.rb#133
- def matches?(val); end
-
- # source://pry//lib/pry/command.rb#101
- def name; end
-
- # Define or get the command's options
- # backward compatibility
- #
- # source://pry//lib/pry/command.rb#51
- def options(arg = T.unsafe(nil)); end
-
- # Sets the attribute command_options
- #
- # @param value the value to set the attribute command_options to.
- #
- # source://pry//lib/pry/command.rb#32
- def options=(_arg0); end
-
- # source://pry//lib/pry/command.rb#70
- def source; end
-
- # source://pry//lib/pry/command.rb#79
- def source_file; end
-
- # source://pry//lib/pry/command.rb#84
- def source_line; end
-
- # source://pry//lib/pry/command.rb#202
- def state; end
-
- # Create a new command with the given properties.
- #
- # @param match [String, Regex] The thing that triggers this command
- # @param description [String] The description to appear in `help`
- # @param options [Hash] Behavioral options (see {Pry::CommandSet#command})
- # @param helpers [Module] A module of helper functions to be included.
- # @return [Class] (a subclass of {Pry::Command})
- # @yield optional, used for BlockCommands
- #
- # source://pry//lib/pry/command.rb#120
- def subclass(match, description, options, helpers, &block); end
- end
-end
-
-# source://pry//lib/pry/commands/amend_line.rb#5
-class Pry::Command::AmendLine < ::Pry::ClassCommand
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/amend_line.rb#22
- def process; end
-
- private
-
- # @return [String] A new string with the amendments applied to it.
- #
- # source://pry//lib/pry/commands/amend_line.rb#33
- def amend_input; end
-
- # source://pry//lib/pry/commands/amend_line.rb#47
- def delete_from_array(array, range); end
-
- # source://pry//lib/pry/commands/amend_line.rb#51
- def insert_into_array(array, range); end
-
- # @return [Fixnum] The number of lines currently in `eval_string` (the
- # input buffer)
- #
- # source://pry//lib/pry/commands/amend_line.rb#62
- def line_count; end
-
- # The lines (or line) that will be modified by the `amend-line`.
- #
- # @return [Range, Fixnum] The lines or line.
- #
- # source://pry//lib/pry/commands/amend_line.rb#90
- def line_range; end
-
- # source://pry//lib/pry/commands/amend_line.rb#56
- def replace_in_array(array, range); end
-
- # Returns the (one-indexed) start and end lines given by the user.
- # The lines in this range will be affected by the `amend-line`.
- # Returns `nil` if no lines were specified by the user.
- #
- # @return [Array, nil]
- #
- # source://pry//lib/pry/commands/amend_line.rb#70
- def start_and_end_line_number; end
-
- # Takes two numbers that are 1-indexed, and returns a range (or
- # number) that is 0-indexed. 1-indexed means the first element is
- # indentified by 1 rather than by 0 (as is the case for Ruby arrays).
- #
- # @param start_line_number [Fixnum] One-indexed number.
- # @param end_line_number [Fixnum] One-indexed number.
- # @return [Range] The zero-indexed range.
- #
- # source://pry//lib/pry/commands/amend_line.rb#83
- def zero_indexed_range_from_one_indexed_numbers(start_line_number, end_line_number); end
-end
-
-# source://pry//lib/pry/commands/bang.rb#5
-class Pry::Command::Bang < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/bang.rb#16
- def process; end
-end
-
-# source://pry//lib/pry/commands/bang_pry.rb#5
-class Pry::Command::BangPry < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/bang_pry.rb#14
- def process; end
-end
-
-# source://pry//lib/pry/commands/cat.rb#5
-class Pry::Command::Cat < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/cat.rb#53
- def complete(search); end
-
- # source://pry//lib/pry/commands/cat.rb#57
- def load_path_completions; end
-
- # source://pry//lib/pry/commands/cat.rb#23
- def options(opt); end
-
- # source://pry//lib/pry/commands/cat.rb#38
- def process; end
-end
-
-# source://pry//lib/pry/commands/cat/abstract_formatter.rb#6
-class Pry::Command::Cat::AbstractFormatter
- include ::Pry::Helpers::OptionsHelpers
- include ::Pry::Helpers::CommandHelpers
- include ::Pry::Helpers::BaseHelpers
-
- private
-
- # source://pry//lib/pry/commands/cat/abstract_formatter.rb#26
- def between_lines; end
-
- # source://pry//lib/pry/commands/cat/abstract_formatter.rb#18
- def code_type; end
-
- # source://pry//lib/pry/commands/cat/abstract_formatter.rb#12
- def decorate(content); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/cat/abstract_formatter.rb#22
- def use_line_numbers?; end
-end
-
-# source://pry//lib/pry/commands/cat/exception_formatter.rb#6
-class Pry::Command::Cat::ExceptionFormatter < ::Pry::Command::Cat::AbstractFormatter
- include ::Pry::Helpers::Text
-
- # @return [ExceptionFormatter] a new instance of ExceptionFormatter
- #
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#12
- def initialize(exception, pry_instance, opts); end
-
- # Returns the value of attribute ex.
- #
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#7
- def ex; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#18
- def format; end
-
- # Returns the value of attribute opts.
- #
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#8
- def opts; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#9
- def pry_instance; end
-
- private
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#56
- def backtrace_file; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#37
- def backtrace_level; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#60
- def backtrace_line; end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#64
- def check_for_errors; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#33
- def code_window_size; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#78
- def header; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#52
- def increment_backtrace_level; end
-
- # source://pry//lib/pry/commands/cat/exception_formatter.rb#71
- def start_and_end_line_for_code_window; end
-end
-
-# source://pry//lib/pry/commands/cat/file_formatter.rb#6
-class Pry::Command::Cat::FileFormatter < ::Pry::Command::Cat::AbstractFormatter
- # @return [FileFormatter] a new instance of FileFormatter
- #
- # source://pry//lib/pry/commands/cat/file_formatter.rb#11
- def initialize(file_with_embedded_line, pry_instance, opts); end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#27
- def file_and_line; end
-
- # Returns the value of attribute file_with_embedded_line.
- #
- # source://pry//lib/pry/commands/cat/file_formatter.rb#7
- def file_with_embedded_line; end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#22
- def format; end
-
- # Returns the value of attribute opts.
- #
- # source://pry//lib/pry/commands/cat/file_formatter.rb#8
- def opts; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/cat/file_formatter.rb#9
- def pry_instance; end
-
- private
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#55
- def code_type; end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#43
- def code_window_size; end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#47
- def decorate(content); end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#59
- def detect_code_type_from_file(file_name); end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#35
- def file_name; end
-
- # source://pry//lib/pry/commands/cat/file_formatter.rb#39
- def line_number; end
-end
-
-# source://pry//lib/pry/commands/cat/input_expression_formatter.rb#6
-class Pry::Command::Cat::InputExpressionFormatter < ::Pry::Command::Cat::AbstractFormatter
- # @return [InputExpressionFormatter] a new instance of InputExpressionFormatter
- #
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#10
- def initialize(input_expressions, opts); end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#15
- def format; end
-
- # Returns the value of attribute input_expressions.
- #
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#7
- def input_expressions; end
-
- # Sets the attribute input_expressions
- #
- # @param value the value to set the attribute input_expressions to.
- #
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#7
- def input_expressions=(_arg0); end
-
- # Returns the value of attribute opts.
- #
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#8
- def opts; end
-
- # Sets the attribute opts
- #
- # @param value the value to set the attribute opts to.
- #
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#8
- def opts=(_arg0); end
-
- private
-
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#42
- def normalized_expression_range; end
-
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#37
- def numbered_input_items; end
-
- # source://pry//lib/pry/commands/cat/input_expression_formatter.rb#33
- def selected_input_items; end
-end
-
-# source://pry//lib/pry/commands/cd.rb#5
-class Pry::Command::Cd < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/cd.rb#25
- def process; end
-end
-
-# source://pry//lib/pry/commands/change_inspector.rb#5
-class Pry::Command::ChangeInspector < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/change_inspector.rb#17
- def process(inspector); end
-
- private
-
- # source://pry//lib/pry/commands/change_inspector.rb#28
- def inspector_map; end
-end
-
-# source://pry//lib/pry/commands/change_prompt.rb#5
-class Pry::Command::ChangePrompt < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/change_prompt.rb#16
- def options(opt); end
-
- # source://pry//lib/pry/commands/change_prompt.rb#20
- def process(prompt); end
-
- private
-
- # source://pry//lib/pry/commands/change_prompt.rb#38
- def change_prompt(prompt); end
-
- # source://pry//lib/pry/commands/change_prompt.rb#30
- def list_prompts; end
-end
-
-# source://pry//lib/pry/commands/clear_screen.rb#5
-class Pry::Command::ClearScreen < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/clear_screen.rb#10
- def process; end
-end
-
-# source://pry//lib/pry/commands/code_collector.rb#5
-class Pry::Command::CodeCollector
- include ::Pry::Helpers::OptionsHelpers
- include ::Pry::Helpers::CommandHelpers
-
- # @return [CodeCollector] a new instance of CodeCollector
- #
- # source://pry//lib/pry/commands/code_collector.rb#23
- def initialize(args, opts, pry_instance); end
-
- # Returns the value of attribute args.
- #
- # source://pry//lib/pry/commands/code_collector.rb#8
- def args; end
-
- # The code object
- #
- # @return [Pry::WrappedModule, Pry::Method, Pry::Command]
- #
- # source://pry//lib/pry/commands/code_collector.rb#86
- def code_object; end
-
- # The content (i.e code/docs) for the selected object.
- # If the user provided a bare code object, it returns the source.
- # If the user provided the `-i` or `-o` switches, it returns the
- # selected input/output lines joined as a string. If the user used
- # `-d CODE_OBJECT` it returns the docs for that code object.
- #
- # @return [String]
- #
- # source://pry//lib/pry/commands/code_collector.rb#60
- def content; end
-
- # The name of the explicitly given file (if any).
- #
- # source://pry//lib/pry/commands/code_collector.rb#13
- def file; end
-
- # The name of the explicitly given file (if any).
- #
- # source://pry//lib/pry/commands/code_collector.rb#13
- def file=(_arg0); end
-
- # The line range passed to `--lines`, converted to a 0-indexed range.
- #
- # source://pry//lib/pry/commands/code_collector.rb#123
- def line_range; end
-
- # Name of the object argument
- #
- # source://pry//lib/pry/commands/code_collector.rb#128
- def obj_name; end
-
- # Returns the value of attribute opts.
- #
- # source://pry//lib/pry/commands/code_collector.rb#9
- def opts; end
-
- # The selected `pry_instance.input_ring` as a string, as specified by
- # the `-i` switch.
- #
- # @return [String]
- #
- # source://pry//lib/pry/commands/code_collector.rb#116
- def pry_input_content; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/code_collector.rb#10
- def pry_instance; end
-
- # The selected `pry_instance.output_ring` as a string, as specified by
- # the `-o` switch.
- #
- # @return [String]
- #
- # source://pry//lib/pry/commands/code_collector.rb#104
- def pry_output_content; end
-
- # Given a string and a range, return the `range` lines of that
- # string.
- #
- # @param content [String]
- # @param range [Range, Fixnum]
- # @return [String] The string restricted to the given range
- #
- # source://pry//lib/pry/commands/code_collector.rb#96
- def restrict_to_lines(content, range); end
-
- private
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/code_collector.rb#134
- def bad_option_combination?; end
-
- # source://pry//lib/pry/commands/code_collector.rb#153
- def code_object_doc; end
-
- # source://pry//lib/pry/commands/code_collector.rb#157
- def code_object_source_or_file; end
-
- # source://pry//lib/pry/commands/code_collector.rb#175
- def convert_to_range(range); end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/code_collector.rb#171
- def could_not_locate(name); end
-
- # source://pry//lib/pry/commands/code_collector.rb#161
- def file_content; end
-
- # source://pry//lib/pry/commands/code_collector.rb#139
- def pry_array_content_as_string(array, ranges); end
-
- class << self
- # Add the `--lines`, `-o`, `-i`, `-s`, `-d` options.
- #
- # source://pry//lib/pry/commands/code_collector.rb#30
- def inject_options(opt); end
-
- # Returns the value of attribute input_expression_ranges.
- #
- # source://pry//lib/pry/commands/code_collector.rb#16
- def input_expression_ranges; end
-
- # Sets the attribute input_expression_ranges
- #
- # @param value the value to set the attribute input_expression_ranges to.
- #
- # source://pry//lib/pry/commands/code_collector.rb#16
- def input_expression_ranges=(_arg0); end
-
- # Returns the value of attribute output_result_ranges.
- #
- # source://pry//lib/pry/commands/code_collector.rb#17
- def output_result_ranges; end
-
- # Sets the attribute output_result_ranges
- #
- # @param value the value to set the attribute output_result_ranges to.
- #
- # source://pry//lib/pry/commands/code_collector.rb#17
- def output_result_ranges=(_arg0); end
- end
-end
-
-# source://pry//lib/pry/commands/disable_pry.rb#5
-class Pry::Command::DisablePry < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/disable_pry.rb#23
- def process; end
-end
-
-# source://pry//lib/pry/commands/edit.rb#5
-class Pry::Command::Edit < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/edit.rb#89
- def apply_runtime_patch; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#172
- def bad_option_combination?; end
-
- # source://pry//lib/pry/commands/edit.rb#152
- def code_object; end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/edit.rb#105
- def ensure_file_name_is_valid(file_name); end
-
- # source://pry//lib/pry/commands/edit.rb#119
- def file_and_line; end
-
- # source://pry//lib/pry/commands/edit.rb#115
- def file_and_line_for_current_exception; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#78
- def file_based_exception?; end
-
- # source://pry//lib/pry/commands/edit.rb#135
- def file_edit; end
-
- # source://pry//lib/pry/commands/edit.rb#148
- def filename_argument; end
-
- # source://pry//lib/pry/commands/edit.rb#203
- def initial_temp_file_content; end
-
- # source://pry//lib/pry/commands/edit.rb#180
- def input_expression; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#195
- def never_reload?; end
-
- # source://pry//lib/pry/commands/edit.rb#25
- def options(opt); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#168
- def patch_exception?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#163
- def previously_patched?(code_object); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#215
- def probably_a_file?(str); end
-
- # source://pry//lib/pry/commands/edit.rb#46
- def process; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#158
- def pry_method?(code_object); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#199
- def reload?(file_name = T.unsafe(nil)); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#191
- def reloadable?; end
-
- # source://pry//lib/pry/commands/edit.rb#69
- def repl_edit; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#64
- def repl_edit?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/edit.rb#82
- def runtime_patch?; end
-end
-
-# source://pry//lib/pry/commands/edit/exception_patcher.rb#6
-class Pry::Command::Edit::ExceptionPatcher
- # @return [ExceptionPatcher] a new instance of ExceptionPatcher
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#11
- def initialize(pry_instance, state, exception_file_and_line); end
-
- # Returns the value of attribute file_and_line.
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#9
- def file_and_line; end
-
- # Sets the attribute file_and_line
- #
- # @param value the value to set the attribute file_and_line to.
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#9
- def file_and_line=(_arg0); end
-
- # perform the patch
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#18
- def perform_patch; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#7
- def pry_instance; end
-
- # Sets the attribute pry_instance
- #
- # @param value the value to set the attribute pry_instance to.
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#7
- def pry_instance=(_arg0); end
-
- # Returns the value of attribute state.
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#8
- def state; end
-
- # Sets the attribute state
- #
- # @param value the value to set the attribute state to.
- #
- # source://pry//lib/pry/commands/edit/exception_patcher.rb#8
- def state=(_arg0); end
-end
-
-# source://pry//lib/pry/commands/edit/file_and_line_locator.rb#6
-module Pry::Command::Edit::FileAndLineLocator
- class << self
- # source://pry//lib/pry/commands/edit/file_and_line_locator.rb#8
- def from_binding(target); end
-
- # source://pry//lib/pry/commands/edit/file_and_line_locator.rb#16
- def from_code_object(code_object, filename_argument); end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/edit/file_and_line_locator.rb#24
- def from_exception(exception, backtrace_level); end
-
- # when file and line are passed as a single arg, e.g my_file.rb:30
- #
- # source://pry//lib/pry/commands/edit/file_and_line_locator.rb#38
- def from_filename_argument(filename_argument); end
- end
-end
-
-# source://pry//lib/pry/commands/exit.rb#5
-class Pry::Command::Exit < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/exit.rb#25
- def process; end
-
- # source://pry//lib/pry/commands/exit.rb#34
- def process_pop_and_return; end
-end
-
-# source://pry//lib/pry/commands/exit_all.rb#5
-class Pry::Command::ExitAll < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/exit_all.rb#18
- def process; end
-end
-
-# source://pry//lib/pry/commands/exit_program.rb#5
-class Pry::Command::ExitProgram < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/exit_program.rb#18
- def process; end
-end
-
-# source://pry//lib/pry/commands/find_method.rb#5
-class Pry::Command::FindMethod < ::Pry::ClassCommand
- extend ::Pry::Helpers::BaseHelpers
-
- # source://pry//lib/pry/commands/find_method.rb#31
- def options(opt); end
-
- # source://pry//lib/pry/commands/find_method.rb#36
- def process; end
-
- private
-
- # Return the matched lines of method source if `-c` is given or ""
- # if `-c` was not given
- #
- # source://pry//lib/pry/commands/find_method.rb#100
- def additional_info(header, method); end
-
- # Search for all methods who's implementation matches the given regex
- # within a namespace.
- #
- # @param namespace [Module] The namespace to search
- # @return [Array]
- #
- # source://pry//lib/pry/commands/find_method.rb#186
- def content_search(namespace); end
-
- # source://pry//lib/pry/commands/find_method.rb#108
- def matched_method_lines(header, method); end
-
- # Search for all methods with a name that matches the given regex
- # within a namespace.
- #
- # @param namespace [Module] The namespace to search
- # @return [Array]
- #
- # source://pry//lib/pry/commands/find_method.rb#174
- def name_search(namespace); end
-
- # @return [Regexp] The pattern to search for.
- #
- # source://pry//lib/pry/commands/find_method.rb#48
- def pattern; end
-
- # pretty-print a list of matching methods.
- #
- # @param matches [Array]
- #
- # source://pry//lib/pry/commands/find_method.rb#80
- def print_matches(matches); end
-
- # Print matched methods for a class
- #
- # source://pry//lib/pry/commands/find_method.rb#90
- def print_matches_for_class(klass, grouped); end
-
- # Run the given block against every constant in the provided namespace.
- #
- # @param klass [Module] The namespace in which to start the search.
- # @param done [Hash] The namespaces we've already visited (private)
- # @yieldparam klass Each class/module in the namespace.
- #
- # source://pry//lib/pry/commands/find_method.rb#120
- def recurse_namespace(klass, done = T.unsafe(nil), &block); end
-
- # Gather all the methods in a namespace that pass the given block.
- #
- # @param namespace [Module] The namespace in which to search.
- # @return [Array]
- # @yieldparam method [Method] The method to test
- # @yieldreturn [Boolean]
- #
- # source://pry//lib/pry/commands/find_method.rb#150
- def search_all_methods(namespace); end
-
- # The class to search for methods.
- # We only search classes, so if the search object is an
- # instance, return its class. If no search object is given
- # search `target_self`.
- #
- # source://pry//lib/pry/commands/find_method.rb#67
- def search_class; end
-
- # Output the result of the search.
- #
- # @param matches [Array]
- #
- # source://pry//lib/pry/commands/find_method.rb#55
- def show_search_results(matches); end
-end
-
-# source://pry//lib/pry/commands/fix_indent.rb#5
-class Pry::Command::FixIndent < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/fix_indent.rb#15
- def process; end
-end
-
-# source://pry//lib/pry/commands/help.rb#5
-class Pry::Command::Help < ::Pry::ClassCommand
- # Get a hash of available commands grouped by the "group" name.
- #
- # source://pry//lib/pry/commands/help.rb#29
- def command_groups; end
-
- # Display help for an individual command.
- #
- # @param command [Pry::Command]
- #
- # source://pry//lib/pry/commands/help.rb#125
- def display_command(command); end
-
- # Display help for a searched item, filtered by group
- #
- # @param search [String] The string to search for.
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/help.rb#111
- def display_filtered_commands(search); end
-
- # Display help for a searched item, filtered first by group
- # and if that fails, filtered by command name.
- #
- # @param search [String] The string to search for.
- #
- # source://pry//lib/pry/commands/help.rb#98
- def display_filtered_search_results(search); end
-
- # Display the index view, with headings and short descriptions per command.
- #
- # @param groups [Hash>]
- #
- # source://pry//lib/pry/commands/help.rb#44
- def display_index(groups); end
-
- # Display help for an individual command or group.
- #
- # @param search [String] The string to search for.
- #
- # source://pry//lib/pry/commands/help.rb#86
- def display_search(search); end
-
- # source://pry//lib/pry/commands/help.rb#159
- def group_sort_key(group_name); end
-
- # Given a group name and an array of commands,
- # return the help string for those commands.
- #
- # @param name [String] The group name.
- # @param commands [Array]
- # @return [String] The generated help string.
- #
- # source://pry//lib/pry/commands/help.rb#62
- def help_text_for_commands(name, commands); end
-
- # Clean search terms to make it easier to search group names
- #
- # @param key [String]
- # @return [String]
- #
- # source://pry//lib/pry/commands/help.rb#155
- def normalize(key); end
-
- # source://pry//lib/pry/commands/help.rb#33
- def process; end
-
- # Find a subset of a hash that matches the user's search term.
- #
- # If there's an exact match a Hash of one element will be returned,
- # otherwise a sub-Hash with every key that matches the search will
- # be returned.
- #
- # @param search [String] the search term
- # @param hash [Hash] the hash to search
- #
- # source://pry//lib/pry/commands/help.rb#137
- def search_hash(search, hash); end
-
- # Sort an array of commands by their `listing` name.
- #
- # @param commands [Array] The commands to sort
- # @return [Array] commands sorted by listing name.
- #
- # source://pry//lib/pry/commands/help.rb#79
- def sorted_commands(commands); end
-
- # @param groups [Hash]
- # @return [Array] An array of sorted group names.
- #
- # source://pry//lib/pry/commands/help.rb#71
- def sorted_group_names(groups); end
-
- # We only want to show commands that have descriptions, so that the
- # easter eggs don't show up.
- #
- # source://pry//lib/pry/commands/help.rb#20
- def visible_commands; end
-end
-
-# source://pry//lib/pry/commands/hist.rb#5
-class Pry::Command::Hist < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/hist.rb#25
- def options(opt); end
-
- # source://pry//lib/pry/commands/hist.rb#43
- def process; end
-
- private
-
- # Checks +replay_sequence+ for the presence of neighboring replay calls.
- #
- # @example
- # [1] pry(main)> hist --show 46894
- # 46894: hist --replay 46675..46677
- # [2] pry(main)> hist --show 46675..46677
- # 46675: 1+1
- # 46676: a = 100
- # 46677: hist --tail
- # [3] pry(main)> hist --replay 46894
- # Error: Replay index 46894 points out to another replay call:
- # `hist -r 46675..46677`
- # [4] pry(main)>
- # @param replay_sequence [String] The sequence of commands to be replayed
- # (per saltum)
- # @raise [Pry::CommandError] If +replay_sequence+ contains another
- # "hist --replay" call
- # @return [Boolean] `false` if +replay_sequence+ does not contain another
- # "hist --replay" call
- #
- # source://pry//lib/pry/commands/hist.rb#143
- def check_for_juxtaposed_replay(replay_sequence); end
-
- # Finds history depending on the given switch.
- #
- # @return [Pry::Code] if it finds `--all` (or `-a`) switch, returns all
- # entries in history. Without the switch returns only the entries from the
- # current Pry session.
- #
- # source://pry//lib/pry/commands/hist.rb#168
- def find_history; end
-
- # source://pry//lib/pry/commands/hist.rb#105
- def process_clear; end
-
- # source://pry//lib/pry/commands/hist.rb#78
- def process_display; end
-
- # source://pry//lib/pry/commands/hist.rb#110
- def process_replay; end
-
- # source://pry//lib/pry/commands/hist.rb#86
- def process_save; end
-end
-
-# source://pry//lib/pry/commands/import_set.rb#5
-class Pry::Command::ImportSet < ::Pry::ClassCommand
- # TODO: resolve unused parameter.
- #
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/import_set.rb#17
- def process(_command_set_name); end
-end
-
-# source://pry//lib/pry/commands/jump_to.rb#5
-class Pry::Command::JumpTo < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/jump_to.rb#14
- def process(break_level); end
-end
-
-# source://pry//lib/pry/commands/list_inspectors.rb#5
-class Pry::Command::ListInspectors < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/list_inspectors.rb#16
- def process; end
-
- private
-
- # source://pry//lib/pry/commands/list_inspectors.rb#28
- def inspector_map; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/list_inspectors.rb#36
- def selected_inspector?(inspector); end
-
- # source://pry//lib/pry/commands/list_inspectors.rb#32
- def selected_text; end
-end
-
-# source://pry//lib/pry/commands/ls/jruby_hacks.rb#5
-class Pry::Command::Ls < ::Pry::ClassCommand
- # Exclude -q, -v and --grep because they,
- # don't specify what the user wants to see.
- #
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls.rb#85
- def no_user_opts?; end
-
- # source://pry//lib/pry/commands/ls.rb#52
- def options(opt); end
-
- # source://pry//lib/pry/commands/ls.rb#90
- def process; end
-
- private
-
- # source://pry//lib/pry/commands/ls.rb#106
- def error_list; end
-
- # source://pry//lib/pry/commands/ls.rb#126
- def raise_errors_if_arguments_are_weird; end
-end
-
-# source://pry//lib/pry/commands/ls/constants.rb#6
-class Pry::Command::Ls::Constants < ::Pry::Command::Ls::Formatter
- include ::Pry::Command::Ls::Interrogatable
-
- # @return [Constants] a new instance of Constants
- #
- # source://pry//lib/pry/commands/ls/constants.rb#14
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/constants.rb#23
- def correct_opts?; end
-
- # source://pry//lib/pry/commands/ls/constants.rb#27
- def output_self; end
-
- private
-
- # source://pry//lib/pry/commands/ls/constants.rb#39
- def format(mod, constants); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/constants.rb#35
- def show_deprecated_constants?; end
-end
-
-# source://pry//lib/pry/commands/ls/constants.rb#7
-Pry::Command::Ls::Constants::DEPRECATED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://pry//lib/pry/commands/ls.rb#6
-Pry::Command::Ls::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://pry//lib/pry/commands/ls/formatter.rb#6
-class Pry::Command::Ls::Formatter
- # @return [Formatter] a new instance of Formatter
- #
- # source://pry//lib/pry/commands/ls/formatter.rb#10
- def initialize(pry_instance); end
-
- # Sets the attribute grep
- #
- # @param value the value to set the attribute grep to.
- #
- # source://pry//lib/pry/commands/ls/formatter.rb#7
- def grep=(_arg0); end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/ls/formatter.rb#8
- def pry_instance; end
-
- # source://pry//lib/pry/commands/ls/formatter.rb#16
- def write_out; end
-
- private
-
- # source://pry//lib/pry/commands/ls/formatter.rb#24
- def color(type, str); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/formatter.rb#41
- def correct_opts?; end
-
- # source://pry//lib/pry/commands/ls/formatter.rb#37
- def format_value(value); end
-
- # source://pry//lib/pry/commands/ls/formatter.rb#49
- def grep; end
-
- # Add a new section to the output.
- # Outputs nothing if the section would be empty.
- #
- # source://pry//lib/pry/commands/ls/formatter.rb#30
- def output_section(heading, body); end
-
- # @raise [NotImplementedError]
- #
- # source://pry//lib/pry/commands/ls/formatter.rb#45
- def output_self; end
-end
-
-# source://pry//lib/pry/commands/ls/globals.rb#7
-class Pry::Command::Ls::Globals < ::Pry::Command::Ls::Formatter
- # @return [Globals] a new instance of Globals
- #
- # source://pry//lib/pry/commands/ls/globals.rb#24
- def initialize(opts, pry_instance); end
-
- # source://pry//lib/pry/commands/ls/globals.rb#29
- def output_self; end
-
- private
-
- # source://pry//lib/pry/commands/ls/globals.rb#36
- def format(globals); end
-end
-
-# Taken from "puts global_variables.inspect".
-#
-# source://pry//lib/pry/commands/ls/globals.rb#8
-Pry::Command::Ls::Globals::BUILTIN_GLOBALS = T.let(T.unsafe(nil), Array)
-
-# `$SAFE` and `$?` are thread-local, the exception stuff only works in a
-# rescue clause, everything else is basically a local variable with a `$`
-# in its name.
-#
-# source://pry//lib/pry/commands/ls/globals.rb#19
-Pry::Command::Ls::Globals::PSEUDO_GLOBALS = T.let(T.unsafe(nil), Array)
-
-# source://pry//lib/pry/commands/ls/grep.rb#6
-class Pry::Command::Ls::Grep
- # @return [Grep] a new instance of Grep
- #
- # source://pry//lib/pry/commands/ls/grep.rb#7
- def initialize(grep_regexp); end
-
- # source://pry//lib/pry/commands/ls/grep.rb#11
- def regexp; end
-end
-
-# source://pry//lib/pry/commands/ls/instance_vars.rb#6
-class Pry::Command::Ls::InstanceVars < ::Pry::Command::Ls::Formatter
- include ::Pry::Command::Ls::Interrogatable
-
- # @return [InstanceVars] a new instance of InstanceVars
- #
- # source://pry//lib/pry/commands/ls/instance_vars.rb#9
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/instance_vars.rb#16
- def correct_opts?; end
-
- # source://pry//lib/pry/commands/ls/instance_vars.rb#20
- def output_self; end
-
- private
-
- # source://pry//lib/pry/commands/ls/instance_vars.rb#34
- def format(type, vars); end
-end
-
-# source://pry//lib/pry/commands/ls/interrogatable.rb#6
-module Pry::Command::Ls::Interrogatable
- private
-
- # source://pry//lib/pry/commands/ls/interrogatable.rb#13
- def interrogatee_mod; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/interrogatable.rb#9
- def interrogating_a_module?; end
-end
-
-# source://pry//lib/pry/commands/ls/jruby_hacks.rb#6
-module Pry::Command::Ls::JRubyHacks
- private
-
- # When removing jruby aliases, we want to keep the alias that is
- # "least rubbish" according to this metric.
- #
- # source://pry//lib/pry/commands/ls/jruby_hacks.rb#40
- def rubbishness(name); end
-
- # JRuby creates lots of aliases for methods imported from java in an attempt
- # to make life easier for ruby programmers. (e.g. getFooBar becomes
- # get_foo_bar and foo_bar, and maybe foo_bar? if it returns a Boolean). The
- # full transformations are in the assignAliases method of:
- # https://github.com/jruby/jruby/blob/master/src/org/jruby/javasupport/JavaClass.java
- #
- # This has the unfortunate side-effect of making the output of ls even more
- # incredibly verbose than it normally would be for these objects; and so we
- # filter out all but the nicest of these aliases here.
- #
- # TODO: This is a little bit vague, better heuristics could be used.
- # JRuby also has a lot of scala-specific logic, which we don't copy.
- #
- # source://pry//lib/pry/commands/ls/jruby_hacks.rb#21
- def trim_jruby_aliases(methods); end
-end
-
-# source://pry//lib/pry/commands/ls/local_names.rb#6
-class Pry::Command::Ls::LocalNames < ::Pry::Command::Ls::Formatter
- # @return [LocalNames] a new instance of LocalNames
- #
- # source://pry//lib/pry/commands/ls/local_names.rb#7
- def initialize(no_user_opts, args, pry_instance); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/local_names.rb#14
- def correct_opts?; end
-
- # source://pry//lib/pry/commands/ls/local_names.rb#18
- def output_self; end
-
- private
-
- # source://pry//lib/pry/commands/ls/local_names.rb#25
- def format(locals); end
-end
-
-# source://pry//lib/pry/commands/ls/local_vars.rb#6
-class Pry::Command::Ls::LocalVars < ::Pry::Command::Ls::Formatter
- # @return [LocalVars] a new instance of LocalVars
- #
- # source://pry//lib/pry/commands/ls/local_vars.rb#7
- def initialize(opts, pry_instance); end
-
- # source://pry//lib/pry/commands/ls/local_vars.rb#13
- def output_self; end
-
- private
-
- # source://pry//lib/pry/commands/ls/local_vars.rb#34
- def colorized_assignment_style(lhs, rhs, desired_width = T.unsafe(nil)); end
-
- # source://pry//lib/pry/commands/ls/local_vars.rb#25
- def format(name_value_pairs); end
-end
-
-# source://pry//lib/pry/commands/ls/ls_entity.rb#6
-class Pry::Command::Ls::LsEntity
- # @return [LsEntity] a new instance of LsEntity
- #
- # source://pry//lib/pry/commands/ls/ls_entity.rb#9
- def initialize(opts); end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#18
- def entities_table; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/ls/ls_entity.rb#7
- def pry_instance; end
-
- private
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#32
- def constants; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#56
- def entities; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#28
- def globals; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#24
- def grep(entity); end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#44
- def instance_vars; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#48
- def local_names; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#52
- def local_vars; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#36
- def methods; end
-
- # source://pry//lib/pry/commands/ls/ls_entity.rb#40
- def self_methods; end
-end
-
-# source://pry//lib/pry/commands/ls/methods.rb#6
-class Pry::Command::Ls::Methods < ::Pry::Command::Ls::Formatter
- include ::Pry::Command::Ls::Interrogatable
- include ::Pry::Command::Ls::JRubyHacks
- include ::Pry::Command::Ls::MethodsHelper
-
- # @return [Methods] a new instance of Methods
- #
- # source://pry//lib/pry/commands/ls/methods.rb#10
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
-
- # source://pry//lib/pry/commands/ls/methods.rb#22
- def output_self; end
-
- private
-
- # Get a lambda that can be used with `take_while` to prevent over-eager
- # traversal of the Object's ancestry graph.
- #
- # source://pry//lib/pry/commands/ls/methods.rb#41
- def below_ceiling; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/methods.rb#35
- def correct_opts?; end
-end
-
-# source://pry//lib/pry/commands/ls/methods_helper.rb#6
-module Pry::Command::Ls::MethodsHelper
- include ::Pry::Command::Ls::JRubyHacks
-
- private
-
- # Get all the methods that we'll want to output.
- #
- # source://pry//lib/pry/commands/ls/methods_helper.rb#12
- def all_methods(instance_methods = T.unsafe(nil)); end
-
- # source://pry//lib/pry/commands/ls/methods_helper.rb#34
- def format(methods); end
-
- # source://pry//lib/pry/commands/ls/methods_helper.rb#26
- def resolution_order; end
-end
-
-# source://pry//lib/pry/commands/ls/self_methods.rb#6
-class Pry::Command::Ls::SelfMethods < ::Pry::Command::Ls::Formatter
- include ::Pry::Command::Ls::Interrogatable
- include ::Pry::Command::Ls::JRubyHacks
- include ::Pry::Command::Ls::MethodsHelper
-
- # @return [SelfMethods] a new instance of SelfMethods
- #
- # source://pry//lib/pry/commands/ls/self_methods.rb#10
- def initialize(interrogatee, no_user_opts, opts, pry_instance); end
-
- # source://pry//lib/pry/commands/ls/self_methods.rb#18
- def output_self; end
-
- private
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/ls/self_methods.rb#28
- def correct_opts?; end
-end
-
-# source://pry//lib/pry/commands/nesting.rb#5
-class Pry::Command::Nesting < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/nesting.rb#14
- def process; end
-end
-
-# source://pry//lib/pry/commands/play.rb#5
-class Pry::Command::Play < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/play.rb#74
- def code_object; end
-
- # source://pry//lib/pry/commands/play.rb#82
- def content; end
-
- # source://pry//lib/pry/commands/play.rb#60
- def content_after_options; end
-
- # source://pry//lib/pry/commands/play.rb#70
- def content_at_expression; end
-
- # The file to play from when no code object is specified.
- # e.g `play --lines 4..10`
- #
- # source://pry//lib/pry/commands/play.rb#92
- def default_file; end
-
- # source://pry//lib/pry/commands/play.rb#102
- def file_content; end
-
- # source://pry//lib/pry/commands/play.rb#29
- def options(opt); end
-
- # source://pry//lib/pry/commands/play.rb#48
- def perform_play; end
-
- # source://pry//lib/pry/commands/play.rb#41
- def process; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/play.rb#78
- def should_use_default_file?; end
-
- # source://pry//lib/pry/commands/play.rb#53
- def show_input; end
-end
-
-# source://pry//lib/pry/commands/pry_backtrace.rb#5
-class Pry::Command::PryBacktrace < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/pry_backtrace.rb#22
- def process; end
-end
-
-# source://pry//lib/pry/commands/raise_up.rb#6
-class Pry::Command::RaiseUp < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/raise_up.rb#27
- def process; end
-end
-
-# source://pry//lib/pry/commands/reload_code.rb#5
-class Pry::Command::ReloadCode < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/reload_code.rb#20
- def process; end
-
- private
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/reload_code.rb#58
- def check_for_reloadability(code_object, identifier); end
-
- # source://pry//lib/pry/commands/reload_code.rb#32
- def current_file; end
-
- # source://pry//lib/pry/commands/reload_code.rb#42
- def reload_current_file; end
-
- # source://pry//lib/pry/commands/reload_code.rb#51
- def reload_object(identifier); end
-end
-
-# source://pry//lib/pry/commands/reset.rb#5
-class Pry::Command::Reset < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/reset.rb#14
- def process; end
-end
-
-# source://pry//lib/pry/commands/ri.rb#7
-class Pry::Command::Ri < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/ri.rb#21
- def process(spec); end
-end
-
-# source://pry//lib/pry/commands/save_file.rb#5
-class Pry::Command::SaveFile < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/save_file.rb#50
- def display_content; end
-
- # source://pry//lib/pry/commands/save_file.rb#39
- def file_name; end
-
- # source://pry//lib/pry/commands/save_file.rb#56
- def mode; end
-
- # source://pry//lib/pry/commands/save_file.rb#21
- def options(opt); end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/save_file.rb#28
- def process; end
-
- # source://pry//lib/pry/commands/save_file.rb#43
- def save_file; end
-end
-
-# source://pry//lib/pry/commands/shell_command.rb#5
-class Pry::Command::ShellCommand < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/shell_command.rb#21
- def process(cmd); end
-
- private
-
- # source://pry//lib/pry/commands/shell_command.rb#50
- def cd_path_env; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/shell_command.rb#54
- def cd_path_exists?; end
-
- # source://pry//lib/pry/commands/shell_command.rb#36
- def parse_destination(dest); end
-
- # source://pry//lib/pry/commands/shell_command.rb#58
- def path_from_cd_path(dest); end
-
- # source://pry//lib/pry/commands/shell_command.rb#43
- def process_cd(dest); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/shell_command.rb#68
- def special_case_path?(dest); end
-end
-
-# source://pry//lib/pry/commands/shell_mode.rb#5
-class Pry::Command::ShellMode < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/shell_mode.rb#14
- def process; end
-end
-
-# source://pry//lib/pry/commands/show_doc.rb#5
-class Pry::Command::ShowDoc < ::Pry::Command::ShowInfo
- include ::Pry::Helpers::DocumentationHelpers
-
- # The docs for code_object prepared for display.
- #
- # source://pry//lib/pry/commands/show_doc.rb#35
- def content_for(code_object); end
-
- # Return docs for the code_object, adjusting for whether the code_object
- # has yard docs available, in which case it returns those.
- # (note we only have to check yard docs for modules since they can
- # have multiple docs, but methods can only be doc'd once so we
- # dont need to check them)
- #
- # source://pry//lib/pry/commands/show_doc.rb#64
- def docs_for(code_object); end
-
- # Which sections to include in the 'header', can toggle: :owner,
- # :signature and visibility.
- #
- # source://pry//lib/pry/commands/show_doc.rb#76
- def header_options; end
-
- # source://pry//lib/pry/commands/show_doc.rb#24
- def process; end
-
- # process the markup (if necessary) and apply colors
- #
- # source://pry//lib/pry/commands/show_doc.rb#44
- def render_doc_markup_for(code_object); end
-
- # figure out start line of docs by back-calculating based on
- # number of lines in the comment and the start line of the code_object
- #
- # @return [Fixnum] start line of docs
- #
- # source://pry//lib/pry/commands/show_doc.rb#83
- def start_line_for(code_object); end
-end
-
-# source://pry//lib/pry/commands/show_info.rb#5
-class Pry::Command::ShowInfo < ::Pry::ClassCommand
- extend ::Pry::Helpers::BaseHelpers
-
- # @return [ShowInfo] a new instance of ShowInfo
- #
- # source://pry//lib/pry/commands/show_info.rb#10
- def initialize(*_arg0); end
-
- # source://pry//lib/pry/commands/show_info.rb#127
- def code_object_header(code_object, line_num); end
-
- # This method checks whether the `code_object` is a WrappedModule, if it
- # is, then it returns the first candidate (monkeypatch) with accessible
- # source (or docs). If `code_object` is not a WrappedModule (i.e a method
- # or a command) then the `code_object` itself is just returned.
- #
- # @raise [CommandError]
- # @return [Pry::WrappedModule, Pry::Method, Pry::Command]
- #
- # source://pry//lib/pry/commands/show_info.rb#61
- def code_object_with_accessible_source(code_object); end
-
- # source://pry//lib/pry/commands/show_info.rb#213
- def complete(input); end
-
- # source://pry//lib/pry/commands/show_info.rb#77
- def content_and_header_for_code_object(code_object); end
-
- # source://pry//lib/pry/commands/show_info.rb#81
- def content_and_headers_for_all_module_candidates(mod); end
-
- # takes into account possible yard docs, and returns yard_file / yard_line
- # Also adjusts for start line of comments (using start_line_for), which it
- # has to infer by subtracting number of lines of comment from start line
- # of code_object
- #
- # source://pry//lib/pry/commands/show_info.rb#205
- def file_and_line_for(code_object); end
-
- # Generate a header (meta-data information) for all the code
- # object types: methods, modules, commands, procs...
- #
- # source://pry//lib/pry/commands/show_info.rb#106
- def header(code_object); end
-
- # source://pry//lib/pry/commands/show_info.rb#173
- def header_options; end
-
- # source://pry//lib/pry/commands/show_info.rb#142
- def method_header(code_object, line_num); end
-
- # source://pry//lib/pry/commands/show_info.rb#165
- def method_sections(code_object); end
-
- # source://pry//lib/pry/commands/show_info.rb#151
- def module_header(code_object, line_num); end
-
- # source://pry//lib/pry/commands/show_info.rb#100
- def no_definition_message; end
-
- # source://pry//lib/pry/commands/show_info.rb#185
- def obj_name; end
-
- # source://pry//lib/pry/commands/show_info.rb#16
- def options(opt); end
-
- # @raise [CommandError]
- #
- # source://pry//lib/pry/commands/show_info.rb#26
- def process; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/show_info.rb#181
- def show_all_modules?(code_object); end
-
- # source://pry//lib/pry/commands/show_info.rb#193
- def start_line_for(code_object); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/show_info.rb#189
- def use_line_numbers?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/show_info.rb#73
- def valid_superclass?(code_object); end
-end
-
-# source://pry//lib/pry/commands/show_input.rb#5
-class Pry::Command::ShowInput < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/show_input.rb#15
- def process; end
-end
-
-# source://pry//lib/pry/commands/show_source.rb#5
-class Pry::Command::ShowSource < ::Pry::Command::ShowInfo
- include ::Pry::Helpers::DocumentationHelpers
-
- # The source for code_object prepared for display.
- #
- # source://pry//lib/pry/commands/show_source.rb#48
- def content_for(code_object); end
-
- # Return docs for the code_object, adjusting for whether the code_object
- # has yard docs available, in which case it returns those.
- # (note we only have to check yard docs for modules since they can
- # have multiple docs, but methods can only be doc'd once so we
- # dont need to check them)
- #
- # source://pry//lib/pry/commands/show_source.rb#86
- def docs_for(code_object); end
-
- # Which sections to include in the 'header', can toggle: :owner,
- # :signature and visibility.
- #
- # source://pry//lib/pry/commands/show_source.rb#98
- def header_options; end
-
- # source://pry//lib/pry/commands/show_source.rb#31
- def options(opt); end
-
- # source://pry//lib/pry/commands/show_source.rb#38
- def process; end
-
- # process the markup (if necessary) and apply colors
- #
- # source://pry//lib/pry/commands/show_source.rb#66
- def render_doc_markup_for(code_object); end
-
- # figure out start line of docs by back-calculating based on
- # number of lines in the comment and the start line of the code_object
- #
- # @return [Fixnum] start line of docs
- #
- # source://pry//lib/pry/commands/show_source.rb#105
- def start_line_for(code_object); end
-end
-
-# source://pry//lib/pry/commands/stat.rb#5
-class Pry::Command::Stat < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/stat.rb#19
- def options(opt); end
-
- # source://pry//lib/pry/commands/stat.rb#23
- def process; end
-end
-
-# source://pry//lib/pry/commands/switch_to.rb#5
-class Pry::Command::SwitchTo < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/switch_to.rb#14
- def process(selection); end
-end
-
-# source://pry//lib/pry/commands/toggle_color.rb#5
-class Pry::Command::ToggleColor < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/toggle_color.rb#21
- def color_toggle; end
-
- # source://pry//lib/pry/commands/toggle_color.rb#16
- def process; end
-end
-
-# represents a void return value for a command
-#
-# source://pry//lib/pry/command.rb#20
-Pry::Command::VOID_VALUE = T.let(T.unsafe(nil), Object)
-
-# source://pry//lib/pry/commands/pry_version.rb#5
-class Pry::Command::Version < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/pry_version.rb#14
- def process; end
-end
-
-# source://pry//lib/pry/commands/watch_expression.rb#5
-class Pry::Command::WatchExpression < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/watch_expression.rb#31
- def options(opt); end
-
- # source://pry//lib/pry/commands/watch_expression.rb#42
- def process; end
-
- private
-
- # TODO: fix arguments.
- # https://github.com/pry/pry/commit/b031df2f2f5850ee6e9018f33d35f3485a9b0423
- #
- # source://pry//lib/pry/commands/watch_expression.rb#93
- def add_expression(_arguments); end
-
- # source://pry//lib/pry/commands/watch_expression.rb#98
- def add_hook; end
-
- # source://pry//lib/pry/commands/watch_expression.rb#59
- def delete(index); end
-
- # source://pry//lib/pry/commands/watch_expression.rb#84
- def eval_and_print_changed(output); end
-
- # source://pry//lib/pry/commands/watch_expression.rb#55
- def expressions; end
-
- # source://pry//lib/pry/commands/watch_expression.rb#69
- def list; end
-end
-
-# source://pry//lib/pry/commands/watch_expression/expression.rb#6
-class Pry::Command::WatchExpression::Expression
- # @return [Expression] a new instance of Expression
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#9
- def initialize(pry_instance, target, source); end
-
- # Has the value of the expression changed?
- #
- # We use the pretty-printed string represenation to detect differences
- # as this avoids problems with dup (causes too many differences) and ==
- # (causes too few)
- #
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#29
- def changed?; end
-
- # source://pry//lib/pry/commands/watch_expression/expression.rb#15
- def eval!; end
-
- # Returns the value of attribute previous_value.
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#7
- def previous_value; end
-
- # Returns the value of attribute pry_instance.
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#7
- def pry_instance; end
-
- # Returns the value of attribute source.
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#7
- def source; end
-
- # Returns the value of attribute target.
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#7
- def target; end
-
- # source://pry//lib/pry/commands/watch_expression/expression.rb#20
- def to_s; end
-
- # Returns the value of attribute value.
- #
- # source://pry//lib/pry/commands/watch_expression/expression.rb#7
- def value; end
-
- private
-
- # source://pry//lib/pry/commands/watch_expression/expression.rb#35
- def target_eval(target, source); end
-end
-
-# source://pry//lib/pry/commands/whereami.rb#7
-class Pry::Command::Whereami < ::Pry::ClassCommand
- # @return [Whereami] a new instance of Whereami
- #
- # source://pry//lib/pry/commands/whereami.rb#8
- def initialize(*_arg0); end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#83
- def bad_option_combination?; end
-
- # source://pry//lib/pry/commands/whereami.rb#63
- def code; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#77
- def code?; end
-
- # source://pry//lib/pry/commands/whereami.rb#88
- def location; end
-
- # source://pry//lib/pry/commands/whereami.rb#55
- def options(opt); end
-
- # source://pry//lib/pry/commands/whereami.rb#92
- def process; end
-
- # source://pry//lib/pry/commands/whereami.rb#44
- def setup; end
-
- private
-
- # source://pry//lib/pry/commands/whereami.rb#171
- def class_code; end
-
- # source://pry//lib/pry/commands/whereami.rb#152
- def code_window; end
-
- # source://pry//lib/pry/commands/whereami.rb#144
- def default_code; end
-
- # source://pry//lib/pry/commands/whereami.rb#185
- def expand_path(filename); end
-
- # source://pry//lib/pry/commands/whereami.rb#132
- def handle_internal_binding; end
-
- # source://pry//lib/pry/commands/whereami.rb#124
- def marker; end
-
- # source://pry//lib/pry/commands/whereami.rb#156
- def method_code; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#116
- def nothing_to_do?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#140
- def small_method?; end
-
- # This either returns the `target_self`
- # or it returns the class of `target_self` if `target_self` is not a class.
- #
- # @return [Pry::WrappedModule]
- #
- # source://pry//lib/pry/commands/whereami.rb#165
- def target_class; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#128
- def top_level?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#120
- def use_line_numbers?; end
-
- # @return [Boolean]
- #
- # source://pry//lib/pry/commands/whereami.rb#180
- def valid_method?; end
-
- # source://pry//lib/pry/commands/whereami.rb#192
- def window_size; end
-
- class << self
- # Returns the value of attribute method_size_cutoff.
- #
- # source://pry//lib/pry/commands/whereami.rb#15
- def method_size_cutoff; end
-
- # Sets the attribute method_size_cutoff
- #
- # @param value the value to set the attribute method_size_cutoff to.
- #
- # source://pry//lib/pry/commands/whereami.rb#15
- def method_size_cutoff=(_arg0); end
- end
-end
-
-# source://pry//lib/pry/commands/wtf.rb#5
-class Pry::Command::Wtf < ::Pry::ClassCommand
- # source://pry//lib/pry/commands/wtf.rb#27
- def options(opt); end
-
- # source://pry//lib/pry/commands/wtf.rb#32
- def process; end
-
- private
-
- # source://pry//lib/pry/commands/wtf.rb#64
- def format_backtrace(backtrace); end
-
- # source://pry//lib/pry/commands/wtf.rb#60
- def format_header(title, exception); end
-
- # source://pry//lib/pry/commands/wtf.rb#83
- def read_line(file, line); end
-
- # source://pry//lib/pry/commands/wtf.rb#76
- def trim_backtrace(backtrace); end
-
- # source://pry//lib/pry/commands/wtf.rb#48
- def unwind_exceptions; end
-end
-
-# source://pry//lib/pry/commands/wtf.rb#25
-Pry::Command::Wtf::RUBY_FRAME_PATTERN = T.let(T.unsafe(nil), Regexp)
-
-# CommandErrors are caught by the REPL loop and displayed to the user. They
-# indicate an exceptional condition that's fatal to the current command.
-#
-# source://pry//lib/pry/exceptions.rb#68
-class Pry::CommandError < ::StandardError; end
-
-# This class is used to create sets of commands. Commands can be imported from
-# different sets, aliased, removed, etc.
-#
-# source://pry//lib/pry/command_set.rb#12
-class Pry::CommandSet
- include ::Enumerable
- include ::Pry::Helpers::BaseHelpers
-
- # @param imported_sets [Array] Sets which will be imported automatically
- # @return [CommandSet] a new instance of CommandSet
- # @yield Optional block run to define commands
- #
- # source://pry//lib/pry/command_set.rb#20
- def initialize(*imported_sets, &block); end
-
- # Find a command that matches the given line
- #
- # @param pattern [String] The line that might be a command invocation
- # @return [Pry::Command, nil]
- #
- # source://pry//lib/pry/command_set.rb#275
- def [](pattern); end
-
- # Re-assign the command found at _pattern_ with _command_.
- #
- # @example
- # Pry.config.commands["help"] = MyHelpCommand
- # @param pattern [Regexp, String] The command to add or replace(found at _pattern_).
- # @param command [Pry::Command] The command to add.
- # @return [Pry::Command] Returns the new command (matched with "pattern".)
- #
- # source://pry//lib/pry/command_set.rb#298
- def []=(pattern, command); end
-
- # Add a command to set.
- #
- # @param command [Command] a subclass of Pry::Command.
- #
- # source://pry//lib/pry/command_set.rb#324
- def add_command(command); end
-
- # Aliases a command
- #
- # @example Creating an alias for `ls -M`
- # Pry.config.commands.alias_command "lM", "ls -M"
- # @example Pass explicit description (overriding default).
- # Pry.config.commands.alias_command "lM", "ls -M", :desc => "cutiepie"
- # @param match [String, Regex] The match of the alias (can be a regex).
- # @param action [String] The action to be performed (typically
- # another command).
- # @param options [Hash] The optional configuration parameters,
- # accepts the same as the `command` method, but also allows the
- # command description to be passed this way too as `:desc`
- #
- # source://pry//lib/pry/command_set.rb#190
- def alias_command(match, action, options = T.unsafe(nil)); end
-
- # Defines a new Pry command.
- #
- # @example
- # MyCommands = Pry::CommandSet.new do
- # command "greet", "Greet somebody" do |name|
- # puts "Good afternoon #{name.capitalize}!"
- # end
- # end
- #
- # # From pry:
- # # pry(main)> pry_instance.commands = MyCommands
- # # pry(main)> greet john
- # # Good afternoon John!
- # # pry(main)> help greet
- # # Greet somebody
- # @example Regexp command
- # MyCommands = Pry::CommandSet.new do
- # command(
- # /number-(\d+)/, "number-N regex command", :listing => "number"
- # ) do |num, name|
- # puts "hello #{name}, nice number: #{num}"
- # end
- # end
- #
- # # From pry:
- # # pry(main)> pry_instance.commands = MyCommands
- # # pry(main)> number-10 john
- # # hello john, nice number: 10
- # # pry(main)> help number
- # # number-N regex command
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @param match [String, Regexp] The start of invocations of this command.
- # @param description [String] A description of the command.
- # @param options [Hash] The optional configuration parameters.
- # @yield The action to perform. The parameters in the block
- # determines the parameters the command will receive. All
- # parameters passed into the block will be strings. Successive
- # command parameters are separated by whitespace at the Pry prompt.
- #
- # source://pry//lib/pry/command_set.rb#78
- def block_command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end
-
- # Defines a new Pry command.
- #
- # @example
- # MyCommands = Pry::CommandSet.new do
- # command "greet", "Greet somebody" do |name|
- # puts "Good afternoon #{name.capitalize}!"
- # end
- # end
- #
- # # From pry:
- # # pry(main)> pry_instance.commands = MyCommands
- # # pry(main)> greet john
- # # Good afternoon John!
- # # pry(main)> help greet
- # # Greet somebody
- # @example Regexp command
- # MyCommands = Pry::CommandSet.new do
- # command(
- # /number-(\d+)/, "number-N regex command", :listing => "number"
- # ) do |num, name|
- # puts "hello #{name}, nice number: #{num}"
- # end
- # end
- #
- # # From pry:
- # # pry(main)> pry_instance.commands = MyCommands
- # # pry(main)> number-10 john
- # # hello john, nice number: 10
- # # pry(main)> help number
- # # number-N regex command
- # @option options
- # @option options
- # @option options
- # @option options
- # @option options
- # @param match [String, Regexp] The start of invocations of this command.
- # @param description [String] A description of the command.
- # @param options [Hash] The optional configuration parameters.
- # @yield The action to perform. The parameters in the block
- # determines the parameters the command will receive. All
- # parameters passed into the block will be strings. Successive
- # command parameters are separated by whitespace at the Pry prompt.
- #
- # source://pry//lib/pry/command_set.rb#78
- def command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end
-
- # Generate completions for the user's search.
- #
- # @param search [String] The line to search for
- # @param context [Hash] The context to create the command with
- # @return [Array]
- #
- # source://pry//lib/pry/command_set.rb#365
- def complete(search, context = T.unsafe(nil)); end
-
- # Defines a new Pry command class.
- #
- # @example
- # Pry::Commands.create_command "echo", "echo's the input", :shellwords => false do
- # def options(opt)
- # opt.banner "Usage: echo [-u | -d] "
- # opt.on :u, :upcase, "ensure the output is all upper-case"
- # opt.on :d, :downcase, "ensure the output is all lower-case"
- # end
- #
- # def process
- # if opts.present?(:u) && opts.present?(:d)
- # raise Pry::CommandError, "-u and -d makes no sense"
- # end
- # result = args.join(" ")
- # result.downcase! if opts.present?(:downcase)
- # result.upcase! if opts.present?(:upcase)
- # output.puts result
- # end
- # end
- # @param match [String, Regexp] The start of invocations of this command.
- # @param description [String] A description of the command.
- # @param options [Hash] The optional configuration parameters, see {#command}
- # @yield The class body's definition.
- #
- # source://pry//lib/pry/command_set.rb#117
- def create_command(match, description = T.unsafe(nil), options = T.unsafe(nil), &block); end
-
- # Removes some commands from the set
- #
- # @param searches [Array] the matches or listings of the commands
- # to remove
- #
- # source://pry//lib/pry/command_set.rb#138
- def delete(*searches); end
-
- # Sets or gets the description for a command (replacing the old
- # description). Returns current description if no description
- # parameter provided.
- #
- # @example Setting
- # MyCommands = Pry::CommandSet.new do
- # desc "help", "help description"
- # end
- # @example Getting
- # Pry.config.commands.desc "amend-line"
- # @param search [String, Regexp] The command match.
- # @param description [String?] (nil) The command description.
- #
- # source://pry//lib/pry/command_set.rb#253
- def desc(search, description = T.unsafe(nil)); end
-
- # source://pry//lib/pry/command_set.rb#131
- def each(&block); end
-
- # Find a command that matches the given line
- #
- # @param pattern [String] The line that might be a command invocation
- # @return [Pry::Command, nil]
- #
- # source://pry//lib/pry/command_set.rb#275
- def find_command(pattern); end
-
- # @param match_or_listing [String, Regexp] The match or listing of a command.
- # of the command to retrieve.
- # @return [Command] The command object matched.
- #
- # source://pry//lib/pry/command_set.rb#173
- def find_command_by_match_or_listing(match_or_listing); end
-
- # Find the command that the user might be trying to refer to.
- #
- # @param search [String] The user's search.
- # @return [Pry::Command?]
- #
- # source://pry//lib/pry/command_set.rb#331
- def find_command_for_help(search); end
-
- # Returns the value of attribute helper_module.
- #
- # source://pry//lib/pry/command_set.rb#15
- def helper_module; end
-
- # Imports all the commands from one or more sets.
- #
- # @param sets [Array] Command sets, all of the commands of which
- # will be imported.
- # @return [Pry::CommandSet] Returns the reciever (a command set).
- #
- # source://pry//lib/pry/command_set.rb#149
- def import(*sets); end
-
- # Imports some commands from a set
- #
- # @param set [CommandSet] Set to import commands from
- # @param matches [Array] Commands to import
- # @return [Pry::CommandSet] Returns the reciever (a command set).
- #
- # source://pry//lib/pry/command_set.rb#161
- def import_from(set, *matches); end
-
- # @return [Array] The list of commands provided by the command set.
- #
- # source://pry//lib/pry/command_set.rb#262
- def keys; end
-
- # @return [Array] The list of commands provided by the command set.
- #
- # source://pry//lib/pry/command_set.rb#262
- def list_commands; end
-
- # Process the given line to see whether it needs executing as a command.
- #
- # @param val [String] The line to execute
- # @param context [Hash] The context to execute the commands with
- # @return [CommandSet::Result]
- #
- # source://pry//lib/pry/command_set.rb#351
- def process_line(val, context = T.unsafe(nil)); end
-
- # Rename a command. Accepts either match or listing for the search.
- #
- # @example Renaming the `ls` command and changing its description.
- # Pry.config.commands.rename "dir", "ls", :description => "DOS friendly ls"
- # @param new_match [String, Regexp] The new match for the command.
- # @param search [String, Regexp] The command's current match or listing.
- # @param options [Hash] The optional configuration parameters,
- # accepts the same as the `command` method, but also allows the
- # command description to be passed this way too.
- #
- # source://pry//lib/pry/command_set.rb#227
- def rename_command(new_match, search, options = T.unsafe(nil)); end
-
- # source://pry//lib/pry/command_set.rb#267
- def to_h; end
-
- # source://pry//lib/pry/command_set.rb#267
- def to_hash; end
-
- # Is the given line a command invocation?
- #
- # @param val [String]
- # @return [Boolean]
- #
- # source://pry//lib/pry/command_set.rb#343
- def valid_command?(val); end
-
- private
-
- # Defines helpers methods for this command sets.
- # Those helpers are only defined in this command set.
- #
- # @example
- # helpers do
- # def hello
- # puts "Hello!"
- # end
- #
- # include OtherModule
- # end
- # @yield A block defining helper methods
- #
- # source://pry//lib/pry/command_set.rb#390
- def helpers(&block); end
-end
-
-# CommandState is a data structure to hold per-command state.
-#
-# Pry commands can store arbitrary state here. This state persists between
-# subsequent command invocations. All state saved here is unique to the
-# command.
-#
-# @api private
-# @since v0.13.0
-#
-# source://pry//lib/pry/command_state.rb#14
-class Pry::CommandState
- # @api private
- # @return [CommandState] a new instance of CommandState
- # @since v0.13.0
- #
- # source://pry//lib/pry/command_state.rb#19
- def initialize; end
-
- # @api private
- # @since v0.13.0
- #
- # source://pry//lib/pry/command_state.rb#27
- def reset(command_name); end
-
- # @api private
- # @since v0.13.0
- #
- # source://pry//lib/pry/command_state.rb#23
- def state_for(command_name); end
-
- class << self
- # @api private
- # @since v0.13.0
- #
- # source://pry//lib/pry/command_state.rb#15
- def default; end
- end
-end
-
-# source://pry//lib/pry.rb#35
-Pry::Commands = T.let(T.unsafe(nil), Pry::CommandSet)
-
-# @api private
-#
-# source://pry//lib/pry/config/attributable.rb#4
-class Pry::Config
- extend ::Pry::Config::Attributable
-
- # @api private
- # @return [Config] a new instance of Config
- #
- # source://pry//lib/pry/config.rb#154
- def initialize; end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#234
- def [](attr); end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#230
- def []=(attr, value); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def auto_indent; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def auto_indent=(_arg0); end
-
- # @api private
- # @return [Boolean] whether or not display a warning when a command name
- # collides with a method/local in the current context.
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def collision_warning; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def collision_warning=(_arg0); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def color; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def color=(_arg0); end
-
- # @api private
- # @return [Proc]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def command_completions; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def command_completions=(_arg0); end
-
- # A string that must precede all commands. For example, if is is
- # set to "%", the "cd" command must be invoked as "%cd").
- #
- # @api private
- # @return [String]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def command_prefix; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def command_prefix=(_arg0); end
-
- # @api private
- # @return [Pry::CommandSet]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def commands; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def commands=(_arg0); end
-
- # @api private
- # @return [#build_completion_proc] a completer to use
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def completer; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def completer=(_arg0); end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#259
- def control_d_handler; end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#260
- def control_d_handler=(value); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def correct_indent; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def correct_indent=(_arg0); end
-
- # @api private
- # @return [Integer] The number of lines of context to show before and after
- # exceptions
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def default_window_size; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def default_window_size=(_arg0); end
-
- # @api private
- # @return [Boolean] whether to disable edit-method's auto-reloading behavior
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def disable_auto_reload; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def disable_auto_reload=(_arg0); end
-
- # If it is a String, then that String is used as the shell
- # command to invoke the editor.
- #
- # If it responds to #call is callable then `file`, `line`, and `reloading`
- # are passed to it. `reloading` indicates whether Pry will be reloading code
- # after the shell command returns. All parameters are optional.
- #
- # @api private
- # @return [String, #call]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def editor; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def editor=(_arg0); end
-
- # @api private
- # @return [Proc] the printer for exceptions
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def exception_handler; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def exception_handler=(_arg0); end
-
- # @api private
- # @deprecated
- # @return [Array] Exception that Pry shouldn't rescue
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def exception_whitelist; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def exception_whitelist=(_arg0); end
-
- # @api private
- # @return [String] a line of code to execute in context before the session
- # starts
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def exec_string; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def exec_string=(_arg0); end
-
- # @api private
- # @return [Hash{Symbol=>Proc}]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def extra_sticky_locals; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def extra_sticky_locals=(_arg0); end
-
- # @api private
- # @return [Proc]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def file_completions; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def file_completions=(_arg0); end
-
- # @api private
- # @return [Pry::History]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def history; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def history=(_arg0); end
-
- # @api private
- # @return [String]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def history_file; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def history_file=(_arg0); end
-
- # @api private
- # @return [Array]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def history_ignorelist; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def history_ignorelist=(_arg0); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def history_load; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def history_load=(_arg0); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def history_save; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def history_save=(_arg0); end
-
- # @api private
- # @return [Pry::Hooks]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def hooks; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def hooks=(_arg0); end
-
- # @api private
- # @return [IO, #readline] he object from which Pry retrieves its lines of
- # input
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def input; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def input=(_arg0); end
-
- # @api private
- # @return [Hash]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def ls; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def ls=(_arg0); end
-
- # @api private
- # @return [Integer] how many input/output lines to keep in memory
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def memory_size; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def memory_size=(_arg0); end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#226
- def merge(config_hash); end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#221
- def merge!(config_hash); end
-
- # @api private
- #
- # source://pry//lib/pry/config.rb#239
- def method_missing(method_name, *args, &_block); end
-
- # @api private
- # @return [IO, #puts] where Pry should output results provided by {input}
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def output; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def output=(_arg0); end
-
- # @api private
- # @return [String]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def output_prefix; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def output_prefix=(_arg0); end
-
- # @api private
- # @return [Boolean]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def pager; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def pager=(_arg0); end
-
- # @api private
- # @return [Proc] the printer for Ruby expressions (not commands)
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def print; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def print=(_arg0); end
-
- # @api private
- # @return [Pry::Prompt]
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def prompt; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def prompt=(_arg0); end
-
- # @api private
- # @return [String] The display name that is part of the prompt
- #
- # source://pry//lib/pry/config/attributable.rb#13
- def prompt_name; end
-
- # source://pry//lib/pry/config/attributable.rb#18
- def prompt_name=(_arg0); end
-
- # @api private
- # @return [Array