class Pathutil
def binwrite(data, *args, **kwd)
- Note: - You can set the default encodings via the class.
def binwrite(data, *args, **kwd) kwd[:encoding] ||= encoding if normalize[:write] File.binwrite(self, data.encode( :crlf_newline => true ), *args, kwd) else File.binwrite( self, data, *args, kwd ) end end