Class: Xcode::PBXBuildPhase
- Inherits:
-
Object
- Object
- Xcode::PBXBuildPhase
- Includes:
- PBXFormatter
- Defined in:
- lib/xcode/pbx_build_phase.rb
Direct Known Subclasses
PBXCopyFilesBuildPhase, PBXFrameworksBuildPhase, PBXHeadersBuildPhase, PBXResourcesBuildPhase, PBXSourcesBuildPhase
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(files = [], attributes = {}) ⇒ PBXBuildPhase
constructor
A new instance of PBXBuildPhase.
- #isa ⇒ Object
Methods included from PBXFormatter
Constructor Details
#initialize(files = [], attributes = {}) ⇒ PBXBuildPhase
Returns a new instance of PBXBuildPhase.
6 7 8 9 10 |
# File 'lib/xcode/pbx_build_phase.rb', line 6 def initialize(files = [], attributes = {}) @id = Xcode.register(self) @files = files @attributes = attributes end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
4 5 6 |
# File 'lib/xcode/pbx_build_phase.rb', line 4 def files @files end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/xcode/pbx_build_phase.rb', line 4 def id @id end |
Instance Method Details
#attributes ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/xcode/pbx_build_phase.rb', line 12 def attributes { "isa" => isa, "buildActionMask" => "2147483647", "runOnlyForDeploymentPostprocesssing" => "0", "files" => files.map(&:id) }.merge(@attributes) end |
#isa ⇒ Object
21 22 23 |
# File 'lib/xcode/pbx_build_phase.rb', line 21 def isa raise NotImplementedError, "subclasses must implement isa" end |