Class: Eft::CfgMenu
- Defined in:
- lib/eft.rb
Overview
menu config
Instance Method Summary collapse
- #_menu ⇒ Object
-
#initialize(*a, &b) ⇒ CfgMenu
constructor
A new instance of CfgMenu.
-
#on(tag, item, &b) ⇒ Object
add menu item.
Methods included from CfgEsc
Methods included from CfgOK
Methods included from CfgCancel
Methods inherited from Cfg
Constructor Details
#initialize(*a, &b) ⇒ CfgMenu
Returns a new instance of CfgMenu.
115 116 117 |
# File 'lib/eft.rb', line 115 def initialize(*a, &b) = []; super; .freeze end |
Instance Method Details
#_menu ⇒ Object
124 |
# File 'lib/eft.rb', line 124 def ; end |
#on(tag, item, &b) ⇒ Object
add menu item
120 121 122 |
# File 'lib/eft.rb', line 120 def on(tag, item, &b) << { tag: tag, item: item, block: b } end |