CKKeyValueCoding

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

Description

CKKeyValueCoding provides methods to access instance variables of the object. The methods try accessing instance variables by using accessor method. If it is failure, its try accessing directly.

If a class method "access_instance_variables?" defines in the class and the method returns "true", the direct access is success. Or failure.

Methods

[]
[]=
retrieve_value
take_value

Classes and Modules

Class CKKeyValueCoding::UnknownKeyError

Public Instance Methods

[]( key )

Alias for retrieve_value

[]=( key, value )

Alias for take_value

retrieve_value( key )

Retrieves value of the instance variable with method chain.

take_value( key, value )

Sets value for the instance variable with method chain.