Class: TablePrint::NoNewlineFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/table_print/formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(value) ⇒ Object



15
16
17
# File 'lib/table_print/formatter.rb', line 15

def format(value)
  value.to_s.gsub(/\r\n/, "\n").gsub(/\n/, " ")
end