Sha256: 585334a163651ad8a57ebfc51c8c82f82da3c649d756e2485ef2973f6b8467f5
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 Bytes
Contents
# # Generate text output for ActiveFacts vocabularies. # # Copyright (c) 2007 Clifford Heath. Read the LICENSE file. # Author: Clifford Heath. # require 'activefacts/persistence' module ActiveFacts module Generate class NULL def initialize(vocabulary, *options) @vocabulary = vocabulary @vocabulary = @vocabulary.Vocabulary.values[0] if ActiveFacts::API::Constellation === @vocabulary @tables = options.include? "tables" @columns = options.include? "columns" @indices = options.include? "indices" end def generate(out = $>) @vocabulary.tables if @tables || @columns || @indices end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activefacts-0.7.0 | lib/activefacts/generate/null.rb |