Class: ActiveFacts::Metamodel::JoinRole

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

Instance Method Summary collapse

Instance Method Details

#all_join_stepObject



557
558
559
560
561
# File 'lib/activefacts/vocabulary/extensions.rb', line 557

def all_join_step
  (all_join_step_as_input_join_role.to_a +
    all_join_step_as_output_join_role.to_a +
    [join_step]).flatten.compact.uniq
end

#describeObject



552
553
554
555
# File 'lib/activefacts/vocabulary/extensions.rb', line 552

def describe
  "#{role.concept.name} JN#{join_node.ordinal}" +
    (role_ref ? " (projected)" : "")
end