Class: Vapor::Extent

Class Vapor::Extent |
In: | vapor/extent.rb
Parent: | Object

Container class for Persistable objects. Retrieval of a Persistable is deferred until it is actually requested.

Methods

[] each empty? has_subclasses? oid_array size

Attributes

candidate_class | [R] | class of Persistable instances contained
persistence_manager | [R] | associated PersistenceManager

Included modules

Enumerable

Public Instance methods

has_subclasses?()

Returns `true` if the extent includes instances of subclasses of the candidate class.

each( &block ) {|persistable| ...}

Iterator over all Persistable instances contained.

size()

Returns number of Persistable objects contained. Maybe zero.

empty?()

Returns `true` if no Persistable objects are contained.

oid_array()

Returns `Array` of OIDs of the Persistable objects contained.

[](key)

Rturns n-th contained Persistable.