Class: Arli::Lock::Formats::Base
- Inherits:
-
Object
- Object
- Arli::Lock::Formats::Base
- Includes:
- Helpers::Inherited
- Defined in:
- lib/arli/lock/formats/base.rb
Instance Attribute Summary collapse
-
#arlifile ⇒ Object
Returns the value of attribute arlifile.
-
#lock_file ⇒ Object
Returns the value of attribute lock_file.
Instance Method Summary collapse
- #extension ⇒ Object
-
#footer ⇒ Object
Optional footer.
- #format(library) ⇒ Object
-
#header ⇒ Object
Optional header.
-
#initialize(lock_file) ⇒ Base
constructor
A new instance of Base.
Methods included from Helpers::Inherited
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
#arlifile ⇒ Object
Returns the value of attribute arlifile.
10 11 12 |
# File 'lib/arli/lock/formats/base.rb', line 10 def arlifile @arlifile end |
#lock_file ⇒ Object
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
#extension ⇒ Object
28 29 30 |
# File 'lib/arli/lock/formats/base.rb', line 28 def extension self.class.extension end |
#footer ⇒ Object
Optional footer
25 26 |
# File 'lib/arli/lock/formats/base.rb', line 25 def end |
#format(library) ⇒ Object
21 22 |
# File 'lib/arli/lock/formats/base.rb', line 21 def format(library) end |
#header ⇒ Object
Optional header
18 19 |
# File 'lib/arli/lock/formats/base.rb', line 18 def header end |