Sha256: 3d42f4cb8b2c7427c63595ad029a217da327e159437604947c502c0b86d24420

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

require 'arli/helpers/inherited'

module Arli
  module Lock
    module Formats
      class Base
        include Arli::Helpers::Inherited
        attr_assignable :extension

        attr_accessor :lock_file, :arlifile

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

        # Optional header
        def header
        end

        def format(library)
        end

        # Optional footer
        def footer
        end

        def extension
          self.class.extension
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arli-1.4.0 lib/arli/lock/formats/base.rb
arli-1.3.0 lib/arli/lock/formats/base.rb
arli-1.2.1 lib/arli/lock/formats/base.rb
arli-1.1.0 lib/arli/lock/formats/base.rb
arli-1.0.2 lib/arli/lock/formats/base.rb
arli-1.0.1 lib/arli/lock/formats/base.rb
arli-1.0.0 lib/arli/lock/formats/base.rb