Class: PBXProject::PBXTypes::BasicValue

Inherits:
Object
  • Object
show all
Defined in:
lib/pbxproject/pbxtypes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ BasicValue

Returns a new instance of BasicValue.



9
10
11
12
# File 'lib/pbxproject/pbxtypes.rb', line 9

def initialize(args = {})
  @value = args[:value]
  @comment = args[:comment]
end

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



7
8
9
# File 'lib/pbxproject/pbxtypes.rb', line 7

def comment
  @comment
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/pbxproject/pbxtypes.rb', line 7

def value
  @value
end

Instance Method Details

#to_pbx(ind = 0) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/pbxproject/pbxtypes.rb', line 14

def to_pbx ind = 0
  pbx = ''
  pbx += "#{@value}"
  pbx += " /* #{@comment} */" if @comment

  pbx
end