From: Robert Klemme Date: 2008-09-02T20:13:10+09:00 Subject: Re: Ruby doesn't need equal's signs for assigment? 2008/9/2 Peter Alvin : > I'm new to Ruby... do you need ='s signs for assigment? > > On this page: > > http://api.rubyonrails.org/classes/ActionMailer/Base.html > > I see this example over and over.. where are the equal's signs??? I can confirm that there are no equal signs in the code. ;-) > class Notifier < ActionMailer::Base > def signup_notification(recipient) > recipients recipient.email_address_with_name > from "system@example.com" > subject "New account information" > body :account => recipient > end > end These are all method invocations. Kind regards robert -- use.inject do |as, often| as.you_can - without end