Method: Miyako::TextBox#start_command
- Defined in:
- lib/Miyako/API/textbox.rb
#start_command ⇒ Object
コマンド選択を開始する
但し、commandメソッドを呼び出したときは自動的に呼ばれる
- 返却値
-
自分自身を返す
538 539 540 541 542 543 544 545 546 547 548 |
# File 'lib/Miyako/API/textbox.rb', line 538 def start_command raise MiyakoValueError, "don't set Choice!" if @choices.length == 0 @choices.start @choices.start_choice if @select_cursor @select_cursor.snap(@choices.body) @select_cursor_position.call(@select_cursor, @choices.body) end @selecting = true return self end |