Method: JSON::Editor::FileMenu#new
- Defined in:
- lib/json/editor.rb
#new(item) ⇒ Object
Clear the model and filename, but ask to save the JSON document, if unsaved changes have occured.
459 460 461 |
# File 'lib/json/editor.rb', line 459 def new(item) window.clear end |