class Hemera::Generator::ObjCImageGenerator

Public Class Methods

new(class_name, images, bundle_name) click to toggle source
# File lib/hemera/source/meta/image/objc.rb, line 5
def initialize(class_name, images, bundle_name)
  @class_name = class_name
  @images = images
  @bundle_name = bundle_name
end

Public Instance Methods

implementent_file() click to toggle source
# File lib/hemera/source/meta/image/objc.rb, line 15
def implementent_file
  ERB.new(File.read(File.expand_path('template/image.m.erb', __dir__))).result(binding)
end
interface_file() click to toggle source
# File lib/hemera/source/meta/image/objc.rb, line 11
def interface_file
  ERB.new(File.read(File.expand_path('template/image.h.erb', __dir__))).result(binding)
end