lib/lurker/json/schema.rb in lurker-0.6.10 vs lib/lurker/json/schema.rb in lurker-0.6.11
- old
+ new
@@ -68,15 +68,19 @@
def to_yaml(options = {})
YAML.dump(to_hash(options))
end
+ def respond_to_missing?(method, include_private=false)
+ @schema.respond_to?(method, include_private)
+ end
+
def method_missing(method, *args, &block)
if @schema.is_a?(Lurker::Json::Schema) || @schema.respond_to?(method)
- return @schema.send(method, *args, &block)
+ @schema.send(method, *args, &block)
+ else
+ super
end
-
- super
end
private
def hashify(object, options = {})