Module: Rad::MailController::ClassMethods

Defined in:
lib/rad/mail/mail_controller.rb

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object (protected)



11
12
13
14
15
16
17
18
# File 'lib/rad/mail/mail_controller.rb', line 11

def method_missing m, *args, &block
  mail_controller = self.new
  if mail_controller.respond_to? m
    build_letter mail_controller, m, *args
  else
    super
  end
end