keycounter 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/keycounter.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49ee92d0a9a6b3dac23932f8362a7c054544cd65
|
4
|
+
data.tar.gz: b601b5ce5c871da88406c7ffd5e9d476ace268f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a65e7683d8a41ba5ba80d73bb37195e37b3307af2593804fe7edb853d9220499658d70b0a7040206ff4da8358c882b37433c914354d9b1382893a69cb4055b6
|
7
|
+
data.tar.gz: 688b0d615078529c8dad11b2e5cbe2b8d5933eb4f69bfb099f4e3ffa9fe103ea40d39e080862683e787e71a6372194737075a78c3c0594c41722ef0595d3d890
|
data/lib/keycounter.rb
CHANGED
@@ -34,7 +34,11 @@ class Keycounter
|
|
34
34
|
puts "Cannot get instance variable of this name..."
|
35
35
|
pp e
|
36
36
|
end
|
37
|
-
|
37
|
+
begin
|
38
|
+
return [key, instance_variable_get("@#{key}")]
|
39
|
+
rescue => e
|
40
|
+
pp e
|
41
|
+
end
|
38
42
|
# if @verbose == true
|
39
43
|
# puts "Key: #{key} Value: "+instance_variable_get("@#{key}").to_s
|
40
44
|
# end
|