Class: ActiveFacts::API::FactType

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

Direct Known Subclasses

ObjectifiedFactType, TypeInheritanceFactType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFactType

invariant { self.all_role.each {|role| self.is_a?(ObjectifiedFactType) ? role.counterpart.object_type == self.objectified_as : role.fact_type == self } }



15
16
17
# File 'lib/activefacts/api/fact_type.rb', line 15

def initialize
  @all_role ||= []
end

Instance Attribute Details

#all_roleObject

Returns the value of attribute all_role.



12
13
14
# File 'lib/activefacts/api/fact_type.rb', line 12

def all_role
  @all_role
end