Sha256: 475c26fbe79a986edbbd210b3133670a4159cf27cee16782b138cbe95797a8d3
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
require 'moblues/generator/machine' require 'moblues/generator/human' module Moblues module Generator class Model def initialize(params) @human = Human.new(output_dir: params.fetch(:human_dir)) @machine = Machine.new(output_dir: params.fetch(:machine_dir)) end def generate(entities) entities.each do |entity| human.generate(entity) machine.generate(entity) end end private attr_reader :human, :machine end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.1.0 | lib/moblues/generator/model.rb |
moblues-0.0.1 | lib/moblues/generator/model.rb |