Class: Pod::Spec
- Inherits:
-
Object
- Object
- Pod::Spec
- Defined in:
- lib/swiftproj/pod.rb
Instance Attribute Summary collapse
-
#ios ⇒ Object
Returns the value of attribute ios.
-
#osx ⇒ Object
Returns the value of attribute osx.
-
#tvos ⇒ Object
Returns the value of attribute tvos.
-
#version ⇒ Object
Returns the value of attribute version.
-
#watchos ⇒ Object
Returns the value of attribute watchos.
Class Method Summary collapse
Instance Method Summary collapse
- #==(spec) ⇒ Object
-
#initialize {|_self| ... } ⇒ Spec
constructor
A new instance of Spec.
- #method_missing(*args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
25 26 27 |
# File 'lib/swiftproj/pod.rb', line 25 def method_missing(*args) # do nothing end |
Instance Attribute Details
#ios ⇒ Object
Returns the value of attribute ios.
4 5 6 |
# File 'lib/swiftproj/pod.rb', line 4 def ios @ios end |
#osx ⇒ Object
Returns the value of attribute osx.
5 6 7 |
# File 'lib/swiftproj/pod.rb', line 5 def osx @osx end |
#tvos ⇒ Object
Returns the value of attribute tvos.
6 7 8 |
# File 'lib/swiftproj/pod.rb', line 6 def tvos @tvos end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/swiftproj/pod.rb', line 3 def version @version end |
#watchos ⇒ Object
Returns the value of attribute watchos.
7 8 9 |
# File 'lib/swiftproj/pod.rb', line 7 def watchos @watchos end |
Class Method Details
.from_podspec(content) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/swiftproj/pod.rb', line 9 def self.from_podspec(content) pod = eval(content) if pod.version.nil? raise Swiftproj::MissingPodspecVersionError.new end return pod end |
Instance Method Details
#==(spec) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/swiftproj/pod.rb', line 29 def ==(spec) return false unless self.class == spec.class return false unless self.version == spec.version return false unless self.ios == spec.ios return false unless self.osx == spec.osx return false unless self.tvos == spec.tvos return false unless self.watchos == spec.watchos return true end |