Class: Pod::Spec

Inherits:
Object
  • Object
show all
Defined in:
lib/stool/Core/LibInfo.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Spec

Returns a new instance of Spec.

Yields:

  • (_self)

Yield Parameters:

  • _self (Pod::Spec)

    the object that the method was called on



24
25
26
27
# File 'lib/stool/Core/LibInfo.rb', line 24

def initialize
  @ios = Ios.new()
  yield self if block_given?
end

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



18
19
20
# File 'lib/stool/Core/LibInfo.rb', line 18

def method_missing(method_id, *arguments, &block)
  # puts "***" + "method_id = #{method_id}"
end

Instance Attribute Details

#iosObject

Returns the value of attribute ios.



14
15
16
# File 'lib/stool/Core/LibInfo.rb', line 14

def ios
  @ios
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/stool/Core/LibInfo.rb', line 12

def name
  @name
end

#versionObject

Returns the value of attribute version.



13
14
15
# File 'lib/stool/Core/LibInfo.rb', line 13

def version
  @version
end

Class Method Details

.fromFile(path) ⇒ Object



29
30
31
32
# File 'lib/stool/Core/LibInfo.rb', line 29

def self.fromFile(path)
  content = File.open(path, 'r:utf-8', &:read)
  eval(content,nil,path.to_s)
end