Class: GraphWeaver::Codegen::ScalarType::Codec
- Inherits:
-
Struct
- Object
- Struct
- GraphWeaver::Codegen::ScalarType::Codec
- 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
-
#cast ⇒ Object
Returns the value of attribute cast.
-
#probe ⇒ Object
Returns the value of attribute probe.
-
#serialize ⇒ Object
Returns the value of attribute serialize.
Instance Attribute Details
#cast ⇒ Object
Returns the value of attribute cast
39 40 41 |
# File 'lib/graph_weaver/codegen/scalar_type.rb', line 39 def cast @cast end |
#probe ⇒ Object
Returns the value of attribute probe
39 40 41 |
# File 'lib/graph_weaver/codegen/scalar_type.rb', line 39 def probe @probe end |
#serialize ⇒ Object
Returns the value of attribute serialize
39 40 41 |
# File 'lib/graph_weaver/codegen/scalar_type.rb', line 39 def serialize @serialize end |