Class: UnderOs::UI::Spinner
- Inherits:
-
View
- Object
- View
- UnderOs::UI::Spinner
- Defined in:
- lib/under_os/ui/spinner.rb
Instance Method Summary collapse
- #hidden ⇒ Object
- #hide ⇒ Object
-
#initialize(options = {}) ⇒ Spinner
constructor
A new instance of Spinner.
- #show ⇒ Object
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(={}) super show end |
Instance Method Details
#hidden ⇒ Object
19 20 21 |
# File 'lib/under_os/ui/spinner.rb', line 19 def hidden @_.isAnimating == 0 end |
#hide ⇒ Object
14 15 16 17 |
# File 'lib/under_os/ui/spinner.rb', line 14 def hide @_.stopAnimating self end |
#show ⇒ Object
9 10 11 12 |
# File 'lib/under_os/ui/spinner.rb', line 9 def show @_.startAnimating self end |