Class: ActiveFacts::Metamodel::Variable

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_stepObject



754
755
756
757
758
759
760
761
# File 'lib/activefacts/vocabulary/extensions.rb', line 754

def all_step
  all_play.map do |jr|
    jr.all_step_as_input_play.to_a +
      jr.all_step_as_output_play.to_a
  end.
    flatten.
    uniq
end

#describeObject



747
748
749
750
751
752
# File 'lib/activefacts/vocabulary/extensions.rb', line 747

def describe
  object_type.name +
    (subscript ? "(#{subscript})" : '') +
    " JN#{ordinal}" +
    (value ? ' = '+value.to_s : '')
end