Parent

Class/Module 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
def directory(path)
  require 'rack/contrib'
  Rack::ETag.new(
    Rack::ConditionalGet.new(Rack::Directory.new(path)), 'public'
  )
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
def static(path)
  require 'rack/contrib'
  Rack::ETag.new(
    Rack::ConditionalGet.new(Rack::File.new(path)), 'public'
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.