keycounter 0.0.5 → 0.0.6
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 +8 -7
- 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: 25c946d10f24f06350f3d561601e4509669d40c2
|
4
|
+
data.tar.gz: 35bd726f3417cfe1a35103bcc457b8eae866715e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95592e776705838f96385783a77b86b5721461f0af16e5e5cf76bb139edcda8cac3539c36308843d0724d5e03af36b19489f4c372d17726961fc0b06b1e83ed9
|
7
|
+
data.tar.gz: 428fb4888f8ad3cddc8d4c23162e71b4b49651ab42bff17703dd79f49d94ebb99ae9abf7ef0d1169faf128efd1b65e1f74a2a67bccdc96fbc37642cf0379a43a
|
data/lib/keycounter.rb
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
class Keycounter
|
12
12
|
|
13
|
-
attr_writer :verbose
|
13
|
+
#attr_writer :verbose
|
14
14
|
|
15
|
-
def initialize
|
16
|
-
|
17
|
-
end
|
15
|
+
#def initialize
|
16
|
+
#@verbose = true
|
17
|
+
#end
|
18
18
|
|
19
19
|
# Create / Add to instance variable
|
20
20
|
def keycount(key)
|
@@ -34,9 +34,10 @@ class Keycounter
|
|
34
34
|
puts "Cannot get instance variable of this name..."
|
35
35
|
pp e
|
36
36
|
end
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
return [key, instance_variable_get("@#{key}")]
|
38
|
+
# if @verbose == true
|
39
|
+
# puts "Key: #{key} Value: "+instance_variable_get("@#{key}").to_s
|
40
|
+
# end
|
40
41
|
end
|
41
42
|
|
42
43
|
# Read a single key
|