Module: Mail::Encodings

Defined in:
lib/loose_mail.rb

Class Method Summary collapse

Class Method Details

.value_decode(str) ⇒ Object



35
36
37
38
39
# File 'lib/loose_mail.rb', line 35

def self.value_decode(str)
  return str unless str.match? ENCODED_VALUE
  words = collapse_adjacent_encodings(str)
  LooseMail.decode_words(words)
end