Class: Redcar::Top::ToggleBlockSelectionCommand

Inherits:
DocumentCommand show all
Defined in:
plugins/redcar/redcar.rb

Constant Summary

Constants included from Observable

Observable::ASPECTS

Instance Attribute Summary

Attributes inherited from Command

#error

Instance Method Summary (collapse)

Methods inherited from DocumentCommand

#_finished, #run_in_focussed_tab_edit_view

Methods inherited from Command

active_changed, #environment, inherited, #inspect, norecord, record?, #run

Methods included from Sensitive

#active?, #sensitivities, #sensitivity_names, #sensitize

Methods included from Observable

#add_listener, #notify_listeners, #remove_listener

Instance Method Details

- (Object) execute



541
542
543
544
545
# File 'plugins/redcar/redcar.rb', line 541

def execute
  unless doc.single_line?
    doc.block_selection_mode = !doc.block_selection_mode?
  end
end