Class: Qricker::RickerSpec
- Inherits:
-
Object
- Object
- Qricker::RickerSpec
- Defined in:
- lib/qricker/module.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ RickerSpec
constructor
A new instance of RickerSpec.
- #podSpecilication ⇒ Object
- #to_s ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(name, path) ⇒ RickerSpec
Returns a new instance of RickerSpec.
8 9 10 11 12 |
# File 'lib/qricker/module.rb', line 8 def initialize(name, path) @name = name @path = path @specification = nil end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/qricker/module.rb', line 5 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/qricker/module.rb', line 6 def path @path end |
Instance Method Details
#podSpecilication ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/qricker/module.rb', line 25 def podSpecilication if @specification.nil? specPath = Pathname(@path).join("#{@name}.podspec") @specification = Pod::Specification.from_file(specPath.to_path) end return @specification end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/qricker/module.rb', line 21 def to_s "RickerSpec name:#{@name} path:#{@path}" end |
#valid? ⇒ Boolean
14 15 16 17 18 19 |
# File 'lib/qricker/module.rb', line 14 def valid? if @specification.nil? return false end return true end |