Class: RubyDoc::CLI::UI

Inherits:
Object
  • Object
show all
Extended by:
DataExtras, UIExtras
Defined in:
lib/ruby_doc/ui/UI.rb

Overview

modules=====================

Instance Attribute Summary

Attributes included from UIExtras

#counter

Class Method Summary collapse

Methods included from UIExtras

alphaGets, browseControl, browseError, browseMenu, choiceControl, choiceError, cyanH, docControl, docError, docMenu, loading_animation, loading_message, main, mainControl, mainError, mainMenu, methControl, methError, methListControl, methListError, methMenu, outputD, prompt, randQ, redH, searchControl, searchError, sepL, sepR, signature, viewMenu, wrapped

Methods included from DataExtras

all, display, displayMeth, extended, last, list, list, listMeths, nextPage, page2, page3, page4, paginateALL, superSEARCH, uie, uie

Class Method Details

.greetingObject



10
11
12
13
# File 'lib/ruby_doc/ui/UI.rb', line 10

def self.greeting 
  mainMenu#
  mainControl#
end

.main_Shuttle(iN) ⇒ Object



15
16
17
# File 'lib/ruby_doc/ui/UI.rb', line 15

def self.main_Shuttle(iN) 
  iN == "b" ? paginateALL : superSEARCH(iN)
end

.meth_Shuttle(iN, doc) ⇒ Object



23
24
25
# File 'lib/ruby_doc/ui/UI.rb', line 23

def self.meth_Shuttle(iN, doc) 
  displayMeth(doc.methods[iN.to_i-1])
end

.search_Shuttle(iN, matches) ⇒ Object



19
20
21
# File 'lib/ruby_doc/ui/UI.rb', line 19

def self.search_Shuttle(iN, matches)
  iN == "m" ? greeting : display(matches[iN.to_i-1])
end