Class: ActiveFacts::Metamodel::CompoundMatching

Inherits:
TransformMatching show all
Defined in:
lib/activefacts/metamodel/metamodel.rb,
lib/activefacts/metamodel/extensions.rb

Instance Method Summary collapse

Instance Method Details

#describeObject



2270
2271
2272
2273
2274
2275
2276
2277
2278
# File 'lib/activefacts/metamodel/extensions.rb', line 2270

def describe
  targ = all_transform_target_ref.map do |tr|
    (tr.leading_adjective ? tr.leading_adjective + ' ' : '') +
      tr.object_type.name + (tr.trailing_adjective ? ' ' + tr.trailing_adjective : '')
  end * ' . '
  src = (sot = source_object_type) ? sot.name : 'Query'

  "#{targ} <== #{src} {" + all_transform_matching.map{|tm| tm.describe}.sort * ', ' + '}'
end