summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-21 22:02:13 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-21 22:02:13 -0700
commit121cf518876f69e86c277b4c9bf29ea34c34adfb (patch)
tree307a544a76dee58f4dfa68fe1f36cf02e6873636
parentd4f3afb5b966430ccff4030833435cd3ad499df5 (diff)
downloadruby-libmpd-121cf518876f69e86c277b4c9bf29ea34c34adfb.tar.gz
ruby-libmpd-121cf518876f69e86c277b4c9bf29ea34c34adfb.tar.xz
Use symbols rather than strings for hash keys.
-rw-r--r--mpdlib.rb2
1 files changed, 1 insertions, 1 deletions
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