Module: Dex::UI::Spinner

Defined in:
lib/dex/ui/spinner.rb

Defined Under Namespace

Classes: SpinGroup

Constant Summary collapse

PERIOD =

seconds

0.1

Class Method Summary collapse

Class Method Details

.spin(title, &block) ⇒ Object



15
16
17
18
19
# File 'lib/dex/ui/spinner.rb', line 15

def self.spin(title, &block)
  sg = SpinGroup.new
  sg.add(title, &block)
  sg.wait
end