Sha256: 58955cc360e3be5bf80d57c88dfa8eeba380d3eb8c455fe836be53fec00956e8
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'moblues/version' require 'moblues/data_model' require 'moblues/reader' require 'moblues/generator' module Moblues extend self def generate(model, human_dir, machine_dir) mkdir([human_dir, machine_dir]) reader = Moblues::Reader::Model.new generator = Moblues::Generator::Model.new(human_dir: human_dir, machine_dir: machine_dir) entities = reader.model(model) generator.generate(entities) end private def mkdir(dirs) dirs.each do |dir| Dir.mkdir(dir) unless Dir.exists?(dir) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.1.0 | lib/moblues.rb |