Class: TreePropertiesDataBindingCommandHandler
- Inherits:
-
Object
- Object
- TreePropertiesDataBindingCommandHandler
- Includes:
- CommandHandler
- Defined in:
- lib/command_handlers/tree_properties_data_binding_command_handler.rb
Overview
Responsible for providing a readable keyword (command symbol) to capture and return tree properties for use in TreeItemsDataBindingCommandHandler
Instance Method Summary collapse
- #can_handle?(parent, command_symbol, *args, &block) ⇒ Boolean
- #do_handle(parent, command_symbol, *args, &block) ⇒ Object
Instance Method Details
#can_handle?(parent, command_symbol, *args, &block) ⇒ Boolean
12 13 14 15 16 17 |
# File 'lib/command_handlers/tree_properties_data_binding_command_handler.rb', line 12 def can_handle?(parent, command_symbol, *args, &block) parent.is_a?(RWidget) and parent..is_a?(Tree) and command_symbol.to_s == "tree_properties" and block == nil end |
#do_handle(parent, command_symbol, *args, &block) ⇒ Object
19 20 21 |
# File 'lib/command_handlers/tree_properties_data_binding_command_handler.rb', line 19 def do_handle(parent, command_symbol, *args, &block) args end |