Sha256: 6c0bf768c8e5c5a5d67ec8228cc9ef22df4b0798fa051b26cebc09d8fda404db
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
require "yaml" require "rdf/cli/vocab-loader" module RDF module Vocab def self.config @config ||= YAML.load_file(File.expand_path("../rdf-vocab/config/vocab.yml", __FILE__)) end def self.generate(vocab, output=nil) loader = RDF::VocabularyLoader.new config[vocab].each do |param, value| loader.send("#{param}=", value) end loader.output = output if output # default: $stdout loader.run end end end Dir[File.expand_path("../rdf-vocab/vocab/**/*.rb", __FILE__)].each { |v| require v }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdf-vocab-0.2.0 | lib/rdf-vocab.rb |