Class: ActiveFacts::Metamodel::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/activefacts/vocabulary/metamodel.rb,
lib/activefacts/vocabulary/extensions.rb

Instance Method Summary collapse

Instance Method Details

#precursorsObject



163
164
165
166
# File 'lib/activefacts/vocabulary/extensions.rb', line 163

def precursors
	# Precursors of a topic are the topics of all precursors of items in this topic
	all_concept.map{|c| c.precursors }.flatten.uniq.map{|c| c.topic}.uniq-[self]
end