lib/conf.rb in conf-0.0.8 vs lib/conf.rb in conf-0.0.9

- old
+ new

@@ -6,10 +6,10 @@ class InvalidStateError < StandardError end module ConfigValue def self.create(root, key, obj = Object.new) - return obj if obj == true || obj == false + return obj unless [String, Object].any? { |klass| obj.instance_of? klass } begin obj.extend(self) obj.__setup__(root, key) rescue TypeError