Class: ActiveFacts::Metamodel::ImplicitFactType::ImplicitReading
- Inherits:
-
Object
- Object
- ActiveFacts::Metamodel::ImplicitFactType::ImplicitReading
- Defined in:
- lib/activefacts/vocabulary/extensions.rb
Overview
This is only used for debugging, from RoleRef#describe
Defined Under Namespace
Classes: ImplicitReadingRoleSequence
Instance Attribute Summary collapse
-
#fact_type ⇒ Object
Returns the value of attribute fact_type.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(fact_type, text) ⇒ ImplicitReading
constructor
A new instance of ImplicitReading.
- #ordinal ⇒ Object
- #role_sequence ⇒ Object
Constructor Details
#initialize(fact_type, text) ⇒ ImplicitReading
Returns a new instance of ImplicitReading.
636 637 638 639 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 636 def initialize(fact_type, text) @fact_type = fact_type @text = text end |
Instance Attribute Details
#fact_type ⇒ Object
Returns the value of attribute fact_type.
634 635 636 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 634 def fact_type @fact_type end |
#text ⇒ Object
Returns the value of attribute text.
634 635 636 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 634 def text @text end |
Instance Method Details
#ordinal ⇒ Object
677 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 677 def ordinal; 0; end |
#role_sequence ⇒ Object
673 674 675 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 673 def role_sequence ImplicitReadingRoleSequence.new([@fact_type.role, @fact_type.all_role.single]) end |