Module: CLI::UI::Spinner
- Extended by:
- T::Sig
- Defined in:
- lib/cli/ui/spinner.rb,
lib/cli/ui/spinner/async.rb,
lib/cli/ui/spinner/spin_group.rb
Defined Under Namespace
Constant Summary collapse
- PERIOD =
seconds
0.1
- TASK_FAILED =
:task_failed
- RUNES =
if CLI::UI::OS.current.use_emoji? ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].freeze else ['\\', '|', '/', '-', '\\', '|', '/', '-'].freeze end
- GLYPHS =
colors.zip(RUNES).map { |c, r| c + r + CLI::UI::Color::RESET.code }.freeze
Class Attribute Summary collapse
-
.index ⇒ Object
Returns the value of attribute index.
Class Method Summary collapse
Methods included from T::Sig
Class Attribute Details
.index ⇒ Object
Returns the value of attribute index.
31 32 33 |
# File 'lib/cli/ui/spinner.rb', line 31 def index @index end |
Class Method Details
.current_rune ⇒ Object
44 45 46 |
# File 'lib/cli/ui/spinner.rb', line 44 def current_rune RUNES[index || 0] end |