Class: Rubymotionr::Project
- Inherits:
-
Object
- Object
- Rubymotionr::Project
- Defined in:
- lib/rubymotionr/project.rb
Instance Attribute Summary collapse
-
#gem_prereqs ⇒ Object
readonly
Returns the value of attribute gem_prereqs.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(path) ⇒ Project
Returns a new instance of Project.
6 7 8 9 10 11 |
# File 'lib/rubymotionr/project.rb', line 6 def initialize(path) @path = path #TODO: Find, parse and return gem prereqs #TODO: Consider CocoPods #@gem_prereqs = get_prereqs end |
Instance Attribute Details
#gem_prereqs ⇒ Object (readonly)
Returns the value of attribute gem_prereqs.
4 5 6 |
# File 'lib/rubymotionr/project.rb', line 4 def gem_prereqs @gem_prereqs end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/rubymotionr/project.rb', line 4 def path @path end |
Class Method Details
.is_rubymotion_app?(path) ⇒ Boolean
13 14 15 16 |
# File 'lib/rubymotionr/project.rb', line 13 def self.is_rubymotion_app?(path) rakefile = File.read(path) rakefile.include?(%{require 'motion/project'}) end |