123456789_123456789_123456789_123456789_123456789_

Class: ActionMailer::Parameterized::Mailer

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: actionmailer/lib/action_mailer/parameterized.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(mailer, params) ⇒ Mailer

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/parameterized.rb', line 112

def initialize(mailer, params)
  @mailer, @params = mailer, params
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name) (private)

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/parameterized.rb', line 117

def method_missing(method_name, ...)
  if @mailer.action_methods.include?(method_name.name)
    ActionMailer::Parameterized::MessageDelivery.new(@mailer, method_name, @params, ...)
  else
    super
  end
end

Instance Method Details

#respond_to_missing?(method, include_all = false) ⇒ Boolean (private)

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/parameterized.rb', line 125

def respond_to_missing?(method, include_all = false)
  @mailer.respond_to?(method, include_all)
end