Class: ActiveFacts::Metamodel::LinkFactType::ImplicitReading
- Inherits:
-
Object
- Object
- ActiveFacts::Metamodel::LinkFactType::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.
-
#is_negative ⇒ Object
readonly
Never true.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
- #expand ⇒ Object
-
#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.
864 865 866 867 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 864 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.
861 862 863 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 861 def fact_type @fact_type end |
#is_negative ⇒ Object (readonly)
Never true
862 863 864 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 862 def is_negative @is_negative end |
#text ⇒ Object
Returns the value of attribute text.
861 862 863 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 861 def text @text end |
Instance Method Details
#expand ⇒ Object
907 908 909 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 907 def @fact_type.default_reading end |
#ordinal ⇒ Object
905 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 905 def ordinal; 0; end |
#role_sequence ⇒ Object
901 902 903 |
# File 'lib/activefacts/vocabulary/extensions.rb', line 901 def role_sequence ImplicitReadingRoleSequence.new([@fact_type., @fact_type.all_role.single]) end |