52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# File 'lib/highline/menu.rb', line 52
def initialize
super("Ignored", [], &nil)
@items = []
@hidden_items = []
@help = Hash.new("There's no help for that topic.")
@index = :number
@index_suffix = ". "
@select_by = :index_or_name
@flow = :rows
@list_option = nil
@header = nil
@prompt = "? "
@layout = :list
@shell = false
@nil_on_handled = false
@index_color = self.class.index_color
@responses = {}
@highline = nil
yield self if block_given?
init_help if @shell && !@help.empty?
end
|