Class: Redcar::Project::ToggleRevealInProject

Inherits:
Redcar::ProjectCommand show all
Defined in:
plugins/project/lib/project/commands.rb

Constant Summary

Constants included from Observable

Observable::ASPECTS

Instance Attribute Summary

Attributes inherited from Command

#error

Instance Method Summary (collapse)

Methods inherited from Redcar::ProjectCommand

#project

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



238
239
240
241
# File 'plugins/project/lib/project/commands.rb', line 238

def execute
  toggle = Project::Manager.reveal_files?
  Project::Manager.reveal_files = !toggle
end