Does anybody know can you change the output 'nil' to a different string
using literal notation? Besides constructor?

Hash_Name = Hash.new("Anything other than nil!")

Hash_name = {
             "key" => "value"
 }("Anything other than nil!")

New at this, just wondering. Thanks in advance

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to