Class: NuspecDependency
- Inherits:
-
Object
- Object
- NuspecDependency
- Defined in:
- lib/albacore/nuspec.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(id, version) ⇒ NuspecDependency
constructor
A new instance of NuspecDependency.
- #render(xml) ⇒ Object
Constructor Details
#initialize(id, version) ⇒ NuspecDependency
Returns a new instance of NuspecDependency.
23 24 25 26 |
# File 'lib/albacore/nuspec.rb', line 23 def initialize(id, version) @id = id @version = version end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/albacore/nuspec.rb', line 21 def id @id end |
#version ⇒ Object
Returns the value of attribute version.
21 22 23 |
# File 'lib/albacore/nuspec.rb', line 21 def version @version end |
Instance Method Details
#render(xml) ⇒ Object
28 29 30 |
# File 'lib/albacore/nuspec.rb', line 28 def render( xml ) depend = xml.add_element 'dependency', {'id' => @id, 'version' => @version} end |