Module: EnMail

Defined in:
lib/enmail/version.rb,
lib/enmail.rb,
lib/enmail/adapters/rnp.rb,
lib/enmail/adapters/base.rb,
lib/enmail/adapters/gpgme.rb,
lib/enmail/helpers/rfc1847.rb,
lib/enmail/helpers/rfc3156.rb,
lib/enmail/dependency_constraints.rb,
lib/enmail/helpers/message_manipulation.rb,
lib/enmail/extensions/message_transport_encoding_restrictions.rb

Overview

© Copyright 2018 Ribose Inc.

Defined Under Namespace

Modules: Adapters, DependencyConstraints, Extensions, Helpers

Constant Summary collapse

VERSION =
"0.2.0".freeze

Class Method Summary collapse

Class Method Details

.protect(mode, message, adapter:, **options) ⇒ Object


22
23
24
25
# File 'lib/enmail.rb', line 22

def protect(mode, message, adapter:, **options)
  adapter_obj = adapter.new(options)
  adapter_obj.public_send mode, message
end