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.5.1'.freeze

Class Method Summary collapse

Class Method Details

.generate(sheet_name, sheet_index, columns, base_template_path, output_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, base_template_path, output_path)
  Seek::SampleTemplates::Generator.new(
      output_path, create_json(sheet_name,sheet_index,columns,base_template_path)
  ).generate
end