Class: String

Inherits:
Object
  • Object
show all
Includes:
NestedText.const_get(:NTEncodeStrictMixin)
Defined in:
lib/nestedtext/dumper.rb,
lib/nestedtext/core_ext.rb

Overview

TODO: is this exposed to client who import this file? If so, hide it!

Instance Method Summary collapse

Instance Method Details

#normalize_line_endingsObject



3
4
5
6
# File 'lib/nestedtext/dumper.rb', line 3

def normalize_line_endings
  # windows/mac -> unix
  gsub(/\r\n?/, "\n")
end