Sha256: 0f6bcc216ba58e6d3459ab03a7ad3cc11871d53f819cfeef0842dfc186b89503
Contents?: true
Size: 925 Bytes
Versions: 150
Compression:
Stored size: 925 Bytes
Contents
module Mail grammar ContentDisposition include RFC2822 include RFC2045 rule content_disposition disposition_type param_hashes:(CFWS ";" parameter CFWS)* { def parameters param_hashes.elements.map do |param| param.parameter.param_hash end end } end rule disposition_type [iI] [nN] [lL] [iI] [nN] [eE] / [aA] [tT] [tT] [aA] [cC] [hH] [mM] [eE] [nN] [tT] / extension_token / '' end rule extension_token ietf_token / custom_x_token end rule parameter CFWS? attr:attribute "=" val:value CFWS? { def param_hash {attr.text_value => val.text_value} end } end rule attribute token+ end rule value quoted_string { def text_value quoted_content.text_value end } / (token / [\x3d])+ end end end
Version data entries
150 entries across 138 versions & 15 rubygems