Class: NxBuild::SlnProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/nxbuild/sln/property.rb

Direct Known Subclasses

SlnNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSlnProperty

Returns a new instance of SlnProperty.



6
7
8
# File 'lib/nxbuild/sln/property.rb', line 6

def initialize
  @values = []
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/nxbuild/sln/property.rb', line 3

def key
  @key
end

#valuesObject

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