Class: UnderOs::UI::Progress
- Inherits:
-
View
- Object
- View
- UnderOs::UI::Progress
- Defined in:
- lib/under_os/ui/progress.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Progress
constructor
A new instance of Progress.
- #value ⇒ Object
- #value=(value) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Progress
Returns a new instance of Progress.
4 5 6 7 8 |
# File 'lib/under_os/ui/progress.rb', line 4 def initialize(={}) super self.value = [:value] if [:value] end |
Instance Method Details
#value ⇒ Object
10 11 12 |
# File 'lib/under_os/ui/progress.rb', line 10 def value @_.progress end |
#value=(value) ⇒ Object
14 15 16 |
# File 'lib/under_os/ui/progress.rb', line 14 def value=(value) @_.setProgress value.to_f, animated: true end |