Sha256: a6cf37892277629b0c75fd7b7213f8f0383568afe2f353c2a4e568e039d1baa8

Contents?: true

Size: 960 Bytes

Versions: 1

Compression:

Stored size: 960 Bytes

Contents

module Roo

  VERSION = '1.12.0'

  def self.const_missing(const_name)
    case const_name
    when :Libreoffice
      warn "`Roo::Libreoffice` has been deprecated. Use `Roo::LibreOffice` instead."
      LibreOffice
    when :Openoffice
      warn "`Roo::Openoffice` has been deprecated. Use `Roo::OpenOffice` instead."
      OpenOffice
    when :Csv
      warn "`Roo::Csv` has been deprecated. Use `Roo::CSV` instead."
      CSV
    when :GenericSpreadsheet
      warn "`Roo::GenericSpreadsheet` has been deprecated. Use `Roo::Base` instead."
      Base
    else
      super
    end
  end

  autoload :Spreadsheet,  'roo/spreadsheet'
  autoload :Base,         'roo/base'

  autoload :OpenOffice,   'roo/openoffice'
  autoload :LibreOffice,  'roo/openoffice'
  autoload :Excel,        'roo/excel'
  autoload :Excelx,       'roo/excelx'
  autoload :Excel2003XML, 'roo/excel2003xml'
  autoload :Google,       'roo/google'
  autoload :CSV,          'roo/csv'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roo-1.12.0 lib/roo.rb