module MailParser::RFC2183
Constants
- HEADER_TYPE
Public Instance Methods
parse(name, value, opt={})
click to toggle source
# File lib/mailparser/rfc2183.rb, line 23 def parse(name, value, opt={}) htype = HEADER_TYPE[name.downcase] unless htype then return value.chomp end if htype.is_a? Array then htype[0]::Parser.new.parse(htype[1], value) else Parser.new.parse(htype, value) end end