Module: Dkim::Canonicalizable

Included in:
Body, Header
Defined in:
lib/dkim/canonicalizable.rb

Instance Method Summary collapse

Instance Method Details

#to_s(form = 'simple') ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/dkim/canonicalizable.rb', line 3

def to_s form='simple'
  case form
  when 'simple'
    canonical_simple
  when 'relaxed'
    canonical_relaxed
  else
    raise "Unknown canonicalization: #{form}"
  end
end