simple-immutable 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/simple/immutable.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64a3fdc5e88962936613bf54a490e1b04342d083a5be7818045036c607fbb5fd
|
4
|
+
data.tar.gz: 6bb051df21c2809e9ee3596d5f9cb571111032876c3480e07691a0fb44ad610c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc8c01c9763ddb8ed545cb3a45357c2de743f83e9cc002e5cc52329bf2909e8de4ee38255bebd6a87e09f811d20244c16fff49d63b2e40f53b9ef73faf33639
|
7
|
+
data.tar.gz: fc24b0ce11427a6fece8911e9fa1021ab5bfb5b1edd63b1ac699cd1866c3919903d97f04652bbd432b8b645e08a3cc674fddf1c3e02fc55263ac0761b2a5ccbd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/simple/immutable.rb
CHANGED
@@ -41,16 +41,16 @@ class Simple::Immutable
|
|
41
41
|
|
42
42
|
public
|
43
43
|
|
44
|
+
def inspect
|
45
|
+
"<#{self.class.name}: #{@hsh.inspect}>"
|
46
|
+
end
|
47
|
+
|
44
48
|
def respond_to_missing?(method_name, include_private = false)
|
45
49
|
@hsh.key?(method_name.to_sym) ||
|
46
50
|
@hsh.key?(method_name.to_s) ||
|
47
51
|
super
|
48
52
|
end
|
49
53
|
|
50
|
-
def inspect
|
51
|
-
"<Immutable: #{@hsh.inspect}>"
|
52
|
-
end
|
53
|
-
|
54
54
|
def respond_to?(sym)
|
55
55
|
super || @hsh.key?(sym.to_s) || @hsh.key?(sym.to_sym)
|
56
56
|
end
|