class Eft::CfgMenu

menu config

Public Class Methods

new(*a, &b) click to toggle source
Calls superclass method Eft::Cfg::new
# File lib/eft.rb, line 115
def initialize(*a, &b)
  @menu = []; super; @menu.freeze
end

Public Instance Methods

_menu() click to toggle source
# File lib/eft.rb, line 124
def _menu; @menu end
on(tag, item, &b) click to toggle source

add menu item

# File lib/eft.rb, line 120
def on(tag, item, &b)
  @menu << { tag: tag, item: item, block: b }
end