Class: TableSaw::Formats::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/table_saw/formats/base.rb

Direct Known Subclasses

Copy, Insert

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name, options: {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/table_saw/formats/base.rb', line 8

def initialize(table_name, options: {})
  @table_name = table_name
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/table_saw/formats/base.rb', line 6

def options
  @options
end

#table_nameObject (readonly)

Returns the value of attribute table_name.



6
7
8
# File 'lib/table_saw/formats/base.rb', line 6

def table_name
  @table_name
end

Instance Method Details

#coderObject



25
26
# File 'lib/table_saw/formats/base.rb', line 25

def coder
end

#dump_row(_row) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/table_saw/formats/base.rb', line 21

def dump_row(_row)
  raise NotImplementedError
end

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/table_saw/formats/base.rb', line 17

def footer
  raise NotImplementedError
end

#headerObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/table_saw/formats/base.rb', line 13

def header
  raise NotImplementedError
end