Class: Xcode::PBXBuildFile
- Inherits:
-
Object
- Object
- Xcode::PBXBuildFile
- Includes:
- PBXFormatter
- Defined in:
- lib/xcode/pbx_build_file.rb
Instance Attribute Summary collapse
-
#file_ref ⇒ Object
readonly
Returns the value of attribute file_ref.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(file_ref, file_type = nil) ⇒ PBXBuildFile
constructor
A new instance of PBXBuildFile.
- #isa ⇒ Object
Methods included from PBXFormatter
Constructor Details
#initialize(file_ref, file_type = nil) ⇒ PBXBuildFile
Returns a new instance of PBXBuildFile.
11 12 13 14 15 |
# File 'lib/xcode/pbx_build_file.rb', line 11 def initialize(file_ref, file_type = nil) @id = Xcode.register(self) @file_ref = file_ref @file_type = file_type end |
Instance Attribute Details
#file_ref ⇒ Object (readonly)
Returns the value of attribute file_ref.
4 5 6 |
# File 'lib/xcode/pbx_build_file.rb', line 4 def file_ref @file_ref end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/xcode/pbx_build_file.rb', line 4 def id @id end |
Class Method Details
.new_from_file(file, file_type = nil) ⇒ Object
6 7 8 9 |
# File 'lib/xcode/pbx_build_file.rb', line 6 def self.new_from_file(file, file_type = nil) file_ref = Xcode::PBXFileReference.new_from_file(file, file_type) new file_ref, file_type end |
Instance Method Details
#attributes ⇒ Object
17 18 19 |
# File 'lib/xcode/pbx_build_file.rb', line 17 def attributes {"fileRef" => @file_ref.id, "isa" => isa} end |
#isa ⇒ Object
21 22 23 |
# File 'lib/xcode/pbx_build_file.rb', line 21 def isa "PBXBuildFile" end |