Class: Eft::CfgRadio
- Defined in:
- lib/eft.rb
Overview
radiolist config
Instance Method Summary collapse
- #_radio ⇒ Object
-
#choice(tag, item) ⇒ Object
add a choice.
-
#initialize(*a, &b) ⇒ CfgRadio
constructor
A new instance of CfgRadio.
Methods included from CfgEsc
Methods included from CfgOK
Methods included from CfgCancel
Methods inherited from Cfg
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
#_radio ⇒ Object
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 |