Module: Gonzui::GonzuiServlet
- Extended by:
- Util
- Defined in:
- lib/gonzui/webapp/servlet.rb
Constant Summary
collapse
- ServletRegistry =
{}
Class Method Summary
collapse
Methods included from Util
assert, assert_equal, assert_equal_all, assert_non_nil, assert_not_reached, benchmark, command_exist?, commify, eprintf, format_bytes, program_name, protect_from_signals, require_command, set_verbosity, shell_escape, unix?, vprintf, windows?, wprintf
Class Method Details
.register(klass) ⇒ Object
25
26
27
28
29
|
# File 'lib/gonzui/webapp/servlet.rb', line 25
def register(klass)
mount_point = klass.mount_point
assert(!ServletRegistry.include?(mount_point))
ServletRegistry[mount_point] = klass
end
|
.servlets ⇒ Object
21
22
23
|
# File 'lib/gonzui/webapp/servlet.rb', line 21
def servlets
ServletRegistry.values
end
|