Module: DataShift::ExcelProxy

Defined in:
lib/datashift/applications/excel.rb

Class Method Summary collapse

Class Method Details

.proxy_classObject

Returns the current proxy class



24
25
26
27
28
29
30
# File 'lib/datashift/applications/excel.rb', line 24

def self.proxy_class
  if DataShift::Guards.jruby?
    JExcelFile
  else
    Spreadsheet
  end
end

.proxy_objectObject



32
33
34
35
36
37
38
# File 'lib/datashift/applications/excel.rb', line 32

def self.proxy_object
  if DataShift::Guards.jruby?
    ExcelProxy.proxy_class.new
  else
    ExcelProxy.proxy_class::Workbook.new
  end
end