Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 636 Bytes

compiler_actionmailer.md

File metadata and controls

25 lines (20 loc) · 636 Bytes

ActionMailer

Tapioca::Dsl::Compilers::ActionMailer generates RBI files for subclasses of ActionMailer::Base.

For example, with the following ActionMailer subclass:

class NotifierMailer < ActionMailer::Base
  def notify_customer(customer_id)
    # ...
  end
end

this compiler will produce the RBI file notifier_mailer.rbi with the following content:

# notifier_mailer.rbi
# typed: true
class NotifierMailer
  sig { params(customer_id: T.untyped).returns(::ActionMailer::MessageDelivery) }
  def self.notify_customer(customer_id); end
end