Class: Arli::Lock::Formats::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers::Inherited
Defined in:
lib/arli/lock/formats/base.rb

Direct Known Subclasses

Cmake, Json, Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::Inherited

included

Constructor Details

#initialize(lock_file) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/arli/lock/formats/base.rb', line 12

def initialize(lock_file)
  self.lock_file = lock_file
  self.arlifile = lock_file.arlifile
end

Instance Attribute Details

#arlifileObject

Returns the value of attribute arlifile.



10
11
12
# File 'lib/arli/lock/formats/base.rb', line 10

def arlifile
  @arlifile
end

#lock_fileObject

Returns the value of attribute lock_file.



10
11
12
# File 'lib/arli/lock/formats/base.rb', line 10

def lock_file
  @lock_file
end

Instance Method Details

#extensionObject



28
29
30
# File 'lib/arli/lock/formats/base.rb', line 28

def extension
  self.class.extension
end

Optional footer



25
26
# File 'lib/arli/lock/formats/base.rb', line 25

def footer
end

#format(library) ⇒ Object



21
22
# File 'lib/arli/lock/formats/base.rb', line 21

def format(library)
end

#headerObject

Optional header



18
19
# File 'lib/arli/lock/formats/base.rb', line 18

def header
end