Class CGIKit::DynamicElement
In: lib/cgikit/element.rb
lib/cgikit/lang/ja.rb
Parent: Element

The super class of dynamic element classes. Dynamic elements convert themselves to HTML. These are very important in development with CGIKit.

Paths for searching elements and components

Element objects, including components, are usually instantiated by Element.instance. This method loads elements/components and creates element objects. In this method, some paths are searched to require files.

The searched paths:

  1. CKApplicaton#component_path
  2. ($LOAD_PATH)/cgikit/elements
  3. ($LOAD_PATH)/cgikit/components

The latter two paths are for extention elements or components. It is recommended that your own elements or components are installed in the 1st path.

Methods

Constants

DELETE_KEYS = []

Attributes

application  [RW] 
context_id  [RW] 
name  [RW] 
parent  [RW] 
root  [RW] 
values  [RW] 

Public Class methods

Public Instance methods

declared?( name )

Alias for has_binding?

Convert character code for the form values.

Invoked when encode_string() raised an error. This method should be return string.

creating attributes’ string

Returns value from the request if the context is continued. If not be continued, returns nil.

[Validate]