422 lines
9.4 KiB
Plaintext
422 lines
9.4 KiB
Plaintext
![]() |
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
||
|
# tapioca sync
|
||
|
|
||
|
# typed: true
|
||
|
|
||
|
class ProgressBar
|
||
|
def self.create(*args); end
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Base
|
||
|
extend(::Forwardable)
|
||
|
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def clear(*args, &block); end
|
||
|
def decrement; end
|
||
|
def finish; end
|
||
|
def finished?; end
|
||
|
def format(other); end
|
||
|
def format=(other); end
|
||
|
def increment; end
|
||
|
def inspect; end
|
||
|
def log(*args, &block); end
|
||
|
def pause; end
|
||
|
def paused?; end
|
||
|
def progress(*args, &block); end
|
||
|
def progress=(new_progress); end
|
||
|
def progress_mark=(mark); end
|
||
|
def refresh(*args, &block); end
|
||
|
def remainder_mark=(mark); end
|
||
|
def reset; end
|
||
|
def resume; end
|
||
|
def start(options = _); end
|
||
|
def started?; end
|
||
|
def stop; end
|
||
|
def stopped?; end
|
||
|
def title; end
|
||
|
def title=(title); end
|
||
|
def to_h; end
|
||
|
def to_s(new_format = _); end
|
||
|
def total(*args, &block); end
|
||
|
def total=(new_total); end
|
||
|
|
||
|
protected
|
||
|
|
||
|
def autofinish; end
|
||
|
def autofinish=(_); end
|
||
|
def autostart; end
|
||
|
def autostart=(_); end
|
||
|
def bar; end
|
||
|
def bar=(_); end
|
||
|
def finished; end
|
||
|
def finished=(_); end
|
||
|
def output; end
|
||
|
def output=(_); end
|
||
|
def percentage; end
|
||
|
def percentage=(_); end
|
||
|
def progressable; end
|
||
|
def progressable=(_); end
|
||
|
def rate; end
|
||
|
def rate=(_); end
|
||
|
def time; end
|
||
|
def time=(_); end
|
||
|
def timer; end
|
||
|
def timer=(_); end
|
||
|
def title_comp; end
|
||
|
def title_comp=(_); end
|
||
|
def update_progress(*args); end
|
||
|
end
|
||
|
|
||
|
module ProgressBar::Calculators
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Calculators::Length
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def calculate_length; end
|
||
|
def current_length; end
|
||
|
def current_length=(_); end
|
||
|
def length; end
|
||
|
def length_changed?; end
|
||
|
def length_override; end
|
||
|
def length_override=(other); end
|
||
|
def output; end
|
||
|
def output=(_); end
|
||
|
def reset_length; end
|
||
|
|
||
|
private
|
||
|
|
||
|
def dynamic_width; end
|
||
|
def dynamic_width_stty; end
|
||
|
def dynamic_width_tput; end
|
||
|
def dynamic_width_via_io_object; end
|
||
|
def dynamic_width_via_output_stream_object; end
|
||
|
def dynamic_width_via_system_calls; end
|
||
|
def terminal_width; end
|
||
|
def unix?; end
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Calculators::RunningAverage
|
||
|
def self.calculate(current_average, new_value_to_average, smoothing_factor); end
|
||
|
end
|
||
|
|
||
|
module ProgressBar::Components
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Components::Bar
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def length; end
|
||
|
def length=(_); end
|
||
|
def progress; end
|
||
|
def progress=(_); end
|
||
|
def progress_mark; end
|
||
|
def progress_mark=(_); end
|
||
|
def remainder_mark; end
|
||
|
def remainder_mark=(_); end
|
||
|
def to_s(options = _); end
|
||
|
def upa_steps; end
|
||
|
def upa_steps=(_); end
|
||
|
|
||
|
private
|
||
|
|
||
|
def bar(length); end
|
||
|
def bar_with_percentage(length); end
|
||
|
def complete_bar(length); end
|
||
|
def complete_bar_with_percentage(length); end
|
||
|
def completed_length; end
|
||
|
def incomplete_space(length); end
|
||
|
def incomplete_string; end
|
||
|
def integrated_percentage_complete_string; end
|
||
|
def standard_complete_string; end
|
||
|
def unknown_progress_frame; end
|
||
|
def unknown_string; end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Components::Bar::DEFAULT_PROGRESS_MARK = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Bar::DEFAULT_REMAINDER_MARK = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Bar::DEFAULT_UPA_STEPS = T.let(T.unsafe(nil), Array)
|
||
|
|
||
|
class ProgressBar::Components::Percentage
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def progress; end
|
||
|
def progress=(_); end
|
||
|
|
||
|
private
|
||
|
|
||
|
def justified_percentage; end
|
||
|
def justified_percentage_with_precision; end
|
||
|
def percentage; end
|
||
|
def percentage_with_precision; end
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Components::Rate
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def progress; end
|
||
|
def progress=(_); end
|
||
|
def rate_scale; end
|
||
|
def rate_scale=(_); end
|
||
|
def started_at; end
|
||
|
def started_at=(_); end
|
||
|
def stopped_at; end
|
||
|
def stopped_at=(_); end
|
||
|
def timer; end
|
||
|
def timer=(_); end
|
||
|
|
||
|
private
|
||
|
|
||
|
def base_rate; end
|
||
|
def elapsed_seconds; end
|
||
|
def rate_of_change(format_string = _); end
|
||
|
def rate_of_change_with_precision; end
|
||
|
def scaled_rate; end
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Components::Time
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def elapsed_with_label; end
|
||
|
def estimated_with_label; end
|
||
|
|
||
|
protected
|
||
|
|
||
|
def estimated_with_friendly_oob; end
|
||
|
def estimated_with_no_oob; end
|
||
|
def estimated_with_unknown_oob; end
|
||
|
def out_of_bounds_time_format; end
|
||
|
def out_of_bounds_time_format=(format); end
|
||
|
def progress; end
|
||
|
def progress=(_); end
|
||
|
def timer; end
|
||
|
def timer=(_); end
|
||
|
|
||
|
private
|
||
|
|
||
|
def elapsed; end
|
||
|
def estimated; end
|
||
|
def estimated_seconds_remaining; end
|
||
|
def estimated_with_elapsed_fallback; end
|
||
|
def out_of_bounds_time; end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Components::Time::ELAPSED_LABEL = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Time::ESTIMATED_LABEL = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Time::NO_TIME_ELAPSED_TEXT = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Time::OOB_FRIENDLY_TIME_TEXT = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Time::OOB_LIMIT_IN_HOURS = T.let(T.unsafe(nil), Integer)
|
||
|
|
||
|
ProgressBar::Components::Time::OOB_TIME_FORMATS = T.let(T.unsafe(nil), Array)
|
||
|
|
||
|
ProgressBar::Components::Time::OOB_UNKNOWN_TIME_TEXT = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
ProgressBar::Components::Time::TIME_FORMAT = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
class ProgressBar::Components::Title
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def title; end
|
||
|
def title=(_); end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Components::Title::DEFAULT_TITLE = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
module ProgressBar::Format
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Format::Formatter
|
||
|
def self.process(format_string, max_length, bar); end
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Format::Molecule
|
||
|
def initialize(letter); end
|
||
|
|
||
|
def bar_molecule?; end
|
||
|
def full_key; end
|
||
|
def key; end
|
||
|
def key=(_); end
|
||
|
def lookup_value(environment, length = _); end
|
||
|
def method_name; end
|
||
|
def method_name=(_); end
|
||
|
def non_bar_molecule?; end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Format::Molecule::BAR_MOLECULES = T.let(T.unsafe(nil), Array)
|
||
|
|
||
|
ProgressBar::Format::Molecule::MOLECULES = T.let(T.unsafe(nil), Hash)
|
||
|
|
||
|
class ProgressBar::Format::String < ::String
|
||
|
def bar_molecule_placeholder_length; end
|
||
|
def bar_molecules; end
|
||
|
def displayable_length; end
|
||
|
def molecules; end
|
||
|
def non_bar_molecules; end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Format::String::ANSI_SGR_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||
|
|
||
|
ProgressBar::Format::String::MOLECULE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||
|
|
||
|
class ProgressBar::InvalidProgressError < ::RuntimeError
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Output
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def clear_string; end
|
||
|
def length; end
|
||
|
def log(string); end
|
||
|
def refresh(options = _); end
|
||
|
def stream; end
|
||
|
def stream=(_); end
|
||
|
def with_refresh; end
|
||
|
|
||
|
protected
|
||
|
|
||
|
def bar; end
|
||
|
def bar=(_); end
|
||
|
def length_calculator; end
|
||
|
def length_calculator=(_); end
|
||
|
def throttle; end
|
||
|
def throttle=(_); end
|
||
|
|
||
|
private
|
||
|
|
||
|
def print_and_flush; end
|
||
|
|
||
|
def self.detect(options = _); end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Output::DEFAULT_OUTPUT_STREAM = T.let(T.unsafe(nil), IO)
|
||
|
|
||
|
module ProgressBar::Outputs
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Outputs::NonTty < ::ProgressBar::Output
|
||
|
def bar_update_string; end
|
||
|
def clear; end
|
||
|
def default_format; end
|
||
|
def eol; end
|
||
|
def last_update_length; end
|
||
|
def refresh_with_format_change(*_); end
|
||
|
def resolve_format(*_); end
|
||
|
|
||
|
protected
|
||
|
|
||
|
def last_update_length=(_); end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Outputs::NonTty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
class ProgressBar::Outputs::Tty < ::ProgressBar::Output
|
||
|
def bar_update_string; end
|
||
|
def clear; end
|
||
|
def default_format; end
|
||
|
def eol; end
|
||
|
def refresh_with_format_change; end
|
||
|
def resolve_format(other_format); end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Outputs::Tty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String)
|
||
|
|
||
|
class ProgressBar::Progress
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def absolute; end
|
||
|
def decrement; end
|
||
|
def finish; end
|
||
|
def finished?; end
|
||
|
def increment; end
|
||
|
def none?; end
|
||
|
def percentage_completed; end
|
||
|
def percentage_completed_with_precision; end
|
||
|
def progress; end
|
||
|
def progress=(new_progress); end
|
||
|
def reset; end
|
||
|
def running_average; end
|
||
|
def running_average=(_); end
|
||
|
def smoothing; end
|
||
|
def smoothing=(_); end
|
||
|
def start(options = _); end
|
||
|
def starting_position; end
|
||
|
def starting_position=(_); end
|
||
|
def total; end
|
||
|
def total=(new_total); end
|
||
|
def total_with_unknown_indicator; end
|
||
|
def unknown?; end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Progress::DEFAULT_BEGINNING_POSITION = T.let(T.unsafe(nil), Integer)
|
||
|
|
||
|
ProgressBar::Progress::DEFAULT_SMOOTHING = T.let(T.unsafe(nil), Float)
|
||
|
|
||
|
ProgressBar::Progress::DEFAULT_TOTAL = T.let(T.unsafe(nil), Integer)
|
||
|
|
||
|
module ProgressBar::Refinements
|
||
|
end
|
||
|
|
||
|
module ProgressBar::Refinements::Enumerator
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Throttle
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def choke(options = _); end
|
||
|
def rate; end
|
||
|
def rate=(_); end
|
||
|
def started_at; end
|
||
|
def started_at=(_); end
|
||
|
def stopped_at; end
|
||
|
def stopped_at=(_); end
|
||
|
def timer; end
|
||
|
def timer=(_); end
|
||
|
end
|
||
|
|
||
|
class ProgressBar::Time
|
||
|
def initialize(time = _); end
|
||
|
|
||
|
def now; end
|
||
|
def unmocked_time_method; end
|
||
|
|
||
|
protected
|
||
|
|
||
|
def time; end
|
||
|
def time=(_); end
|
||
|
end
|
||
|
|
||
|
ProgressBar::Time::TIME_MOCKING_LIBRARY_METHODS = T.let(T.unsafe(nil), Array)
|
||
|
|
||
|
class ProgressBar::Timer
|
||
|
def initialize(options = _); end
|
||
|
|
||
|
def divide_seconds(seconds); end
|
||
|
def elapsed_seconds; end
|
||
|
def elapsed_whole_seconds; end
|
||
|
def pause; end
|
||
|
def reset; end
|
||
|
def reset?; end
|
||
|
def restart; end
|
||
|
def resume; end
|
||
|
def start; end
|
||
|
def started?; end
|
||
|
def started_at; end
|
||
|
def started_at=(_); end
|
||
|
def stop; end
|
||
|
def stopped?; end
|
||
|
def stopped_at; end
|
||
|
def stopped_at=(_); end
|
||
|
|
||
|
protected
|
||
|
|
||
|
def time; end
|
||
|
def time=(_); end
|
||
|
end
|