From 121cf518876f69e86c277b4c9bf29ea34c34adfb Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 21 Jul 2009 22:02:13 -0700 Subject: Use symbols rather than strings for hash keys. --- mpdlib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpdlib.rb b/mpdlib.rb index 12d2d3d..97ade60 100644 --- a/mpdlib.rb +++ b/mpdlib.rb @@ -45,7 +45,7 @@ class MPD str.split("\n").each do |line| field, value = line.split(': ') - hash[field] = value + hash[field.downcase.to_sym] = value end return hash -- cgit v1.2.3-70-g09d2