Sha256: 8a5934270c3386bbceb9f8be39ac88673bd05ac00bc2b39897c8af12ba8dd0c8
Contents?: true
Size: 481 Bytes
Versions: 5
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true require_relative "../../lib/tty-spinner" opts = { style: { top: ". ", middle: "|-> ", bottom: "|__ " }, format: :bouncing_ball } spinners = TTY::Spinner::Multi.new("[:spinner] Top level spinner", opts) sp1 = spinners.register "[:spinner] one" sp2 = spinners.register "[:spinner] two" sp3 = spinners.register "[:spinner] three" sp1.auto_spin sp2.auto_spin sp3.auto_spin sleep(2) sp1.success sleep 1 sp2.success sleep 1 sp3.error
Version data entries
5 entries across 5 versions & 1 rubygems