Class: Web::ModNarf
- Includes:
- Singleton
- Defined in:
- lib/web/sapi/apache.rb
Overview
Overview
Web::ModNarf executes Narf scripts in Apache. It is a modified version of mod_ruby’s Apache::RubyRun
Example of httpd.conf
RubyRequire web/sapi/apache
<Location /ruby>
SetHandler ruby-object
RubyHandler Web::ModNarf.instance
</Location>
Instance Method Summary collapse
Instance Method Details
#handler(r) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/web/sapi/apache.rb', line 49 def handler(r) status = check_request(r) return status if status != Apache::OK filename = setup(r) Web::load(filename) return Apache::OK end |