Module: CSVPlusPlus
- Defined in:
- lib/csv_plus_plus.rb,
lib/csv_plus_plus/row.rb,
lib/csv_plus_plus/cell.rb,
lib/csv_plus_plus/color.rb,
lib/csv_plus_plus/graph.rb,
lib/csv_plus_plus/lexer.rb,
lib/csv_plus_plus/expand.rb,
lib/csv_plus_plus/writer.rb,
lib/csv_plus_plus/options.rb,
lib/csv_plus_plus/version.rb,
lib/csv_plus_plus/modifier.rb,
lib/csv_plus_plus/template.rb,
lib/csv_plus_plus/writer/csv.rb,
lib/csv_plus_plus/lexer/lexer.rb,
lib/csv_plus_plus/code_section.rb,
lib/csv_plus_plus/modifier.tab.rb,
lib/csv_plus_plus/writer/excel.rb,
lib/csv_plus_plus/google_options.rb,
lib/csv_plus_plus/language/scope.rb,
lib/csv_plus_plus/lexer/tokenizer.rb,
lib/csv_plus_plus/language/runtime.rb,
lib/csv_plus_plus/language/compiler.rb,
lib/csv_plus_plus/language/entities.rb,
lib/csv_plus_plus/writer/base_writer.rb,
lib/csv_plus_plus/language/references.rb,
lib/csv_plus_plus/writer/google_sheets.rb,
lib/csv_plus_plus/writer/open_document.rb,
lib/csv_plus_plus/language/syntax_error.rb,
lib/csv_plus_plus/language/cell_value.tab.rb,
lib/csv_plus_plus/language/entities/entity.rb,
lib/csv_plus_plus/language/entities/number.rb,
lib/csv_plus_plus/language/entities/string.rb,
lib/csv_plus_plus/language/code_section.tab.rb,
lib/csv_plus_plus/language/entities/boolean.rb,
lib/csv_plus_plus/language/entities/function.rb,
lib/csv_plus_plus/language/entities/variable.rb,
lib/csv_plus_plus/writer/google_sheet_builder.rb,
lib/csv_plus_plus/language/entities/function_call.rb,
lib/csv_plus_plus/language/entities/runtime_value.rb,
lib/csv_plus_plus/language/entities/cell_reference.rb
Overview
A language for writing rich CSV data
Defined Under Namespace
Modules: Graph, Language, Lexer, Writer Classes: Cell, CodeSection, Color, Expand, GoogleOptions, Modifier, ModifierParser, Options, Row, Template
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
-
.apply_template_to_sheet!(input, filename, options) ⇒ Object
Parse the input into a
Templateand write it to the desired format.
Class Method Details
.apply_template_to_sheet!(input, filename, options) ⇒ Object
Parse the input into a Template and write it to the desired format
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/csv_plus_plus.rb', line 10 def self.apply_template_to_sheet!(input, filename, ) warn(.verbose_summary) if .verbose ::CSVPlusPlus::Language::Compiler.with_compiler(input:, filename:, options:) do |c| template = c.parse_template output = ::CSVPlusPlus::Writer.writer() c.outputting! { output.write(template) } end end |