Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed Feb 11, 2021
1 parent 1ff8889 commit 85aef16
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/jsi/schema_registry.rb
Expand Up @@ -43,9 +43,14 @@ def register(resource)
STDERR.puts rec.inspect
STDERR.puts rec.source_location

node.to_hash.values.each(&rec)
node.to_hash.values.each do |v|
STDERR.puts v.inspect
rec.call(v)
end
elsif node.respond_to?(:to_ary)
node.to_ary.each(&rec)
node.to_ary.each do |e|
rec.call(e)
end
end
end
end.call(resource)
Expand Down

0 comments on commit 85aef16

Please sign in to comment.