Method: Dbd::Fact#string_values

Defined in:
lib/dbd/fact.rb

#string_valuesArray

The individual strings are escaped:

  • newlines are escaped to ‘\n’

This is used for the 7 entries in the to_CSV mapping.

Returns:

  • (Array)

    The 7 values of a Fact converted to a string.



173
174
175
# File 'lib/dbd/fact.rb', line 173

def string_values
  values.map{ |value| escaped_string(value.to_s) }
end