Module: Fides::SqlWriter::ClassMethods

Defined in:
lib/fides/sql_writer.rb,
lib/fides/database_adapter.rb

Instance Method Summary collapse

Instance Method Details

#strip_non_essential_spaces(string_to_strip) ⇒ Object



9
10
11
# File 'lib/fides/sql_writer.rb', line 9

def strip_non_essential_spaces(string_to_strip)
  return string_to_strip.gsub(/\s{2,}|\\n/, " ").strip
end