Class: Pod::Spec
- Inherits:
-
Object
- Object
- Pod::Spec
- Defined in:
- lib/stool/Core/LibInfo.rb
Instance Attribute Summary collapse
-
#homepage ⇒ Object
Returns the value of attribute homepage.
-
#ios ⇒ Object
Returns the value of attribute ios.
-
#name ⇒ Object
Returns the value of attribute name.
-
#osx ⇒ Object
Returns the value of attribute osx.
-
#summary ⇒ Object
简介.
-
#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
-
#initialize {|_self| ... } ⇒ Spec
constructor
A new instance of Spec.
-
#method_missing(method_id, *arguments, &block) ⇒ Object
attr_accessor :name attr_accessor :name.
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_id, *arguments, &block) ⇒ Object
attr_accessor :name attr_accessor :name
53 54 55 |
# File 'lib/stool/Core/LibInfo.rb', line 53 def method_missing(method_id, *arguments, &block) # puts "***" + "method_id = #{method_id}" end |
Instance Attribute Details
#homepage ⇒ Object
Returns the value of attribute homepage.
49 50 51 |
# File 'lib/stool/Core/LibInfo.rb', line 49 def homepage @homepage end |
#ios ⇒ Object
Returns the value of attribute ios.
43 44 45 |
# File 'lib/stool/Core/LibInfo.rb', line 43 def ios @ios end |
#name ⇒ Object
Returns the value of attribute name.
41 42 43 |
# File 'lib/stool/Core/LibInfo.rb', line 41 def name @name end |
#osx ⇒ Object
Returns the value of attribute osx.
44 45 46 |
# File 'lib/stool/Core/LibInfo.rb', line 44 def osx @osx end |
#summary ⇒ Object
简介
48 49 50 |
# File 'lib/stool/Core/LibInfo.rb', line 48 def summary @summary end |
#tvos ⇒ Object
Returns the value of attribute tvos.
45 46 47 |
# File 'lib/stool/Core/LibInfo.rb', line 45 def tvos @tvos end |
#version ⇒ Object
Returns the value of attribute version.
42 43 44 |
# File 'lib/stool/Core/LibInfo.rb', line 42 def version @version end |
#watchos ⇒ Object
Returns the value of attribute watchos.
46 47 48 |
# File 'lib/stool/Core/LibInfo.rb', line 46 def watchos @watchos end |
Class Method Details
.fromFile(path) ⇒ Object
67 68 69 70 |
# File 'lib/stool/Core/LibInfo.rb', line 67 def self.fromFile(path) content = File.open(path, 'r:utf-8', &:read) eval(content,nil,path.to_s) end |