Module: Sheetah::Sheet

Included in:
Backends::Csv, Backends::Wrapper, Backends::Xlsx
Defined in:
lib/sheetah/sheet.rb,
lib/sheetah/sheet/col_converter.rb

Defined Under Namespace

Modules: ClassMethods Classes: Cell, Error, Header, Row

Constant Summary collapse

COL_CONVERTER =
ColConverter.new.freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.col2intObject



14
15
16
# File 'lib/sheetah/sheet.rb', line 14

def self.col2int(...)
  COL_CONVERTER.col2int(...)
end

.included(mod) ⇒ Object



10
11
12
# File 'lib/sheetah/sheet.rb', line 10

def self.included(mod)
  mod.extend(ClassMethods)
end

.int2colObject



18
19
20
# File 'lib/sheetah/sheet.rb', line 18

def self.int2col(...)
  COL_CONVERTER.int2col(...)
end

Instance Method Details

#closeObject

Raises:

  • (NoMethodError)


103
104
105
# File 'lib/sheetah/sheet.rb', line 103

def close
  raise NoMethodError, "You must implement #{self.class}#close => nil"
end

#each_headerObject

Raises:

  • (NoMethodError)


95
96
97
# File 'lib/sheetah/sheet.rb', line 95

def each_header
  raise NoMethodError, "You must implement #{self.class}#each_header => self"
end

#each_rowObject

Raises:

  • (NoMethodError)


99
100
101
# File 'lib/sheetah/sheet.rb', line 99

def each_row
  raise NoMethodError, "You must implement #{self.class}#each_row => self"
end