Innate::MiddlewareCompiler
@author Michael Fellinger @since 14-03-2009 @see Innate::MiddelwareCompiler
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 def directory(path) require 'rack/contrib' Rack::ETag.new( Rack::ConditionalGet.new(Rack::Directory.new(path)), 'public' ) end
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 def static(path) require 'rack/contrib' Rack::ETag.new( Rack::ConditionalGet.new(Rack::File.new(path)), 'public' ) end
Generated with the Darkfish Rdoc Generator 2.