Module: Vorpal

Extended by:
Dsl::Configuration
Defined in:
lib/vorpal.rb,
lib/vorpal/engine.rb,
lib/vorpal/configs.rb,
lib/vorpal/version.rb,
lib/vorpal/db_loader.rb,
lib/vorpal/exceptions.rb,
lib/vorpal/identity_map.rb,
lib/vorpal/loaded_objects.rb,
lib/vorpal/aggregate_utils.rb,
lib/vorpal/util/array_hash.rb,
lib/vorpal/aggregate_mapper.rb,
lib/vorpal/driver/postgresql.rb,
lib/vorpal/dsl/configuration.rb,
lib/vorpal/util/string_utils.rb,
lib/vorpal/dsl/config_builder.rb,
lib/vorpal/aggregate_traversal.rb,
lib/vorpal/dsl/defaults_generator.rb,
lib/vorpal/util/hash_initialization.rb

Overview

Allows easy creation of Engine instances.

“‘ruby engine = Vorpal.define do

map Tree do
  attributes :name
  belongs_to :trunk
  has_many :branches
end

map Trunk do
  attributes :length
  has_one :tree
end

map Branch do
  attributes :length
  belongs_to :tree
end

end

mapper = engine.mapper_for(Tree) “‘

Defined Under Namespace

Modules: AggregateUtils, AggregateVisitorTemplate, Driver, Dsl, LocalEndConfig, RemoteEndConfig, ToManyConfig, ToOneConfig, Util Classes: AggregateMapper, AggregateTraversal, AssociationConfig, BelongsToConfig, ClassConfig, ConfigurationNotFound, DbLoader, Engine, ForeignKeyInfo, HasManyConfig, HasOneConfig, IdentityMap, InvalidAggregateRoot, InvalidPrimaryKeyValue, LoadedObjects, LookupByFk, LookupById, LookupInstructions, MasterConfig, OwnedObjectVisitor

Constant Summary collapse

VERSION =
"1.1.0"

Method Summary

Methods included from Dsl::Configuration

build_class_config, build_config, define, map