lib/grumlin/typing.rb in grumlin-0.18.0 vs lib/grumlin/typing.rb in grumlin-0.18.1
- old
+ new
@@ -16,10 +16,10 @@
"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) { T.public_send(value) }
+ "g:T" => ->(value) { Grumlin::Expressions::T.public_send(value) }
}.freeze
CASTABLE_TYPES = [Hash, String, Integer, TrueClass, FalseClass].freeze
class << self