Class: Eft::CfgRadio

Inherits:
Cfg
  • Object
show all
Includes:
CfgCancel, CfgEsc, CfgOK
Defined in:
lib/eft.rb

Overview

radiolist config

Instance Method Summary collapse

Methods included from CfgEsc

#on_esc

Methods included from CfgOK

#on_ok

Methods included from CfgCancel

#on_cancel

Methods inherited from Cfg

#_opts, #call

Constructor Details

#initialize(*a, &b) ⇒ CfgRadio

Returns a new instance of CfgRadio.



148
149
150
# File 'lib/eft.rb', line 148

def initialize(*a, &b)
  @radio = []; super; @radio.freeze
end

Instance Method Details

#_radioObject



157
# File 'lib/eft.rb', line 157

def _radio; @radio end

#choice(tag, item) ⇒ Object

add a choice



153
154
155
# File 'lib/eft.rb', line 153

def choice(tag, item)
  @radio << { tag: tag, item: item }
end