rmpd 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rmpd/response.rb +3 -3
- data/lib/rmpd/version.rb +1 -1
- metadata +3 -3
data/lib/rmpd/response.rb
CHANGED
@@ -128,8 +128,8 @@ module Rmpd
|
|
128
128
|
value.split(":", 3).map(&:to_i)
|
129
129
|
end
|
130
130
|
|
131
|
-
def define_getter(key)
|
132
|
-
|
131
|
+
def define_getter(key, instance=self)
|
132
|
+
instance.class.send(:define_method, key.to_s.gsub(/-/, "_")) {self[key]}
|
133
133
|
end
|
134
134
|
|
135
135
|
end
|
@@ -159,7 +159,7 @@ module Rmpd
|
|
159
159
|
else
|
160
160
|
@first_key ||= key
|
161
161
|
@temp[key] = val
|
162
|
-
define_getter(key)
|
162
|
+
define_getter(key, @temp)
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
data/lib/rmpd/version.rb
CHANGED
metadata
CHANGED