Class: Cuker::CsvModel

Inherits:
AbstractModel show all
Includes:
LoggerSetup
Defined in:
lib/cuker/helpers/formatters/csv_model.rb

Constant Summary

Constants inherited from AbstractModel

AbstractModel::AND, AbstractModel::BACKGROUND, AbstractModel::BUT, AbstractModel::EXAMPLES, AbstractModel::FEATURE, AbstractModel::GIVEN, AbstractModel::SCENARIO, AbstractModel::SCENARIO_OUTLINE, AbstractModel::THEN, AbstractModel::WHEN

Instance Attribute Summary collapse

Attributes included from LoggerSetup

#log

Attributes inherited from AbstractModel

#data, #title

Instance Method Summary collapse

Methods included from LoggerSetup

#init_logger, reset_appender_log_levels

Methods inherited from AbstractModel

#get_keys_ary, #get_tags, #get_values_ary, #name_merge, #simple_surround, #surround, #union

Methods included from Interface

#method

Constructor Details

#initialize(ast_map) ⇒ CsvModel

Returns a new instance of CsvModel.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/cuker/helpers/formatters/csv_model.rb', line 9

def initialize ast_map
  super
  @log.trace "initing #{self.class}"
  @log.debug "has #{ast_map.size} items"

  @asts = ast_map

  @order = make_order
  @title = make_title @order
  @data = make_rows
end

Instance Attribute Details

#special_tag_listObject

Returns the value of attribute special_tag_list.



7
8
9
# File 'lib/cuker/helpers/formatters/csv_model.rb', line 7

def special_tag_list
  @special_tag_list
end