NAME

Rit::Base::Lazy - Noninitiated resources

DESCRIPTION

Lazy evaluation of resources.

On first method invocation, initializes the object.

Be careful for places where the type of the object is checked whitout first using a method invocation. We let this class inherit from Rit::Base::Resource to avoid some situations. But it will not say what class this object realy will be blessed into.

get

  Rit::Base::Lazy->get( $id )

Creates this lazy object.

AUTOLOAD

  $n->$method(@args)

Initializes the object as via Rit::Base::Resource/get, calls the method and returns the result.

Futher calls will go to the class this object now belongs to.

SEE ALSO

Rit::Base::Resource,