module Extract

Public Class Methods

expand_cells(*arr) click to toggle source
# File lib/extract.rb, line 53
def expand_cells(*arr)
  arr.flatten.map do |c|
    if c =~ /:/
      Extract::Tree::Range.cells_in_range(c)
    else
      c
    end
  end.flatten
end
load!() click to toggle source
# File lib/extract.rb, line 29
def load!
  %w(parser sheet excel_formulas math_calc sheet_definition cell inline_def table tables).each do |f|
    load File.expand_path(File.dirname(__FILE__)) + "/extract/#{f}.rb"
  end

  %w(base range cond_exp formula formula_args math num cell operator string).each do |f|
    load File.expand_path(File.dirname(__FILE__)) + "/extract/tree/#{f}.rb"
  end

  %w(sheet).each do |f|
    # load File.expand_path(File.dirname(__FILE__)) + "/extract/persist/#{f}.rb"
  end

  %w(ddl table).each do |f|
    load File.expand_path(File.dirname(__FILE__)) + "/extract/export/#{f}.rb"
  end
end