Class: Ape::HTML
- Inherits:
-
Object
- Object
- Ape::HTML
- Defined in:
- lib/ape/html.rb
Class Method Summary collapse
Class Method Details
.error(message, output = STDOUT) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ape/html.rb', line 6 def HTML.error(, output=STDOUT) headers(output) output.puts " <title>Error: \#{message}</title>\n </head>\n <body>\n <h2>Error</h2>\n <p>\#{message}.</p>\n" end |