Class: Hemera::Generator::ObjCImageGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/hemera/source/meta/image/objc.rb

Instance Method Summary collapse

Constructor Details

#initialize(class_name, images, bundle_name) ⇒ ObjCImageGenerator

Returns a new instance of ObjCImageGenerator.



5
6
7
8
9
# 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

Instance Method Details

#implementent_fileObject



15
16
17
# 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_fileObject



11
12
13
# 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