Class: Arli::Lock::Formats::Cmake

Inherits:
Base
  • Object
show all
Defined in:
lib/arli/lock/formats/cmake.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#arlifile, #lock_file

Instance Method Summary collapse

Methods inherited from Base

#extension, #header

Methods included from Helpers::Inherited

included

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

#librariesObject

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



22
23
24
25
# File 'lib/arli/lock/formats/cmake.rb', line 22

def footer
  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