I have a pretty short question. Is it possible to initialize a hash with something like this:
row = { :title => "row title", :slug => row[:title].paremeterize }
In other words, can I somehow reference the unified hash inside myself, or should I do it like this:
row = { :title => "row title" } row[:slug] = row[:title].paremeterize
Thanks for the comments. Of course, this code will not work. I asked if there is a similar way, possibly with a different syntax. Ruby was full of surprises for me :)
source share