Method: JSON::Editor::PopUpMenu#collapse_expand
- Defined in:
- lib/crazy_ivan/vendor/json-1.1.7/lib/json/editor.rb
#collapse_expand(item) ⇒ Object
Recursively collapse/expand a subtree starting from the selected node.
444 445 446 447 448 449 450 451 452 453 454 |
# File 'lib/crazy_ivan/vendor/json-1.1.7/lib/json/editor.rb', line 444 def (item) if current = selection.selected if (current.path) collapse_row(current.path) else (current.path, true) end else toplevel.display_status("Append a node into the root first!") end end |