{'a' => 1, 'b' => 2}.symbolize_keys
# => {:a=>1, :b=>2}
逆もできる。
{:a => 1, :b => 2}.stringify_keys
# => {"a"=>1, "b"=>2}
Go to list of users who liked
More than 5 years have passed since last update.
{'a' => 1, 'b' => 2}.symbolize_keys
# => {:a=>1, :b=>2}
逆もできる。
{:a => 1, :b => 2}.stringify_keys
# => {"a"=>1, "b"=>2}
Register as a new user and use Qiita more conveniently
Go to list of users who liked