Sha256: dbb1afa73d5e606bc1c322b99023f5d481ca23de5956e2f0918a4775b8fd24fa
Contents?: true
Size: 593 Bytes
Versions: 3
Compression:
Stored size: 593 Bytes
Contents
module Moblues module Generator module Base class Model def initialize(params) @human = params.fetch(:human) @machine = params.fetch(:machine) @human_dir = params.fetch(:human_dir) @machine_dir = params.fetch(:machine_dir) end def generate(entities) entities.each do |entity| human.generate(human_dir, entity) machine.generate(machine_dir, entity) end end private attr_reader :human, :machine, :human_dir, :machine_dir end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | lib/moblues/generator/base/model.rb |
moblues-0.3.0 | lib/moblues/generator/base/model.rb |
moblues-0.2.0 | lib/moblues/generator/base/model.rb |