Public Instance methods
Similar to routing tree methods such as
post, this matches only if the request method is MAIL (only set when using the
sendmail methods) and the rest of the arguments match the request. This yields any of the captures to the block, as well as any arguments passed to the
Roda class methods.
# File lib/roda/plugins/mailer.rb 164 def mail(*args) 165 if @env["REQUEST_METHOD"] == "MAIL" 166 if_match(args) do |*vs| 167 yield(*(vs + @env['roda.mail_args'])) 168 end 169 end 170 end