Publisher review:Hash Referencing Hack for Ruby - Method Missing hack to allow easy referencing I can never remember whether the Hash i am playing with has symbols for keys or strings. I also dont like typing the brackets (not all text editors have the cool "close brace" feature). That's why i came up with this method missing hack. Instead of explaining what it does, I'll just show you.Example:hsh = {"project"=>{ "prototype_url"=>nil, "designer_id"=>2, "finished_at"=>nil, "phone_number"=>"512225555", "website"=>"http://www.ggg.com", "first_name"=>"test", }}hsh.project#=> {"prototype_url"=>nil, "designer_id"=>2, "finished_at"=>nil, "phone_number"=>"512225555", "website"=>"http://www.ggg.com", "first_name"=>"test"}hsh.project.prototype_url #=> nilhsh.project.designer_id #=> 2hsh.project.first_name #=> test
Hash Referencing Hack for Ruby is a Ruby script for Snippets scripts design by jake3030.
It runs on following operating system: Windows / Linux.
Hash Referencing Hack for Ruby - Method Missing hack to allow easy referencing
Operating system:Windows / Linux