Class: Class

Inherits:
Object
  • Object
show all
Defined in:
lib/activefacts/api/standard_types.rb

Instance Method Summary collapse

Instance Method Details

#identified_by(*args) ⇒ Object

Make this Class into a Concept and if necessary its module into a Vocabulary. The parameters are the names (Symbols) of the identifying roles.



45
46
47
48
49
# File 'lib/activefacts/api/standard_types.rb', line 45

def identified_by *args
  raise "not an entity type" if respond_to? :value_type  # Don't make a ValueType into an EntityType
  include ActiveFacts::API::Entity
  initialise_entity_type(*args)
end