Sha256: b6fc1f5ef9e28c2e22a3add04d7ec66ddc68ce8cfe8952d2d994f28b47155631
Contents?: true
Size: 641 Bytes
Versions: 6
Compression:
Stored size: 641 Bytes
Contents
require 'seek/sample_templates/column' require 'seek/sample_templates/generator' module Seek # Main entry point for generating templates module SampleTemplates # generates a template at the specific path def self.generate(sheet_name, sheet_index, columns, path) Seek::SampleTemplates::Generator.new( path, create_json(columns, sheet_index, sheet_name) ).generate end def self.create_json(columns, sheet_index, sheet_name) { sheet_name: sheet_name, sheet_index: sheet_index, columns: columns.collect(&:as_json) }.to_json end private_class_method :create_json end end
Version data entries
6 entries across 6 versions & 2 rubygems