Class: UnderOs::UI::Spinner

Inherits:
View
  • Object
show all
Defined in:
lib/under_os/ui/spinner.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Spinner

Returns a new instance of Spinner.



4
5
6
7
# File 'lib/under_os/ui/spinner.rb', line 4

def initialize(options={})
  super
  show
end

Instance Method Details

#hiddenObject



19
20
21
# File 'lib/under_os/ui/spinner.rb', line 19

def hidden
  @_.isAnimating == 0
end

#hideObject



14
15
16
17
# File 'lib/under_os/ui/spinner.rb', line 14

def hide
  @_.stopAnimating
  self
end

#showObject



9
10
11
12
# File 'lib/under_os/ui/spinner.rb', line 9

def show
  @_.startAnimating
  self
end