Module: Tape
- Defined in:
- lib/tape.rb,
lib/tape/mail_ext.rb,
lib/tape/adapters/base.rb,
lib/tape/adapters/pony.rb,
lib/tape/email_spec/helpers.rb,
lib/tape/email_spec/matchers.rb,
lib/tape/adapters/action_mailer/test.rb,
lib/tape/adapters/action_mailer/cache.rb,
lib/tape/email_spec/address_converter.rb,
lib/tape/adapters/action_mailer/maildir.rb,
lib/tape/adapters/action_mailer/active_record.rb
Defined Under Namespace
Modules: Adapteres, Adapters, EmailSpec, MailExt
Class Method Summary
collapse
Class Method Details
.adapter ⇒ Object
25
26
27
28
29
|
# File 'lib/tape.rb', line 25
def self.adapter
@adapter || begin
raise "You need to call Tape.configure to set up your adapter"
end
end
|
20
21
22
23
|
# File 'lib/tape.rb', line 20
def self.configure(adapter, options = {})
klass = "Tape::Adapters::#{adapter.to_s.camelize}".constantize
@adapter = klass.new(options)
end
|