static public Method

Base.new(method_name=nil, *parameters)

Instantiate a new mailer object. If method_name is not nil, the mailer will be initialized according to the named method. If not, the mailer will remain uninitialized (useful when you only need to invoke the "receive" method, for instance).

Source Code

# File action_mailer/base.rb, line 402
def initialize(method_name=nil, *parameters) #:nodoc:
  create!(method_name, *parameters) if method_name 
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.