Method: UI.search_list
- Defined in:
- lib/ruby_doc/cli/ui.rb
.search_list(matches) ⇒ Object
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/ruby_doc/cli/ui.rb', line 211 def self.search_list(matches) puts sepL matches.each_with_index do |doc, index| if doc.type == "Class" || doc.type == "Module" li = ["#{index + 1}.".yellow, doc.name.light_cyan] else li = ["#{index + 1}.".yellow, doc.name.cyan] end puts li.join(" ") end puts sepR puts "Classes and Modules are".cyan + " Highlighted".light_cyan puts sepR (matches) list_control(matches) end |