Class: ShenmeGUI::Control::Progress
- Defined in:
- lib/shenmegui/controls.rb
Instance Attribute Summary
Attributes inherited from Base
#children, #events, #id, #parent, #properties
Instance Method Summary collapse
Methods inherited from Base
#add_events, #focus, #hook, #initialize, property, #render, shortcut, #sync, #update
Constructor Details
This class inherits a constructor from ShenmeGUI::Control::Base
Instance Method Details
#validate(params) ⇒ Object
155 156 157 158 |
# File 'lib/shenmegui/controls.rb', line 155 def validate(params) params[:percent] = 0 if params[:percent] < 0 params[:percent] = 100 if params[:percent] > 100 end |