hoodie 0.3.2 → 0.3.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hoodie/rash.rb +14 -0
- data/lib/hoodie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa629d2fbc64caec2a47adfdfbd5d0930f223926
|
4
|
+
data.tar.gz: 15954ba0a1aa24f20a862d4cbd44f2e3e5c8fc69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f477b059a41adb9ebd0cdc32fcf35cb05c14061ba7bdd219710440d58645beb8ccb39bee84bd90a21e3694a617c8c8c54e0de222e09cdab9c998eae7cfba5e5
|
7
|
+
data.tar.gz: 0637b892a292050aff2dc3f1ac5ba64a5ea30d58f53406c8e4d0bf17304e68ef84c08e0c8bc205a8820a5c69dcc0e9a0b126d21dddbc086eb525d300c1b41eb4
|
data/lib/hoodie/rash.rb
CHANGED
@@ -47,6 +47,20 @@ class Rash
|
|
47
47
|
@store[key]
|
48
48
|
end
|
49
49
|
|
50
|
+
# Store the given value with the given key, either an an argument
|
51
|
+
# or block. If a previous value was set it will be overwritten
|
52
|
+
# with the new value.
|
53
|
+
#
|
54
|
+
# @param key [Symbol, String] string or symbol representing the key
|
55
|
+
# @param value [Object] any object that represents the value (optional)
|
56
|
+
# @param block [&block] that returns the value to set (optional)
|
57
|
+
#
|
58
|
+
# @return nothing.
|
59
|
+
#
|
60
|
+
def []=(key, value)
|
61
|
+
@store[key] = value
|
62
|
+
end
|
63
|
+
|
50
64
|
# return the size of the store as an integer
|
51
65
|
#
|
52
66
|
# @return [Fixnum]
|
data/lib/hoodie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoodie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Harding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anemone
|