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

- old
+ new

@@ -14,9 +14,11 @@ "g:Int64" => ->(value) { cast_int(value) }, "g:Int32" => ->(value) { cast_int(value) }, "g:Double" => ->(value) { cast_double(value) }, "g:Direction" => ->(value) { value }, # "g:VertexProperty"=> ->(value) { value }, # TODO: implement me + "g:TraversalMetrics" => ->(value) { cast_map(value[:@value]) }, + "g:Metrics" => ->(value) { cast_map(value[:@value]) }, "g:T" => ->(value) { value.to_sym } }.freeze CASTABLE_TYPES = [Hash, String, Integer, TrueClass, FalseClass].freeze