Method: JSON::Editor::OptionsMenu#create
- Defined in:
- lib/json/editor.rb
#create ⇒ Object
Create the menu.
681 682 683 684 685 686 687 688 689 690 |
# File 'lib/json/editor.rb', line 681 def create title = MenuItem.new('Options') title. = add_item('Collapsed nodes', nil, CheckMenuItem, &method(:collapsed_nodes)) @pretty_item = add_item('Pretty saving', nil, CheckMenuItem, &method(:pretty_saving)) @pretty_item.active = true window.unchange title end |