Strange ruby syntax

Posted by AntonAL on Stack Overflow See other posts from Stack Overflow or by AntonAL
Published on 2010-06-16T11:50:15Z Indexed on 2010/06/16 11:52 UTC
Read the original article Hit count: 133

Filed under:
|
|

Hi, what the syntax is in Action Mailer Basics rails guide ?

class UserMailer < ActionMailer::Base
   def welcome_email(user)
      recipients    user.email
      from          "My Awesome Site Notifications <[email protected]>"
      subject       "Welcome to My Awesome Site"
      sent_on       Time.now
      body          {:user => user, :url => "http://example.com/login"}
   end
end

How should i understand the construction, like

from "Some text for this field"

Is it an assignment the value to a variable, called "from" ?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about syntax