Class: Shenzhen::XcodeBuild::Settings

Inherits:
OpenStruct
  • Object
show all
Includes:
Enumerable
Defined in:
lib/shenzhen/xcodebuild.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Settings

Returns a new instance of Settings.



8
9
10
11
# File 'lib/shenzhen/xcodebuild.rb', line 8

def initialize(hash = {})
  super
  self.targets = hash.keys
end

Instance Method Details

#eachObject



17
18
19
20
21
22
23
# File 'lib/shenzhen/xcodebuild.rb', line 17

def each
  members.each do |target|
    yield target, send(target)
  end

  self
end

#membersObject



13
14
15
# File 'lib/shenzhen/xcodebuild.rb', line 13

def members
  self.targets
end