Class: FileMenu

Class | FileMenu
In: | lib/json/editor.rb
Parent: | Object

This class creates the File pulldown menu.

### Methods

create new open open_location quit revert save save_as

### Included Modules

MenuExtension

### Public Instance methods

create()

Create the menu.

new(item)

Clear the model and filename, but ask to save the JSON document, if unsaved changes have occured.

open(item)

Open a file and load it into the editor. Ask to save the JSON document first, if unsaved changes have occured.

open_location(item)
quit(item)

Quit the editor, after asking to save any unsaved changes first.

revert(item)

Revert the current JSON document in the editor to the saved version.

save(item)

Save the current JSON document.

save_as(item)

Save the current JSON document under the given filename.

[Validate]