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



975
976
977
# File 'lib/activefacts/vocabulary/extensions.rb', line 975

def all_step
  all_play.map(&:step).uniq
end

#describeObject



968
969
970
971
972
973
# File 'lib/activefacts/vocabulary/extensions.rb', line 968

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