Class: Nobbie::Wx::Command::IsEnabledCommand

Inherits:
ComponentAwareCommand show all
Defined in:
lib/nobbie/wx/command/is_enabled.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

#describeObject



11
12
13
# File 'lib/nobbie/wx/command/is_enabled.rb', line 11

def describe
  "Is enabled #{@path}"
end

#executeObject



6
7
8
9
# File 'lib/nobbie/wx/command/is_enabled.rb', line 6

def execute
  #todo: are there any components that do not respond to is_enabled? 
  component.is_enabled
end