Method: UI.method_list
- Defined in:
- lib/ruby_doc/cli/ui.rb
.method_list(doc) ⇒ Object
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/ruby_doc/cli/ui.rb', line 231 def self.method_list(doc) puts sepR doc.methods.each_with_index do |method, index| if !method.nil? li = ["#{index + 1}.".yellow, method.name.cyan] puts li.join(" ") end end puts sepR (doc.methods) list_control(doc.methods) end |