lib/grumlin/typing.rb in grumlin-0.16.1 vs lib/grumlin/typing.rb in grumlin-0.17.0

- old
+ new

@@ -67,10 +67,10 @@ end def cast_map(value) Hash[*value].transform_keys do |key| next key.to_sym if key.respond_to?(:to_sym) - next cast(key) if key[:@type] + next cast(key) if key[:@type] # TODO: g.V.group.by(:none_existing_property).next raise UnknownMapKey, key, value end.transform_values { |v| cast(v) } rescue ArgumentError raise TypeError, "#{value} cannot be casted to Hash"