CKResourceManager

Class/Module:
Class
In:
lib/cgikit.rb
Parent:
Object

Description

CKResourceManager class manages resources of an application.

Methods

bytedata
content_type
new
path
url

Public Class Methods

new( application )

Public Instance Methods

bytedata( name )

Returns a CKByteData object for the specified resource.

content_type( path )

Finds the content type for extension of the specified path. If the path don’t have extension, returns nil.

path( name )

Returns the file path of the specified resource.

url( name )

Returns the public URL for the specified resource when it is under the web server resources directory. Otherwise returns nil.