Thursday, March 21, 2013

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

Dheeraj Kumar wrote in post #1102510:
> In ruby, any variable whose name starts with a capital letter becomes a
> constant.

In my previous post I was speaking more to the naming conventions used
in Ruby. Variable names are lowercase_understored and constants are
UPPER_CASE_UNDERSCORED.

The mechanics of Ruby don't enforce this convention, outside of
presenting a warning when "constants" (any variable name starting with
an uppercase letter) are changed after initialization.

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate