Class: ActiveFacts::API::FactType
- Inherits:
-
Object
- Object
- ActiveFacts::API::FactType
- Defined in:
- lib/activefacts/api/fact_type.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#all_role ⇒ Object
Returns the value of attribute all_role.
Instance Method Summary collapse
-
#initialize ⇒ FactType
constructor
invariant { self.all_role.each {|role| self.is_a?(ObjectifiedFactType) ? role.counterpart.object_type == self.objectified_as : role.fact_type == self } }.
Constructor Details
#initialize ⇒ FactType
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_role ⇒ Object
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 |