File: optional_field.rb

package info (click to toggle)
ruby-mail 2.9.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,720 kB
  • sloc: ruby: 73,664; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# encoding: utf-8
# frozen_string_literal: true

module Mail
  # The field names of any optional-field MUST NOT be identical to any
  # field name specified elsewhere in this standard.
  #
  # optional-field  =       field-name ":" unstructured CRLF
  class OptionalField < UnstructuredField #:nodoc:
    private
      def do_encode
        "#{wrapped_value}\r\n"
      end
  end
end