Class: Motion::Project::LibGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-objc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files = []) ⇒ LibGenerator

Returns a new instance of LibGenerator.



35
36
37
# File 'lib/motion-objc.rb', line 35

def initialize(files=[])
  @files        = files
end

Instance Attribute Details

#filesObject

Returns the value of attribute files.



33
34
35
# File 'lib/motion-objc.rb', line 33

def files
  @files
end

#project_pathObject

Returns the value of attribute project_path.



32
33
34
# File 'lib/motion-objc.rb', line 32

def project_path
  @project_path
end

Instance Method Details

#vendor(app) ⇒ Object



39
40
41
42
43
44
# File 'lib/motion-objc.rb', line 39

def vendor(app)
  generate(app)
  app.vendor_project @project_path, :xcode, 
    :target     => 'MotionObjC', 
    :products   => ['libMotionObjC.a']
end