module Roda::RodaPlugins::Mailer::RequestMethods
def mail(*args)
the request. This yields any of the captures to the block, as well as
+mail+ or +sendmail+ methods) and the rest of the arguments match
only if the request method is MAIL (only set when using the Roda class
Similar to routing tree methods such as +get+ and +post+, this matches
def mail(*args) if @env[REQUEST_METHOD] == MAIL if_match(args) do |*vs| yield(*(vs + @env[RODA_MAIL_ARGS])) end end end