[Rails] Re: Learning About Symbols
Are these true or false?yaml['config'] == yaml[:config]yaml['config']['another_setting'] == yaml[:config][:another_ setting] The answer to both is false.
yaml['config'] shows me the values from the yml file. yaml[:config] doesn't.
How else do you use symbols? I have read all the definitions. I understand the explanations, but the rest of where I am confused can now only be answered by example usages.
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3005b21d-6756-4b65-b822-8b8893b93e28%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home