Class: Glib::JsonUi::MenuBuilder::Button
- Inherits:
-
MenuItem
- Object
- JsonUiElement
- MenuItem
- Glib::JsonUi::MenuBuilder::Button
- Defined in:
- app/helpers/glib/json_ui/menu_builder.rb
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
Methods inherited from JsonUiElement
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#childButtons(block) ⇒ Object
25 26 27 28 29 |
# File 'app/helpers/glib/json_ui/menu_builder.rb', line 25 def childButtons(block) json.childButtons do block.call page. end end |
#created ⇒ Object
Override
32 33 34 35 36 |
# File 'app/helpers/glib/json_ui/menu_builder.rb', line 32 def created super json.type 'button' end |