Module: Onis::Web
- Defined in:
- lib/onis/web.rb
Class Method Summary collapse
Class Method Details
.call(env) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/onis/web.rb', line 5 def self.call(env) table = Onis::ObjectInspector.all.map do |k,c| "<tr><td>" + k.name + "</td><td>" + c.to_s + "</td></tr>" end.join("") p table body = "<html><body><table>" + table + "</table></body></html>" [200, { "Content-Type" => body.length.to_s }, [body]] end |