TapKit::KeyValueCoding

Class/Module:
Module
In:
lib/tapkit/control/keyvaluecoding.rb

Description

KeyValueCoding 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

directly?
handle_retrieve_value
handle_take_value
retrieve_value
take_value

Public Instance Methods

directly?( object = self )
handle_retrieve_value( key )

Hook method invoked from retrieve_value() when method for the key is not found.

handle_take_value( key, value )

Hook method invoked from take_value() when method for the key is not found.

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.