diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-12-13 16:52:52 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-12-13 16:52:52 -0300 |
commit | e2e3d5fcd39b82b3e03a990c0eacdb90b506bd1b (patch) | |
tree | fb60d2c37b2479110af3bcdf6b490e9c0fbc10a0 /lib/highline/menu.rb | |
parent | 6c399e025e14bc8cbb8ac31b056997b08b31bca6 (diff) | |
download | highline-e2e3d5fcd39b82b3e03a990c0eacdb90b506bd1b.tar.gz |
Improve HighLine::Menu#select documentation
Diffstat (limited to 'lib/highline/menu.rb')
-rw-r--r-- | lib/highline/menu.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/highline/menu.rb b/lib/highline/menu.rb index eadad07..e3ffc00 100644 --- a/lib/highline/menu.rb +++ b/lib/highline/menu.rb @@ -324,8 +324,13 @@ class HighLine # # This method processes the auto-completed user selection, based on the # rules for this Menu object. If an action was provided for the - # selection, it will be executed as described in Menu.choice(). + # selection, it will be executed as described in {#choice}. # + # @param highline_context [HighLine] a HighLine instance to be used as context. + # @param selection [String, Integer] index or title of the selected menu item. + # @param details additional parameter to be passed when in shell mode. + # @return [nil, Object] if @nil_on_handled is set it returns +nil+, + # else it returns the action return value. def select( highline_context, selection, details = nil ) # add in any hidden menu commands @items.concat(@hidden_items) |