diff --git a/Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi b/Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi
deleted file mode 100644
index f61e06845c..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi
+++ /dev/null
@@ -1,36 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `byebug` gem.
-# Please instead update this file by running `bin/tapioca gem byebug`.
-
-# Reopen main module to define the library version
-#
-# source://byebug//lib/byebug/attacher.rb#6
-module Byebug
- class << self
- # Starts byebug, and stops at the first line of user's code.
- #
- # source://byebug//lib/byebug/attacher.rb#10
- def attach; end
-
- # source://byebug//lib/byebug/attacher.rb#21
- def spawn(host = T.unsafe(nil), port = T.unsafe(nil)); end
- end
-end
-
-# Adds a `byebug` method to the Kernel module.
-#
-# Dropping a `byebug` call anywhere in your code, you get a debug prompt.
-#
-# source://byebug//lib/byebug/attacher.rb#34
-module Kernel
- # source://byebug//lib/byebug/attacher.rb#35
- def byebug; end
-
- # source://byebug//lib/byebug/attacher.rb#35
- def debugger; end
-
- # source://byebug//lib/byebug/attacher.rb#41
- def remote_byebug(host = T.unsafe(nil), port = T.unsafe(nil)); end
-end
diff --git a/Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi b/Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi
deleted file mode 100644
index 0ada31cfb6..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi
+++ /dev/null
@@ -1,3426 +0,0 @@
-# typed: true
-
-# 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`.
-
-# = CodeRay Library
-#
-# CodeRay is a Ruby library for syntax highlighting.
-#
-# I try to make CodeRay easy to use and intuitive, but at the same time fully
-# featured, complete, fast and efficient.
-#
-# See README.
-#
-# It consists mainly of
-# * the main engine: CodeRay (Scanners::Scanner, Tokens, Encoders::Encoder)
-# * the plugin system: PluginHost, Plugin
-# * the scanners in CodeRay::Scanners
-# * the encoders in CodeRay::Encoders
-# * the styles in CodeRay::Styles
-#
-# Here's a fancy graphic to light up this gray docu:
-#
-# http://cycnus.de/raindark/coderay/scheme.png
-#
-# == Documentation
-#
-# See CodeRay, Encoders, Scanners, Tokens.
-#
-# == Usage
-#
-# Remember you need RubyGems to use CodeRay, unless you have it in your load
-# path. Run Ruby with -rubygems option if required.
-#
-# === Highlight Ruby code in a string as html
-#
-# require 'coderay'
-# print CodeRay.scan('puts "Hello, world!"', :ruby).html
-#
-# # prints something like this:
-# puts "Hello, world!"
-#
-#
-# === Highlight C code from a file in a html div
-#
-# require 'coderay'
-# print CodeRay.scan(File.read('ruby.h'), :c).div
-# print CodeRay.scan_file('ruby.h').html.div
-#
-# You can include this div in your page. The used CSS styles can be printed with
-#
-# % coderay_stylesheet
-#
-# === Highlight without typing too much
-#
-# If you are one of the hasty (or lazy, or extremely curious) people, just run this file:
-#
-# % ruby -rubygems /path/to/coderay/coderay.rb > example.html
-#
-# and look at the file it created in your browser.
-#
-# = CodeRay Module
-#
-# The CodeRay module provides convenience methods for the engine.
-#
-# * The +lang+ and +format+ arguments select Scanner and Encoder to use. These are
-# simply lower-case symbols, like :python or :html.
-# * All methods take an optional hash as last parameter, +options+, that is send to
-# the Encoder / Scanner.
-# * Input and language are always sorted in this order: +code+, +lang+.
-# (This is in alphabetical order, if you need a mnemonic ;)
-#
-# You should be able to highlight everything you want just using these methods;
-# so there is no need to dive into CodeRay's deep class hierarchy.
-#
-# The examples in the demo directory demonstrate common cases using this interface.
-#
-# = Basic Access Ways
-#
-# Read this to get a general view what CodeRay provides.
-#
-# == Scanning
-#
-# Scanning means analysing an input string, splitting it up into Tokens.
-# Each Token knows about what type it is: string, comment, class name, etc.
-#
-# Each +lang+ (language) has its own Scanner; for example, :ruby code is
-# handled by CodeRay::Scanners::Ruby.
-#
-# CodeRay.scan:: Scan a string in a given language into Tokens.
-# This is the most common method to use.
-# CodeRay.scan_file:: Scan a file and guess the language using FileType.
-#
-# The Tokens object you get from these methods can encode itself; see Tokens.
-#
-# == Encoding
-#
-# Encoding means compiling Tokens into an output. This can be colored HTML or
-# LaTeX, a textual statistic or just the number of non-whitespace tokens.
-#
-# Each Encoder provides output in a specific +format+, so you select Encoders via
-# formats like :html or :statistic.
-#
-# CodeRay.encode:: Scan and encode a string in a given language.
-# CodeRay.encode_tokens:: Encode the given tokens.
-# CodeRay.encode_file:: Scan a file, guess the language using FileType and encode it.
-#
-# == All-in-One Encoding
-#
-# CodeRay.encode:: Highlight a string with a given input and output format.
-#
-# == Instanciating
-#
-# You can use an Encoder instance to highlight multiple inputs. This way, the setup
-# for this Encoder must only be done once.
-#
-# CodeRay.encoder:: Create an Encoder instance with format and options.
-# CodeRay.scanner:: Create an Scanner instance for lang, with '' as default code.
-#
-# To make use of CodeRay.scanner, use CodeRay::Scanner::code=.
-#
-# The scanning methods provide more flexibility; we recommend to use these.
-#
-# == Reusing Scanners and Encoders
-#
-# If you want to re-use scanners and encoders (because that is faster), see
-# CodeRay::Duo for the most convenient (and recommended) interface.
-#
-# source://coderay//lib/coderay.rb#126
-module CodeRay
- class << self
- # Assuming the path is a subpath of lib/coderay/
- #
- # source://coderay//lib/coderay.rb#133
- def coderay_path(*path); end
-
- # Encode a string.
- #
- # This scans +code+ with the the Scanner for +lang+ and then
- # encodes it with the Encoder for +format+.
- # +options+ will be passed to the Encoder.
- #
- # See CodeRay::Encoder.encode.
- #
- # source://coderay//lib/coderay.rb#196
- def encode(code, lang, format, options = T.unsafe(nil)); end
-
- # Encodes +filename+ (a path to a code file) with the Scanner for +lang+.
- #
- # See CodeRay.scan_file.
- # Notice that the second argument is the output +format+, not the input language.
- #
- # Example:
- # require 'coderay'
- # page = CodeRay.encode_file 'some_c_code.c', :html
- #
- # source://coderay//lib/coderay.rb#221
- def encode_file(filename, format, options = T.unsafe(nil)); end
-
- # Encode pre-scanned Tokens.
- # Use this together with CodeRay.scan:
- #
- # require 'coderay'
- #
- # # Highlight a short Ruby code example in a HTML span
- # tokens = CodeRay.scan '1 + 2', :ruby
- # puts CodeRay.encode_tokens(tokens, :span)
- #
- # source://coderay//lib/coderay.rb#209
- def encode_tokens(tokens, format, options = T.unsafe(nil)); end
-
- # Finds the Encoder class for +format+ and creates an instance, passing
- # +options+ to it.
- #
- # Example:
- # require 'coderay'
- #
- # stats = CodeRay.encoder(:statistic)
- # stats.encode("puts 17 + 4\n", :ruby)
- #
- # puts '%d out of %d tokens have the kind :integer.' % [
- # stats.type_stats[:integer].count,
- # stats.real_token_count
- # ]
- # #-> 2 out of 4 tokens have the kind :integer.
- #
- # source://coderay//lib/coderay.rb#260
- def encoder(format, options = T.unsafe(nil)); end
-
- # Extract the options for the scanner from the +options+ hash.
- #
- # Returns an empty Hash if :scanner_options is not set.
- #
- # This is used if a method like CodeRay.encode has to provide options
- # for Encoder _and_ scanner.
- #
- # source://coderay//lib/coderay.rb#278
- def get_scanner_options(options); end
-
- # Highlight a string into a HTML
.
- #
- # CSS styles use classes, so you have to include a stylesheet
- # in your output.
- #
- # See encode.
- #
- # source://coderay//lib/coderay.rb#232
- def highlight(code, lang, options = T.unsafe(nil), format = T.unsafe(nil)); end
-
- # Highlight a file into a HTML
.
- #
- # CSS styles use classes, so you have to include a stylesheet
- # in your output.
- #
- # See encode.
- #
- # source://coderay//lib/coderay.rb#242
- def highlight_file(filename, options = T.unsafe(nil), format = T.unsafe(nil)); end
-
- # Scans the given +code+ (a String) with the Scanner for +lang+.
- #
- # This is a simple way to use CodeRay. Example:
- # require 'coderay'
- # page = CodeRay.scan("puts 'Hello, world!'", :ruby).html
- #
- # See also demo/demo_simple.
- #
- # source://coderay//lib/coderay.rb#168
- def scan(code, lang, options = T.unsafe(nil), &block); end
-
- # Scans +filename+ (a path to a code file) with the Scanner for +lang+.
- #
- # If +lang+ is :auto or omitted, the CodeRay::FileType module is used to
- # determine it. If it cannot find out what type it is, it uses
- # CodeRay::Scanners::Text.
- #
- # Calls CodeRay.scan.
- #
- # Example:
- # require 'coderay'
- # page = CodeRay.scan_file('some_c_code.c').html
- #
- # source://coderay//lib/coderay.rb#183
- def scan_file(filename, lang = T.unsafe(nil), options = T.unsafe(nil), &block); end
-
- # Finds the Scanner class for +lang+ and creates an instance, passing
- # +options+ to it.
- #
- # See Scanner.new.
- #
- # source://coderay//lib/coderay.rb#268
- def scanner(lang, options = T.unsafe(nil), &block); end
- end
-end
-
-# source://coderay//lib/coderay.rb#130
-CodeRay::CODERAY_PATH = T.let(T.unsafe(nil), String)
-
-# = Duo
-#
-# A Duo is a convenient way to use CodeRay. You just create a Duo,
-# giving it a lang (language of the input code) and a format (desired
-# output format), and call Duo#highlight with the code.
-#
-# Duo makes it easy to re-use both scanner and encoder for a repetitive
-# task. It also provides a very easy interface syntax:
-#
-# require 'coderay'
-# CodeRay::Duo[:python, :div].highlight 'import this'
-#
-# Until you want to do uncommon things with CodeRay, I recommend to use
-# this method, since it takes care of everything.
-#
-# source://coderay//lib/coderay/duo.rb#17
-class CodeRay::Duo
- # Create a new Duo, holding a lang and a format to highlight code.
- #
- # simple:
- # CodeRay::Duo[:ruby, :html].highlight 'bla 42'
- #
- # with options:
- # CodeRay::Duo[:ruby, :html, :hint => :debug].highlight '????::??'
- #
- # alternative syntax without options:
- # CodeRay::Duo[:ruby => :statistic].encode 'class << self; end'
- #
- # alternative syntax with options:
- # CodeRay::Duo[{ :ruby => :statistic }, :do => :something].encode 'abc'
- #
- # The options are forwarded to scanner and encoder
- # (see CodeRay.get_scanner_options).
- #
- # @return [Duo] a new instance of Duo
- #
- # source://coderay//lib/coderay/duo.rb#37
- def initialize(lang = T.unsafe(nil), format = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # Tokenize and highlight the code using +scanner+ and +encoder+.
- # Allows to use Duo like a proc object:
- #
- # CodeRay::Duo[:python => :yaml].call(code)
- #
- # or, in Ruby 1.9 and later:
- #
- # CodeRay::Duo[:python => :yaml].(code)
- #
- # source://coderay//lib/coderay/duo.rb#64
- def call(code, options = T.unsafe(nil)); end
-
- # Tokenize and highlight the code using +scanner+ and +encoder+.
- #
- # source://coderay//lib/coderay/duo.rb#64
- def encode(code, options = T.unsafe(nil)); end
-
- # The encoder of the duo. Only created once.
- #
- # source://coderay//lib/coderay/duo.rb#59
- def encoder; end
-
- # Returns the value of attribute format.
- #
- # source://coderay//lib/coderay/duo.rb#19
- def format; end
-
- # Sets the attribute format
- #
- # @param value the value to set the attribute format to.
- #
- # source://coderay//lib/coderay/duo.rb#19
- def format=(_arg0); end
-
- # Tokenize and highlight the code using +scanner+ and +encoder+.
- #
- # source://coderay//lib/coderay/duo.rb#64
- def highlight(code, options = T.unsafe(nil)); end
-
- # Returns the value of attribute lang.
- #
- # source://coderay//lib/coderay/duo.rb#19
- def lang; end
-
- # Sets the attribute lang
- #
- # @param value the value to set the attribute lang to.
- #
- # source://coderay//lib/coderay/duo.rb#19
- def lang=(_arg0); end
-
- # Returns the value of attribute options.
- #
- # source://coderay//lib/coderay/duo.rb#19
- def options; end
-
- # Sets the attribute options
- #
- # @param value the value to set the attribute options to.
- #
- # source://coderay//lib/coderay/duo.rb#19
- def options=(_arg0); end
-
- # The scanner of the duo. Only created once.
- #
- # source://coderay//lib/coderay/duo.rb#54
- def scanner; end
-
- class << self
- # To allow calls like Duo[:ruby, :html].highlight.
- def [](*_arg0); end
- end
-end
-
-# This module holds the Encoder class and its subclasses.
-# For example, the HTML encoder is named CodeRay::Encoders::HTML
-# can be found in coderay/encoders/html.
-#
-# Encoders also provides methods and constants for the register
-# mechanism and the [] method that returns the Encoder class
-# belonging to the given format.
-#
-# source://coderay//lib/coderay/encoders.rb#10
-module CodeRay::Encoders
- extend ::CodeRay::PluginHost
-end
-
-# A simple Filter that removes all tokens of the :comment kind.
-#
-# Alias: +remove_comments+
-#
-# Usage:
-# CodeRay.scan('print # foo', :ruby).comment_filter.text
-# #-> "print "
-#
-# See also: TokenKindFilter, LinesOfCode
-#
-# source://coderay//lib/coderay/encoders/comment_filter.rb#15
-class CodeRay::Encoders::CommentFilter < ::CodeRay::Encoders::TokenKindFilter; end
-
-# source://coderay//lib/coderay/encoders/comment_filter.rb#19
-CodeRay::Encoders::CommentFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# Returns the number of tokens.
-#
-# Text and block tokens are counted.
-#
-# source://coderay//lib/coderay/encoders/count.rb#7
-class CodeRay::Encoders::Count < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/count.rb#29
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/count.rb#29
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/count.rb#29
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/count.rb#29
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/count.rb#25
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/count.rb#19
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/count.rb#13
- def setup(options); end
-end
-
-# = Debug Encoder
-#
-# Fast encoder producing simple debug output.
-#
-# It is readable and diff-able and is used for testing.
-#
-# You cannot fully restore the tokens information from the
-# output, because consecutive :space tokens are merged.
-#
-# See also: Scanners::Debug
-#
-# source://coderay//lib/coderay/encoders/debug.rb#14
-class CodeRay::Encoders::Debug < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/debug.rb#30
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/debug.rb#38
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/debug.rb#34
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/debug.rb#42
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/debug.rb#20
- def text_token(text, kind); end
-end
-
-# source://coderay//lib/coderay/encoders/debug.rb#18
-CodeRay::Encoders::Debug::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# = Debug Lint Encoder
-#
-# Debug encoder with additional checks for:
-#
-# - empty tokens
-# - incorrect nesting
-#
-# It will raise an InvalidTokenStream exception when any of the above occurs.
-#
-# See also: Encoders::Debug
-#
-# source://coderay//lib/coderay/encoders/debug_lint.rb#16
-class CodeRay::Encoders::DebugLint < ::CodeRay::Encoders::Debug
- # source://coderay//lib/coderay/encoders/debug_lint.rb#26
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/debug_lint.rb#37
- def begin_line(kind); end
-
- # @raise [Lint::IncorrectTokenGroupNesting]
- #
- # source://coderay//lib/coderay/encoders/debug_lint.rb#31
- def end_group(kind); end
-
- # @raise [Lint::IncorrectTokenGroupNesting]
- #
- # source://coderay//lib/coderay/encoders/debug_lint.rb#42
- def end_line(kind); end
-
- # @raise [Lint::EmptyToken]
- #
- # source://coderay//lib/coderay/encoders/debug_lint.rb#20
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/debug_lint.rb#55
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/debug_lint.rb#50
- def setup(options); end
-end
-
-# Wraps HTML output into a DIV element, using inline styles by default.
-#
-# See Encoders::HTML for available options.
-#
-# source://coderay//lib/coderay/encoders/div.rb#9
-class CodeRay::Encoders::Div < ::CodeRay::Encoders::HTML; end
-
-# source://coderay//lib/coderay/encoders/div.rb#15
-CodeRay::Encoders::Div::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/div.rb#11
-CodeRay::Encoders::Div::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# = Encoder
-#
-# The Encoder base class. Together with Scanner and
-# Tokens, it forms the highlighting triad.
-#
-# Encoder instances take a Tokens object and do something with it.
-#
-# The most common Encoder is surely the HTML encoder
-# (CodeRay::Encoders::HTML). It highlights the code in a colorful
-# html page.
-# If you want the highlighted code in a div or a span instead,
-# use its subclasses Div and Span.
-#
-# source://coderay//lib/coderay/encoders/encoder.rb#16
-class CodeRay::Encoders::Encoder
- extend ::CodeRay::Plugin
-
- # Creates a new Encoder.
- # +options+ is saved and used for all encode operations, as long
- # as you don't overwrite it there by passing additional options.
- #
- # Encoder objects provide three encode methods:
- # - encode simply takes a +code+ string and a +lang+
- # - encode_tokens expects a +tokens+ object instead
- #
- # Each method has an optional +options+ parameter. These are
- # added to the options you passed at creation.
- #
- # @return [Encoder] a new instance of Encoder
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#55
- def initialize(options = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/encoders/encoder.rb#87
- def <<(token); end
-
- # Starts a token group with the given +kind+.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#123
- def begin_group(kind); end
-
- # Starts a new line token group with the given +kind+.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#131
- def begin_line(kind); end
-
- # Encode the given +code+ using the Scanner for +lang+.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#70
- def encode(code, lang, options = T.unsafe(nil)); end
-
- # Encode a Tokens object.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#61
- def encode_tokens(tokens, options = T.unsafe(nil)); end
-
- # Ends a token group with the given +kind+.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#127
- def end_group(kind); end
-
- # Ends a new line token group with the given +kind+.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#135
- def end_line(kind); end
-
- # The default file extension for this encoder.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#83
- def file_extension; end
-
- # Encode the given +code+ using the Scanner for +lang+.
- # You can use highlight instead of encode, if that seems
- # more clear to you.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#70
- def highlight(code, lang, options = T.unsafe(nil)); end
-
- # The options you gave the Encoder at creating.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#43
- def options; end
-
- # The options you gave the Encoder at creating.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#43
- def options=(_arg0); end
-
- # The options you gave the Encoder at creating.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#43
- def scanner; end
-
- # The options you gave the Encoder at creating.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#43
- def scanner=(_arg0); end
-
- # Called for each text token ([text, kind]), where text is a String.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#118
- def text_token(text, kind); end
-
- # Called with +content+ and +kind+ of the currently scanned token.
- # For simple scanners, it's enougth to implement this method.
- #
- # By default, it calls text_token, begin_group, end_group, begin_line,
- # or end_line, depending on the +content+.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#100
- def token(content, kind); end
-
- # Do the encoding.
- #
- # The already created +tokens+ object must be used; it must be a
- # Tokens object.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#168
- def tokens(tokens, options = T.unsafe(nil)); end
-
- protected
-
- # Do the encoding.
- #
- # The already created +tokens+ object must be used; it must be a
- # Tokens object.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#168
- def compile(tokens, options = T.unsafe(nil)); end
-
- # Called with merged options after encoding starts.
- # The return value is the result of encoding, typically @out.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#160
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/encoder.rb#148
- def get_output(options); end
-
- # Append data.to_s to the output. Returns the argument.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#153
- def output(data); end
-
- # Called with merged options before encoding starts.
- # Sets @out to an empty string.
- #
- # See the HTML Encoder for an example of option caching.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#144
- def setup(options); end
-
- class << self
- # If FILE_EXTENSION isn't defined, this method returns the
- # downcase class name instead.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#24
- def const_missing(sym); end
-
- # The default file extension for output file of this encoder class.
- #
- # source://coderay//lib/coderay/encoders/encoder.rb#33
- def file_extension; end
- end
-end
-
-# Subclasses are to store their default options in this constant.
-#
-# source://coderay//lib/coderay/encoders/encoder.rb#40
-CodeRay::Encoders::Encoder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/helpers/plugin.rb#41
-CodeRay::Encoders::Encoder::PLUGIN_HOST = CodeRay::Encoders
-
-# A Filter encoder has another Tokens instance as output.
-# It can be subclass to select, remove, or modify tokens in the stream.
-#
-# Subclasses of Filter are called "Filters" and can be chained.
-#
-# == Options
-#
-# === :tokens
-#
-# The Tokens object which will receive the output.
-#
-# Default: Tokens.new
-#
-# See also: TokenKindFilter
-#
-# source://coderay//lib/coderay/encoders/filter.rb#18
-class CodeRay::Encoders::Filter < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/filter.rb#39
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/filter.rb#43
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/filter.rb#47
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/filter.rb#51
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/filter.rb#35
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/filter.rb#29
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/filter.rb#23
- def setup(options); end
-end
-
-# = HTML Encoder
-#
-# This is CodeRay's most important highlighter:
-# It provides save, fast XHTML generation and CSS support.
-#
-# == Usage
-#
-# require 'coderay'
-# puts CodeRay.scan('Some /code/', :ruby).html #-> a HTML page
-# puts CodeRay.scan('Some /code/', :ruby).html(:wrap => :span)
-# #-> Some /code/
-# puts CodeRay.scan('Some /code/', :ruby).span #-> the same
-#
-# puts CodeRay.scan('Some code', :ruby).html(
-# :wrap => nil,
-# :line_numbers => :inline,
-# :css => :style
-# )
-#
-# == Options
-#
-# === :tab_width
-# Convert \t characters to +n+ spaces (a number or false.)
-# false will keep tab characters untouched.
-#
-# Default: 8
-#
-# === :css
-# How to include the styles; can be :class or :style.
-#
-# Default: :class
-#
-# === :wrap
-# Wrap in :page, :div, :span or nil.
-#
-# You can also use Encoders::Div and Encoders::Span.
-#
-# Default: nil
-#
-# === :title
-#
-# The title of the HTML page (works only when :wrap is set to :page.)
-#
-# Default: 'CodeRay output'
-#
-# === :break_lines
-#
-# Split multiline blocks at line breaks.
-# Forced to true if :line_numbers option is set to :inline.
-#
-# Default: false
-#
-# === :line_numbers
-# Include line numbers in :table, :inline, or nil (no line numbers)
-#
-# Default: nil
-#
-# === :line_number_anchors
-# Adds anchors and links to the line numbers. Can be false (off), true (on),
-# or a prefix string that will be prepended to the anchor name.
-#
-# The prefix must consist only of letters, digits, and underscores.
-#
-# Default: true, default prefix name: "line"
-#
-# === :line_number_start
-# Where to start with line number counting.
-#
-# Default: 1
-#
-# === :bold_every
-# Make every +n+-th number appear bold.
-#
-# Default: 10
-#
-# === :highlight_lines
-#
-# Highlights certain line numbers.
-# Can be any Enumerable, typically just an Array or Range, of numbers.
-#
-# Bolding is deactivated when :highlight_lines is set. It only makes sense
-# in combination with :line_numbers.
-#
-# Default: nil
-#
-# === :hint
-# Include some information into the output using the title attribute.
-# Can be :info (show token kind on mouse-over), :info_long (with full path)
-# or :debug (via inspect).
-#
-# Default: false
-#
-# source://coderay//lib/coderay/encoders/html.rb#97
-class CodeRay::Encoders::HTML < ::CodeRay::Encoders::Encoder
- # token groups, eg. strings
- #
- # source://coderay//lib/coderay/encoders/html.rb#235
- def begin_group(kind); end
-
- # whole lines to be highlighted, eg. a deleted line in a diff
- #
- # source://coderay//lib/coderay/encoders/html.rb#247
- def begin_line(kind); end
-
- # Returns the value of attribute css.
- #
- # source://coderay//lib/coderay/encoders/html.rb#126
- def css; end
-
- # source://coderay//lib/coderay/encoders/html.rb#241
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/html.rb#261
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/html.rb#221
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/html.rb#316
- def break_lines(text, style); end
-
- # source://coderay//lib/coderay/encoders/html.rb#310
- def check_group_nesting(name, kind); end
-
- # source://coderay//lib/coderay/encoders/html.rb#268
- def check_options!(options); end
-
- # source://coderay//lib/coderay/encoders/html.rb#324
- def close_span; end
-
- # source://coderay//lib/coderay/encoders/html.rb#280
- def css_class_for_kinds(kinds); end
-
- # source://coderay//lib/coderay/encoders/html.rb#195
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/html.rb#289
- def make_span_for_kinds(method, hint); end
-
- # source://coderay//lib/coderay/encoders/html.rb#172
- def setup(options); end
-
- # source://coderay//lib/coderay/encoders/html.rb#284
- def style_for_kinds(kinds); end
-
- class << self
- # source://coderay//lib/coderay/encoders/html.rb#130
- def make_html_escape_hash; end
-
- # Generate a hint about the given +kinds+ in a +hint+ style.
- #
- # +hint+ may be :info, :info_long or :debug.
- #
- # source://coderay//lib/coderay/encoders/html.rb#157
- def token_path_to_hint(hint, kinds); end
- end
-end
-
-# source://coderay//lib/coderay/encoders/html/css.rb#5
-class CodeRay::Encoders::HTML::CSS
- # @return [CSS] a new instance of CSS
- #
- # source://coderay//lib/coderay/encoders/html/css.rb#13
- def initialize(style = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/encoders/html/css.rb#23
- def get_style_for_css_classes(css_classes); end
-
- # Returns the value of attribute stylesheet.
- #
- # source://coderay//lib/coderay/encoders/html/css.rb#7
- def stylesheet; end
-
- private
-
- # source://coderay//lib/coderay/encoders/html/css.rb#49
- def parse(stylesheet); end
-
- class << self
- # source://coderay//lib/coderay/encoders/html/css.rb#9
- def load_stylesheet(style = T.unsafe(nil)); end
- end
-end
-
-# source://coderay//lib/coderay/encoders/html/css.rb#36
-CodeRay::Encoders::HTML::CSS::CSS_CLASS_PATTERN = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/encoders/html.rb#103
-CodeRay::Encoders::HTML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/html.rb#101
-CodeRay::Encoders::HTML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# source://coderay//lib/coderay/encoders/html.rb#143
-CodeRay::Encoders::HTML::HTML_ESCAPE = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/html.rb#144
-CodeRay::Encoders::HTML::HTML_ESCAPE_PATTERN = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/encoders/html/numbering.rb#6
-module CodeRay::Encoders::HTML::Numbering
- class << self
- # source://coderay//lib/coderay/encoders/html/numbering.rb#8
- def number!(output, mode = T.unsafe(nil), options = T.unsafe(nil)); end
- end
-end
-
-# This module is included in the output String of the HTML Encoder.
-#
-# It provides methods like wrap, div, page etc.
-#
-# Remember to use #clone instead of #dup to keep the modules the object was
-# extended with.
-#
-# TODO: Rewrite this without monkey patching.
-#
-# source://coderay//lib/coderay/encoders/html/output.rb#14
-module CodeRay::Encoders::HTML::Output
- # source://coderay//lib/coderay/encoders/html/output.rb#57
- def apply_title!(title); end
-
- # Returns the value of attribute css.
- #
- # source://coderay//lib/coderay/encoders/html/output.rb#16
- def css; end
-
- # Sets the attribute css
- #
- # @param value the value to set the attribute css to.
- #
- # source://coderay//lib/coderay/encoders/html/output.rb#16
- def css=(_arg0); end
-
- # source://coderay//lib/coderay/encoders/html/output.rb#86
- def stylesheet(in_tag = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/encoders/html/output.rb#62
- def wrap!(element, *args); end
-
- # source://coderay//lib/coderay/encoders/html/output.rb#52
- def wrap_in!(template); end
-
- # source://coderay//lib/coderay/encoders/html/output.rb#47
- def wrapped_in; end
-
- # Sets the attribute wrapped_in
- #
- # @param value the value to set the attribute wrapped_in to.
- #
- # source://coderay//lib/coderay/encoders/html/output.rb#50
- def wrapped_in=(_arg0); end
-
- # @return [Boolean]
- #
- # source://coderay//lib/coderay/encoders/html/output.rb#43
- def wrapped_in?(element); end
-
- class << self
- # Raises an exception if an object that doesn't respond to to_str is extended by Output,
- # to prevent users from misuse. Use Module#remove_method to disable.
- #
- # source://coderay//lib/coderay/encoders/html/output.rb#22
- def extended(o); end
-
- # source://coderay//lib/coderay/encoders/html/output.rb#26
- def make_stylesheet(css, in_tag = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/encoders/html/output.rb#36
- def page_template_for_css(css); end
- end
-end
-
-# source://coderay//lib/coderay/encoders/html/output.rb#117
-CodeRay::Encoders::HTML::Output::DIV = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-
-# source://coderay//lib/coderay/encoders/html/output.rb#130
-CodeRay::Encoders::HTML::Output::PAGE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-
-# source://coderay//lib/coderay/encoders/html/output.rb#115
-CodeRay::Encoders::HTML::Output::SPAN = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-
-# source://coderay//lib/coderay/encoders/html/output.rb#123
-CodeRay::Encoders::HTML::Output::TABLE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
-
-# -- don't include the templates in docu
-#
-# source://coderay//lib/coderay/encoders/html/output.rb#92
-class CodeRay::Encoders::HTML::Output::Template < ::String
- # source://coderay//lib/coderay/encoders/html/output.rb#104
- def apply(target, replacement); end
-
- class << self
- # source://coderay//lib/coderay/encoders/html/output.rb#94
- def wrap!(str, template, target); end
- end
-end
-
-# source://coderay//lib/coderay/encoders/html.rb#146
-CodeRay::Encoders::HTML::TOKEN_KIND_TO_INFO = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/html.rb#150
-CodeRay::Encoders::HTML::TRANSPARENT_TOKEN_KINDS = T.let(T.unsafe(nil), Set)
-
-# A simple JSON Encoder.
-#
-# Example:
-# CodeRay.scan('puts "Hello world!"', :ruby).json
-# yields
-# [
-# {"type"=>"text", "text"=>"puts", "kind"=>"ident"},
-# {"type"=>"text", "text"=>" ", "kind"=>"space"},
-# {"type"=>"block", "action"=>"open", "kind"=>"string"},
-# {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"},
-# {"type"=>"text", "text"=>"Hello world!", "kind"=>"content"},
-# {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"},
-# {"type"=>"block", "action"=>"close", "kind"=>"string"},
-# ]
-#
-# source://coderay//lib/coderay/encoders/json.rb#18
-class CodeRay::Encoders::JSON < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/json.rb#64
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/json.rb#72
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/json.rb#68
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/json.rb#76
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/json.rb#60
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/json.rb#49
- def append(data); end
-
- # source://coderay//lib/coderay/encoders/json.rb#45
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/json.rb#38
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/json.rb#35
-CodeRay::Encoders::JSON::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# Counts the LoC (Lines of Code). Returns an Integer >= 0.
-#
-# Alias: +loc+
-#
-# Everything that is not comment, markup, doctype/shebang, or an empty line,
-# is considered to be code.
-#
-# For example,
-# * HTML files not containing JavaScript have 0 LoC
-# * in a Java class without comments, LoC is the number of non-empty lines
-#
-# A Scanner class should define the token kinds that are not code in the
-# KINDS_NOT_LOC constant, which defaults to [:comment, :doctype].
-#
-# source://coderay//lib/coderay/encoders/lines_of_code.rb#17
-class CodeRay::Encoders::LinesOfCode < ::CodeRay::Encoders::TokenKindFilter
- protected
-
- # source://coderay//lib/coderay/encoders/lines_of_code.rb#38
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/lines_of_code.rb#25
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/lines_of_code.rb#21
-CodeRay::Encoders::LinesOfCode::NON_EMPTY_LINE = T.let(T.unsafe(nil), Regexp)
-
-# = Lint Encoder
-#
-# Checks for:
-#
-# - empty tokens
-# - incorrect nesting
-#
-# It will raise an InvalidTokenStream exception when any of the above occurs.
-#
-# See also: Encoders::DebugLint
-#
-# source://coderay//lib/coderay/encoders/lint.rb#14
-class CodeRay::Encoders::Lint < ::CodeRay::Encoders::Debug
- # source://coderay//lib/coderay/encoders/lint.rb#28
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/lint.rb#37
- def begin_line(kind); end
-
- # @raise [IncorrectTokenGroupNesting]
- #
- # source://coderay//lib/coderay/encoders/lint.rb#32
- def end_group(kind); end
-
- # @raise [IncorrectTokenGroupNesting]
- #
- # source://coderay//lib/coderay/encoders/lint.rb#41
- def end_line(kind); end
-
- # @raise [EmptyToken]
- #
- # source://coderay//lib/coderay/encoders/lint.rb#23
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/lint.rb#52
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/lint.rb#48
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/lint.rb#19
-class CodeRay::Encoders::Lint::EmptyToken < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
-
-# source://coderay//lib/coderay/encoders/lint.rb#21
-class CodeRay::Encoders::Lint::IncorrectTokenGroupNesting < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
-
-# source://coderay//lib/coderay/encoders/lint.rb#18
-class CodeRay::Encoders::Lint::InvalidTokenStream < ::StandardError; end
-
-# source://coderay//lib/coderay/encoders/lint.rb#20
-class CodeRay::Encoders::Lint::UnknownTokenKind < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
-
-# = Null Encoder
-#
-# Does nothing and returns an empty string.
-#
-# source://coderay//lib/coderay/encoders/null.rb#7
-class CodeRay::Encoders::Null < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/null.rb#11
- def text_token(text, kind); end
-end
-
-# Wraps the output into a HTML page, using CSS classes and
-# line numbers in the table format by default.
-#
-# See Encoders::HTML for available options.
-#
-# source://coderay//lib/coderay/encoders/page.rb#10
-class CodeRay::Encoders::Page < ::CodeRay::Encoders::HTML; end
-
-# source://coderay//lib/coderay/encoders/page.rb#16
-CodeRay::Encoders::Page::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/page.rb#12
-CodeRay::Encoders::Page::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# Wraps HTML output into a SPAN element, using inline styles by default.
-#
-# See Encoders::HTML for available options.
-#
-# source://coderay//lib/coderay/encoders/span.rb#9
-class CodeRay::Encoders::Span < ::CodeRay::Encoders::HTML; end
-
-# source://coderay//lib/coderay/encoders/span.rb#15
-CodeRay::Encoders::Span::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/span.rb#11
-CodeRay::Encoders::Span::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# Makes a statistic for the given tokens.
-#
-# Alias: +stats+
-#
-# source://coderay//lib/coderay/encoders/statistic.rb#7
-class CodeRay::Encoders::Statistic < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/statistic.rb#70
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#78
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#86
- def block_token(action, kind); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#74
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#82
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#11
- def real_token_count; end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#62
- def text_token(text, kind); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#11
- def type_stats; end
-
- protected
-
- # source://coderay//lib/coderay/encoders/statistic.rb#42
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/statistic.rb#17
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/statistic.rb#24
-CodeRay::Encoders::Statistic::STATS = T.let(T.unsafe(nil), String)
-
-# source://coderay//lib/coderay/encoders/statistic.rb#38
-CodeRay::Encoders::Statistic::TOKEN_TYPES_ROW = T.let(T.unsafe(nil), String)
-
-# source://coderay//lib/coderay/encoders/statistic.rb#13
-class CodeRay::Encoders::Statistic::TypeStats < ::Struct
- # Returns the value of attribute count
- #
- # @return [Object] the current value of count
- def count; end
-
- # Sets the attribute count
- #
- # @param value [Object] the value to set the attribute count to.
- # @return [Object] the newly set value
- def count=(_); end
-
- # Returns the value of attribute size
- #
- # @return [Object] the current value of size
- def size; end
-
- # Sets the attribute size
- #
- # @param value [Object] the value to set the attribute size to.
- # @return [Object] the newly set value
- def size=(_); end
-
- class << self
- def [](*_arg0); end
- def inspect; end
- def keyword_init?; end
- def members; end
- def new(*_arg0); end
- end
-end
-
-# source://coderay//lib/coderay/encoders/terminal.rb#17
-class CodeRay::Encoders::Terminal < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/terminal.rb#156
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/terminal.rb#156
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/terminal.rb#162
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/terminal.rb#172
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/terminal.rb#141
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/terminal.rb#133
- def setup(options); end
-
- private
-
- # source://coderay//lib/coderay/encoders/terminal.rb#179
- def open_token(kind); end
-end
-
-# source://coderay//lib/coderay/encoders/terminal.rb#21
-CodeRay::Encoders::Terminal::TOKEN_COLORS = T.let(T.unsafe(nil), Hash)
-
-# Concats the tokens into a single string, resulting in the original
-# code string if no tokens were removed.
-#
-# Alias: +plain+, +plaintext+
-#
-# == Options
-#
-# === :separator
-# A separator string to join the tokens.
-#
-# Default: empty String
-#
-# source://coderay//lib/coderay/encoders/text.rb#15
-class CodeRay::Encoders::Text < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/text.rb#25
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/text.rb#36
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/text.rb#21
-CodeRay::Encoders::Text::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/text.rb#19
-CodeRay::Encoders::Text::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# A Filter that selects tokens based on their token kind.
-#
-# == Options
-#
-# === :exclude
-#
-# One or many symbols (in an Array) which shall be excluded.
-#
-# Default: []
-#
-# === :include
-#
-# One or many symbols (in an array) which shall be included.
-#
-# Default: :all, which means all tokens are included.
-#
-# Exclusion wins over inclusion.
-#
-# See also: CommentFilter
-#
-# source://coderay//lib/coderay/encoders/token_kind_filter.rb#25
-class CodeRay::Encoders::TokenKindFilter < ::CodeRay::Encoders::Filter
- # Add the token group to the output stream if +kind+ matches the
- # conditions.
- #
- # If it does not, all tokens inside the group are excluded from the
- # stream, even if their kinds match.
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#66
- def begin_group(kind); end
-
- # See +begin_group+.
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#77
- def begin_line(kind); end
-
- # Take care of re-enabling the delegation of tokens to the output stream
- # if an exluded group has ended.
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#89
- def end_group(kind); end
-
- # See +end_group+.
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#99
- def end_line(kind); end
-
- # Add the token to the output stream if +kind+ matches the conditions.
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#57
- def text_token(text, kind); end
-
- protected
-
- # @return [Boolean]
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#49
- def include_group?(kind); end
-
- # @return [Boolean]
- #
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#45
- def include_text_token?(text, kind); end
-
- # source://coderay//lib/coderay/encoders/token_kind_filter.rb#35
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/token_kind_filter.rb#29
-CodeRay::Encoders::TokenKindFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# = XML Encoder
-#
-# Uses REXML. Very slow.
-#
-# source://coderay//lib/coderay/encoders/xml.rb#7
-class CodeRay::Encoders::XML < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/xml.rb#58
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/xml.rb#62
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/xml.rb#38
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/xml.rb#31
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/xml.rb#22
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/xml.rb#15
-CodeRay::Encoders::XML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/encoders/xml.rb#11
-CodeRay::Encoders::XML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# = YAML Encoder
-#
-# Slow.
-#
-# source://coderay//lib/coderay/encoders/yaml.rb#9
-class CodeRay::Encoders::YAML < ::CodeRay::Encoders::Encoder
- # source://coderay//lib/coderay/encoders/yaml.rb#31
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/encoders/yaml.rb#39
- def begin_line(kind); end
-
- # source://coderay//lib/coderay/encoders/yaml.rb#35
- def end_group(kind); end
-
- # source://coderay//lib/coderay/encoders/yaml.rb#43
- def end_line(kind); end
-
- # source://coderay//lib/coderay/encoders/yaml.rb#27
- def text_token(text, kind); end
-
- protected
-
- # source://coderay//lib/coderay/encoders/yaml.rb#22
- def finish(options); end
-
- # source://coderay//lib/coderay/encoders/yaml.rb#16
- def setup(options); end
-end
-
-# source://coderay//lib/coderay/encoders/yaml.rb#13
-CodeRay::Encoders::YAML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
-
-# = FileType
-#
-# A simple filetype recognizer.
-#
-# == Usage
-#
-# # determine the type of the given
-# lang = FileType[file_name]
-#
-# # return :text if the file type is unknown
-# lang = FileType.fetch file_name, :text
-#
-# # try the shebang line, too
-# lang = FileType.fetch file_name, :text, true
-#
-# source://coderay//lib/coderay/helpers/file_type.rb#17
-module CodeRay::FileType
- class << self
- # Try to determine the file type of the file.
- #
- # +filename+ is a relative or absolute path to a file.
- #
- # The file itself is only accessed when +read_shebang+ is set to true.
- # That means you can get filetypes from files that don't exist.
- #
- # source://coderay//lib/coderay/helpers/file_type.rb#29
- def [](filename, read_shebang = T.unsafe(nil)); end
-
- # This works like Hash#fetch.
- #
- # If the filetype cannot be found, the +default+ value
- # is returned.
- #
- # source://coderay//lib/coderay/helpers/file_type.rb#50
- def fetch(filename, default = T.unsafe(nil), read_shebang = T.unsafe(nil)); end
-
- protected
-
- # source://coderay//lib/coderay/helpers/file_type.rb#66
- def type_from_shebang(filename); end
- end
-end
-
-# source://coderay//lib/coderay/helpers/file_type.rb#79
-CodeRay::FileType::TypeFromExt = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/helpers/file_type.rb#139
-CodeRay::FileType::TypeFromName = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/helpers/file_type.rb#137
-CodeRay::FileType::TypeFromShebang = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/helpers/file_type.rb#19
-class CodeRay::FileType::UnknownFileType < ::Exception; end
-
-# = Plugin
-#
-# Plugins have to include this module.
-#
-# IMPORTANT: Use extend for this module.
-#
-# See CodeRay::PluginHost for examples.
-#
-# source://coderay//lib/coderay/helpers/plugin.rb#10
-module CodeRay::Plugin
- # source://coderay//lib/coderay/helpers/plugin.rb#46
- def aliases; end
-
- # The PluginHost for this Plugin class.
- #
- # source://coderay//lib/coderay/helpers/plugin.rb#39
- def plugin_host(host = T.unsafe(nil)); end
-
- # Returns the value of attribute plugin_id.
- #
- # source://coderay//lib/coderay/helpers/plugin.rb#12
- def plugin_id; end
-
- # Register this class for the given +id+.
- #
- # Example:
- # class MyPlugin < PluginHost::BaseClass
- # register_for :my_id
- # ...
- # end
- #
- # See PluginHost.register.
- #
- # source://coderay//lib/coderay/helpers/plugin.rb#23
- def register_for(id); end
-
- # Returns the title of the plugin, or sets it to the
- # optional argument +title+.
- #
- # source://coderay//lib/coderay/helpers/plugin.rb#30
- def title(title = T.unsafe(nil)); end
-end
-
-# = PluginHost
-#
-# A simple subclass/subfolder plugin system.
-#
-# Example:
-# class Generators
-# extend PluginHost
-# plugin_path 'app/generators'
-# end
-#
-# class Generator
-# extend Plugin
-# PLUGIN_HOST = Generators
-# end
-#
-# class FancyGenerator < Generator
-# register_for :fancy
-# end
-#
-# Generators[:fancy] #-> FancyGenerator
-# # or
-# CodeRay.require_plugin 'Generators/fancy'
-# # or
-# Generators::Fancy
-#
-# source://coderay//lib/coderay/helpers/plugin_host.rb#27
-module CodeRay::PluginHost
- # Returns the Plugin for +id+.
- #
- # Example:
- # yaml_plugin = MyPluginHost[:yaml]
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#49
- def [](id, *args, &blk); end
-
- # Returns an array of all Plugins.
- #
- # Note: This loads all plugins using load_all.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#151
- def all_plugins; end
-
- # Tries to +load+ the missing plugin by translating +const+ to the
- # underscore form (eg. LinesOfCode becomes lines_of_code).
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#61
- def const_missing(const); end
-
- # Define the default plugin to use when no plugin is found
- # for a given id, or return the default plugin.
- #
- # See also map.
- #
- # class MyColorHost < PluginHost
- # map :navy => :dark_blue
- # default :gray
- # end
- #
- # MyColorHost.default # loads and returns the Gray plugin
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#114
- def default(id = T.unsafe(nil)); end
-
- # Returns an array of all .rb files in the plugin path.
- #
- # The extension .rb is not included.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#140
- def list; end
-
- # Returns the Plugin for +id+.
- #
- # Example:
- # yaml_plugin = MyPluginHost[:yaml]
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#49
- def load(id, *args, &blk); end
-
- # Loads all plugins using list and load.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#39
- def load_all; end
-
- # Loads the map file (see map).
- #
- # This is done automatically when plugin_path is called.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#159
- def load_plugin_map; end
-
- # Map a plugin_id to another.
- #
- # Usage: Put this in a file plugin_path/_map.rb.
- #
- # class MyColorHost < PluginHost
- # map :navy => :dark_blue,
- # :maroon => :brown,
- # :luna => :moon
- # end
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#95
- def map(hash); end
-
- # A Hash of plugion_id => Plugin pairs.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#133
- def plugin_hash; end
-
- # The path where the plugins can be found.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#79
- def plugin_path(*args); end
-
- # Every plugin must register itself for +id+ by calling register_for,
- # which calls this method.
- #
- # See Plugin#register_for.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#128
- def register(plugin, id); end
-
- protected
-
- # Return a plugin hash that automatically loads plugins.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#172
- def make_plugin_hash; end
-
- # Returns the expected path to the plugin file for the given id.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#196
- def path_to(plugin_id); end
-
- # Converts +id+ to a valid plugin ID String, or returns +nil+.
- #
- # Raises +ArgumentError+ for all other objects, or if the
- # given String includes non-alphanumeric characters (\W).
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#204
- def validate_id(id); end
-
- class << self
- # Adds the module/class to the PLUGIN_HOSTS list.
- #
- # source://coderay//lib/coderay/helpers/plugin_host.rb#72
- def extended(mod); end
- end
-end
-
-# source://coderay//lib/coderay/helpers/plugin_host.rb#33
-class CodeRay::PluginHost::HostNotFound < ::LoadError; end
-
-# source://coderay//lib/coderay/helpers/plugin_host.rb#35
-CodeRay::PluginHost::PLUGIN_HOSTS = T.let(T.unsafe(nil), Array)
-
-# dummy hash
-#
-# source://coderay//lib/coderay/helpers/plugin_host.rb#36
-CodeRay::PluginHost::PLUGIN_HOSTS_BY_ID = T.let(T.unsafe(nil), Hash)
-
-# Raised if Encoders::[] fails because:
-# * a file could not be found
-# * the requested Plugin is not registered
-#
-# source://coderay//lib/coderay/helpers/plugin_host.rb#32
-class CodeRay::PluginHost::PluginNotFound < ::LoadError; end
-
-# = Scanners
-#
-# This module holds the Scanner class and its subclasses.
-# For example, the Ruby scanner is named CodeRay::Scanners::Ruby
-# can be found in coderay/scanners/ruby.
-#
-# Scanner also provides methods and constants for the register
-# mechanism and the [] method that returns the Scanner class
-# belonging to the given lang.
-#
-# See PluginHost.
-#
-# source://coderay//lib/coderay/scanners.rb#18
-module CodeRay::Scanners
- extend ::CodeRay::PluginHost
-end
-
-# Scanner for C.
-#
-# source://coderay//lib/coderay/scanners/c.rb#5
-class CodeRay::Scanners::C < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/c.rb#44
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/c.rb#27
-CodeRay::Scanners::C::DIRECTIVES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/c.rb#39
-CodeRay::Scanners::C::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/c.rb#33
-CodeRay::Scanners::C::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/c.rb#10
-CodeRay::Scanners::C::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/c.rb#23
-CodeRay::Scanners::C::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/c.rb#17
-CodeRay::Scanners::C::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/c.rb#40
-CodeRay::Scanners::C::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# Scanner for C++.
-#
-# Aliases: +cplusplus+, c++
-CodeRay::Scanners::CPlusPlus = CodeRay::Scanners::Text
-
-# source://coderay//lib/coderay/scanners/css.rb#4
-class CodeRay::Scanners::CSS < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/css.rb#55
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/css.rb#50
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/css.rb#8
-CodeRay::Scanners::CSS::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/css.rb#16
-module CodeRay::Scanners::CSS::RE; end
-
-# source://coderay//lib/coderay/scanners/css.rb#31
-CodeRay::Scanners::CSS::RE::AtKeyword = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#45
-CodeRay::Scanners::CSS::RE::AttributeSelector = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#43
-CodeRay::Scanners::CSS::RE::Class = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#38
-CodeRay::Scanners::CSS::RE::Dimension = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#19
-CodeRay::Scanners::CSS::RE::Escape = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#40
-CodeRay::Scanners::CSS::RE::Function = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#17
-CodeRay::Scanners::CSS::RE::Hex = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#26
-CodeRay::Scanners::CSS::RE::HexColor = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#42
-CodeRay::Scanners::CSS::RE::Id = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#30
-CodeRay::Scanners::CSS::RE::Ident = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#20
-CodeRay::Scanners::CSS::RE::NMChar = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#21
-CodeRay::Scanners::CSS::RE::NMStart = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#29
-CodeRay::Scanners::CSS::RE::Name = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#28
-CodeRay::Scanners::CSS::RE::Num = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#32
-CodeRay::Scanners::CSS::RE::Percentage = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#44
-CodeRay::Scanners::CSS::RE::PseudoClass = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#24
-CodeRay::Scanners::CSS::RE::String = T.let(T.unsafe(nil), Regexp)
-
-# TODO: buggy regexp
-#
-# source://coderay//lib/coderay/scanners/css.rb#22
-CodeRay::Scanners::CSS::RE::String1 = T.let(T.unsafe(nil), Regexp)
-
-# TODO: buggy regexp
-#
-# source://coderay//lib/coderay/scanners/css.rb#23
-CodeRay::Scanners::CSS::RE::String2 = T.let(T.unsafe(nil), Regexp)
-
-# differs from standard because it allows uppercase hex too
-#
-# source://coderay//lib/coderay/scanners/css.rb#18
-CodeRay::Scanners::CSS::RE::Unicode = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/css.rb#36
-CodeRay::Scanners::CSS::RE::Unit = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#6
-class CodeRay::Scanners::Clojure < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/clojure.rb#145
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/clojure.rb#95
-CodeRay::Scanners::Clojure::BASIC_IDENTIFIER = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#133
-CodeRay::Scanners::Clojure::COMPLEX10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#134
-CodeRay::Scanners::Clojure::COMPLEX16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#136
-CodeRay::Scanners::Clojure::COMPLEX2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#135
-CodeRay::Scanners::Clojure::COMPLEX8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#16
-CodeRay::Scanners::Clojure::CORE_FORMS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#120
-CodeRay::Scanners::Clojure::DECIMAL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#98
-CodeRay::Scanners::Clojure::DIGIT = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#99
-CodeRay::Scanners::Clojure::DIGIT10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#100
-CodeRay::Scanners::Clojure::DIGIT16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#102
-CodeRay::Scanners::Clojure::DIGIT2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#101
-CodeRay::Scanners::Clojure::DIGIT8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#107
-CodeRay::Scanners::Clojure::EXACTNESS = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#110
-CodeRay::Scanners::Clojure::EXP = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#109
-CodeRay::Scanners::Clojure::EXP_MARK = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#96
-CodeRay::Scanners::Clojure::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#85
-CodeRay::Scanners::Clojure::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#129
-CodeRay::Scanners::Clojure::IMAG10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#130
-CodeRay::Scanners::Clojure::IMAG16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#132
-CodeRay::Scanners::Clojure::IMAG2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#131
-CodeRay::Scanners::Clojure::IMAG8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#90
-CodeRay::Scanners::Clojure::KEYWORD_NEXT_TOKEN_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#141
-CodeRay::Scanners::Clojure::NUM = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#137
-CodeRay::Scanners::Clojure::NUM10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#138
-CodeRay::Scanners::Clojure::NUM16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#140
-CodeRay::Scanners::Clojure::NUM2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#139
-CodeRay::Scanners::Clojure::NUM8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#78
-CodeRay::Scanners::Clojure::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#112
-CodeRay::Scanners::Clojure::PREFIX10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#113
-CodeRay::Scanners::Clojure::PREFIX16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#115
-CodeRay::Scanners::Clojure::PREFIX2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#114
-CodeRay::Scanners::Clojure::PREFIX8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#106
-CodeRay::Scanners::Clojure::RADIX10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#103
-CodeRay::Scanners::Clojure::RADIX16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#105
-CodeRay::Scanners::Clojure::RADIX2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#104
-CodeRay::Scanners::Clojure::RADIX8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#125
-CodeRay::Scanners::Clojure::REAL10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#126
-CodeRay::Scanners::Clojure::REAL16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#128
-CodeRay::Scanners::Clojure::REAL2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#127
-CodeRay::Scanners::Clojure::REAL8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#108
-CodeRay::Scanners::Clojure::SIGN = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#11
-CodeRay::Scanners::Clojure::SPECIAL_FORMS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#111
-CodeRay::Scanners::Clojure::SUFFIX = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#97
-CodeRay::Scanners::Clojure::SYMBOL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#116
-CodeRay::Scanners::Clojure::UINT10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#117
-CodeRay::Scanners::Clojure::UINT16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#119
-CodeRay::Scanners::Clojure::UINT2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#118
-CodeRay::Scanners::Clojure::UINT8 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#121
-CodeRay::Scanners::Clojure::UREAL10 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#122
-CodeRay::Scanners::Clojure::UREAL16 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#124
-CodeRay::Scanners::Clojure::UREAL2 = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/clojure.rb#123
-CodeRay::Scanners::Clojure::UREAL8 = T.let(T.unsafe(nil), Regexp)
-
-# = Debug Scanner
-#
-# Interprets the output of the Encoders::Debug encoder (basically the inverse function).
-#
-# source://coderay//lib/coderay/scanners/debug.rb#9
-class CodeRay::Scanners::Debug < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/debug.rb#21
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/debug.rb#16
- def setup; end
-end
-
-# Scanner for the Delphi language (Object Pascal).
-#
-# Alias: +pascal+
-#
-# source://coderay//lib/coderay/scanners/delphi.rb#7
-class CodeRay::Scanners::Delphi < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/delphi.rb#45
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/delphi.rb#25
-CodeRay::Scanners::Delphi::DIRECTIVES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/delphi.rb#36
-CodeRay::Scanners::Delphi::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-
-# source://coderay//lib/coderay/scanners/delphi.rb#12
-CodeRay::Scanners::Delphi::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/delphi.rb#40
-CodeRay::Scanners::Delphi::NAME_FOLLOWS = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-
-# Scanner for output of the diff command.
-#
-# Alias: +patch+
-#
-# source://coderay//lib/coderay/scanners/diff.rb#7
-class CodeRay::Scanners::Diff < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/diff.rb#19
- def scan_tokens(encoder, options); end
-
- private
-
- # source://coderay//lib/coderay/scanners/diff.rb#204
- def diff(a, b); end
-end
-
-# source://coderay//lib/coderay/scanners/diff.rb#12
-CodeRay::Scanners::Diff::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# Scanner for HTML ERB templates.
-#
-# source://coderay//lib/coderay/scanners/erb.rb#8
-class CodeRay::Scanners::ERB < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/erb.rb#38
- def reset_instance; end
-
- # source://coderay//lib/coderay/scanners/erb.rb#43
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/erb.rb#33
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/erb.rb#15
-CodeRay::Scanners::ERB::ERB_RUBY_BLOCK = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/erb.rb#13
-CodeRay::Scanners::ERB::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/erb.rb#27
-CodeRay::Scanners::ERB::START_OF_ERB = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/go.rb#4
-class CodeRay::Scanners::Go < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/go.rb#50
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/go.rb#45
-CodeRay::Scanners::Go::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/go.rb#39
-CodeRay::Scanners::Go::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# http://golang.org/ref/spec#Keywords
-#
-# source://coderay//lib/coderay/scanners/go.rb#10
-CodeRay::Scanners::Go::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/go.rb#29
-CodeRay::Scanners::Go::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/go.rb#34
-CodeRay::Scanners::Go::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array)
-
-# http://golang.org/ref/spec#Types
-#
-# source://coderay//lib/coderay/scanners/go.rb#19
-CodeRay::Scanners::Go::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/go.rb#46
-CodeRay::Scanners::Go::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# Scanner for Groovy.
-#
-# source://coderay//lib/coderay/scanners/groovy.rb#7
-class CodeRay::Scanners::Groovy < ::CodeRay::Scanners::Java
- protected
-
- # source://coderay//lib/coderay/scanners/groovy.rb#43
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/groovy.rb#39
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/groovy.rb#24
-CodeRay::Scanners::Groovy::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# TODO: check list of keywords
-#
-# source://coderay//lib/coderay/scanners/groovy.rb#12
-CodeRay::Scanners::Groovy::GROOVY_KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/groovy.rb#18
-CodeRay::Scanners::Groovy::GROOVY_MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/groovy.rb#20
-CodeRay::Scanners::Groovy::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/groovy.rb#15
-CodeRay::Scanners::Groovy::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/groovy.rb#26
-CodeRay::Scanners::Groovy::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# TODO: interpretation inside ', ", /
-#
-# source://coderay//lib/coderay/scanners/groovy.rb#29
-CodeRay::Scanners::Groovy::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/groovy.rb#25
-CodeRay::Scanners::Groovy::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/haml.rb#8
-class CodeRay::Scanners::HAML < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/haml.rb#24
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/haml.rb#17
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/haml.rb#13
-CodeRay::Scanners::HAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# HTML Scanner
-#
-# Alias: +xhtml+
-#
-# See also: Scanners::XML
-#
-# source://coderay//lib/coderay/scanners/html.rb#9
-class CodeRay::Scanners::HTML < ::CodeRay::Scanners::Scanner
- # source://coderay//lib/coderay/scanners/html.rb#62
- def reset; end
-
- protected
-
- # source://coderay//lib/coderay/scanners/html.rb#83
- def scan_css(encoder, code, state = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/scanners/html.rb#76
- def scan_java_script(encoder, code); end
-
- # source://coderay//lib/coderay/scanners/html.rb#90
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/html.rb#70
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/html.rb#39
-CodeRay::Scanners::HTML::ATTR_NAME = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/html.rb#42
-CodeRay::Scanners::HTML::ENTITY = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/html.rb#20
-CodeRay::Scanners::HTML::EVENT_ATTRIBUTES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/html.rb#41
-CodeRay::Scanners::HTML::HEX = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/html.rb#35
-CodeRay::Scanners::HTML::IN_ATTRIBUTE = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-
-# source://coderay//lib/coderay/scanners/html.rb#13
-CodeRay::Scanners::HTML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/html.rb#57
-CodeRay::Scanners::HTML::PLAIN_STRING_CONTENT = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/html.rb#40
-CodeRay::Scanners::HTML::TAG_END = T.let(T.unsafe(nil), Regexp)
-
-# Scanner for JSON (JavaScript Object Notation).
-#
-# source://coderay//lib/coderay/scanners/json.rb#5
-class CodeRay::Scanners::JSON < ::CodeRay::Scanners::Scanner
- protected
-
- # See http://json.org/ for a definition of the JSON lexic/grammar.
- #
- # source://coderay//lib/coderay/scanners/json.rb#26
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/json.rb#21
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/json.rb#15
-CodeRay::Scanners::JSON::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/json.rb#17
-CodeRay::Scanners::JSON::KEY = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/json.rb#10
-CodeRay::Scanners::JSON::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/json.rb#16
-CodeRay::Scanners::JSON::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# Scanner for Java.
-#
-# source://coderay//lib/coderay/scanners/java.rb#5
-class CodeRay::Scanners::Java < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/java.rb#51
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/java/builtin_types.rb#4
-module CodeRay::Scanners::Java::BuiltinTypes; end
-
-# source://coderay//lib/coderay/scanners/java/builtin_types.rb#7
-CodeRay::Scanners::Java::BuiltinTypes::List = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#19
-CodeRay::Scanners::Java::CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#25
-CodeRay::Scanners::Java::DIRECTIVES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#40
-CodeRay::Scanners::Java::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/java.rb#47
-CodeRay::Scanners::Java::IDENT = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/java.rb#30
-CodeRay::Scanners::Java::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
-#
-# source://coderay//lib/coderay/scanners/java.rb#12
-CodeRay::Scanners::Java::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#20
-CodeRay::Scanners::Java::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#18
-CodeRay::Scanners::Java::RESERVED = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#42
-CodeRay::Scanners::Java::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/java.rb#21
-CodeRay::Scanners::Java::TYPES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java.rb#41
-CodeRay::Scanners::Java::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# Scanner for JavaScript.
-#
-# Aliases: +ecmascript+, +ecma_script+, +javascript+
-#
-# source://coderay//lib/coderay/scanners/java_script.rb#7
-class CodeRay::Scanners::JavaScript < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/java_script.rb#224
- def reset_instance; end
-
- # source://coderay//lib/coderay/scanners/java_script.rb#61
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/java_script.rb#57
- def setup; end
-
- # source://coderay//lib/coderay/scanners/java_script.rb#229
- def xml_scanner; end
-end
-
-# source://coderay//lib/coderay/scanners/java_script.rb#42
-CodeRay::Scanners::JavaScript::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#36
-CodeRay::Scanners::JavaScript::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# The actual JavaScript keywords.
-#
-# source://coderay//lib/coderay/scanners/java_script.rb#13
-CodeRay::Scanners::JavaScript::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#24
-CodeRay::Scanners::JavaScript::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#50
-CodeRay::Scanners::JavaScript::KEY_CHECK_PATTERN = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#22
-CodeRay::Scanners::JavaScript::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#18
-CodeRay::Scanners::JavaScript::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#44
-CodeRay::Scanners::JavaScript::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# Reserved for future use.
-#
-# source://coderay//lib/coderay/scanners/java_script.rb#29
-CodeRay::Scanners::JavaScript::RESERVED_WORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#45
-CodeRay::Scanners::JavaScript::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/java_script.rb#43
-CodeRay::Scanners::JavaScript::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# Scanner for the Lua[http://lua.org] programming lanuage.
-#
-# The language’s complete syntax is defined in
-# {the Lua manual}[http://www.lua.org/manual/5.2/manual.html],
-# which is what this scanner tries to conform to.
-#
-# source://coderay//lib/coderay/scanners/lua.rb#11
-class CodeRay::Scanners::Lua < ::CodeRay::Scanners::Scanner
- protected
-
- # CodeRay entry hook. Starts parsing.
- #
- # source://coderay//lib/coderay/scanners/lua.rb#60
- def scan_tokens(encoder, options); end
-
- # Scanner initialization.
- #
- # source://coderay//lib/coderay/scanners/lua.rb#54
- def setup; end
-end
-
-# Automatic token kind selection for normal words.
-#
-# source://coderay//lib/coderay/scanners/lua.rb#46
-CodeRay::Scanners::Lua::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# Keywords used in Lua.
-#
-# source://coderay//lib/coderay/scanners/lua.rb#18
-CodeRay::Scanners::Lua::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# Constants set by the Lua core.
-#
-# source://coderay//lib/coderay/scanners/lua.rb#25
-CodeRay::Scanners::Lua::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# The expressions contained in this array are parts of Lua’s `basic'
-# library. Although it’s not entirely necessary to load that library,
-# it is highly recommended and one would have to provide own implementations
-# of some of these expressions if one does not do so. They however aren’t
-# keywords, neither are they constants, but nearly predefined, so they
-# get tagged as `predefined' rather than anything else.
-#
-# This list excludes values of form `_UPPERCASE' because the Lua manual
-# requires such identifiers to be reserved by Lua anyway and they are
-# highlighted directly accordingly, without the need for specific
-# identifiers to be listed here.
-#
-# source://coderay//lib/coderay/scanners/lua.rb#38
-CodeRay::Scanners::Lua::PREDEFINED_EXPRESSIONS = T.let(T.unsafe(nil), Array)
-
-# Scanner for PHP.
-#
-# Original by Stefan Walk.
-#
-# source://coderay//lib/coderay/scanners/php.rb#10
-class CodeRay::Scanners::PHP < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/php.rb#23
- def reset_instance; end
-
- # source://coderay//lib/coderay/scanners/php.rb#234
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/php.rb#19
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/php.rb#15
-CodeRay::Scanners::PHP::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#197
-module CodeRay::Scanners::PHP::RE; end
-
-# source://coderay//lib/coderay/scanners/php.rb#211
-CodeRay::Scanners::PHP::RE::HTML_INDICATOR = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/php.rb#213
-CodeRay::Scanners::PHP::RE::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/php.rb#216
-CodeRay::Scanners::PHP::RE::OPERATOR = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/php.rb#206
-CodeRay::Scanners::PHP::RE::PHP_END = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/php.rb#199
-CodeRay::Scanners::PHP::RE::PHP_START = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/php.rb#214
-CodeRay::Scanners::PHP::RE::VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/php.rb#28
-module CodeRay::Scanners::PHP::Words; end
-
-# according to http://php.net/quickref.php on 2009-04-21;
-# all functions with _ excluded (module functions) and selected additional functions
-#
-# source://coderay//lib/coderay/scanners/php.rb#50
-CodeRay::Scanners::PHP::Words::BUILTIN_FUNCTIONS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#46
-CodeRay::Scanners::PHP::Words::CLASSES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#145
-CodeRay::Scanners::PHP::Words::CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# TODO: more built-in PHP functions?
-#
-# source://coderay//lib/coderay/scanners/php.rb#140
-CodeRay::Scanners::PHP::Words::EXCEPTIONS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#184
-CodeRay::Scanners::PHP::Words::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-
-# according to http://www.php.net/manual/en/reserved.keywords.php
-#
-# source://coderay//lib/coderay/scanners/php.rb#31
-CodeRay::Scanners::PHP::Words::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#41
-CodeRay::Scanners::PHP::Words::LANGUAGE_CONSTRUCTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#178
-CodeRay::Scanners::PHP::Words::PREDEFINED = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#39
-CodeRay::Scanners::PHP::Words::TYPES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/php.rb#193
-CodeRay::Scanners::PHP::Words::VARIABLE_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# Scanner for Python. Supports Python 3.
-#
-# Based on pygments' PythonLexer, see
-# http://dev.pocoo.org/projects/pygments/browser/pygments/lexers/agile.py.
-#
-# source://coderay//lib/coderay/scanners/python.rb#8
-class CodeRay::Scanners::Python < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/python.rb#103
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/python.rb#86
-CodeRay::Scanners::Python::DEF_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/python.rb#91
-CodeRay::Scanners::Python::DESCRIPTOR = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/python.rb#97
-CodeRay::Scanners::Python::DOCSTRING_COMING = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/python.rb#65
-CodeRay::Scanners::Python::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/python.rb#57
-CodeRay::Scanners::Python::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/python.rb#13
-CodeRay::Scanners::Python::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/python.rb#64
-CodeRay::Scanners::Python::NAME = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/python.rb#21
-CodeRay::Scanners::Python::OLD_KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/python.rb#68
-CodeRay::Scanners::Python::OPERATOR = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/python.rb#37
-CodeRay::Scanners::Python::PREDEFINED_EXCEPTIONS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/python.rb#25
-CodeRay::Scanners::Python::PREDEFINED_METHODS_AND_TYPES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/python.rb#52
-CodeRay::Scanners::Python::PREDEFINED_VARIABLES_AND_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/python.rb#82
-CodeRay::Scanners::Python::STRING_CONTENT_REGEXP = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/python.rb#78
-CodeRay::Scanners::Python::STRING_DELIMITER_REGEXP = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/python.rb#66
-CodeRay::Scanners::Python::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# = Raydebug Scanner
-#
-# Highlights the output of the Encoders::Debug encoder.
-#
-# source://coderay//lib/coderay/scanners/raydebug.rb#9
-class CodeRay::Scanners::Raydebug < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/raydebug.rb#22
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/raydebug.rb#17
- def setup; end
-end
-
-# This scanner is really complex, since Ruby _is_ a complex language!
-#
-# It tries to highlight 100% of all common code,
-# and 90% of strange codes.
-#
-# It is optimized for HTML highlighting, and is not very useful for
-# parsing or pretty printing.
-#
-# source://coderay//lib/coderay/scanners/ruby.rb#11
-class CodeRay::Scanners::Ruby < ::CodeRay::Scanners::Scanner
- # source://coderay//lib/coderay/scanners/ruby.rb#19
- def interpreted_string_state; end
-
- protected
-
- # source://coderay//lib/coderay/scanners/ruby.rb#29
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/ruby.rb#25
- def setup; end
-end
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#5
-module CodeRay::Scanners::Ruby::Patterns; end
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#72
-CodeRay::Scanners::Ruby::Patterns::BINARY = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#106
-CodeRay::Scanners::Ruby::Patterns::CHARACTER = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#55
-CodeRay::Scanners::Ruby::Patterns::CLASS_VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#96
-CodeRay::Scanners::Ruby::Patterns::CONTROL_META_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#132
-CodeRay::Scanners::Ruby::Patterns::DATA = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#69
-CodeRay::Scanners::Ruby::Patterns::DECIMAL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#102
-CodeRay::Scanners::Ruby::Patterns::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#74
-CodeRay::Scanners::Ruby::Patterns::EXPONENT = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#168
-CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_INTERPRETED = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#161
-CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_KIND = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#160
-CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_START = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#76
-CodeRay::Scanners::Ruby::Patterns::FLOAT_OR_INT = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#75
-CodeRay::Scanners::Ruby::Patterns::FLOAT_SUFFIX = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#57
-CodeRay::Scanners::Ruby::Patterns::GLOBAL_VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#116
-CodeRay::Scanners::Ruby::Patterns::HEREDOC_OPEN = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#71
-CodeRay::Scanners::Ruby::Patterns::HEXADECIMAL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#38
-CodeRay::Scanners::Ruby::Patterns::IDENT = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#28
-CodeRay::Scanners::Ruby::Patterns::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#54
-CodeRay::Scanners::Ruby::Patterns::INSTANCE_VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#7
-CodeRay::Scanners::Ruby::Patterns::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#151
-CodeRay::Scanners::Ruby::Patterns::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#32
-CodeRay::Scanners::Ruby::Patterns::KEYWORD_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#53
-CodeRay::Scanners::Ruby::Patterns::METHOD_AFTER_DOT = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#40
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#52
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_EX = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#41
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OPERATOR = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#87
-CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OR_SYMBOL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#51
-CodeRay::Scanners::Ruby::Patterns::METHOD_SUFFIX = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#77
-CodeRay::Scanners::Ruby::Patterns::NUMERIC = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#56
-CodeRay::Scanners::Ruby::Patterns::OBJECT_VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#70
-CodeRay::Scanners::Ruby::Patterns::OCTAL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#17
-CodeRay::Scanners::Ruby::Patterns::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#58
-CodeRay::Scanners::Ruby::Patterns::PREFIX_VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#61
-CodeRay::Scanners::Ruby::Patterns::QUOTE_TO_TYPE = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#67
-CodeRay::Scanners::Ruby::Patterns::REGEXP_MODIFIERS = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#126
-CodeRay::Scanners::Ruby::Patterns::RUBYDOC = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#138
-CodeRay::Scanners::Ruby::Patterns::RUBYDOC_OR_DATA = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#89
-CodeRay::Scanners::Ruby::Patterns::SIMPLE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#79
-CodeRay::Scanners::Ruby::Patterns::SYMBOL = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#142
-CodeRay::Scanners::Ruby::Patterns::VALUE_FOLLOWS = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/patterns.rb#59
-CodeRay::Scanners::Ruby::Patterns::VARIABLE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/ruby/string_state.rb#8
-class CodeRay::Scanners::Ruby::StringState < ::Struct
- # @return [StringState] a new instance of StringState
- #
- # source://coderay//lib/coderay/scanners/ruby/string_state.rb#48
- def initialize(kind, interpreted, delim, heredoc = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/scanners/ruby/string_state.rb#63
- def heredoc_pattern(delim, interpreted, indented); end
-
- class << self
- # source://coderay//lib/coderay/scanners/ruby/string_state.rb#40
- def simple_key_pattern(delim); end
- end
-end
-
-# source://coderay//lib/coderay/scanners/ruby/string_state.rb#10
-CodeRay::Scanners::Ruby::StringState::CLOSING_PAREN = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/ruby/string_state.rb#17
-CodeRay::Scanners::Ruby::StringState::STRING_PATTERN = T.let(T.unsafe(nil), Hash)
-
-# by Josh Goebel
-#
-# source://coderay//lib/coderay/scanners/sql.rb#5
-class CodeRay::Scanners::SQL < ::CodeRay::Scanners::Scanner
- # source://coderay//lib/coderay/scanners/sql.rb#66
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/sql.rb#23
-CodeRay::Scanners::SQL::COMMANDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#38
-CodeRay::Scanners::SQL::DIRECTIVES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#55
-CodeRay::Scanners::SQL::ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/sql.rb#46
-CodeRay::Scanners::SQL::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
-
-# source://coderay//lib/coderay/scanners/sql.rb#9
-CodeRay::Scanners::SQL::KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#18
-CodeRay::Scanners::SQL::OBJECTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#44
-CodeRay::Scanners::SQL::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#36
-CodeRay::Scanners::SQL::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#28
-CodeRay::Scanners::SQL::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/scanners/sql.rb#60
-CodeRay::Scanners::SQL::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/sql.rb#58
-CodeRay::Scanners::SQL::STRING_PREFIXES = T.let(T.unsafe(nil), Regexp)
-
-# source://coderay//lib/coderay/scanners/sql.rb#56
-CodeRay::Scanners::SQL::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
-
-# A scanner for Sass.
-#
-# source://coderay//lib/coderay/scanners/sass.rb#5
-class CodeRay::Scanners::Sass < ::CodeRay::Scanners::CSS
- protected
-
- # source://coderay//lib/coderay/scanners/sass.rb#16
- def scan_tokens(encoder, options); end
-
- # source://coderay//lib/coderay/scanners/sass.rb#12
- def setup; end
-end
-
-# = Scanner
-#
-# The base class for all Scanners.
-#
-# It is a subclass of Ruby's great +StringScanner+, which
-# makes it easy to access the scanning methods inside.
-#
-# It is also +Enumerable+, so you can use it like an Array of
-# Tokens:
-#
-# require 'coderay'
-#
-# c_scanner = CodeRay::Scanners[:c].new "if (*p == '{') nest++;"
-#
-# for text, kind in c_scanner
-# puts text if kind == :operator
-# end
-#
-# # prints: (*==)++;
-#
-# OK, this is a very simple example :)
-# You can also use +map+, +any?+, +find+ and even +sort_by+,
-# if you want.
-#
-# source://coderay//lib/coderay/scanners/scanner.rb#29
-class CodeRay::Scanners::Scanner < ::StringScanner
- include ::Enumerable
- extend ::CodeRay::Plugin
-
- # Create a new Scanner.
- #
- # * +code+ is the input String and is handled by the superclass
- # StringScanner.
- # * +options+ is a Hash with Symbols as keys.
- # It is merged with the default options of the class (you can
- # overwrite default options here.)
- #
- # Else, a Tokens object is used.
- #
- # @return [Scanner] a new instance of Scanner
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#125
- def initialize(code = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # The string in binary encoding.
- #
- # To be used with #pos, which is the index of the byte the scanner
- # will scan next.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#218
- def binary_string; end
-
- # The current column position of the scanner, starting with 1.
- # See also: #line.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#209
- def column(pos = T.unsafe(nil)); end
-
- # Traverse the tokens.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#192
- def each(&block); end
-
- # the default file extension for this scanner
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#160
- def file_extension; end
-
- # the Plugin ID for this scanner
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#155
- def lang; end
-
- # The current line position of the scanner, starting with 1.
- # See also: #column.
- #
- # Beware, this is implemented inefficiently. It should be used
- # for debugging only.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#202
- def line(pos = T.unsafe(nil)); end
-
- # Sets back the scanner. Subclasses should redefine the reset_instance
- # method instead of this one.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#142
- def reset; end
-
- # Returns the value of attribute state.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#44
- def state; end
-
- # Sets the attribute state
- #
- # @param value the value to set the attribute state to.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#44
- def state=(_arg0); end
-
- # Set a new string to be scanned.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#148
- def string=(code); end
-
- # Scan the code and returns all tokens in a Tokens object.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#165
- def tokenize(source = T.unsafe(nil), options = T.unsafe(nil)); end
-
- # Cache the result of tokenize.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#187
- def tokens; end
-
- protected
-
- # Scanner error with additional status information
- #
- # @raise [ScanError]
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#314
- def raise_inspect(message, tokens, state = T.unsafe(nil), ambit = T.unsafe(nil), backtrace = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#289
- def raise_inspect_arguments(message, tokens, state, ambit); end
-
- # Resets the scanner.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#265
- def reset_instance; end
-
- # Shorthand for scan_until(/\z/).
- # This method also avoids a JRuby 1.9 mode bug.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#328
- def scan_rest; end
-
- # This is the central method, and commonly the only one a
- # subclass implements.
- #
- # Subclasses must implement this method; it must return +tokens+
- # and must only use Tokens#<< for storing scanned tokens!
- #
- # @raise [NotImplementedError]
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#260
- def scan_tokens(tokens, options); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#305
- def scanner_state_info(state); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#239
- def set_string_from_source(source); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#250
- def set_tokens_from_options(options); end
-
- # Can be implemented by subclasses to do some initialization
- # that has to be done once per instance.
- #
- # Use reset for initialization that has to be done once per
- # scan.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#236
- def setup; end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#322
- def tokens_last(tokens, n); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#318
- def tokens_size(tokens); end
-
- class << self
- # The encoding used internally by this scanner.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#71
- def encoding(name = T.unsafe(nil)); end
-
- # The typical filename suffix for this scanner's language.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#66
- def file_extension(extension = T.unsafe(nil)); end
-
- # The lang of this Scanner class, which is equal to its Plugin ID.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#76
- def lang; end
-
- # Normalizes the given code into a string with UNIX newlines, in the
- # scanner's internal encoding, with invalid and undefined charachters
- # replaced by placeholders. Always returns a new object.
- #
- # source://coderay//lib/coderay/scanners/scanner.rb#51
- def normalize(code); end
-
- protected
-
- # source://coderay//lib/coderay/scanners/scanner.rb#82
- def encode_with_encoding(code, target_encoding); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#100
- def guess_encoding(s); end
-
- # source://coderay//lib/coderay/scanners/scanner.rb#96
- def to_unix(code); end
- end
-end
-
-# The default options for all scanner classes.
-#
-# Define @default_options for subclasses.
-#
-# source://coderay//lib/coderay/scanners/scanner.rb#40
-CodeRay::Scanners::Scanner::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/scanners/scanner.rb#42
-CodeRay::Scanners::Scanner::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# source://coderay//lib/coderay/helpers/plugin.rb#41
-CodeRay::Scanners::Scanner::PLUGIN_HOST = CodeRay::Scanners
-
-# source://coderay//lib/coderay/scanners/scanner.rb#299
-CodeRay::Scanners::Scanner::SCANNER_STATE_INFO = T.let(T.unsafe(nil), String)
-
-# source://coderay//lib/coderay/scanners/scanner.rb#271
-CodeRay::Scanners::Scanner::SCAN_ERROR_MESSAGE = T.let(T.unsafe(nil), String)
-
-# Raised if a Scanner fails while scanning
-#
-# source://coderay//lib/coderay/scanners/scanner.rb#35
-class CodeRay::Scanners::Scanner::ScanError < ::StandardError; end
-
-# source://coderay//lib/coderay/scanners/taskpaper.rb#4
-class CodeRay::Scanners::Taskpaper < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/taskpaper.rb#11
- def scan_tokens(encoder, options); end
-end
-
-# Scanner for plain text.
-#
-# Yields just one token of the kind :plain.
-#
-# Alias: +plaintext+, +plain+
-#
-# source://coderay//lib/coderay/scanners/text.rb#9
-class CodeRay::Scanners::Text < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/text.rb#18
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/text.rb#14
-CodeRay::Scanners::Text::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
-
-# Scanner for XML.
-#
-# Currently this is the same scanner as Scanners::HTML.
-#
-# source://coderay//lib/coderay/scanners/xml.rb#9
-class CodeRay::Scanners::XML < ::CodeRay::Scanners::HTML; end
-
-# Scanner for YAML.
-#
-# Based on the YAML scanner from Syntax by Jamis Buck.
-#
-# source://coderay//lib/coderay/scanners/yaml.rb#7
-class CodeRay::Scanners::YAML < ::CodeRay::Scanners::Scanner
- protected
-
- # source://coderay//lib/coderay/scanners/yaml.rb#16
- def scan_tokens(encoder, options); end
-end
-
-# source://coderay//lib/coderay/scanners/yaml.rb#12
-CodeRay::Scanners::YAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Symbol)
-
-# This module holds the Style class and its subclasses.
-#
-# See Plugin.
-#
-# source://coderay//lib/coderay/styles.rb#6
-module CodeRay::Styles
- extend ::CodeRay::PluginHost
-end
-
-# A colorful theme using CSS 3 colors (with alpha channel).
-#
-# source://coderay//lib/coderay/styles/alpha.rb#5
-class CodeRay::Styles::Alpha < ::CodeRay::Styles::Style; end
-
-# source://coderay//lib/coderay/styles/alpha.rb#14
-CodeRay::Styles::Alpha::CSS_MAIN_STYLES = T.let(T.unsafe(nil), String)
-
-# source://coderay//lib/coderay/styles/alpha.rb#53
-CodeRay::Styles::Alpha::TOKEN_COLORS = T.let(T.unsafe(nil), String)
-
-# Base class for styles.
-#
-# Styles are used by Encoders::HTML to colorize tokens.
-#
-# source://coderay//lib/coderay/styles/style.rb#8
-class CodeRay::Styles::Style
- extend ::CodeRay::Plugin
-end
-
-# source://coderay//lib/coderay/styles/style.rb#12
-CodeRay::Styles::Style::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
-
-# source://coderay//lib/coderay/helpers/plugin.rb#41
-CodeRay::Styles::Style::PLUGIN_HOST = CodeRay::Styles
-
-# A Hash of all known token kinds and their associated CSS classes.
-#
-# source://coderay//lib/coderay/token_kinds.rb#4
-CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash)
-
-# The Tokens class represents a list of tokens returned from
-# a Scanner. It's actually just an Array with a few helper methods.
-#
-# A token itself is not a special object, just two elements in an Array:
-# * the _token_ _text_ (the original source of the token in a String) or
-# a _token_ _action_ (begin_group, end_group, begin_line, end_line)
-# * the _token_ _kind_ (a Symbol representing the type of the token)
-#
-# It looks like this:
-#
-# ..., '# It looks like this', :comment, ...
-# ..., '3.1415926', :float, ...
-# ..., '$^', :error, ...
-#
-# Some scanners also yield sub-tokens, represented by special
-# token actions, for example :begin_group and :end_group.
-#
-# The Ruby scanner, for example, splits "a string" into:
-#
-# [
-# :begin_group, :string,
-# '"', :delimiter,
-# 'a string', :content,
-# '"', :delimiter,
-# :end_group, :string
-# ]
-#
-# Tokens can be used to save the output of a Scanners in a simple
-# Ruby object that can be send to an Encoder later:
-#
-# tokens = CodeRay.scan('price = 2.59', :ruby).tokens
-# tokens.encode(:html)
-# tokens.html
-# CodeRay.encoder(:html).encode_tokens(tokens)
-#
-# Tokens gives you the power to handle pre-scanned code very easily:
-# You can serialize it to a JSON string and store it in a database, pass it
-# around to encode it more than once, send it to other algorithms...
-#
-# source://coderay//lib/coderay/tokens.rb#43
-class CodeRay::Tokens < ::Array
- # source://coderay//lib/coderay/tokens.rb#156
- def begin_group(kind); end
-
- # source://coderay//lib/coderay/tokens.rb#158
- def begin_line(kind); end
-
- # Return the actual number of tokens.
- #
- # source://coderay//lib/coderay/tokens.rb#151
- def count; end
-
- # Encode the tokens using encoder.
- #
- # encoder can be
- # * a plugin name like :html oder 'statistic'
- # * an Encoder object
- #
- # options are passed to the encoder.
- #
- # source://coderay//lib/coderay/tokens.rb#56
- def encode(encoder, options = T.unsafe(nil)); end
-
- # source://coderay//lib/coderay/tokens.rb#157
- def end_group(kind); end
-
- # source://coderay//lib/coderay/tokens.rb#159
- def end_line(kind); end
-
- # Redirects unknown methods to encoder calls.
- #
- # For example, if you call +tokens.html+, the HTML encoder
- # is used to highlight the tokens.
- #
- # source://coderay//lib/coderay/tokens.rb#70
- def method_missing(meth, options = T.unsafe(nil)); end
-
- # The Scanner instance that created the tokens.
- #
- # source://coderay//lib/coderay/tokens.rb#47
- def scanner; end
-
- # The Scanner instance that created the tokens.
- #
- # source://coderay//lib/coderay/tokens.rb#47
- def scanner=(_arg0); end
-
- # Split the tokens into parts of the given +sizes+.
- #
- # The result will be an Array of Tokens objects. The parts have
- # the text size specified by the parameter. In addition, each
- # part closes all opened tokens. This is useful to insert tokens
- # betweem them.
- #
- # This method is used by @Scanner#tokenize@ when called with an Array
- # of source strings. The Diff encoder uses it for inline highlighting.
- #
- # source://coderay//lib/coderay/tokens.rb#85
- def split_into_parts(*sizes); end
-
- def text_token(*_arg0); end
-
- # Turn tokens into a string by concatenating them.
- #
- # source://coderay//lib/coderay/tokens.rb#62
- def to_s; end
-
- def tokens(*_arg0); end
-end
-
-# The result of a scan operation is a TokensProxy, but should act like Tokens.
-#
-# This proxy makes it possible to use the classic CodeRay.scan.encode API
-# while still providing the benefits of direct streaming.
-#
-# source://coderay//lib/coderay/tokens_proxy.rb#7
-class CodeRay::TokensProxy
- # Create a new TokensProxy with the arguments of CodeRay.scan.
- #
- # @return [TokensProxy] a new instance of TokensProxy
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#12
- def initialize(input, lang, options = T.unsafe(nil), block = T.unsafe(nil)); end
-
- # Returns the value of attribute block.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def block; end
-
- # Sets the attribute block
- #
- # @param value the value to set the attribute block to.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def block=(_arg0); end
-
- # Overwrite Struct#each.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#48
- def each(*args, &blk); end
-
- # Call CodeRay.encode if +encoder+ is a Symbol;
- # otherwise, convert the receiver to tokens and call encoder.encode_tokens.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#21
- def encode(encoder, options = T.unsafe(nil)); end
-
- # Returns the value of attribute input.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def input; end
-
- # Sets the attribute input
- #
- # @param value the value to set the attribute input to.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def input=(_arg0); end
-
- # Returns the value of attribute lang.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def lang; end
-
- # Sets the attribute lang
- #
- # @param value the value to set the attribute lang to.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def lang=(_arg0); end
-
- # Tries to call encode;
- # delegates to tokens otherwise.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#31
- def method_missing(method, *args, &blk); end
-
- # Returns the value of attribute options.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def options; end
-
- # Sets the attribute options
- #
- # @param value the value to set the attribute options to.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#9
- def options=(_arg0); end
-
- # A (cached) scanner instance to use for the scan task.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#43
- def scanner; end
-
- # The (cached) result of the tokenized input; a Tokens instance.
- #
- # source://coderay//lib/coderay/tokens_proxy.rb#38
- def tokens; end
-end
-
-# source://coderay//lib/coderay/version.rb#2
-CodeRay::VERSION = T.let(T.unsafe(nil), String)
-
-# = WordList
-#
-# A Hash subclass designed for mapping word lists to token types.
-#
-# A WordList is a Hash with some additional features.
-# It is intended to be used for keyword recognition.
-#
-# WordList is optimized to be used in Scanners,
-# typically to decide whether a given ident is a special token.
-#
-# For case insensitive words use WordList::CaseIgnoring.
-#
-# Example:
-#
-# # define word arrays
-# RESERVED_WORDS = %w[
-# asm break case continue default do else
-# ]
-#
-# PREDEFINED_TYPES = %w[
-# int long short char void
-# ]
-#
-# # make a WordList
-# IDENT_KIND = WordList.new(:ident).
-# add(RESERVED_WORDS, :reserved).
-# add(PREDEFINED_TYPES, :predefined_type)
-#
-# ...
-#
-# def scan_tokens tokens, options
-# ...
-#
-# elsif scan(/[A-Za-z_][A-Za-z_0-9]*/)
-# # use it
-# kind = IDENT_KIND[match]
-# ...
-#
-# source://coderay//lib/coderay/helpers/word_list.rb#40
-class CodeRay::WordList < ::Hash
- # Create a new WordList with +default+ as default value.
- #
- # @return [WordList] a new instance of WordList
- #
- # source://coderay//lib/coderay/helpers/word_list.rb#43
- def initialize(default = T.unsafe(nil)); end
-
- # Add words to the list and associate them with +value+.
- #
- # Returns +self+, so you can concat add calls.
- #
- # source://coderay//lib/coderay/helpers/word_list.rb#50
- def add(words, value = T.unsafe(nil)); end
-end
-
-# A CaseIgnoring WordList is like a WordList, only that
-# keys are compared case-insensitively (normalizing keys using +downcase+).
-#
-# source://coderay//lib/coderay/helpers/word_list.rb#60
-class CodeRay::WordList::CaseIgnoring < ::CodeRay::WordList
- # source://coderay//lib/coderay/helpers/word_list.rb#62
- def [](key); end
-
- # source://coderay//lib/coderay/helpers/word_list.rb#66
- def []=(key, value); end
-end
diff --git a/Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi b/Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi
deleted file mode 100644
index 1b39ed4724..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi
+++ /dev/null
@@ -1,1243 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `commander` gem.
-# Please instead update this file by running `bin/tapioca gem commander`.
-
-# source://commander//lib/commander/core_ext/array.rb#3
-class Array
- include ::Enumerable
-
- class << self
- # Split _string_ into an array. Used in
- # conjunction with HighLine's #ask, or #ask_for_array
- # methods, which must respond to #parse.
- #
- # This method allows escaping of whitespace. For example
- # the arguments foo bar\ baz will become ['foo', 'bar baz']
- #
- # === Example
- #
- # # ask invokes Array#parse
- # list = ask 'Favorite cookies:', Array
- #
- # # or use ask_for_CLASS
- # list = ask_for_array 'Favorite cookies: '
- #
- # source://commander//lib/commander/core_ext/array.rb#21
- def parse(string); end
- end
-end
-
-# source://commander//lib/commander/blank.rb#3
-module Blank
- class << self
- # @private
- #
- # source://commander//lib/commander/blank.rb#4
- def included(base); end
- end
-end
-
-# source://commander//lib/commander/version.rb#3
-module Commander
- private
-
- # source://commander//lib/commander/configure.rb#4
- def configure(*configuration_opts, &configuration_block); end
-
- class << self
- # source://commander//lib/commander/configure.rb#4
- def configure(*configuration_opts, &configuration_block); end
- end
-end
-
-# source://commander//lib/commander/command.rb#6
-class Commander::Command
- # Initialize new command with specified _name_.
- #
- # @return [Command] a new instance of Command
- #
- # source://commander//lib/commander/command.rb#40
- def initialize(name); end
-
- # Handle execution of command. The handler may be a class,
- # object, or block (see examples below).
- #
- # === Examples
- #
- # # Simple block handling
- # c.when_called do |args, options|
- # # do something
- # end
- #
- # # Create inst of Something and pass args / options
- # c.when_called MyLib::Command::Something
- #
- # # Create inst of Something and use arbitrary method
- # c.when_called MyLib::Command::Something, :some_method
- #
- # # Pass an object to handle callback (requires method symbol)
- # c.when_called SomeObject, :some_method
- #
- # source://commander//lib/commander/command.rb#142
- def action(*args, &block); end
-
- # Call the commands when_called block with _args_.
- #
- # source://commander//lib/commander/command.rb#181
- def call(args = T.unsafe(nil)); end
-
- # Returns the value of attribute description.
- #
- # source://commander//lib/commander/command.rb#7
- def description; end
-
- # Sets the attribute description
- #
- # @param value the value to set the attribute description to.
- #
- # source://commander//lib/commander/command.rb#7
- def description=(_arg0); end
-
- # Add a usage example for this command.
- #
- # Usage examples are later displayed in help documentation
- # created by the help formatters.
- #
- # === Examples
- #
- # command :something do |c|
- # c.example "Should do something", "my_command something"
- # end
- #
- # source://commander//lib/commander/command.rb#59
- def example(description, command); end
-
- # Returns the value of attribute examples.
- #
- # source://commander//lib/commander/command.rb#7
- def examples; end
-
- # Sets the attribute examples
- #
- # @param value the value to set the attribute examples to.
- #
- # source://commander//lib/commander/command.rb#7
- def examples=(_arg0); end
-
- # Returns the value of attribute global_options.
- #
- # source://commander//lib/commander/command.rb#8
- def global_options; end
-
- # source://commander//lib/commander/command.rb#215
- def inspect; end
-
- # Returns the value of attribute name.
- #
- # source://commander//lib/commander/command.rb#7
- def name; end
-
- # Sets the attribute name
- #
- # @param value the value to set the attribute name to.
- #
- # source://commander//lib/commander/command.rb#7
- def name=(_arg0); end
-
- # Add an option.
- #
- # Options are parsed via OptionParser so view it
- # for additional usage documentation. A block may optionally be
- # passed to handle the option, otherwise the _options_ struct seen below
- # contains the results of this option. This handles common formats such as:
- #
- # -h, --help options.help # => bool
- # --[no-]feature options.feature # => bool
- # --large-switch options.large_switch # => bool
- # --file FILE options.file # => file passed
- # --list WORDS options.list # => array
- # --date [DATE] options.date # => date or nil when optional argument not set
- #
- # === Examples
- #
- # command :something do |c|
- # c.option '--recursive', 'Do something recursively'
- # c.option '--file FILE', 'Specify a file'
- # c.option('--info', 'Display info') { puts "handle with block" }
- # c.option '--[no-]feature', 'With or without feature'
- # c.option '--list FILES', Array, 'List the files specified'
- #
- # c.when_called do |args, options|
- # do_something_recursively if options.recursive
- # do_something_with_file options.file if options.file
- # end
- # end
- #
- # === Help Formatters
- #
- # This method also parses the arguments passed in order to determine
- # which were switches, and which were descriptions for the
- # option which can later be used within help formatters
- # using option[:switches] and option[:description].
- #
- # === Input Parsing
- #
- # Since Commander utilizes OptionParser you can pre-parse and evaluate
- # option arguments. Simply require 'optparse/time', or 'optparse/date', as these
- # objects must respond to #parse.
- #
- # c.option '--time TIME', Time
- # c.option '--date [DATE]', Date
- #
- # source://commander//lib/commander/command.rb#110
- def option(*args, &block); end
-
- # Option proxy proc used when a block is not explicitly passed
- # via the #option method. This allows commander to auto-populate
- # and work with option values.
- #
- # source://commander//lib/commander/command.rb#211
- def option_proc(switches); end
-
- # Returns the value of attribute options.
- #
- # source://commander//lib/commander/command.rb#7
- def options; end
-
- # Sets the attribute options
- #
- # @param value the value to set the attribute options to.
- #
- # source://commander//lib/commander/command.rb#7
- def options=(_arg0); end
-
- # Parses options and calls associated procs,
- # returning the arguments remaining.
- #
- # source://commander//lib/commander/command.rb#166
- def parse_options_and_call_procs(*args); end
-
- # Creates an Options instance populated with the option values
- # collected by the #option_proc.
- #
- # source://commander//lib/commander/command.rb#197
- def proxy_option_struct; end
-
- # Returns the value of attribute proxy_options.
- #
- # source://commander//lib/commander/command.rb#7
- def proxy_options; end
-
- # Sets the attribute proxy_options
- #
- # @param value the value to set the attribute proxy_options to.
- #
- # source://commander//lib/commander/command.rb#7
- def proxy_options=(_arg0); end
-
- # Run the command with _args_.
- #
- # * parses options, call option blocks
- # * invokes when_called proc
- #
- # source://commander//lib/commander/command.rb#156
- def run(*args); end
-
- # Returns the value of attribute summary.
- #
- # source://commander//lib/commander/command.rb#7
- def summary; end
-
- # Sets the attribute summary
- #
- # @param value the value to set the attribute summary to.
- #
- # source://commander//lib/commander/command.rb#7
- def summary=(_arg0); end
-
- # Returns the value of attribute syntax.
- #
- # source://commander//lib/commander/command.rb#7
- def syntax; end
-
- # Sets the attribute syntax
- #
- # @param value the value to set the attribute syntax to.
- #
- # source://commander//lib/commander/command.rb#7
- def syntax=(_arg0); end
-
- # Handle execution of command. The handler may be a class,
- # object, or block (see examples below).
- #
- # === Examples
- #
- # # Simple block handling
- # c.when_called do |args, options|
- # # do something
- # end
- #
- # # Create inst of Something and pass args / options
- # c.when_called MyLib::Command::Something
- #
- # # Create inst of Something and use arbitrary method
- # c.when_called MyLib::Command::Something, :some_method
- #
- # # Pass an object to handle callback (requires method symbol)
- # c.when_called SomeObject, :some_method
- #
- # source://commander//lib/commander/command.rb#142
- def when_called(*args, &block); end
-end
-
-# Options struct.
-#
-# source://commander//lib/commander/command.rb#13
-class Commander::Command::Options
- include ::Blank
-
- # @return [Options] a new instance of Options
- #
- # source://commander//lib/commander/command.rb#16
- def initialize; end
-
- # source://commander//lib/commander/command.rb#20
- def __hash__; end
-
- # source://commander//lib/commander/command.rb#28
- def default(defaults = T.unsafe(nil)); end
-
- # source://commander//lib/commander/command.rb#32
- def inspect; end
-
- # source://commander//lib/commander/command.rb#24
- def method_missing(meth, *args); end
-end
-
-# source://commander//lib/commander/delegates.rb#4
-module Commander::Delegates
- # source://commander//lib/commander/delegates.rb#17
- def add_command(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def alias_command(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def always_trace!(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def command(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def default_command(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#23
- def defined_commands(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def global_option(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def never_trace!(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def program(*args, &block); end
-
- # source://commander//lib/commander/delegates.rb#17
- def run!(*args, &block); end
-end
-
-# = Help Formatter
-#
-# Commander's help formatters control the output when
-# either the help command, or --help switch are called.
-# The default formatter is Commander::HelpFormatter::Terminal.
-#
-# source://commander//lib/commander/help_formatters.rb#4
-module Commander::HelpFormatter
- private
-
- # source://commander//lib/commander/help_formatters.rb#47
- def indent(amount, text); end
-
- class << self
- # source://commander//lib/commander/help_formatters.rb#47
- def indent(amount, text); end
- end
-end
-
-# source://commander//lib/commander/help_formatters/base.rb#12
-class Commander::HelpFormatter::Base
- # @return [Base] a new instance of Base
- #
- # source://commander//lib/commander/help_formatters/base.rb#13
- def initialize(runner); end
-
- # source://commander//lib/commander/help_formatters/base.rb#17
- def render; end
-
- # source://commander//lib/commander/help_formatters/base.rb#21
- def render_command(command); end
-end
-
-# source://commander//lib/commander/help_formatters.rb#9
-class Commander::HelpFormatter::Context
- # @return [Context] a new instance of Context
- #
- # source://commander//lib/commander/help_formatters.rb#10
- def initialize(target); end
-
- # No-op, override in subclasses.
- #
- # source://commander//lib/commander/help_formatters.rb#21
- def decorate_binding(_bind); end
-
- # source://commander//lib/commander/help_formatters.rb#14
- def get_binding; end
-end
-
-# source://commander//lib/commander/help_formatters.rb#25
-class Commander::HelpFormatter::ProgramContext < ::Commander::HelpFormatter::Context
- # source://commander//lib/commander/help_formatters.rb#26
- def decorate_binding(bind); end
-
- # source://commander//lib/commander/help_formatters.rb#35
- def max_aliases_length(bind); end
-
- # source://commander//lib/commander/help_formatters.rb#31
- def max_command_length(bind); end
-
- # source://commander//lib/commander/help_formatters.rb#39
- def max_key_length(hash, default = T.unsafe(nil)); end
-end
-
-# source://commander//lib/commander/help_formatters/terminal.rb#7
-class Commander::HelpFormatter::Terminal < ::Commander::HelpFormatter::Base
- # source://commander//lib/commander/help_formatters/terminal.rb#8
- def render; end
-
- # source://commander//lib/commander/help_formatters/terminal.rb#12
- def render_command(command); end
-
- # source://commander//lib/commander/help_formatters/terminal.rb#16
- def template(name); end
-end
-
-# source://commander//lib/commander/help_formatters/terminal_compact.rb#7
-class Commander::HelpFormatter::TerminalCompact < ::Commander::HelpFormatter::Terminal
- # source://commander//lib/commander/help_formatters/terminal_compact.rb#8
- def template(name); end
-end
-
-# source://commander//lib/commander/methods.rb#4
-module Commander::Methods
- include ::Commander::UI
- include ::Commander::UI::AskForClass
- include ::Commander::Delegates
-end
-
-# source://commander//lib/commander/platform.rb#4
-module Commander::Platform
- class << self
- # @return [Boolean]
- #
- # source://commander//lib/commander/platform.rb#5
- def jruby?; end
- end
-end
-
-# source://commander//lib/commander/runner.rb#6
-class Commander::Runner
- # Initialize a new command runner. Optionally
- # supplying _args_ for mocking, or arbitrary usage.
- #
- # @return [Runner] a new instance of Runner
- #
- # source://commander//lib/commander/runner.rb#21
- def initialize(args = T.unsafe(nil)); end
-
- # Get active command within arguments passed to this runner.
- #
- # source://commander//lib/commander/runner.rb#223
- def active_command; end
-
- # Add a command object to this runner.
- #
- # source://commander//lib/commander/runner.rb#200
- def add_command(command); end
-
- # Check if command _name_ is an alias.
- #
- # @return [Boolean]
- #
- # source://commander//lib/commander/runner.rb#207
- def alias?(name); end
-
- # Alias command _name_ with _alias_name_. Optionally _args_ may be passed
- # as if they were being passed straight to the original command via the command-line.
- #
- # source://commander//lib/commander/runner.rb#184
- def alias_command(alias_name, name, *args); end
-
- # Enable tracing on all executions (bypasses --trace)
- #
- # source://commander//lib/commander/runner.rb#89
- def always_trace!; end
-
- # Return arguments without the command name.
- #
- # source://commander//lib/commander/runner.rb#255
- def args_without_command_name; end
-
- # Creates and yields a command instance when a block is passed.
- # Otherwise attempts to return the command, raising InvalidCommandError when
- # it does not exist.
- #
- # === Examples
- #
- # command :my_command do |c|
- # c.when_called do |args|
- # # Code
- # end
- # end
- #
- # @yield [add_command(Commander::Command.new(name))]
- #
- # source://commander//lib/commander/runner.rb#161
- def command(name, &block); end
-
- # Check if a command _name_ exists.
- #
- # @return [Boolean]
- #
- # source://commander//lib/commander/runner.rb#214
- def command_exists?(name); end
-
- # Attempts to locate a command name from within the arguments.
- # Supports multi-word commands, using the largest possible match.
- # Returns the default command, if no valid commands found in the args.
- #
- # source://commander//lib/commander/runner.rb#232
- def command_name_from_args; end
-
- # Returns the value of attribute commands.
- #
- # source://commander//lib/commander/runner.rb#15
- def commands; end
-
- # Creates default commands such as 'help' which is
- # essentially the same as using the --help switch.
- #
- # source://commander//lib/commander/runner.rb#287
- def create_default_commands; end
-
- # Default command _name_ to be used when no other
- # command is found in the arguments.
- #
- # source://commander//lib/commander/runner.rb#193
- def default_command(name); end
-
- # expand switches of the style '--[no-]blah' into both their
- # '--blah' and '--no-blah' variants, so that they can be
- # properly detected and removed
- #
- # source://commander//lib/commander/runner.rb#358
- def expand_optionally_negative_switches(switches); end
-
- # Add a global option; follows the same syntax as Command#option
- # This would be used for switches such as --version, --trace, etc.
- #
- # source://commander//lib/commander/runner.rb#170
- def global_option(*args, &block); end
-
- # Returns a proc allowing for commands to inherit global options.
- # This functionality works whether a block is present for the global
- # option or not, so simple switches such as --verbose can be used
- # without a block, and used throughout all commands.
- #
- # source://commander//lib/commander/runner.rb#393
- def global_option_proc(switches, &block); end
-
- # Help formatter instance.
- #
- # source://commander//lib/commander/runner.rb#248
- def help_formatter; end
-
- # Returns hash of help formatter alias defaults.
- #
- # source://commander//lib/commander/runner.rb#266
- def help_formatter_alias_defaults; end
-
- # Returns the value of attribute help_formatter_aliases.
- #
- # source://commander//lib/commander/runner.rb#15
- def help_formatter_aliases; end
-
- # Hide the trace option from the help menus and don't add it as a global option
- #
- # source://commander//lib/commander/runner.rb#97
- def never_trace!; end
-
- # Returns the value of attribute options.
- #
- # source://commander//lib/commander/runner.rb#15
- def options; end
-
- # Parse global command options.
- #
- # source://commander//lib/commander/runner.rb#372
- def parse_global_options; end
-
- # source://commander//lib/commander/runner.rb#131
- def program(key, *args, &block); end
-
- # Returns hash of program defaults.
- #
- # source://commander//lib/commander/runner.rb#275
- def program_defaults; end
-
- # Removes global _options_ from _args_. This prevents an invalid
- # option error from occurring when options are parsed
- # again for the command.
- #
- # source://commander//lib/commander/runner.rb#322
- def remove_global_options(options, args); end
-
- # Raises a CommandError when the program any of the _keys_ are not present, or empty.
- #
- # source://commander//lib/commander/runner.rb#405
- def require_program(*keys); end
-
- # Raises InvalidCommandError when a _command_ is not found.
- #
- # source://commander//lib/commander/runner.rb#313
- def require_valid_command(command = T.unsafe(nil)); end
-
- # Run command parsing and execution process.
- #
- # source://commander//lib/commander/runner.rb#40
- def run!; end
-
- # Run the active command.
- #
- # source://commander//lib/commander/runner.rb#439
- def run_active_command; end
-
- # source://commander//lib/commander/runner.rb#448
- def say(*args); end
-
- # Returns array of valid command names found within _args_.
- #
- # source://commander//lib/commander/runner.rb#239
- def valid_command_names_from(*args); end
-
- # Return program version.
- #
- # source://commander//lib/commander/runner.rb#82
- def version; end
-
- private
-
- # Attempts to locate a command name from within the provided arguments.
- # Supports multi-word commands, using the largest possible match.
- #
- # source://commander//lib/commander/runner.rb#458
- def longest_valid_command_name_from(args); end
-
- class << self
- # Return singleton Runner instance.
- #
- # source://commander//lib/commander/runner.rb#33
- def instance; end
-
- # Return switches and description separated from the _args_ passed.
- #
- # source://commander//lib/commander/runner.rb#414
- def separate_switches_from_description(*args); end
-
- # Attempts to generate a method name symbol from +switch+.
- # For example:
- #
- # -h # => :h
- # --trace # => :trace
- # --some-switch # => :some_switch
- # --[no-]feature # => :feature
- # --file FILE # => :file
- # --list of,things # => :list
- #
- # source://commander//lib/commander/runner.rb#432
- def switch_to_sym(switch); end
- end
-end
-
-# --
-# Exceptions
-# ++
-#
-# source://commander//lib/commander/runner.rb#11
-class Commander::Runner::CommandError < ::StandardError; end
-
-# source://commander//lib/commander/runner.rb#13
-class Commander::Runner::InvalidCommandError < ::Commander::Runner::CommandError; end
-
-# = User Interaction
-#
-# Commander's user interaction module mixes in common
-# methods which extend HighLine's functionality such
-# as a #password method rather than calling #ask directly.
-#
-# source://commander//lib/commander/user_interaction.rb#14
-module Commander::UI
- private
-
- # Execute apple _script_.
- #
- # source://commander//lib/commander/user_interaction.rb#193
- def applescript(script); end
-
- # Prompt an editor for input. Optionally supply initial
- # _input_ which is written to the editor.
- #
- # _preferred_editor_ can be hinted.
- #
- # === Examples
- #
- # ask_editor # => prompts EDITOR with no input
- # ask_editor('foo') # => prompts EDITOR with default text of 'foo'
- # ask_editor('foo', 'mate -w') # => prompts TextMate with default text of 'foo'
- #
- # source://commander//lib/commander/user_interaction.rb#256
- def ask_editor(input = T.unsafe(nil), preferred_editor = T.unsafe(nil)); end
-
- # Find an editor available in path. Optionally supply the _preferred_
- # editor. Returns the name as a string, nil if none is available.
- #
- # source://commander//lib/commander/user_interaction.rb#237
- def available_editor(preferred = T.unsafe(nil)); end
-
- # Choose from a set array of _choices_.
- #
- # source://commander//lib/commander/user_interaction.rb#43
- def choose(message = T.unsafe(nil), *choices, &block); end
-
- # 'Say' something using the specified color
- #
- # === Examples
- # color 'I am blue', :blue
- # color 'I am bold', :bold
- # color 'White on Red', :white, :on_red
- #
- # === Notes
- # You may use:
- # * color: black blue cyan green magenta red white yellow
- # * style: blink bold clear underline
- # * highligh: on_
- #
- # source://commander//lib/commander/user_interaction.rb#117
- def color(*args); end
-
- # Converse with speech recognition.
- #
- # Currently a "poorman's" DSL to utilize applescript and
- # the MacOS speech recognition server.
- #
- # === Examples
- #
- # case converse 'What is the best food?', :cookies => 'Cookies', :unknown => 'Nothing'
- # when :cookies
- # speak 'o.m.g. you are awesome!'
- # else
- # case converse 'That is lame, shall I convince you cookies are the best?', :yes => 'Ok', :no => 'No', :maybe => 'Maybe another time'
- # when :yes
- # speak 'Well you see, cookies are just fantastic.'
- # else
- # speak 'Ok then, bye.'
- # end
- # end
- #
- # === Notes
- #
- # * MacOS only
- #
- # source://commander//lib/commander/user_interaction.rb#168
- def converse(prompt, responses = T.unsafe(nil)); end
-
- # Enable paging of output after called.
- #
- # source://commander//lib/commander/user_interaction.rb#272
- def enable_paging; end
-
- # Normalize IO streams, allowing for redirection of
- # +input+ and/or +output+, for example:
- #
- # $ foo # => read from terminal I/O
- # $ foo in # => read from 'in' file, output to terminal output stream
- # $ foo in out # => read from 'in' file, output to 'out' file
- # $ foo < in > out # => equivalent to above (essentially)
- #
- # Optionally a +block+ may be supplied, in which case
- # IO will be reset once the block has executed.
- #
- # === Examples
- #
- # command :foo do |c|
- # c.syntax = 'foo [input] [output]'
- # c.when_called do |args, options|
- # # or io(args.shift, args.shift)
- # io *args
- # str = $stdin.gets
- # puts 'input was: ' + str.inspect
- # end
- # end
- #
- # source://commander//lib/commander/user_interaction.rb#222
- def io(input = T.unsafe(nil), output = T.unsafe(nil), &block); end
-
- # 'Log' an _action_ to the terminal. This is typically used
- # for verbose output regarding actions performed. For example:
- #
- # create path/to/file.rb
- # remove path/to/old_file.rb
- # remove path/to/old_file2.rb
- #
- # source://commander//lib/commander/user_interaction.rb#57
- def log(action, *args); end
-
- # Ask the user for a password. Specify a custom
- # _message_ other than 'Password: ' or override the
- # default _mask_ of '*'.
- #
- # source://commander//lib/commander/user_interaction.rb#34
- def password(message = T.unsafe(nil), mask = T.unsafe(nil)); end
-
- # Output progress while iterating _arr_.
- #
- # === Examples
- #
- # uris = %w( http://vision-media.ca http://google.com )
- # progress uris, :format => "Remaining: :time_remaining" do |uri|
- # res = open uri
- # end
- #
- # source://commander//lib/commander/user_interaction.rb#316
- def progress(arr, options = T.unsafe(nil)); end
-
- # Substitute _hash_'s keys with their associated values in _str_.
- #
- # source://commander//lib/commander/user_interaction.rb#376
- def replace_tokens(str, hash); end
-
- # 'Say' something using the ERROR color (red).
- #
- # === Examples
- # say_error 'Everything is not fine'
- # say_error 'It is not ok', 'This is not ok too'
- #
- # source://commander//lib/commander/user_interaction.rb#97
- def say_error(*args); end
-
- # 'Say' something using the OK color (green).
- #
- # === Examples
- # say_ok 'Everything is fine'
- # say_ok 'It is ok', 'This is ok too'
- #
- # source://commander//lib/commander/user_interaction.rb#69
- def say_ok(*args); end
-
- # 'Say' something using the WARNING color (yellow).
- #
- # === Examples
- # say_warning 'This is a warning'
- # say_warning 'Be careful', 'Think about it'
- #
- # source://commander//lib/commander/user_interaction.rb#83
- def say_warning(*args); end
-
- # Speak _message_ using _voice_ at a speaking rate of _rate_
- #
- # Voice defaults to 'Alex', which is one of the better voices.
- # Speaking rate defaults to 175 words per minute
- #
- # === Examples
- #
- # speak 'What is your favorite food? '
- # food = ask 'favorite food?: '
- # speak "Wow, I like #{food} too. We have so much in common."
- # speak "I like #{food} as well!", "Victoria", 190
- #
- # === Notes
- #
- # * MacOS only
- #
- # source://commander//lib/commander/user_interaction.rb#139
- def speak(message, voice = T.unsafe(nil), rate = T.unsafe(nil)); end
-
- class << self
- # Execute apple _script_.
- #
- # source://commander//lib/commander/user_interaction.rb#193
- def applescript(script); end
-
- # Prompt an editor for input. Optionally supply initial
- # _input_ which is written to the editor.
- #
- # _preferred_editor_ can be hinted.
- #
- # === Examples
- #
- # ask_editor # => prompts EDITOR with no input
- # ask_editor('foo') # => prompts EDITOR with default text of 'foo'
- # ask_editor('foo', 'mate -w') # => prompts TextMate with default text of 'foo'
- #
- # source://commander//lib/commander/user_interaction.rb#256
- def ask_editor(input = T.unsafe(nil), preferred_editor = T.unsafe(nil)); end
-
- # Find an editor available in path. Optionally supply the _preferred_
- # editor. Returns the name as a string, nil if none is available.
- #
- # source://commander//lib/commander/user_interaction.rb#237
- def available_editor(preferred = T.unsafe(nil)); end
-
- # Choose from a set array of _choices_.
- #
- # source://commander//lib/commander/user_interaction.rb#43
- def choose(message = T.unsafe(nil), *choices, &block); end
-
- # 'Say' something using the specified color
- #
- # === Examples
- # color 'I am blue', :blue
- # color 'I am bold', :bold
- # color 'White on Red', :white, :on_red
- #
- # === Notes
- # You may use:
- # * color: black blue cyan green magenta red white yellow
- # * style: blink bold clear underline
- # * highligh: on_
- #
- # source://commander//lib/commander/user_interaction.rb#117
- def color(*args); end
-
- # Converse with speech recognition.
- #
- # Currently a "poorman's" DSL to utilize applescript and
- # the MacOS speech recognition server.
- #
- # === Examples
- #
- # case converse 'What is the best food?', :cookies => 'Cookies', :unknown => 'Nothing'
- # when :cookies
- # speak 'o.m.g. you are awesome!'
- # else
- # case converse 'That is lame, shall I convince you cookies are the best?', :yes => 'Ok', :no => 'No', :maybe => 'Maybe another time'
- # when :yes
- # speak 'Well you see, cookies are just fantastic.'
- # else
- # speak 'Ok then, bye.'
- # end
- # end
- #
- # === Notes
- #
- # * MacOS only
- #
- # source://commander//lib/commander/user_interaction.rb#168
- def converse(prompt, responses = T.unsafe(nil)); end
-
- # Enable paging of output after called.
- #
- # source://commander//lib/commander/user_interaction.rb#272
- def enable_paging; end
-
- # Normalize IO streams, allowing for redirection of
- # +input+ and/or +output+, for example:
- #
- # $ foo # => read from terminal I/O
- # $ foo in # => read from 'in' file, output to terminal output stream
- # $ foo in out # => read from 'in' file, output to 'out' file
- # $ foo < in > out # => equivalent to above (essentially)
- #
- # Optionally a +block+ may be supplied, in which case
- # IO will be reset once the block has executed.
- #
- # === Examples
- #
- # command :foo do |c|
- # c.syntax = 'foo [input] [output]'
- # c.when_called do |args, options|
- # # or io(args.shift, args.shift)
- # io *args
- # str = $stdin.gets
- # puts 'input was: ' + str.inspect
- # end
- # end
- #
- # source://commander//lib/commander/user_interaction.rb#222
- def io(input = T.unsafe(nil), output = T.unsafe(nil), &block); end
-
- # 'Log' an _action_ to the terminal. This is typically used
- # for verbose output regarding actions performed. For example:
- #
- # create path/to/file.rb
- # remove path/to/old_file.rb
- # remove path/to/old_file2.rb
- #
- # source://commander//lib/commander/user_interaction.rb#57
- def log(action, *args); end
-
- # Ask the user for a password. Specify a custom
- # _message_ other than 'Password: ' or override the
- # default _mask_ of '*'.
- #
- # source://commander//lib/commander/user_interaction.rb#34
- def password(message = T.unsafe(nil), mask = T.unsafe(nil)); end
-
- # Output progress while iterating _arr_.
- #
- # === Examples
- #
- # uris = %w( http://vision-media.ca http://google.com )
- # progress uris, :format => "Remaining: :time_remaining" do |uri|
- # res = open uri
- # end
- #
- # source://commander//lib/commander/user_interaction.rb#316
- def progress(arr, options = T.unsafe(nil)); end
-
- # Substitute _hash_'s keys with their associated values in _str_.
- #
- # source://commander//lib/commander/user_interaction.rb#376
- def replace_tokens(str, hash); end
-
- # 'Say' something using the ERROR color (red).
- #
- # === Examples
- # say_error 'Everything is not fine'
- # say_error 'It is not ok', 'This is not ok too'
- #
- # source://commander//lib/commander/user_interaction.rb#97
- def say_error(*args); end
-
- # 'Say' something using the OK color (green).
- #
- # === Examples
- # say_ok 'Everything is fine'
- # say_ok 'It is ok', 'This is ok too'
- #
- # source://commander//lib/commander/user_interaction.rb#69
- def say_ok(*args); end
-
- # 'Say' something using the WARNING color (yellow).
- #
- # === Examples
- # say_warning 'This is a warning'
- # say_warning 'Be careful', 'Think about it'
- #
- # source://commander//lib/commander/user_interaction.rb#83
- def say_warning(*args); end
-
- # Speak _message_ using _voice_ at a speaking rate of _rate_
- #
- # Voice defaults to 'Alex', which is one of the better voices.
- # Speaking rate defaults to 175 words per minute
- #
- # === Examples
- #
- # speak 'What is your favorite food? '
- # food = ask 'favorite food?: '
- # speak "Wow, I like #{food} too. We have so much in common."
- # speak "I like #{food} as well!", "Victoria", 190
- #
- # === Notes
- #
- # * MacOS only
- #
- # source://commander//lib/commander/user_interaction.rb#139
- def speak(message, voice = T.unsafe(nil), rate = T.unsafe(nil)); end
- end
-end
-
-# Implements ask_for_CLASS methods.
-#
-# source://commander//lib/commander/user_interaction.rb#325
-module Commander::UI::AskForClass
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_array(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_file(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_float(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_integer(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_pathname(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_regexp(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_string(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#330
- def ask_for_symbol(prompt); end
-
- # source://commander//lib/commander/user_interaction.rb#335
- def method_missing(method_name, *arguments, &block); end
-
- private
-
- # @return [Boolean]
- #
- # source://commander//lib/commander/user_interaction.rb#368
- def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
-end
-
-# source://commander//lib/commander/user_interaction.rb#326
-Commander::UI::AskForClass::DEPRECATED_CONSTANTS = T.let(T.unsafe(nil), Array)
-
-# = Progress Bar
-#
-# Terminal progress bar utility. In its most basic form
-# requires that the developer specifies when the bar should
-# be incremented. Note that a hash of tokens may be passed to
-# #increment, (or returned when using Object#progress).
-#
-# uris = %w(
-# http://vision-media.ca
-# http://yahoo.com
-# http://google.com
-# )
-#
-# bar = Commander::UI::ProgressBar.new uris.length, options
-# threads = []
-# uris.each do |uri|
-# threads << Thread.new do
-# begin
-# res = open uri
-# bar.increment :uri => uri
-# rescue Exception => e
-# bar.increment :uri => "#{uri} failed"
-# end
-# end
-# end
-# threads.each { |t| t.join }
-#
-# The Object method #progress is also available:
-#
-# progress uris, :width => 10 do |uri|
-# res = open uri
-# { :uri => uri } # Can now use :uri within :format option
-# end
-#
-# source://commander//lib/commander/user_interaction.rb#418
-class Commander::UI::ProgressBar
- # Creates a new progress bar.
- #
- # === Options
- #
- # :title Title, defaults to "Progress"
- # :width Width of :progress_bar
- # :progress_str Progress string, defaults to "="
- # :incomplete_str Incomplete bar string, defaults to '.'
- # :format Defaults to ":title |:progress_bar| :percent_complete% complete "
- # :tokens Additional tokens replaced within the format string
- # :complete_message Defaults to "Process complete"
- #
- # === Tokens
- #
- # :title
- # :percent_complete
- # :progress_bar
- # :step
- # :steps_remaining
- # :total_steps
- # :time_elapsed
- # :time_remaining
- #
- # @return [ProgressBar] a new instance of ProgressBar
- #
- # source://commander//lib/commander/user_interaction.rb#444
- def initialize(total, options = T.unsafe(nil)); end
-
- # Whether or not the operation has completed.
- #
- # @return [Boolean]
- #
- # source://commander//lib/commander/user_interaction.rb#534
- def completed?; end
-
- # Erase previous terminal line.
- #
- # source://commander//lib/commander/user_interaction.rb#551
- def erase_line; end
-
- # Whether or not the operation is complete, and we have finished.
- #
- # @return [Boolean]
- #
- # source://commander//lib/commander/user_interaction.rb#527
- def finished?; end
-
- # Generates tokens for this step.
- #
- # source://commander//lib/commander/user_interaction.rb#497
- def generate_tokens; end
-
- # Increment progress. Optionally pass _tokens_ which
- # can be displayed in the output format.
- #
- # source://commander//lib/commander/user_interaction.rb#542
- def increment(tokens = T.unsafe(nil)); end
-
- # Completion percentage.
- #
- # source://commander//lib/commander/user_interaction.rb#458
- def percent_complete; end
-
- # Formatted progress bar.
- #
- # source://commander//lib/commander/user_interaction.rb#490
- def progress_bar; end
-
- # Output the progress bar.
- #
- # source://commander//lib/commander/user_interaction.rb#513
- def show; end
-
- # Number of steps left.
- #
- # source://commander//lib/commander/user_interaction.rb#483
- def steps_remaining; end
-
- # Time that has elapsed since the operation started.
- #
- # source://commander//lib/commander/user_interaction.rb#469
- def time_elapsed; end
-
- # Estimated time remaining.
- #
- # source://commander//lib/commander/user_interaction.rb#476
- def time_remaining; end
-end
-
-# source://commander//lib/commander/version.rb#4
-Commander::VERSION = T.let(T.unsafe(nil), String)
-
-# source://commander//lib/commander/core_ext/object.rb#3
-class Object < ::BasicObject
- include ::Kernel
- include ::PP::ObjectMixin
-
- # Return the current binding.
- #
- # source://commander//lib/commander/core_ext/object.rb#7
- def get_binding; end
-end
diff --git a/Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.1.rbi b/Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.1.rbi
deleted file mode 100644
index f4ea9b43c2..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.1.rbi
+++ /dev/null
@@ -1,1130 +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`.
-
-# source://diff-lcs//lib/diff/lcs.rb#3
-module Diff; end
-
-# == How Diff Works (by Mark-Jason Dominus)
-#
-# I once read an article written by the authors of +diff+; they said that they
-# hard worked very hard on the algorithm until they found the right one.
-#
-# I think what they ended up using (and I hope someone will correct me, because
-# I am not very confident about this) was the `longest common subsequence'
-# method. In the LCS problem, you have two sequences of items:
-#
-# a b c d f g h j q z
-# a b c d e f g i j k r x y z
-#
-# and you want to find the longest sequence of items that is present in both
-# original sequences in the same order. That is, you want to find a new
-# sequence *S* which can be obtained from the first sequence by deleting some
-# items, and from the second sequence by deleting other items. You also want
-# *S* to be as long as possible. In this case *S* is:
-#
-# a b c d f g j z
-#
-# From there it's only a small step to get diff-like output:
-#
-# e h i k q r x y
-# + - + + - + + +
-#
-# This module solves the LCS problem. It also includes a canned function to
-# generate +diff+-like output.
-#
-# It might seem from the example above that the LCS of two sequences is always
-# pretty obvious, but that's not always the case, especially when the two
-# sequences have many repeated elements. For example, consider
-#
-# a x b y c z p d q
-# a b c a x b y c z
-#
-# A naive approach might start by matching up the +a+ and +b+ that appear at
-# the beginning of each sequence, like this:
-#
-# a x b y c z p d q
-# a b c a b y c z
-#
-# This finds the common subsequence +a b c z+. But actually, the LCS is +a x b
-# y c z+:
-#
-# a x b y c z p d q
-# a b c a x b y c z
-#
-# source://diff-lcs//lib/diff/lcs.rb#51
-module Diff::LCS
- # Returns the difference set between +self+ and +other+. See Diff::LCS#diff.
- #
- # source://diff-lcs//lib/diff/lcs.rb#75
- def diff(other, callbacks = T.unsafe(nil), &block); end
-
- # Returns an Array containing the longest common subsequence(s) between
- # +self+ and +other+. See Diff::LCS#lcs.
- #
- # lcs = seq1.lcs(seq2)
- #
- # A note when using objects: Diff::LCS only works properly when each object
- # can be used as a key in a Hash, which typically means that the objects must
- # implement Object#eql? in a way that two identical values compare
- # identically for key purposes. That is:
- #
- # O.new('a').eql?(O.new('a')) == true
- #
- # source://diff-lcs//lib/diff/lcs.rb#70
- def lcs(other, &block); end
-
- # Attempts to patch +self+ with the provided +patchset+. A new sequence based
- # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts
- # to autodiscover the direction of the patch.
- #
- # source://diff-lcs//lib/diff/lcs.rb#101
- def patch(patchset); end
-
- # Attempts to patch +self+ with the provided +patchset+. A new sequence based
- # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Does no
- # patch direction autodiscovery.
- #
- # source://diff-lcs//lib/diff/lcs.rb#109
- def patch!(patchset); end
-
- # Attempts to patch +self+ with the provided +patchset+, using #patch!. If
- # the sequence this is used on supports #replace, the value of +self+ will be
- # replaced. See Diff::LCS#patch. Does no patch direction autodiscovery.
- #
- # source://diff-lcs//lib/diff/lcs.rb#123
- def patch_me(patchset); end
-
- # Returns the balanced ("side-by-side") difference set between +self+ and
- # +other+. See Diff::LCS#sdiff.
- #
- # source://diff-lcs//lib/diff/lcs.rb#81
- def sdiff(other, callbacks = T.unsafe(nil), &block); end
-
- # Traverses the discovered longest common subsequences between +self+ and
- # +other+ using the alternate, balanced algorithm. See
- # Diff::LCS#traverse_balanced.
- #
- # source://diff-lcs//lib/diff/lcs.rb#94
- def traverse_balanced(other, callbacks = T.unsafe(nil), &block); end
-
- # Traverses the discovered longest common subsequences between +self+ and
- # +other+. See Diff::LCS#traverse_sequences.
- #
- # source://diff-lcs//lib/diff/lcs.rb#87
- def traverse_sequences(other, callbacks = T.unsafe(nil), &block); end
-
- # Attempts to patch +self+ with the provided +patchset+. A new sequence based
- # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts
- # to autodiscover the direction of the patch.
- #
- # source://diff-lcs//lib/diff/lcs.rb#101
- def unpatch(patchset); end
-
- # Attempts to unpatch +self+ with the provided +patchset+. A new sequence
- # based on +self+ and the +patchset+ will be created. See Diff::LCS#unpatch.
- # Does no patch direction autodiscovery.
- #
- # source://diff-lcs//lib/diff/lcs.rb#116
- def unpatch!(patchset); end
-
- # Attempts to unpatch +self+ with the provided +patchset+, using #unpatch!.
- # If the sequence this is used on supports #replace, the value of +self+ will
- # be replaced. See Diff::LCS#unpatch. Does no patch direction autodiscovery.
- #
- # source://diff-lcs//lib/diff/lcs.rb#134
- def unpatch_me(patchset); end
-
- class << self
- # :yields: seq1[i] for each matched
- #
- # source://diff-lcs//lib/diff/lcs.rb#144
- def LCS(seq1, seq2, &block); end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#52
- def callbacks_for(callbacks); end
-
- # #diff computes the smallest set of additions and deletions necessary to
- # turn the first sequence into the second, and returns a description of these
- # changes.
- #
- # See Diff::LCS::DiffCallbacks for the default behaviour. An alternate
- # behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If a
- # Class argument is provided for +callbacks+, #diff will attempt to
- # initialise it. If the +callbacks+ object (possibly initialised) responds to
- # #finish, it will be called.
- #
- # source://diff-lcs//lib/diff/lcs.rb#168
- def diff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
-
- # :yields: seq1[i] for each matched
- #
- # source://diff-lcs//lib/diff/lcs.rb#144
- def lcs(seq1, seq2, &block); end
-
- # Applies a +patchset+ to the sequence +src+ according to the +direction+
- # (:patch or :unpatch), producing a new sequence.
- #
- # If the +direction+ is not specified, Diff::LCS::patch will attempt to
- # discover the direction of the +patchset+.
- #
- # A +patchset+ can be considered to apply forward (:patch) if the
- # following expression is true:
- #
- # patch(s1, diff(s1, s2)) -> s2
- #
- # A +patchset+ can be considered to apply backward (:unpatch) if the
- # following expression is true:
- #
- # patch(s2, diff(s1, s2)) -> s1
- #
- # If the +patchset+ contains no changes, the +src+ value will be returned as
- # either src.dup or +src+. A +patchset+ can be deemed as having no
- # changes if the following predicate returns true:
- #
- # patchset.empty? or
- # patchset.flatten(1).all? { |change| change.unchanged? }
- #
- # === Patchsets
- #
- # A +patchset+ is always an enumerable sequence of changes, hunks of changes,
- # or a mix of the two. A hunk of changes is an enumerable sequence of
- # changes:
- #
- # [ # patchset
- # # change
- # [ # hunk
- # # change
- # ]
- # ]
- #
- # The +patch+ method accepts patchsets that are enumerable sequences
- # containing either Diff::LCS::Change objects (or a subclass) or the array
- # representations of those objects. Prior to application, array
- # representations of Diff::LCS::Change objects will be reified.
- #
- # source://diff-lcs//lib/diff/lcs.rb#626
- def patch(src, patchset, direction = T.unsafe(nil)); end
-
- # Given a set of patchset, convert the current version to the next version.
- # Does no auto-discovery.
- #
- # source://diff-lcs//lib/diff/lcs.rb#736
- def patch!(src, patchset); end
-
- # #sdiff computes all necessary components to show two sequences and their
- # minimized differences side by side, just like the Unix utility
- # sdiff does:
- #
- # old < -
- # same same
- # before | after
- # - > new
- #
- # See Diff::LCS::SDiffCallbacks for the default behaviour. An alternate
- # behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If a
- # Class argument is provided for +callbacks+, #diff will attempt to
- # initialise it. If the +callbacks+ object (possibly initialised) responds to
- # #finish, it will be called.
- #
- # Each element of a returned array is a Diff::LCS::ContextChange object,
- # which can be implicitly converted to an array.
- #
- # Diff::LCS.sdiff(a, b).each do |action, (old_pos, old_element), (new_pos, new_element)|
- # case action
- # when '!'
- # # replace
- # when '-'
- # # delete
- # when '+'
- # # insert
- # end
- # end
- #
- # source://diff-lcs//lib/diff/lcs.rb#200
- def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block); end
-
- # #traverse_balanced is an alternative to #traverse_sequences. It uses a
- # different algorithm to iterate through the entries in the computed longest
- # common subsequence. Instead of viewing the changes as insertions or
- # deletions from one of the sequences, #traverse_balanced will report
- # changes between the sequences.
- #
- # The arguments to #traverse_balanced are the two sequences to traverse and a
- # callback object, like this:
- #
- # traverse_balanced(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new)
- #
- # #sdiff is implemented with #traverse_balanced.
- #
- # == Callback Methods
- #
- # Optional callback methods are emphasized.
- #
- # callbacks#match:: Called when +a+ and +b+ are pointing to
- # common elements in +A+ and +B+.
- # callbacks#discard_a:: Called when +a+ is pointing to an
- # element not in +B+.
- # callbacks#discard_b:: Called when +b+ is pointing to an
- # element not in +A+.
- # callbacks#change:: Called when +a+ and +b+ are pointing to
- # the same relative position, but
- # A[a] and B[b] are not
- # the same; a change has
- # occurred.
- #
- # #traverse_balanced might be a bit slower than #traverse_sequences,
- # noticable only while processing huge amounts of data.
- #
- # == Algorithm
- #
- # a---+
- # v
- # A = a b c e h j l m n p
- # B = b c d e f j k l m r s t
- # ^
- # b---+
- #
- # === Matches
- #
- # If there are two arrows (+a+ and +b+) pointing to elements of sequences +A+
- # and +B+, the arrows will initially point to the first elements of their
- # respective sequences. #traverse_sequences will advance the arrows through
- # the sequences one element at a time, calling a method on the user-specified
- # callback object before each advance. It will advance the arrows in such a
- # way that if there are elements A[i] and B[j] which are
- # both equal and part of the longest common subsequence, there will be some
- # moment during the execution of #traverse_sequences when arrow +a+ is
- # pointing to A[i] and arrow +b+ is pointing to B[j]. When
- # this happens, #traverse_sequences will call callbacks#match and
- # then it will advance both arrows.
- #
- # === Discards
- #
- # Otherwise, one of the arrows is pointing to an element of its sequence that
- # is not part of the longest common subsequence. #traverse_sequences will
- # advance that arrow and will call callbacks#discard_a or
- # callbacks#discard_b, depending on which arrow it advanced.
- #
- # === Changes
- #
- # If both +a+ and +b+ point to elements that are not part of the longest
- # common subsequence, then #traverse_sequences will try to call
- # callbacks#change and advance both arrows. If
- # callbacks#change is not implemented, then
- # callbacks#discard_a and callbacks#discard_b will be
- # called in turn.
- #
- # The methods for callbacks#match, callbacks#discard_a,
- # callbacks#discard_b, and callbacks#change are invoked
- # with an event comprising the action ("=", "+", "-", or "!", respectively),
- # the indicies +i+ and +j+, and the elements A[i] and B[j].
- # Return values are discarded by #traverse_balanced.
- #
- # === Context
- #
- # Note that +i+ and +j+ may not be the same index position, even if +a+ and
- # +b+ are considered to be pointing to matching or changed elements.
- #
- # source://diff-lcs//lib/diff/lcs.rb#475
- def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil)); end
-
- # #traverse_sequences is the most general facility provided by this module;
- # #diff and #lcs are implemented as calls to it.
- #
- # The arguments to #traverse_sequences are the two sequences to traverse, and
- # a callback object, like this:
- #
- # traverse_sequences(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new)
- #
- # == Callback Methods
- #
- # Optional callback methods are emphasized.
- #
- # callbacks#match:: Called when +a+ and +b+ are pointing to
- # common elements in +A+ and +B+.
- # callbacks#discard_a:: Called when +a+ is pointing to an
- # element not in +B+.
- # callbacks#discard_b:: Called when +b+ is pointing to an
- # element not in +A+.
- # callbacks#finished_a:: Called when +a+ has reached the end of
- # sequence +A+.
- # callbacks#finished_b:: Called when +b+ has reached the end of
- # sequence +B+.
- #
- # == Algorithm
- #
- # a---+
- # v
- # A = a b c e h j l m n p
- # B = b c d e f j k l m r s t
- # ^
- # b---+
- #
- # If there are two arrows (+a+ and +b+) pointing to elements of sequences +A+
- # and +B+, the arrows will initially point to the first elements of their
- # respective sequences. #traverse_sequences will advance the arrows through
- # the sequences one element at a time, calling a method on the user-specified
- # callback object before each advance. It will advance the arrows in such a
- # way that if there are elements A[i] and B[j] which are
- # both equal and part of the longest common subsequence, there will be some
- # moment during the execution of #traverse_sequences when arrow +a+ is
- # pointing to A[i] and arrow +b+ is pointing to B[j]. When
- # this happens, #traverse_sequences will call callbacks#match and
- # then it will advance both arrows.
- #
- # Otherwise, one of the arrows is pointing to an element of its sequence that
- # is not part of the longest common subsequence. #traverse_sequences will
- # advance that arrow and will call callbacks#discard_a or
- # callbacks#discard_b, depending on which arrow it advanced. If both
- # arrows point to elements that are not part of the longest common
- # subsequence, then #traverse_sequences will advance arrow +a+ and call the
- # appropriate callback, then it will advance arrow +b+ and call the appropriate
- # callback.
- #
- # The methods for callbacks#match, callbacks#discard_a, and
- # callbacks#discard_b are invoked with an event comprising the
- # action ("=", "+", or "-", respectively), the indicies +i+ and +j+, and the
- # elements A[i] and B[j]. Return values are discarded by
- # #traverse_sequences.
- #
- # === End of Sequences
- #
- # If arrow +a+ reaches the end of its sequence before arrow +b+ does,
- # #traverse_sequence will try to call callbacks#finished_a with the
- # last index and element of +A+ (A[-1]) and the current index and
- # element of +B+ (B[j]). If callbacks#finished_a does not
- # exist, then callbacks#discard_b will be called on each element of
- # +B+ until the end of the sequence is reached (the call will be done with
- # A[-1] and B[j] for each element).
- #
- # If +b+ reaches the end of +B+ before +a+ reaches the end of +A+,
- # callbacks#finished_b will be called with the current index and
- # element of +A+ (A[i]) and the last index and element of +B+
- # (A[-1]). Again, if callbacks#finished_b does not exist on
- # the callback object, then callbacks#discard_a will be called on
- # each element of +A+ until the end of the sequence is reached (A[i]
- # and B[-1]).
- #
- # There is a chance that one additional callbacks#discard_a or
- # callbacks#discard_b will be called after the end of the sequence
- # is reached, if +a+ has not yet reached the end of +A+ or +b+ has not yet
- # reached the end of +B+.
- #
- # source://diff-lcs//lib/diff/lcs.rb#285
- def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil)); end
-
- # Given a set of patchset, convert the current version to the prior version.
- # Does no auto-discovery.
- #
- # source://diff-lcs//lib/diff/lcs.rb#730
- def unpatch!(src, patchset); end
-
- private
-
- # source://diff-lcs//lib/diff/lcs/internals.rb#4
- def diff_traversal(method, seq1, seq2, callbacks, &block); end
- end
-end
-
-# An alias for DefaultCallbacks that is used in
-# Diff::LCS#traverse_balanced.
-#
-# Diff::LCS.LCS(seq1, seq2, Diff::LCS::BalancedCallbacks)
-#
-# source://diff-lcs//lib/diff/lcs/callbacks.rb#50
-Diff::LCS::BalancedCallbacks = Diff::LCS::DefaultCallbacks
-
-# A block is an operation removing, adding, or changing a group of items.
-# Basically, this is just a list of changes, where each change adds or
-# deletes a single item. Used by bin/ldiff.
-#
-# source://diff-lcs//lib/diff/lcs/block.rb#6
-class Diff::LCS::Block
- # @return [Block] a new instance of Block
- #
- # source://diff-lcs//lib/diff/lcs/block.rb#9
- def initialize(chunk); end
-
- # Returns the value of attribute changes.
- #
- # source://diff-lcs//lib/diff/lcs/block.rb#7
- def changes; end
-
- # source://diff-lcs//lib/diff/lcs/block.rb#21
- def diff_size; end
-
- # Returns the value of attribute insert.
- #
- # source://diff-lcs//lib/diff/lcs/block.rb#7
- def insert; end
-
- # source://diff-lcs//lib/diff/lcs/block.rb#25
- def op; end
-
- # Returns the value of attribute remove.
- #
- # source://diff-lcs//lib/diff/lcs/block.rb#7
- def remove; end
-end
-
-# Represents a simplistic (non-contextual) change. Represents the removal or
-# addition of an element from either the old or the new sequenced
-# enumerable.
-#
-# source://diff-lcs//lib/diff/lcs/change.rb#6
-class Diff::LCS::Change
- include ::Comparable
-
- # @return [Change] a new instance of Change
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#27
- def initialize(*args); end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#65
- def <=>(other); end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#58
- def ==(other); end
-
- # Returns the action this Change represents.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#20
- def action; end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#72
- def adding?; end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#84
- def changed?; end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#76
- def deleting?; end
-
- # Returns the sequence element of the Change.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#25
- def element; end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#88
- def finished_a?; end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#92
- def finished_b?; end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#34
- def inspect(*_args); end
-
- # Returns the position of the Change.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#23
- def position; end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#38
- def to_a; end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#38
- def to_ary; end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#80
- def unchanged?; end
-
- class << self
- # source://diff-lcs//lib/diff/lcs/change.rb#44
- def from_a(arr); end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#15
- def valid_action?(action); end
- end
-end
-
-# source://diff-lcs//lib/diff/lcs/change.rb#7
-Diff::LCS::Change::IntClass = Integer
-
-# The only actions valid for changes are '+' (add), '-' (delete), '='
-# (no change), '!' (changed), '<' (tail changes from first sequence), or
-# '>' (tail changes from second sequence). The last two ('<>') are only
-# found with Diff::LCS::diff and Diff::LCS::sdiff.
-#
-# source://diff-lcs//lib/diff/lcs/change.rb#13
-Diff::LCS::Change::VALID_ACTIONS = T.let(T.unsafe(nil), Array)
-
-# Represents a contextual change. Contains the position and values of the
-# elements in the old and the new sequenced enumerables as well as the action
-# taken.
-#
-# source://diff-lcs//lib/diff/lcs/change.rb#101
-class Diff::LCS::ContextChange < ::Diff::LCS::Change
- # @return [ContextChange] a new instance of ContextChange
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#114
- def initialize(*args); end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#166
- def <=>(other); end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#157
- def ==(other); end
-
- # Returns the new element being changed.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#112
- def new_element; end
-
- # Returns the new position being changed.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#108
- def new_position; end
-
- # Returns the old element being changed.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#110
- def old_element; end
-
- # Returns the old position being changed.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#106
- def old_position; end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#122
- def to_a; end
-
- # source://diff-lcs//lib/diff/lcs/change.rb#122
- def to_ary; end
-
- class << self
- # source://diff-lcs//lib/diff/lcs/change.rb#132
- def from_a(arr); end
-
- # Simplifies a context change for use in some diff callbacks. '<' actions
- # are converted to '-' and '>' actions are converted to '+'.
- #
- # source://diff-lcs//lib/diff/lcs/change.rb#138
- def simplify(event); end
- end
-end
-
-# This will produce a compound array of contextual diff change objects. Each
-# element in the #diffs array is a "hunk" array, where each element in each
-# "hunk" array is a single change. Each change is a Diff::LCS::ContextChange
-# that contains both the old index and new index values for the change. The
-# "hunk" provides the full context for the changes. Both old and new objects
-# will be presented for changed objects. +nil+ will be substituted for a
-# discarded object.
-#
-# seq1 = %w(a b c e h j l m n p)
-# seq2 = %w(b c d e f j k l m r s t)
-#
-# diffs = Diff::LCS.diff(seq1, seq2, Diff::LCS::ContextDiffCallbacks)
-# # This example shows a simplified array format.
-# # [ [ [ '-', [ 0, 'a' ], [ 0, nil ] ] ], # 1
-# # [ [ '+', [ 3, nil ], [ 2, 'd' ] ] ], # 2
-# # [ [ '-', [ 4, 'h' ], [ 4, nil ] ], # 3
-# # [ '+', [ 5, nil ], [ 4, 'f' ] ] ],
-# # [ [ '+', [ 6, nil ], [ 6, 'k' ] ] ], # 4
-# # [ [ '-', [ 8, 'n' ], [ 9, nil ] ], # 5
-# # [ '+', [ 9, nil ], [ 9, 'r' ] ],
-# # [ '-', [ 9, 'p' ], [ 10, nil ] ],
-# # [ '+', [ 10, nil ], [ 10, 's' ] ],
-# # [ '+', [ 10, nil ], [ 11, 't' ] ] ] ]
-#
-# The five hunks shown are comprised of individual changes; if there is a
-# related set of changes, they are still shown individually.
-#
-# This callback can also be used with Diff::LCS#sdiff, which will produce
-# results like:
-#
-# diffs = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextCallbacks)
-# # This example shows a simplified array format.
-# # [ [ [ "-", [ 0, "a" ], [ 0, nil ] ] ], # 1
-# # [ [ "+", [ 3, nil ], [ 2, "d" ] ] ], # 2
-# # [ [ "!", [ 4, "h" ], [ 4, "f" ] ] ], # 3
-# # [ [ "+", [ 6, nil ], [ 6, "k" ] ] ], # 4
-# # [ [ "!", [ 8, "n" ], [ 9, "r" ] ], # 5
-# # [ "!", [ 9, "p" ], [ 10, "s" ] ],
-# # [ "+", [ 10, nil ], [ 11, "t" ] ] ] ]
-#
-# The five hunks are still present, but are significantly shorter in total
-# presentation, because changed items are shown as changes ("!") instead of
-# potentially "mismatched" pairs of additions and deletions.
-#
-# The result of this operation is similar to that of
-# Diff::LCS::SDiffCallbacks. They may be compared as:
-#
-# s = Diff::LCS.sdiff(seq1, seq2).reject { |e| e.action == "=" }
-# c = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextDiffCallbacks).flatten(1)
-#
-# s == c # -> true
-#
-# === Use
-#
-# This callback object must be initialised and can be used by the
-# Diff::LCS#diff or Diff::LCS#sdiff methods.
-#
-# cbo = Diff::LCS::ContextDiffCallbacks.new
-# Diff::LCS.LCS(seq1, seq2, cbo)
-# cbo.finish
-#
-# Note that the call to #finish is absolutely necessary, or the last set of
-# changes will not be visible. Alternatively, can be used as:
-#
-# cbo = Diff::LCS::ContextDiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) }
-#
-# The necessary #finish call will be made.
-#
-# === Simplified Array Format
-#
-# The simplified array format used in the example above can be obtained
-# with:
-#
-# require 'pp'
-# pp diffs.map { |e| e.map { |f| f.to_a } }
-#
-# source://diff-lcs//lib/diff/lcs/callbacks.rb#225
-class Diff::LCS::ContextDiffCallbacks < ::Diff::LCS::DiffCallbacks
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#234
- def change(event); end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#226
- def discard_a(event); end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#230
- def discard_b(event); end
-end
-
-# This callback object implements the default set of callback events,
-# which only returns the event itself. Note that #finished_a and
-# #finished_b are not implemented -- I haven't yet figured out where they
-# would be useful.
-#
-# Note that this is intended to be called as is, e.g.,
-#
-# Diff::LCS.LCS(seq1, seq2, Diff::LCS::DefaultCallbacks)
-#
-# source://diff-lcs//lib/diff/lcs/callbacks.rb#14
-class Diff::LCS::DefaultCallbacks
- class << self
- # Called when both the old and new values have changed.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#32
- def change(event); end
-
- # Called when the old value is discarded in favour of the new value.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#22
- def discard_a(event); end
-
- # Called when the new value is discarded in favour of the old value.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#27
- def discard_b(event); end
-
- # Called when two items match.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#17
- def match(event); end
-
- private
-
- def new(*_arg0); end
- end
-end
-
-# This will produce a compound array of simple diff change objects. Each
-# element in the #diffs array is a +hunk+ or +hunk+ array, where each
-# element in each +hunk+ array is a single Change object representing the
-# addition or removal of a single element from one of the two tested
-# sequences. The +hunk+ provides the full context for the changes.
-#
-# diffs = Diff::LCS.diff(seq1, seq2)
-# # This example shows a simplified array format.
-# # [ [ [ '-', 0, 'a' ] ], # 1
-# # [ [ '+', 2, 'd' ] ], # 2
-# # [ [ '-', 4, 'h' ], # 3
-# # [ '+', 4, 'f' ] ],
-# # [ [ '+', 6, 'k' ] ], # 4
-# # [ [ '-', 8, 'n' ], # 5
-# # [ '-', 9, 'p' ],
-# # [ '+', 9, 'r' ],
-# # [ '+', 10, 's' ],
-# # [ '+', 11, 't' ] ] ]
-#
-# There are five hunks here. The first hunk says that the +a+ at position 0
-# of the first sequence should be deleted ('-'). The second hunk
-# says that the +d+ at position 2 of the second sequence should be inserted
-# ('+'). The third hunk says that the +h+ at position 4 of the
-# first sequence should be removed and replaced with the +f+ from position 4
-# of the second sequence. The other two hunks are described similarly.
-#
-# === Use
-#
-# This callback object must be initialised and is used by the Diff::LCS#diff
-# method.
-#
-# cbo = Diff::LCS::DiffCallbacks.new
-# Diff::LCS.LCS(seq1, seq2, cbo)
-# cbo.finish
-#
-# Note that the call to #finish is absolutely necessary, or the last set of
-# changes will not be visible. Alternatively, can be used as:
-#
-# cbo = Diff::LCS::DiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) }
-#
-# The necessary #finish call will be made.
-#
-# === Simplified Array Format
-#
-# The simplified array format used in the example above can be obtained
-# with:
-#
-# require 'pp'
-# pp diffs.map { |e| e.map { |f| f.to_a } }
-#
-# source://diff-lcs//lib/diff/lcs/callbacks.rb#108
-class Diff::LCS::DiffCallbacks
- # :yields: self
- #
- # @return [DiffCallbacks] a new instance of DiffCallbacks
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#112
- def initialize; end
-
- # Returns the difference set collected during the diff process.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#110
- def diffs; end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#135
- def discard_a(event); end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#139
- def discard_b(event); end
-
- # Finalizes the diff process. If an unprocessed hunk still exists, then it
- # is appended to the diff list.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#127
- def finish; end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#131
- def match(_event); end
-
- private
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#143
- def finish_hunk; end
-end
-
-# A Hunk is a group of Blocks which overlap because of the context surrounding
-# each block. (So if we're not using context, every hunk will contain one
-# block.) Used in the diff program (bin/ldiff).
-#
-# source://diff-lcs//lib/diff/lcs/hunk.rb#8
-class Diff::LCS::Hunk
- # Create a hunk using references to both the old and new data, as well as the
- # piece of data.
- #
- # @return [Hunk] a new instance of Hunk
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#16
- def initialize(data_old, data_new, piece, flag_context, file_length_difference); end
-
- # Returns the value of attribute blocks.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#62
- def blocks; end
-
- # Returns a diff string based on a format.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#115
- def diff(format, last = T.unsafe(nil)); end
-
- # Returns the value of attribute end_new.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#64
- def end_new; end
-
- # Returns the value of attribute end_old.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#64
- def end_old; end
-
- # Returns the value of attribute file_length_difference.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#65
- def file_length_difference; end
-
- # Change the "start" and "end" fields to note that context should be added
- # to this hunk.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#69
- def flag_context; end
-
- # source://diff-lcs//lib/diff/lcs/hunk.rb#71
- def flag_context=(context); end
-
- # Merges this hunk and the provided hunk together if they overlap. Returns
- # a truthy value so that if there is no overlap, you can know the merge
- # was skipped.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#97
- def merge(hunk); end
-
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#331
- def missing_last_newline?(data); end
-
- # Determines whether there is an overlap between this hunk and the
- # provided hunk. This will be true if the difference between the two hunks
- # start or end positions is within one position of each other.
- #
- # @return [Boolean]
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#109
- def overlaps?(hunk); end
-
- # Returns the value of attribute start_new.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#63
- def start_new; end
-
- # Returns the value of attribute start_old.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#63
- def start_old; end
-
- # Merges this hunk and the provided hunk together if they overlap. Returns
- # a truthy value so that if there is no overlap, you can know the merge
- # was skipped.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#97
- def unshift(hunk); end
-
- private
-
- # source://diff-lcs//lib/diff/lcs/hunk.rb#214
- def context_diff(last = T.unsafe(nil)); end
-
- # Generate a range of item numbers to print. Only print 1 number if the
- # range has only one item in it. Otherwise, it's 'start,end'
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#298
- def context_range(mode, op, last = T.unsafe(nil)); end
-
- # source://diff-lcs//lib/diff/lcs/hunk.rb#276
- def ed_diff(format, _last = T.unsafe(nil)); end
-
- # source://diff-lcs//lib/diff/lcs/hunk.rb#344
- def encode(literal, target_encoding = T.unsafe(nil)); end
-
- # source://diff-lcs//lib/diff/lcs/hunk.rb#348
- def encode_as(string, *args); end
-
- # Note that an old diff can't have any context. Therefore, we know that
- # there's only one block in the hunk.
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#134
- def old_diff(_last = T.unsafe(nil)); end
-
- # source://diff-lcs//lib/diff/lcs/hunk.rb#159
- def unified_diff(last = T.unsafe(nil)); end
-
- # Generate a range of item numbers to print for unified diff. Print number
- # where block starts, followed by number of lines in the block
- # (don't print number of lines if it's 1)
- #
- # source://diff-lcs//lib/diff/lcs/hunk.rb#316
- def unified_range(mode, last); end
-end
-
-# source://diff-lcs//lib/diff/lcs/hunk.rb#10
-Diff::LCS::Hunk::ED_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
-
-# source://diff-lcs//lib/diff/lcs/hunk.rb#9
-Diff::LCS::Hunk::OLD_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash)
-
-# source://diff-lcs//lib/diff/lcs/internals.rb#29
-module Diff::LCS::Internals
- class << self
- # This method will analyze the provided patchset to provide a single-pass
- # normalization (conversion of the array form of Diff::LCS::Change objects to
- # the object form of same) and detection of whether the patchset represents
- # changes to be made.
- #
- # source://diff-lcs//lib/diff/lcs/internals.rb#102
- def analyze_patchset(patchset, depth = T.unsafe(nil)); end
-
- # Examine the patchset and the source to see in which direction the
- # patch should be applied.
- #
- # WARNING: By default, this examines the whole patch, so this could take
- # some time. This also works better with Diff::LCS::ContextChange or
- # Diff::LCS::Change as its source, as an array will cause the creation
- # of one of the above.
- #
- # source://diff-lcs//lib/diff/lcs/internals.rb#147
- def intuit_diff_direction(src, patchset, limit = T.unsafe(nil)); end
-
- # Compute the longest common subsequence between the sequenced
- # Enumerables +a+ and +b+. The result is an array whose contents is such
- # that
- #
- # result = Diff::LCS::Internals.lcs(a, b)
- # result.each_with_index do |e, i|
- # assert_equal(a[i], b[e]) unless e.nil?
- # end
- #
- # source://diff-lcs//lib/diff/lcs/internals.rb#41
- def lcs(a, b); end
-
- private
-
- # If +vector+ maps the matching elements of another collection onto this
- # Enumerable, compute the inverse of +vector+ that maps this Enumerable
- # onto the collection. (Currently unused.)
- #
- # source://diff-lcs//lib/diff/lcs/internals.rb#286
- def inverse_vector(a, vector); end
-
- # Returns a hash mapping each element of an Enumerable to the set of
- # positions it occupies in the Enumerable, optionally restricted to the
- # elements specified in the range of indexes specified by +interval+.
- #
- # source://diff-lcs//lib/diff/lcs/internals.rb#298
- def position_hash(enum, interval); end
-
- # Find the place at which +value+ would normally be inserted into the
- # Enumerable. If that place is already occupied by +value+, do nothing
- # and return +nil+. If the place does not exist (i.e., it is off the end
- # of the Enumerable), add it to the end. Otherwise, replace the element
- # at that point with +value+. It is assumed that the Enumerable's values
- # are numeric.
- #
- # This operation preserves the sort order.
- #
- # source://diff-lcs//lib/diff/lcs/internals.rb#252
- def replace_next_larger(enum, value, last_index = T.unsafe(nil)); end
- end
-end
-
-# This will produce a simple array of diff change objects. Each element in
-# the #diffs array is a single ContextChange. In the set of #diffs provided
-# by SDiffCallbacks, both old and new objects will be presented for both
-# changed and unchanged objects. +nil+ will be substituted
-# for a discarded object.
-#
-# The diffset produced by this callback, when provided to Diff::LCS#sdiff,
-# will compute and display the necessary components to show two sequences
-# and their minimized differences side by side, just like the Unix utility
-# +sdiff+.
-#
-# same same
-# before | after
-# old < -
-# - > new
-#
-# seq1 = %w(a b c e h j l m n p)
-# seq2 = %w(b c d e f j k l m r s t)
-#
-# diffs = Diff::LCS.sdiff(seq1, seq2)
-# # This example shows a simplified array format.
-# # [ [ "-", [ 0, "a"], [ 0, nil ] ],
-# # [ "=", [ 1, "b"], [ 0, "b" ] ],
-# # [ "=", [ 2, "c"], [ 1, "c" ] ],
-# # [ "+", [ 3, nil], [ 2, "d" ] ],
-# # [ "=", [ 3, "e"], [ 3, "e" ] ],
-# # [ "!", [ 4, "h"], [ 4, "f" ] ],
-# # [ "=", [ 5, "j"], [ 5, "j" ] ],
-# # [ "+", [ 6, nil], [ 6, "k" ] ],
-# # [ "=", [ 6, "l"], [ 7, "l" ] ],
-# # [ "=", [ 7, "m"], [ 8, "m" ] ],
-# # [ "!", [ 8, "n"], [ 9, "r" ] ],
-# # [ "!", [ 9, "p"], [ 10, "s" ] ],
-# # [ "+", [ 10, nil], [ 11, "t" ] ] ]
-#
-# The result of this operation is similar to that of
-# Diff::LCS::ContextDiffCallbacks. They may be compared as:
-#
-# s = Diff::LCS.sdiff(seq1, seq2).reject { |e| e.action == "=" }
-# c = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextDiffCallbacks).flatten(1)
-#
-# s == c # -> true
-#
-# === Use
-#
-# This callback object must be initialised and is used by the Diff::LCS#sdiff
-# method.
-#
-# cbo = Diff::LCS::SDiffCallbacks.new
-# Diff::LCS.LCS(seq1, seq2, cbo)
-#
-# As with the other initialisable callback objects,
-# Diff::LCS::SDiffCallbacks can be initialised with a block. As there is no
-# "fininishing" to be done, this has no effect on the state of the object.
-#
-# cbo = Diff::LCS::SDiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) }
-#
-# === Simplified Array Format
-#
-# The simplified array format used in the example above can be obtained
-# with:
-#
-# require 'pp'
-# pp diffs.map { |e| e.to_a }
-#
-# source://diff-lcs//lib/diff/lcs/callbacks.rb#303
-class Diff::LCS::SDiffCallbacks
- # :yields: self
- #
- # @return [SDiffCallbacks] a new instance of SDiffCallbacks
- # @yield [_self]
- # @yieldparam _self [Diff::LCS::SDiffCallbacks] the object that the method was called on
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#307
- def initialize; end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#324
- def change(event); end
-
- # Returns the difference set collected during the diff process.
- #
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#305
- def diffs; end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#316
- def discard_a(event); end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#320
- def discard_b(event); end
-
- # source://diff-lcs//lib/diff/lcs/callbacks.rb#312
- def match(event); end
-end
-
-# An alias for DefaultCallbacks that is used in
-# Diff::LCS#traverse_sequences.
-#
-# Diff::LCS.LCS(seq1, seq2, Diff::LCS::SequenceCallbacks)
-#
-# source://diff-lcs//lib/diff/lcs/callbacks.rb#44
-Diff::LCS::SequenceCallbacks = Diff::LCS::DefaultCallbacks
-
-# source://diff-lcs//lib/diff/lcs.rb#52
-Diff::LCS::VERSION = T.let(T.unsafe(nil), String)
diff --git a/Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi b/Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi
deleted file mode 100644
index d62d1db0cd..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi
+++ /dev/null
@@ -1,376 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `docile` gem.
-# Please instead update this file by running `bin/tapioca gem docile`.
-
-# Docile keeps your Ruby DSLs tame and well-behaved.
-#
-# source://docile//lib/docile/version.rb#3
-module Docile
- extend ::Docile::Execution
-
- private
-
- # Execute a block in the context of an object whose methods represent the
- # commands in a DSL.
- #
- # Use this method to execute an *imperative* DSL, which means that:
- #
- # 1. Each command mutates the state of the DSL context object
- # 2. The return value of each command is ignored
- # 3. The final return value is the original context object
- #
- # @example Use a String as a DSL
- # Docile.dsl_eval("Hello, world!") do
- # reverse!
- # upcase!
- # end
- # #=> "!DLROW ,OLLEH"
- # @example Use an Array as a DSL
- # Docile.dsl_eval([]) do
- # push 1
- # push 2
- # pop
- # push 3
- # end
- # #=> [1, 3]
- # @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed against the
- # `dsl` context object
- # @return [Object] the `dsl` context object after executing the block
- #
- # source://docile//lib/docile.rb#45
- def dsl_eval(dsl, *args, **_arg2, &block); end
-
- # Execute a block in the context of an immutable object whose methods,
- # and the methods of their return values, represent the commands in a DSL.
- #
- # Use this method to execute a *functional* DSL, which means that:
- #
- # 1. The original DSL context object is never mutated
- # 2. Each command returns the next DSL context object
- # 3. The final return value is the value returned by the last command
- #
- # @example Use a frozen String as a DSL
- # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
- # reverse
- # upcase
- # end
- # #=> "!ELBATUMMI M'I"
- # @example Use a Float as a DSL
- # Docile.dsl_eval_immutable(84.5) do
- # fdiv(2)
- # floor
- # end
- # #=> 42
- # @note Use with a *functional* DSL (commands return successor
- # context objects)
- # @param dsl [Object] immutable context object whose methods make up the
- # initial DSL
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed against the
- # `dsl` context object and successor return values
- # @return [Object] the return value of the final command in the block
- #
- # source://docile//lib/docile.rb#128
- def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
-
- # Execute a block in the context of an object whose methods represent the
- # commands in a DSL, and return *the block's return value*.
- #
- # Use this method to execute an *imperative* DSL, which means that:
- #
- # 1. Each command mutates the state of the DSL context object
- # 2. The return value of each command is ignored
- # 3. The final return value is the original context object
- #
- # @example Use a String as a DSL
- # Docile.dsl_eval_with_block_return("Hello, world!") do
- # reverse!
- # upcase!
- # first
- # end
- # #=> "!"
- # @example Use an Array as a DSL
- # Docile.dsl_eval_with_block_return([]) do
- # push "a"
- # push "b"
- # pop
- # push "c"
- # length
- # end
- # #=> 2
- # @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed against the
- # `dsl` context object
- # @return [Object] the return value from executing the block
- #
- # source://docile//lib/docile.rb#87
- def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
-
- class << self
- # Execute a block in the context of an object whose methods represent the
- # commands in a DSL.
- #
- # Use this method to execute an *imperative* DSL, which means that:
- #
- # 1. Each command mutates the state of the DSL context object
- # 2. The return value of each command is ignored
- # 3. The final return value is the original context object
- #
- # @example Use a String as a DSL
- # Docile.dsl_eval("Hello, world!") do
- # reverse!
- # upcase!
- # end
- # #=> "!DLROW ,OLLEH"
- # @example Use an Array as a DSL
- # Docile.dsl_eval([]) do
- # push 1
- # push 2
- # pop
- # push 3
- # end
- # #=> [1, 3]
- # @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed against the
- # `dsl` context object
- # @return [Object] the `dsl` context object after executing the block
- #
- # source://docile//lib/docile.rb#45
- def dsl_eval(dsl, *args, **_arg2, &block); end
-
- # Execute a block in the context of an immutable object whose methods,
- # and the methods of their return values, represent the commands in a DSL.
- #
- # Use this method to execute a *functional* DSL, which means that:
- #
- # 1. The original DSL context object is never mutated
- # 2. Each command returns the next DSL context object
- # 3. The final return value is the value returned by the last command
- #
- # @example Use a frozen String as a DSL
- # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
- # reverse
- # upcase
- # end
- # #=> "!ELBATUMMI M'I"
- # @example Use a Float as a DSL
- # Docile.dsl_eval_immutable(84.5) do
- # fdiv(2)
- # floor
- # end
- # #=> 42
- # @note Use with a *functional* DSL (commands return successor
- # context objects)
- # @param dsl [Object] immutable context object whose methods make up the
- # initial DSL
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed against the
- # `dsl` context object and successor return values
- # @return [Object] the return value of the final command in the block
- #
- # source://docile//lib/docile.rb#128
- def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
-
- # Execute a block in the context of an object whose methods represent the
- # commands in a DSL, and return *the block's return value*.
- #
- # Use this method to execute an *imperative* DSL, which means that:
- #
- # 1. Each command mutates the state of the DSL context object
- # 2. The return value of each command is ignored
- # 3. The final return value is the original context object
- #
- # @example Use a String as a DSL
- # Docile.dsl_eval_with_block_return("Hello, world!") do
- # reverse!
- # upcase!
- # first
- # end
- # #=> "!"
- # @example Use an Array as a DSL
- # Docile.dsl_eval_with_block_return([]) do
- # push "a"
- # push "b"
- # pop
- # push "c"
- # length
- # end
- # #=> 2
- # @note Use with an *imperative* DSL (commands modify the context object)
- # @param dsl [Object] context object whose methods make up the DSL
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed against the
- # `dsl` context object
- # @return [Object] the return value from executing the block
- #
- # source://docile//lib/docile.rb#87
- def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
- end
-end
-
-# This is used to remove entries pointing to Docile's source files
-# from {Exception#backtrace} and {Exception#backtrace_locations}.
-#
-# If {NoMethodError} is caught then the exception object will be extended
-# by this module to add filter functionalities.
-#
-# @api private
-#
-# source://docile//lib/docile/backtrace_filter.rb#11
-module Docile::BacktraceFilter
- # @api private
- #
- # source://docile//lib/docile/backtrace_filter.rb#14
- def backtrace; end
-
- # @api private
- #
- # source://docile//lib/docile/backtrace_filter.rb#19
- def backtrace_locations; end
-end
-
-# @api private
-#
-# source://docile//lib/docile/backtrace_filter.rb#12
-Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp)
-
-# Operates in the same manner as {FallbackContextProxy}, but replacing
-# the primary `receiver` object with the result of each proxied method.
-#
-# This is useful for implementing DSL evaluation for immutable context
-# objects.
-#
-#
-# @api private
-# @see Docile.dsl_eval_immutable
-#
-# source://docile//lib/docile/chaining_fallback_context_proxy.rb#19
-class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy
- # Proxy methods as in {FallbackContextProxy#method_missing}, replacing
- # `receiver` with the returned value.
- #
- # @api private
- #
- # source://docile//lib/docile/chaining_fallback_context_proxy.rb#20
- def method_missing(method, *args, **_arg2, &block); end
-end
-
-# A namespace for functions relating to the execution of a block against a
-# proxy object.
-#
-# @api private
-#
-# source://docile//lib/docile/execution.rb#8
-module Docile::Execution
- private
-
- # Execute a block in the context of an object whose methods represent the
- # commands in a DSL, using a specific proxy class.
- #
- # @api private
- # @param dsl [Object] context object whose methods make up the
- # (initial) DSL
- # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed
- # @return [Object] the return value of the block
- #
- # source://docile//lib/docile/execution.rb#19
- def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
-
- class << self
- # Execute a block in the context of an object whose methods represent the
- # commands in a DSL, using a specific proxy class.
- #
- # @api private
- # @param dsl [Object] context object whose methods make up the
- # (initial) DSL
- # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
- # @param args [Array] arguments to be passed to the block
- # @param block [Proc] the block of DSL commands to be executed
- # @return [Object] the return value of the block
- #
- # source://docile//lib/docile/execution.rb#19
- def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
- end
-end
-
-# A proxy object with a primary receiver as well as a secondary
-# fallback receiver.
-#
-# Will attempt to forward all method calls first to the primary receiver,
-# and then to the fallback receiver if the primary does not handle that
-# method.
-#
-# This is useful for implementing DSL evaluation in the context of an object.
-#
-#
-# @api private
-# @see Docile.dsl_eval
-#
-# source://docile//lib/docile/fallback_context_proxy.rb#20
-class Docile::FallbackContextProxy
- # @api private
- # @param receiver [Object] the primary proxy target to which all methods
- # initially will be forwarded
- # @param fallback [Object] the fallback proxy target to which any methods
- # not handled by `receiver` will be forwarded
- # @return [FallbackContextProxy] a new instance of FallbackContextProxy
- #
- # source://docile//lib/docile/fallback_context_proxy.rb#46
- def initialize(receiver, fallback); end
-
- # @api private
- # @return [Array] Instance variable names, excluding
- # {NON_PROXIED_INSTANCE_VARIABLES}
- #
- # source://docile//lib/docile/fallback_context_proxy.rb#85
- def instance_variables; end
-
- # Proxy all methods, excluding {NON_PROXIED_METHODS}, first to `receiver`
- # and then to `fallback` if not found.
- #
- # @api private
- #
- # source://docile//lib/docile/fallback_context_proxy.rb#91
- def method_missing(method, *args, **_arg2, &block); end
-end
-
-# The set of methods which will **not** fallback from the block's context
-# to the dsl object.
-#
-# @api private
-#
-# source://docile//lib/docile/fallback_context_proxy.rb#30
-Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set)
-
-# The set of instance variables which are local to this object and hidden.
-# All other instance variables will be copied in and out of this object
-# from the scope in which this proxy was created.
-#
-# @api private
-#
-# source://docile//lib/docile/fallback_context_proxy.rb#35
-Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set)
-
-# The set of methods which will **not** be proxied, but instead answered
-# by this object directly.
-#
-# @api private
-#
-# source://docile//lib/docile/fallback_context_proxy.rb#23
-Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set)
-
-# The current version of this library
-#
-# source://docile//lib/docile/version.rb#5
-Docile::VERSION = T.let(T.unsafe(nil), String)
diff --git a/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi b/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi
deleted file mode 100644
index 3b036aba94..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi
+++ /dev/null
@@ -1,157 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `hana` gem.
-# Please instead update this file by running `bin/tapioca gem hana`.
-
-# source://hana//lib/hana.rb#3
-module Hana; end
-
-# source://hana//lib/hana.rb#56
-class Hana::Patch
- # @return [Patch] a new instance of Patch
- #
- # source://hana//lib/hana.rb#88
- def initialize(is); end
-
- # source://hana//lib/hana.rb#94
- def apply(doc); end
-
- private
-
- # @raise [MissingTargetException]
- #
- # source://hana//lib/hana.rb#107
- def add(ins, doc); end
-
- # source://hana//lib/hana.rb#223
- def add_op(dest, key, obj); end
-
- # @raise [ObjectOperationOnArrayException]
- #
- # source://hana//lib/hana.rb#214
- def check_index(obj, key); end
-
- # @raise [MissingTargetException]
- #
- # source://hana//lib/hana.rb#144
- def copy(ins, doc); end
-
- # source://hana//lib/hana.rb#202
- def get_path(ins); end
-
- # @raise [MissingTargetException]
- #
- # source://hana//lib/hana.rb#128
- def move(ins, doc); end
-
- # source://hana//lib/hana.rb#193
- def remove(ins, doc); end
-
- # source://hana//lib/hana.rb#180
- def replace(ins, doc); end
-
- # source://hana//lib/hana.rb#232
- def rm_op(obj, key); end
-
- # source://hana//lib/hana.rb#170
- def test(ins, doc); end
-end
-
-# source://hana//lib/hana.rb#57
-class Hana::Patch::Exception < ::StandardError; end
-
-# source://hana//lib/hana.rb#104
-Hana::Patch::FROM = T.let(T.unsafe(nil), String)
-
-# source://hana//lib/hana.rb#60
-class Hana::Patch::FailedTestException < ::Hana::Patch::Exception
- # @return [FailedTestException] a new instance of FailedTestException
- #
- # source://hana//lib/hana.rb#63
- def initialize(path, value); end
-
- # Returns the value of attribute path.
- #
- # source://hana//lib/hana.rb#61
- def path; end
-
- # Sets the attribute path
- #
- # @param value the value to set the attribute path to.
- #
- # source://hana//lib/hana.rb#61
- def path=(_arg0); end
-
- # Returns the value of attribute value.
- #
- # source://hana//lib/hana.rb#61
- def value; end
-
- # Sets the attribute value
- #
- # @param value the value to set the attribute value to.
- #
- # source://hana//lib/hana.rb#61
- def value=(_arg0); end
-end
-
-# source://hana//lib/hana.rb#79
-class Hana::Patch::IndexError < ::Hana::Patch::Exception; end
-
-# source://hana//lib/hana.rb#76
-class Hana::Patch::InvalidObjectOperationException < ::Hana::Patch::Exception; end
-
-# source://hana//lib/hana.rb#85
-class Hana::Patch::InvalidPath < ::Hana::Patch::Exception; end
-
-# source://hana//lib/hana.rb#82
-class Hana::Patch::MissingTargetException < ::Hana::Patch::Exception; end
-
-# source://hana//lib/hana.rb#73
-class Hana::Patch::ObjectOperationOnArrayException < ::Hana::Patch::Exception; end
-
-# source://hana//lib/hana.rb#70
-class Hana::Patch::OutOfBoundsException < ::Hana::Patch::Exception; end
-
-# source://hana//lib/hana.rb#92
-Hana::Patch::VALID = T.let(T.unsafe(nil), Hash)
-
-# source://hana//lib/hana.rb#105
-Hana::Patch::VALUE = T.let(T.unsafe(nil), String)
-
-# source://hana//lib/hana.rb#6
-class Hana::Pointer
- include ::Enumerable
-
- # @return [Pointer] a new instance of Pointer
- #
- # source://hana//lib/hana.rb#15
- def initialize(path); end
-
- # source://hana//lib/hana.rb#19
- def each(&block); end
-
- # source://hana//lib/hana.rb#21
- def eval(object); end
-
- class << self
- # source://hana//lib/hana.rb#27
- def eval(list, object); end
-
- # source://hana//lib/hana.rb#39
- def parse(path); end
- end
-end
-
-# source://hana//lib/hana.rb#25
-Hana::Pointer::ESC = T.let(T.unsafe(nil), Hash)
-
-# source://hana//lib/hana.rb#9
-class Hana::Pointer::Exception < ::StandardError; end
-
-# source://hana//lib/hana.rb#12
-class Hana::Pointer::FormatError < ::Hana::Pointer::Exception; end
-
-# source://hana//lib/hana.rb#4
-Hana::VERSION = T.let(T.unsafe(nil), String)
diff --git a/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi b/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi
deleted file mode 100644
index 1b18ddcabe..0000000000
--- a/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi
+++ /dev/null
@@ -1,3820 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `highline` gem.
-# Please instead update this file by running `bin/tapioca gem highline`.
-
-# A HighLine object is a "high-level line oriented" shell over an input and an
-# output stream. HighLine simplifies common console interaction, effectively
-# replacing {Kernel#puts} and {Kernel#gets}. User code can simply specify the
-# question to ask and any details about user interaction, then leave the rest
-# of the work to HighLine. When {HighLine#ask} returns, you'll have the answer
-# you requested, even if HighLine had to ask many times, validate results,
-# perform range checking, convert types, etc.
-#
-# @example Basic usage
-# cli = HighLine.new
-# answer = cli.ask "What do you think?"
-# puts "You have answered: #{answer}"
-#
-# source://highline//lib/highline/terminal.rb#14
-class HighLine
- include ::HighLine::BuiltinStyles
- include ::HighLine::CustomErrors
- extend ::HighLine::BuiltinStyles::ClassMethods
- extend ::SingleForwardable
-
- # Create an instance of HighLine connected to the given _input_
- # and _output_ streams.
- #
- # @param input [IO] the default input stream for HighLine.
- # @param output [IO] the default output stream for HighLine.
- # @param wrap_at [Integer] all statements outputed through
- # HighLine will be wrapped to this column size if set.
- # @param page_at [Integer] page size and paginating.
- # @param indent_size [Integer] indentation size in spaces.
- # @param indent_level [Integer] how deep is indentated.
- # @return [HighLine] a new instance of HighLine
- #
- # source://highline//lib/highline.rb#102
- def initialize(input = T.unsafe(nil), output = T.unsafe(nil), wrap_at = T.unsafe(nil), page_at = T.unsafe(nil), indent_size = T.unsafe(nil), indent_level = T.unsafe(nil)); end
-
- # A shortcut to HighLine.ask() a question that only accepts "yes" or "no"
- # answers ("y" and "n" are allowed) and returns +true+ or +false+
- # (+true+ for "yes"). If provided a +true+ value, _character_ will cause
- # HighLine to fetch a single character response. A block can be provided
- # to further configure the question as in HighLine.ask()
- #
- # Raises EOFError if input is exhausted.
- #
- # @param yes_or_no_question [String] a question that accepts yes and no as
- # answers
- # @param character [Boolean, :getc] character mode to be passed to
- # Question#character
- # @see Question#character
- #
- # source://highline//lib/highline.rb#193
- def agree(yes_or_no_question, character = T.unsafe(nil)); end
-
- # This method is the primary interface for user input. Just provide a
- # _question_ to ask the user, the _answer_type_ you want returned, and
- # optionally a code block setting up details of how you want the question
- # handled. See {#say} for details on the format of _question_, and
- # {Question} for more information about _answer_type_ and what's
- # valid in the code block.
- #
- # Raises EOFError if input is exhausted.
- #
- # @param template_or_question [String, Question] what to ask
- # @param answer_type [Class] to what class to convert the answer
- # @param details to be passed to Question.new
- # @return answer converted to the class in answer_type
- #
- # source://highline//lib/highline.rb#217
- def ask(template_or_question, answer_type = T.unsafe(nil), &details); end
-
- # This method is HighLine's menu handler. For simple usage, you can just
- # pass all the menu items you wish to display. At that point, choose() will
- # build and display a menu, walk the user through selection, and return
- # their choice among the provided items. You might use this in a case
- # statement for quick and dirty menus.
- #
- # However, choose() is capable of much more. If provided, a block will be
- # passed a HighLine::Menu object to configure. Using this method, you can
- # customize all the details of menu handling from index display, to building
- # a complete shell-like menuing system. See HighLine::Menu for all the
- # methods it responds to.
- #
- # Raises EOFError if input is exhausted.
- #
- # @param items [Array]
- # @param details [Proc] to be passed to Menu.new
- # @return [String] answer
- #
- # source://highline//lib/highline.rb#245
- def choose(*items, &details); end
-
- # This method provides easy access to ANSI color sequences, without the user
- # needing to remember to CLEAR at the end of each sequence. Just pass the
- # _string_ to color, followed by a list of _colors_ you would like it to be
- # affected by. The _colors_ can be HighLine class constants, or symbols
- # (:blue for BLUE, for example). A CLEAR will automatically be embedded to
- # the end of the returned String.
- #
- # This method returns the original _string_ unchanged if use_color?
- # is +false+.
- #
- # @example
- # cli = HighLine.new
- # cli.color("Sustainable", :green, :bold)
- # # => "\e[32m\e[1mSustainable\e[0m"
- #
- # # As class method (delegating to HighLine.default_instance)
- # HighLine.color("Sustainable", :green, :bold)
- # @param string [String] string to be colored
- # @param colors [Array] array of colors like [:red, :blue]
- # @return [String] (ANSI escaped) colored string
- #
- # source://highline//lib/highline.rb#321
- def color(string, *colors); end
-
- # In case you just want the color code, without the embedding and
- # the CLEAR sequence.
- #
- # @example
- # s = HighLine.Style(:red, :blue)
- # s.code # => "\e[31m\e[34m"
- #
- # HighLine.color_code(:red, :blue) # => "\e[31m\e[34m"
- #
- # cli = HighLine.new
- # cli.color_code(:red, :blue) # => "\e[31m\e[34m"
- # @param colors [Array]
- # @return [String] ANSI escape code for the given colors.
- #
- # source://highline//lib/highline.rb#341
- def color_code(*colors); end
-
- # Get response each character per turn
- #
- # @param question [Question]
- # @return [String] response
- #
- # source://highline//lib/highline.rb#607
- def get_response_character_mode(question); end
-
- # Get response using #getc
- #
- # @param question [Question]
- # @return [String] response
- #
- # source://highline//lib/highline.rb#597
- def get_response_getc_mode(question); end
-
- # Get response one line at time
- #
- # @param question [Question]
- # @return [String] response
- #
- # source://highline//lib/highline.rb#514
- def get_response_line_mode(question); end
-
- # Executes block or outputs statement with indentation
- #
- # @param increase [Integer] how much to increase indentation
- # @param statement [Statement, String] to be said
- # @param multiline [Boolean]
- # @return [void]
- # @see #multi_indent
- #
- # source://highline//lib/highline.rb#431
- def indent(increase = T.unsafe(nil), statement = T.unsafe(nil), multiline = T.unsafe(nil)); end
-
- # @return [Integer] The indentation level
- #
- # source://highline//lib/highline.rb#158
- def indent_level; end
-
- # @return [Integer] The indentation level
- #
- # source://highline//lib/highline.rb#158
- def indent_level=(_arg0); end
-
- # @return [Integer] The indentation size in characters
- #
- # source://highline//lib/highline.rb#155
- def indent_size; end
-
- # @return [Integer] The indentation size in characters
- #
- # source://highline//lib/highline.rb#155
- def indent_size=(_arg0); end
-
- # Outputs indentation with current settings
- #
- # source://highline//lib/highline.rb#419
- def indentation; end
-
- # @return [IO] the default input stream for a HighLine instance
- #
- # source://highline//lib/highline.rb#161
- def input; end
-
- # When gathering a Hash with {QuestionAsker#gather_hash},
- # it tracks the current key being asked.
- #
- # @todo We should probably move this into the HighLine::Question
- # object.
- #
- # source://highline//lib/highline.rb#171
- def key; end
-
- # When gathering a Hash with {QuestionAsker#gather_hash},
- # it tracks the current key being asked.
- #
- # @todo We should probably move this into the HighLine::Question
- # object.
- #
- # source://highline//lib/highline.rb#171
- def key=(_arg0); end
-
- # Renders a list of itens using a {ListRenderer}
- #
- # @param items [Array]
- # @param mode [Symbol]
- # @param option
- # @return [String]
- # @see ListRenderer#initialize ListRenderer#initialize for parameter details
- #
- # source://highline//lib/highline.rb#358
- def list(items, mode = T.unsafe(nil), option = T.unsafe(nil)); end
-
- # @return [Boolean] Indentation over multiple lines
- #
- # source://highline//lib/highline.rb#152
- def multi_indent; end
-
- # @return [Boolean] Indentation over multiple lines
- #
- # source://highline//lib/highline.rb#152
- def multi_indent=(_arg0); end
-
- # Creates a new HighLine instance with the same options
- #
- # source://highline//lib/highline.rb#485
- def new_scope; end
-
- # Outputs newline
- #
- # source://highline//lib/highline.rb#450
- def newline; end
-
- # @return [IO] the default output stream for a HighLine instance
- #
- # source://highline//lib/highline.rb#164
- def output; end
-
- # Returns the number of columns for the console, or a default it they cannot
- # be determined.
- #
- # source://highline//lib/highline.rb#458
- def output_cols; end
-
- # Returns the number of rows for the console, or a default if they cannot be
- # determined.
- #
- # source://highline//lib/highline.rb#469
- def output_rows; end
-
- # @return [Integer] The current row setting for paging output.
- #
- # source://highline//lib/highline.rb#149
- def page_at; end
-
- # Set to an integer value to cause HighLine to page output lines over the
- # indicated line limit. When +nil+, the default, no paging occurs. If
- # set to :auto, HighLine will attempt to determine the rows available
- # for the @output or use a sensible default.
- #
- # source://highline//lib/highline.rb#412
- def page_at=(setting); end
-
- # Call #puts on the HighLine's output stream
- #
- # @param args [String] same args for Kernel#puts
- #
- # source://highline//lib/highline.rb#478
- def puts(*args); end
-
- # Renders a statement using {HighLine::Statement}
- #
- # @param statement [String] any string
- # @return [Statement] rendered statement
- #
- # source://highline//lib/highline.rb#392
- def render_statement(statement); end
-
- # Resets the use of color.
- #
- # source://highline//lib/highline.rb#133
- def reset_use_color; end
-
- # The basic output method for HighLine objects. If the provided _statement_
- # ends with a space or tab character, a newline will not be appended (output
- # will be flush()ed). All other cases are passed straight to Kernel.puts().
- #
- # The _statement_ argument is processed as an ERb template, supporting
- # embedded Ruby code. The template is evaluated within a HighLine
- # instance's binding for providing easy access to the ANSI color constants
- # and the HighLine#color() method.
- #
- # @param statement [Statement, String] what to be said
- #
- # source://highline//lib/highline.rb#373
- def say(statement); end
-
- # Convenience method to craft a lambda suitable for
- # beind used in autocompletion operations by {#choose}
- #
- # @return [lambda] lambda to be used in autocompletion operations
- #
- # source://highline//lib/highline.rb#285
- def shell_style_lambda(menu); end
-
- # System specific that responds to #initialize_system_extensions,
- # #terminal_size, #raw_no_echo_mode, #restore_mode, #get_character.
- # It polymorphically handles specific cases for different platforms.
- #
- # @return [HighLine::Terminal]
- #
- # source://highline//lib/highline.rb#177
- def terminal; end
-
- # Pass +false+ to turn off HighLine's EOF tracking.
- #
- # source://highline//lib/highline.rb#138
- def track_eof; end
-
- # Pass +false+ to turn off HighLine's EOF tracking.
- #
- # source://highline//lib/highline.rb#138
- def track_eof=(_arg0); end
-
- # Returns true if HighLine is currently tracking EOF for input.
- #
- # @return [Boolean]
- #
- # source://highline//lib/highline.rb#141
- def track_eof?; end
-
- # Remove color codes from a string.
- #
- # @param string [String] to be decolorized
- # @return [String] without the ANSI escape sequence (colors)
- #
- # source://highline//lib/highline.rb#348
- def uncolor(string); end
-
- # Set it to false to disable ANSI coloring
- #
- # source://highline//lib/highline.rb#125
- def use_color; end
-
- # Set it to false to disable ANSI coloring
- #
- # source://highline//lib/highline.rb#125
- def use_color=(_arg0); end
-
- # Returns truethy if HighLine instance is currently using color escapes.
- #
- # @return [Boolean]
- #
- # source://highline//lib/highline.rb#128
- def use_color?; end
-
- # @return [Integer] The current column setting for wrapping output.
- #
- # source://highline//lib/highline.rb#146
- def wrap_at; end
-
- # Set to an integer value to cause HighLine to wrap output lines at the
- # indicated character limit. When +nil+, the default, no wrapping occurs. If
- # set to :auto, HighLine will attempt to determine the columns
- # available for the @output or use a sensible default.
- #
- # source://highline//lib/highline.rb#402
- def wrap_at=(setting); end
-
- private
-
- # source://highline//lib/highline.rb#628
- def actual_length(text); end
-
- # Adds a layer of scope (new_scope) to ask a question inside a
- # question, without destroying instance data
- #
- # source://highline//lib/highline.rb#494
- def confirm(question); end
-
- # Check to see if there's already a HighLine.default_instance or if
- # this is the first time the method is called (eg: at
- # HighLine.default_instance initialization).
- # If there's already one, copy use_color settings.
- # This is here most to help migrate code from HighLine 1.7.x to 2.0.x
- #
- # @return [Boolean]
- #
- # source://highline//lib/highline.rb#639
- def default_use_color; end
-
- # source://highline//lib/highline.rb#620
- def erase_current_line; end
-
- # Read a line of input from the input stream and process whitespace as
- # requested by the Question object.
- #
- # If Question's _readline_ property is set, that library will be used to
- # fetch input. *WARNING*: This ignores the currently set input stream.
- #
- # Raises EOFError if input is exhausted.
- #
- # source://highline//lib/highline.rb#531
- def get_line(question); end
-
- # source://highline//lib/highline.rb#535
- def get_line_raw_no_echo_mode(question); end
-
- # source://highline//lib/highline.rb#575
- def ignore_arrow_key; end
-
- # source://highline//lib/highline.rb#507
- def last_answer(answers); end
-
- # @return [Boolean]
- #
- # source://highline//lib/highline.rb#586
- def line_overflow_for_question?(line, question); end
-
- # source://highline//lib/highline.rb#590
- def output_erase_char; end
-
- # source://highline//lib/highline.rb#581
- def say_last_char_or_echo_char(line, question); end
-
- # source://highline//lib/highline.rb#566
- def say_new_line_or_overwrite(question); end
-
- # A helper method used by HighLine::Question.verify_match
- # for finding whether a list of answers match or differ
- # from each other.
- #
- # source://highline//lib/highline.rb#503
- def unique_answers(list); end
-
- class << self
- # Returns a HighLine::String from any given String.
- #
- # @param s [String]
- # @return [HighLine::String] from the given string.
- #
- # source://highline//lib/highline/string_extensions.rb#7
- def String(s); end
-
- # Creates a style using {.find_or_create_style} or
- # {.find_or_create_style_list}
- #
- # @param args [Array