Need to refactor to the new Ruby 1.9 hash syntax [duplicate]
问题 This question already has an answer here : Hash syntax in Ruby [duplicate] (1 answer) Closed 2 years ago . I have a recipe that has the following code that is failing a lint test: service 'apache' do supports :status => true, :restart => true, :reload => true end It fails with the error: Use the new Ruby 1.9 hash syntax. supports :status => true, :restart => true, :reload => true Not sure what the new syntax looks like... can anyone please assist? 回答1: In the Ruby version 1.9 has been