Sha256: 53e13f8a462c39d369ba58d8768d094e79a8d1f5959c33f0424b217faf9c2999
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 Bytes
Contents
require 'moblues/generator/base' module Moblues module Generator class Machine < Base def initialize(params) @type_reader = Reader::Type.new super(params) end def generate(entity) write_header(entity) write_implementation(entity) end private attr_reader :type_reader def format_name(entity, extension) "_#{entity.name}.#{extension}" end def capitalized_name(relationship) relationship.name.sub(/^./) { |first_character| first_character.upcase } end def header_template file_template('machine_header.h') end def implementation_template file_template('machine_implementation.m') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.1.0 | lib/moblues/generator/machine.rb |
moblues-0.0.1 | lib/moblues/generator/machine.rb |