Module: ZTK::DSL::Core::Relations::ClassMethods Private
- Defined in:
- lib/ztk/dsl/core/relations.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary (collapse)
- - (Object) add_relation(key) private
Instance Method Details
- (Object) add_relation(key)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 |
# File 'lib/ztk/dsl/core/relations.rb', line 20 def add_relation(key) relation_key = "#{key}_relations" cattr_accessor relation_key send(relation_key) || send("#{relation_key}=", {}) end |