Module: Enumerable
- Defined in:
- lib/term/redio.rb,
lib/term/checkbox.rb
Overview
Instance Method Summary collapse
-
#checkbox ⇒ Array
the checkbox widget.
-
#redio ⇒ Object
the redio Component.
Instance Method Details
#checkbox ⇒ Array
the checkbox widget.
A checkbox allows a user to select same value from Enumerable.
14 15 16 17 18 19 20 21 |
# File 'lib/term/checkbox.rb', line 14 def checkbox size.times { print $/ } @begin_pos = IO.up(size).hide.pos @checkbox_res = [] process_input_checkbox IO.show @checkbox_res end |