This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_2_180) is shown here.
cut_node(item)
public
Cut the selected node and its subtree, and save it into the clipboard.
# File ext/json/lib/json/editor.rb, line 288
def cut_node(item)
if current = selection.selected
if current and current.type == 'Key'
@clipboard_data = {
current.content => Editor.model2data(current.first_child)
}
else
@clipboard_data = Editor.model2data(current)
end
model.remove(current)
window.change
toplevel.display_status("Cut a node from tree.")
end
end