Sha256: 98fce6d8956b51c57d4f83e82d3190ba3c36437b39dfa6ff27a00bdda99a6ef7

Contents?: true

Size: 745 Bytes

Versions: 2

Compression:

Stored size: 745 Bytes

Contents

class RemoteTable  
  class Format
    autoload :Excel, 'remote_table/format/excel'
    autoload :Excelx, 'remote_table/format/excelx'
    autoload :Delimited, 'remote_table/format/delimited'
    autoload :OpenOffice, 'remote_table/format/open_office'
    autoload :FixedWidth, 'remote_table/format/fixed_width'
    autoload :HTML, 'remote_table/format/html'
    
    autoload :Textual, 'remote_table/format/mixins/textual'
    autoload :Rooable, 'remote_table/format/mixins/rooable'
    
    attr_reader :t

    def initialize(t)
      @t = t
    end
    
    include ::Enumerable
    def each
      raise "must be defined by format"
    end
        
    def delete_file!
      ::FileUtils.rm_rf t.properties.staging_dir_path
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
remote_table-1.1.4 lib/remote_table/format.rb
remote_table-1.1.3 lib/remote_table/format.rb