Sha256: 5c00c0e6ba47ae75be55d425ab5fec390a30581d80463aece209372cd76c1e0f
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
# # ActiveFacts Generators. # Generate *no* output for ActiveFacts vocabularies; i.e. just a stub # # Copyright (c) 2009 Clifford Heath. Read the LICENSE file. # require 'activefacts/persistence' module ActiveFacts module Generate # Generate nothing from an ActiveFacts vocabulary. This is useful to check the file can be read ok. # Invoke as # afgen --null <file>.cql class NULL private 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.1 | lib/activefacts/generate/null.rb |