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
10:     def initialize(context, &block)
11:       @context = context
12:       @responses = []
13:       @default_render = block
14:     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
16:     def any(*args, &block)
17:       options = args.extract_options!
18:       raise "You have to supply at least one format" if args.empty?
19:       args.each { |type| send(type, options.dup, &block) }
20:     end
Also aliased as: all
custom(mime, options={}) click to toggle source
    # File lib/action_mailer/collector.rb, line 23
23:     def custom(mime, options={})
24:       options.reverse_merge!(:content_type => mime.to_s)
25:       @context.freeze_formats([mime.to_sym])
26:       options[:body] = block_given? ? yield : @default_render.call
27:       @responses << options
28:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.