Task: Ruby Hash Syntax Analyzer
Task: Ruby Hash Syntax Analyzer: a task in Terminal-Lego-15k (Harbor dataset). In Ruby 1.9+, a new JSON-style hash syntax ( foo: "bar" ) was introduced alongside the traditional hash rocket syntax ( :foo = "bar" ). There is a common misconception that the hash rocket syntax was deprecated. Your…
The task
In Ruby 1.9+, a new JSON-style hash syntax (`foo: "bar"`) was introduced alongside the traditional hash rocket syntax (`:foo => "bar"`). There is a common misconception that the hash rocket syntax was deprecated. Your task is to write a Ruby script that analyzes Ruby hash literals and demonstrates understanding of…
Part of PrimeIntellect/Terminal-Lego-15k.