Class: PBXProject::PBXTypes::BasicValue
- Inherits:
-
Object
- Object
- PBXProject::PBXTypes::BasicValue
- Defined in:
- lib/pbxproject/pbxtypes.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ BasicValue
constructor
A new instance of BasicValue.
- #to_pbx(ind = 0) ⇒ Object
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
#comment ⇒ Object
Returns the value of attribute comment.
7 8 9 |
# File 'lib/pbxproject/pbxtypes.rb', line 7 def comment @comment end |
#value ⇒ Object
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 |