container 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/container/version.rb +1 -1
- data/lib/container.rb +18 -0
- 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: e10e4f04b169e05095c3d5232c9bdf47bdea101d
|
4
|
+
data.tar.gz: 25fc8d394db04513aff0e6e4940e7779406eb25d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7234120e4bca5e9ca74233c7bb5f0e1fcc6d96ae2d63a1907978a188303e30d743da04197c10ca1a11427991b90ccd88f00ce67258686e36327bd503ac7a378
|
7
|
+
data.tar.gz: aed979f8da39c67002e04dd6f1d35231dd357b30d739f836bb223869f31637658318ebfcaa99ee6c88662f7ad6d3eb6f19fe88a4de4a943fc17d54502de0c7ae
|
data/lib/container/version.rb
CHANGED
data/lib/container.rb
CHANGED
@@ -109,8 +109,26 @@ class Container
|
|
109
109
|
""
|
110
110
|
end
|
111
111
|
|
112
|
+
def to_str
|
113
|
+
""
|
114
|
+
end
|
115
|
+
|
116
|
+
def !
|
117
|
+
true
|
118
|
+
end
|
119
|
+
|
112
120
|
def method_missing(method_sym, *arguments, &block)
|
113
121
|
return NullObject.new
|
114
122
|
end
|
123
|
+
|
124
|
+
def self.wrap(instance)
|
125
|
+
class << instance
|
126
|
+
def method_missing(method_sym, *arguments, &block)
|
127
|
+
return NullObject.new
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
instance
|
132
|
+
end
|
115
133
|
end
|
116
134
|
end
|