Method: HighLine::Menu#help

Defined in:
lib/highline/menu.rb

#help(topic, help) ⇒ Object

Used to set help for arbitrary topics. Use the topic "help" to override the default message. Mainly for internal use.

Parameters:

  • topic (String)

    the menu item header/title/name to be associated with a help message.

  • help (String)

    the help message to be associated with the menu item/title/name.



317
318
319
# File 'lib/highline/menu.rb', line 317

def help(topic, help)
  @help[topic] = help
end