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 init, as far as I am aware I thought variables are case sensitive, butshould work. The example above I see a variable needs to be ALL_CAPS orall_lowercase, you cannot HaVe_bOtH. Is that correct?--Posted via http://www.ruby-forum.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.
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