Module: AIXM::Concerns::Association
- Included in:
- AIXM::Component::Address, AIXM::Component::ApproachLighting, AIXM::Component::FATO, AIXM::Component::FATO::Direction, AIXM::Component::Frequency, AIXM::Component::Geometry, AIXM::Component::Geometry::Circle, AIXM::Component::Geometry::Point, AIXM::Component::Geometry::RhumbLine, AIXM::Component::Helipad, AIXM::Component::Layer, AIXM::Component::Lighting, AIXM::Component::Runway, AIXM::Component::Runway::Direction, AIXM::Component::Service, AIXM::Component::Timetable, AIXM::Component::VerticalLimit, Document, Feature::Airport, Feature::Airport::UsageLimitation, Feature::Airport::UsageLimitation::Condition, Feature::Airspace, Feature::NavigationalAid, Feature::NavigationalAid::DesignatedPoint, Feature::Obstacle, Feature::ObstacleGroup, Feature::Organisation, Feature::Unit
- Defined in:
- lib/aixm/concerns/association.rb
Overview
Associate features and components with a minimalistic implementation of has_many
, has_one
and belongs_to
associations.
When adding or assigning an object on the associator (where the has_many
or has_one
declaration is made), the object is verified and must be an instance of the declared class or a superclass thereof.
When assigning an object on the associated (where the belongs_to
declaration is made), the object is not verified. However, since the actual assignment is always delegated to the associator, unacceptable objects will raise errors.
Defined Under Namespace
Modules: ClassMethods Classes: Array
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
267 268 269 |
# File 'lib/aixm/concerns/association.rb', line 267 def self.included(base) base.extend(ClassMethods) end |