Class: BuildFile
- Inherits:
-
Object
- Object
- BuildFile
- Defined in:
- lib/unigunkan/buildfile.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(fileref) ⇒ BuildFile
constructor
A new instance of BuildFile.
- #key ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(fileref) ⇒ BuildFile
Returns a new instance of BuildFile.
4 5 6 7 |
# File 'lib/unigunkan/buildfile.rb', line 4 def initialize(fileref) @id = SecureRandom.hex(12) @fileref = fileref end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/unigunkan/buildfile.rb', line 2 def id @id end |
Instance Method Details
#key ⇒ Object
9 10 11 |
# File 'lib/unigunkan/buildfile.rb', line 9 def key "#{@id} /* #{@fileref.name} in #{@fileref.group} */" end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/unigunkan/buildfile.rb', line 12 def to_s "#{self.key} = {isa = PBXBuildFile; fileRef = #{@fileref.id} /* #{@fileref.name} */; };" end |