Class: NxBuild::SlnProperty
- Inherits:
-
Object
- Object
- NxBuild::SlnProperty
- Defined in:
- lib/nxbuild/sln/property.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
- #dump(buffer, indent = 0) ⇒ Object
-
#initialize ⇒ SlnProperty
constructor
A new instance of SlnProperty.
Constructor Details
#initialize ⇒ SlnProperty
Returns a new instance of SlnProperty.
6 7 8 |
# File 'lib/nxbuild/sln/property.rb', line 6 def initialize @values = [] end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/nxbuild/sln/property.rb', line 3 def key @key end |
#values ⇒ Object
Returns the value of attribute values.
4 5 6 |
# File 'lib/nxbuild/sln/property.rb', line 4 def values @values end |
Instance Method Details
#dump(buffer, indent = 0) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nxbuild/sln/property.rb', line 10 def dump(buffer, indent = 0) buffer << "\t" * indent unless @key.nil? buffer << @key end unless @values.nil? buffer << ' = ' buffer << @values.join(', ') end buffer << "\n" end |