Parent

Class Index [+]

Quicksearch

Ramaze::MiddlewareCompiler

@author Michael Fellinger @since 14-03-2009 @see Innate::MiddelwareCompiler

Public Instance Methods

directory(path) click to toggle source

Adds the path as a directory.

@author Michael Fellinger @since 26-03-2009 @param [String] path The path to the directory to add.

    # File lib/ramaze/middleware_compiler.rb, line 29
29:     def directory(path)
30:       require 'rack/contrib'
31:       Rack::ETag.new(
32:         Rack::ConditionalGet.new(Rack::Directory.new(path)), 'public'
33:       )
34:     end
static(path) click to toggle source

Adds the path as a static file.

@author Michael Fellinger @since 26-03-2009 @param [String] path The path to the static file to add.

    # File lib/ramaze/middleware_compiler.rb, line 15
15:     def static(path)
16:       require 'rack/contrib'
17:       Rack::ETag.new(
18:         Rack::ConditionalGet.new(RackFileWrapper.new(path)), 'public'
19:       )
20:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.