Class: NuspecFile
- Inherits:
-
Object
- Object
- NuspecFile
- Defined in:
- lib/albacore/nuspec.rb
Instance Method Summary collapse
-
#initialize(src, target, exclude) ⇒ NuspecFile
constructor
A new instance of NuspecFile.
- #render(xml) ⇒ Object
Constructor Details
#initialize(src, target, exclude) ⇒ NuspecFile
Returns a new instance of NuspecFile.
5 6 7 8 9 |
# File 'lib/albacore/nuspec.rb', line 5 def initialize(src, target, exclude) @src = src @target = target @exclude = exclude end |
Instance Method Details
#render(xml) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/albacore/nuspec.rb', line 11 def render(xml) depend = xml.add_element 'file', { 'src' => @src } depend.add_attribute( 'target', @target ) unless @target.nil? depend.add_attribute( 'exclude', @exclude ) unless @exclude.nil? end |