Wednesday, March 20, 2013

Re: [Rails] Re: Change 'nil' using literal notation?

In ruby, any variable whose name starts with a capital letter becomes a constant.

-- 
Dheeraj Kumar

On Thursday 21 March 2013 at 5:48 AM, Todd Hartsfield wrote:

umm as long as a variable does not have special characters or a space in
it, as far as I am aware I thought variables are case sensitive, but
should work. The example above I see a variable needs to be ALL_CAPS or
all_lowercase, you cannot HaVe_bOtH. Is that correct?

--

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate