Class: GraphWeaver::Codegen::ScalarType::Codec

Inherits:
Struct
  • Object
show all
Defined in:
lib/graph_weaver/codegen/scalar_type.rb

Overview

Inferred (deserialize, serialize) codecs, tried in order; the first whose probe the Ruby type defines as a class method wins, and its serialize is paired with it. Builders take (type_name, expr) => code.

Instance Attribute Summary collapse

Instance Attribute Details

#castObject

Returns the value of attribute cast

Returns:

  • (Object)

    the current value of cast



39
40
41
# File 'lib/graph_weaver/codegen/scalar_type.rb', line 39

def cast
  @cast
end

#probeObject

Returns the value of attribute probe

Returns:

  • (Object)

    the current value of probe



39
40
41
# File 'lib/graph_weaver/codegen/scalar_type.rb', line 39

def probe
  @probe
end

#serializeObject

Returns the value of attribute serialize

Returns:

  • (Object)

    the current value of serialize



39
40
41
# File 'lib/graph_weaver/codegen/scalar_type.rb', line 39

def serialize
  @serialize
end