Class: BitClust::NotFoundScreen
- Includes:
- HTMLUtils
- Defined in:
- lib/bitclust/screen.rb
Constant Summary
Constants included from NameUtils
BitClust::NameUtils::CHAR_TO_MARK, BitClust::NameUtils::CHAR_TO_NAME, BitClust::NameUtils::CLASS_NAME_RE, BitClust::NameUtils::CLASS_PATH_RE, BitClust::NameUtils::CONST_PATH_RE, BitClust::NameUtils::CONST_RE, BitClust::NameUtils::GVAR_RE, BitClust::NameUtils::LIBNAME_RE, BitClust::NameUtils::MARK_TO_CHAR, BitClust::NameUtils::MARK_TO_NAME, BitClust::NameUtils::METHOD_NAME_RE, BitClust::NameUtils::METHOD_SPEC_RE, BitClust::NameUtils::MID, BitClust::NameUtils::NAME_TO_CHAR, BitClust::NameUtils::NAME_TO_MARK, BitClust::NameUtils::TYPEMARK_RE
Instance Method Summary collapse
- #body ⇒ Object
- #content_type ⇒ Object
-
#initialize(err) ⇒ NotFoundScreen
constructor
A new instance of NotFoundScreen.
- #status ⇒ Object
Methods included from NameUtils
build_method_id, classid2name, classname2id, classname?, decodeid, decodename_fs, decodename_url, encodeid, encodename_fs, encodename_rdocurl, encodename_url, functionname?, gvarname?, html_filename, libid2name, libname2id, libname?, method_spec?, methodid2classid, methodid2libid, methodid2mname, methodid2specparts, methodid2specstring, methodid2typechar, methodid2typemark, methodid2typename, methodname?, split_method_id, split_method_spec, typechar2mark, typechar2name, typechar?, typemark2char, typemark2name, typemark?, typename2char, typename2mark, typename?
Methods inherited from Screen
Constructor Details
#initialize(err) ⇒ NotFoundScreen
Returns a new instance of NotFoundScreen.
239 240 241 |
# File 'lib/bitclust/screen.rb', line 239 def initialize(err) @error = err end |
Instance Method Details
#body ⇒ Object
251 252 253 254 255 256 257 258 259 260 261 |
# File 'lib/bitclust/screen.rb', line 251 def body <<-EndHTML <html> <head><title>NotFound</title></head> <body> <h1>NotFound</h1> <pre>#{escape_html(@error.)} (#{escape_html(@error.class.name)})</pre> </body> </html> EndHTML end |
#content_type ⇒ Object
247 248 249 |
# File 'lib/bitclust/screen.rb', line 247 def content_type 'text/html' end |
#status ⇒ Object
243 244 245 |
# File 'lib/bitclust/screen.rb', line 243 def status 404 end |