Parent

Included Modules

Files

ActionMailer::Collector

Attributes

responses[R]

Public Class Methods

new(context, &block) click to toggle source
# File lib/action_mailer/collector.rb, line 10
def initialize(context, &block)
  @context = context
  @responses = []
  @default_render = block
end

Public Instance Methods

all(*args, &block) click to toggle source
Alias for: any
any(*args, &block) click to toggle source
# File lib/action_mailer/collector.rb, line 16
def any(*args, &block)
  options = args.extract_options!
  raise "You have to supply at least one format" if args.empty?
  args.each { |type| send(type, options.dup, &block) }
end
Also aliased as: all
custom(mime, options={}) click to toggle source
# File lib/action_mailer/collector.rb, line 23
def custom(mime, options={})
  options.reverse_merge!(:content_type => mime.to_s)
  @context.freeze_formats([mime.to_sym])
  options[:body] = block_given? ? yield : @default_render.call
  @responses << options
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.