Class: BitClust::ScreenManager
Instance Method Summary collapse
- #class_index_screen(cs, opt) ⇒ Object
- #class_screen(c, opt) ⇒ Object
- #doc_screen(d, opt) ⇒ Object
- #entry_screen(entry, opt) ⇒ Object
- #function_index_screen(fs, opt) ⇒ Object
- #function_screen(f, opt) ⇒ Object
-
#initialize(h) ⇒ ScreenManager
constructor
A new instance of ScreenManager.
- #library_index_screen(libs, opt) ⇒ Object
- #library_screen(lib, opt) ⇒ Object
- #method_screen(ms, opt) ⇒ Object
- #opensearchdescription_screen(request_full_uri, opt) ⇒ Object
- #search_screen(result, opt) ⇒ Object
Constructor Details
#initialize(h) ⇒ ScreenManager
Returns a new instance of ScreenManager.
24 25 26 27 28 29 30 |
# File 'lib/bitclust/screen.rb', line 24 def initialize(h) h[:urlmapper] ||= URLMapper.new(h) tmpldir = h[:templatedir] || "#{h[:datadir]}/template" h[:template_repository] ||= TemplateRepository.new(tmpldir) h[:message_catalog] ||= (h) @conf = h end |
Instance Method Details
#class_index_screen(cs, opt) ⇒ Object
51 52 53 |
# File 'lib/bitclust/screen.rb', line 51 def class_index_screen(cs, opt) new_screen(ClassIndexScreen, cs, opt) end |
#class_screen(c, opt) ⇒ Object
55 56 57 |
# File 'lib/bitclust/screen.rb', line 55 def class_screen(c, opt) new_screen(ClassScreen, c, opt) end |
#doc_screen(d, opt) ⇒ Object
71 72 73 |
# File 'lib/bitclust/screen.rb', line 71 def doc_screen(d, opt) new_screen(DocScreen, d, opt) end |
#entry_screen(entry, opt) ⇒ Object
39 40 41 |
# File 'lib/bitclust/screen.rb', line 39 def entry_screen(entry, opt) new_screen(Screen.for_entry(entry), entry, opt) end |
#function_index_screen(fs, opt) ⇒ Object
79 80 81 |
# File 'lib/bitclust/screen.rb', line 79 def function_index_screen(fs, opt) new_screen(FunctionIndexScreen, fs, opt) end |
#function_screen(f, opt) ⇒ Object
75 76 77 |
# File 'lib/bitclust/screen.rb', line 75 def function_screen(f, opt) new_screen(FunctionScreen, f, opt) end |
#library_index_screen(libs, opt) ⇒ Object
43 44 45 |
# File 'lib/bitclust/screen.rb', line 43 def library_index_screen(libs, opt) new_screen(LibraryIndexScreen, libs, opt) end |
#library_screen(lib, opt) ⇒ Object
47 48 49 |
# File 'lib/bitclust/screen.rb', line 47 def library_screen(lib, opt) new_screen(LibraryScreen, lib, opt) end |
#method_screen(ms, opt) ⇒ Object
59 60 61 |
# File 'lib/bitclust/screen.rb', line 59 def method_screen(ms, opt) new_screen(MethodScreen, ms, opt) end |
#opensearchdescription_screen(request_full_uri, opt) ⇒ Object
63 64 65 |
# File 'lib/bitclust/screen.rb', line 63 def opensearchdescription_screen(request_full_uri, opt) new_screen(OpenSearchDescriptionScreen, request_full_uri, opt) end |
#search_screen(result, opt) ⇒ Object
67 68 69 |
# File 'lib/bitclust/screen.rb', line 67 def search_screen(result, opt) new_screen(SearchScreen, result, opt) end |