This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_2_180) is shown here.
paste(item)
public
Copy json text from primary clipboard into model.
# File ext/json/lib/json/editor.rb, line 556
def paste(item)
c = Gtk::Clipboard.get(Gdk::Selection::PRIMARY)
if json = c.wait_for_text
window.ask_save if @changed
begin
window.edit json
rescue JSON::ParserError
window.clear
end
end
end