Class: TableColumnPropertiesDataBindingCommandHandler

Inherits:
Object
  • Object
show all
Includes:
CommandHandler
Defined in:
lib/command_handlers/table_column_properties_data_binding_command_handler.rb

Overview

Responsible for providing a readable keyword (command symbol) to capture and return column properties for use in TreeItemsDataBindingCommandHandler

Instance Method Summary collapse

Instance Method Details

#can_handle?(parent, command_symbol, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
# File 'lib/command_handlers/table_column_properties_data_binding_command_handler.rb', line 12

def can_handle?(parent, command_symbol, *args, &block)
  parent.is_a?(RWidget) and
  parent.widget.is_a?(Table) and
  command_symbol.to_s == "column_properties" and
  block == nil
end

#do_handle(parent, command_symbol, *args, &block) ⇒ Object



19
20
21
# File 'lib/command_handlers/table_column_properties_data_binding_command_handler.rb', line 19

def do_handle(parent, command_symbol, *args, &block)
  args
end