lib/arli/lock/formats/base.rb in arli-0.8.3 vs lib/arli/lock/formats/base.rb in arli-0.9.0

- old
+ new

@@ -1,10 +1,14 @@ +require 'arli/helpers/inherited' module Arli module Lock module Formats class Base + include Arli::Helpers::Inherited + attr_assignable :extension + attr_accessor :lock_file def initialize(lock_file) self.lock_file = lock_file end @@ -17,9 +21,13 @@ raise Arli::Errors::AbstractMethodCalled, "#format on Base" end # Optional footer def footer + end + + def extension + self.class.extension end end end end end