Class: GrafanaReporter::Asciidoctor::AdocPlainTableFormatStrategy

Inherits:
GrafanaReporter::AbstractTableFormatStrategy show all
Defined in:
lib/grafana_reporter/asciidoctor/adoc_plain_table_format_strategy.rb

Overview

Implements a default table format strategy, which will return tables as asciidoctor formatted table.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GrafanaReporter::AbstractTableFormatStrategy

#format, get, inherited

Class Method Details

.abbreviationObject

See Also:

  • AbstractTableFormatStrategy#abbreviation


9
10
11
# File 'lib/grafana_reporter/asciidoctor/adoc_plain_table_format_strategy.rb', line 9

def self.abbreviation
  'adoc_plain'
end

Instance Method Details

#format_rulesObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/grafana_reporter/asciidoctor/adoc_plain_table_format_strategy.rb', line 14

def format_rules
  {
    row_start: '| ',
    row_end: "\n",
    cell_start: '',
    between_cells: ' | ',
    cell_end: '',
    replace_string_or_regex: '|',
    replacement: '\\|'
  }
end