Sha256: 296c21ee8ec0d6bd71f2f1fdf130c6e35eb22c319c7cae06a5ef49eb1c03bbbd
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
require 'moblues/generator/objc/base' module Moblues module Generator module Objc class Human < Base def generate(output_dir, entity) write_header(output_dir, entity) unless File.exists?(header_file(output_dir, entity)) write_implementation(output_dir, entity) unless File.exists?(implementation_file(output_dir, entity)) end private def format_name(entity, extension) "#{entity.name}.#{extension}" end def header_template file_template('human_header.h') end def implementation_template file_template('human_implementation.m') end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | lib/moblues/generator/objc/human.rb |
moblues-0.3.0 | lib/moblues/generator/objc/human.rb |
moblues-0.2.0 | lib/moblues/generator/objc/human.rb |