Method: Ruber::PluginLike#shutdown

Defined in:
lib/ruber/plugin_like.rb

#shutdownnil

Does the required cleanup before the application closes.

This method is also called when the plugin is unloaded when the application is running (for example because the user deselects it from the Choose Plugin dialog). This happens because usually the #unload method needs to do all #shutdown does and more. In the rare eventuality you need to do something before closing the application which shouldn’t be done when unloading the plugin, you can check Application#status and see whether it’s set to @:running@, which means the plugin is being unloaded, or to @:quitting@, which means the application is being closed.

The base class version of this method does nothing.

Returns:

  • (nil)

65
66
# File 'lib/ruber/plugin_like.rb', line 65

def shutdown
end