Module: GlobalRegistry::Bindings::Options

Extended by:
ActiveSupport::Concern
Defined in:
lib/global_registry_bindings/options.rb,
lib/global_registry_bindings/options/entity_class_options.rb,
lib/global_registry_bindings/options/entity_options_parser.rb,
lib/global_registry_bindings/options/entity_instance_options.rb,
lib/global_registry_bindings/options/relationship_class_options.rb,
lib/global_registry_bindings/options/relationship_options_parser.rb,
lib/global_registry_bindings/options/relationship_instance_options.rb

Defined Under Namespace

Modules: ClassMethods Classes: EntityClassOptions, EntityInstanceOptions, EntityOptionsParser, RelationshipClassOptions, RelationshipInstanceOptions, RelationshipOptionsParser

Instance Method Summary collapse

Instance Method Details

#global_registry_entityObject



23
24
25
26
# File 'lib/global_registry_bindings/options.rb', line 23

def global_registry_entity
  @_global_registry_bindings_instance_options ||=
    GlobalRegistry::Bindings::Options::EntityInstanceOptions.new(self)
end

#global_registry_relationship(type) ⇒ Object



28
29
30
31
32
# File 'lib/global_registry_bindings/options.rb', line 28

def global_registry_relationship(type)
  @_global_registry_bindings_instance_relationships ||= {}
  @_global_registry_bindings_instance_relationships[type] ||=
    GlobalRegistry::Bindings::Options::RelationshipInstanceOptions.new(type, self)
end