Ruby on Rails Saturday, May 6, 2017

I have 2 warnings before output. What is the problem?

Hello = "Hello, guys!"
Hello2 = nil
Hello2 = Hello
puts Hello2
puts Hello


OUTPUT________________
Variables.rb:7: warning: already initialized constant Hello2
Variables.rb:5: warning: previous definition of Hello2 was here
Hello, guys!
Hello, guys!

--
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/8ddaca92-9942-4d8e-918a-a5a1acb6072b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment