Method: JSON::Editor::FileMenu#revert

Defined in:
lib/json/editor.rb

#revert(item) ⇒ Object

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



470
471
472
473
474
# File 'lib/json/editor.rb', line 470

def revert(item)
  window.instance_eval do
    @filename and file_open(@filename) 
  end
end