Sha256: af14a24ad1bbfb8aac6feb85ca41037cff75989bf6f4bb03cb7ffd4d1cd3466b

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

module Rivendell::Import::Tasking
  module File

    def file=(file)
      if file
        @file = file

        self.file_name = file.name
        self.file_path = file.path
      else
        @file = nil

        self.file_name = self.file_path = nil
      end
    end

    def file
      @file ||= Rivendell::Import::File.new(file_name, :path => file_path)
    end

    def delete_file!
      self.delete_file = true
    end

    def close_file
      @file.close if @file
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rivendell-import-1.04 lib/rivendell/import/tasking/file.rb
rivendell-import-1.03 lib/rivendell/import/tasking/file.rb
rivendell-import-1.02 lib/rivendell/import/tasking/file.rb
rivendell-import-1.01 lib/rivendell/import/tasking/file.rb
rivendell-import-0.10 lib/rivendell/import/tasking/file.rb