Module: Seek::SampleTemplates

Defined in:
lib/seek/sample_templates.rb,
lib/seek/sample_templates/column.rb,
lib/seek/sample_templates/version.rb,
lib/seek/sample_templates/generator.rb

Overview

Main entry point for generating templates

Defined Under Namespace

Classes: Column, Generator

Constant Summary collapse

VERSION =
'0.3.2'.freeze

Class Method Summary collapse

Class Method Details

.generate(sheet_name, sheet_index, columns, path) ⇒ Object

generates a template at the specific path



8
9
10
11
12
# File 'lib/seek/sample_templates.rb', line 8

def self.generate(sheet_name, sheet_index, columns, path)
  Seek::SampleTemplates::Generator.new(
    path, create_json(columns, sheet_index, sheet_name)
  ).generate
end