module AdjustN::NewlineChar
Constants
- AUTONYMS
- CR
- CRLF
- LF
- PAIRS
- Pair
Public Class Methods
autonym(str)
click to toggle source
@param [String] str @return [Symbol] :cr, :lf, :crlf
# File lib/adjustn/newlinechar.rb, line 33 def autonym(str) if /\A(cr|lf|crlf|mac|unix|win|dos)\z/i.match?(str) AUTONYMS.fetch(str.downcase.to_sym) else raise TypeError end end