Class: ActiveFacts::Metamodel::ImplicitFactType::ImplicitReading

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeObject

Returns the value of attribute fact_type.



634
635
636
# File 'lib/activefacts/vocabulary/extensions.rb', line 634

def fact_type
  @fact_type
end

#textObject

Returns the value of attribute text.



634
635
636
# File 'lib/activefacts/vocabulary/extensions.rb', line 634

def text
  @text
end

Instance Method Details

#ordinalObject



677
# File 'lib/activefacts/vocabulary/extensions.rb', line 677

def ordinal; 0; end

#role_sequenceObject



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