Class: Arli::Lock::Formats::Cmake
- Defined in:
- lib/arli/lock/formats/cmake.rb
Instance Attribute Summary collapse
-
#libraries ⇒ Object
Returns the value of attribute libraries.
Attributes inherited from Base
Instance Method Summary collapse
- #footer ⇒ Object
- #format(library) ⇒ Object
-
#initialize(*args) ⇒ Cmake
constructor
A new instance of Cmake.
Methods inherited from Base
Methods included from Helpers::Inherited
Constructor Details
#initialize(*args) ⇒ Cmake
Returns a new instance of Cmake.
12 13 14 15 |
# File 'lib/arli/lock/formats/cmake.rb', line 12 def initialize(*args) super(*args) self.libraries = [] end |
Instance Attribute Details
#libraries ⇒ Object
Returns the value of attribute libraries.
10 11 12 |
# File 'lib/arli/lock/formats/cmake.rb', line 10 def libraries @libraries end |
Instance Method Details
#footer ⇒ Object
22 23 24 25 |
# File 'lib/arli/lock/formats/cmake.rb', line 22 def renderer = Template::CMakeRenderer.new(arlifile) renderer.render end |
#format(library) ⇒ Object
17 18 19 20 |
# File 'lib/arli/lock/formats/cmake.rb', line 17 def format(library) self.libraries << library nil end |