Class: NuspecReference
- Inherits:
-
Object
- Object
- NuspecReference
- Defined in:
- lib/albacore/nuspec.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(file) ⇒ NuspecReference
constructor
A new instance of NuspecReference.
- #render(xml) ⇒ Object
Constructor Details
#initialize(file) ⇒ NuspecReference
Returns a new instance of NuspecReference.
51 52 53 |
# File 'lib/albacore/nuspec.rb', line 51 def initialize(file) @file = file end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
49 50 51 |
# File 'lib/albacore/nuspec.rb', line 49 def file @file end |
Instance Method Details
#render(xml) ⇒ Object
55 56 57 |
# File 'lib/albacore/nuspec.rb', line 55 def render( xml ) depend = xml.add_element 'reference', {'file' => @file} end |