Class: ActiveFacts::Generate::TEXT

Inherits:
Object
  • Object
show all
Defined in:
lib/activefacts/generate/text.rb

Overview

Generate a text verbalisation of the metamodel constellation created for an ActiveFacts vocabulary. Invoke as

afgen --text <file>.cql

Instance Method Summary collapse

Instance Method Details

#generate(out = $>) ⇒ Object



20
21
22
# File 'lib/activefacts/generate/text.rb', line 20

def generate(out = $>)
  out.puts @vocabulary.constellation.verbalise
end