Method: TableStructure::Writer#initialize

Defined in:
lib/table_structure/writer.rb

#initialize(schema, header: { context: nil, step: nil }, method: :<<, row_type: :array) ⇒ Writer

Returns a new instance of Writer.



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/table_structure/writer.rb', line 5

def initialize(
  schema,
  header: { context: nil, step: nil },
  method: :<<,
  row_type: :array
)
  @schema = schema
  @options = {
    header: header,
    method: method,
    row_type: row_type
  }
end