conf 0.0.7 → 0.0.8
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.
- data/VERSION +1 -1
- data/conf.gemspec +1 -1
- data/lib/conf.rb +3 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/conf.gemspec
CHANGED
data/lib/conf.rb
CHANGED
@@ -8,11 +8,13 @@ class Conf
|
|
8
8
|
|
9
9
|
module ConfigValue
|
10
10
|
def self.create(root, key, obj = Object.new)
|
11
|
+
return obj if obj == true || obj == false
|
12
|
+
|
11
13
|
begin
|
12
14
|
obj.extend(self)
|
13
15
|
obj.__setup__(root, key)
|
14
16
|
rescue TypeError
|
15
|
-
# can't extend
|
17
|
+
# can't extend obj
|
16
18
|
end
|
17
19
|
|
18
20
|
obj
|