Class: Nobbie::Wx::Command::IsChosenCommand
- Inherits:
-
ComponentAwareCommand
- Object
- ComponentAwareCommand
- Nobbie::Wx::Command::IsChosenCommand
- Defined in:
- lib/nobbie/wx/command/is_chosen.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from ComponentAwareCommand
#component, #ensure_enabled, #handle_unsupported_operation_for_component, #handle_value_not_found, #highlight, #initialize
Constructor Details
This class inherits a constructor from Nobbie::Wx::Command::ComponentAwareCommand
Instance Method Details
#describe ⇒ Object
14 15 16 |
# File 'lib/nobbie/wx/command/is_chosen.rb', line 14 def describe "Is chosen #{@path}" end |
#execute ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/nobbie/wx/command/is_chosen.rb', line 6 def execute if component.is_a?(RadioButton) || component.is_a?(CheckBox) return component.value else handle_unsupported_operation_for_component end end |