module Vagrant::Util::LineEndingHelpers
Public Instance Methods
dos_to_unix(string)
click to toggle source
Converts line endings to unix-style line endings in the given string.
@param [String] string Original string @return [String] The fixed string
# File lib/vagrant/util/line_ending_helpers.rb, line 9 def dos_to_unix(string) string.gsub("\r\n", "\n") end