Class: GraphWeaver::Codegen::NonNull
- Inherits:
-
Object
- Object
- GraphWeaver::Codegen::NonNull
- Defined in:
- lib/graph_weaver/codegen/nodes.rb
Instance Attribute Summary collapse
-
#of ⇒ Object
readonly
Returns the value of attribute of.
Instance Method Summary collapse
- #bare_type ⇒ Object
- #cast(expr, depth) ⇒ Object
- #coerce(expr) ⇒ Object
- #coerce? ⇒ Boolean
- #coerce_input_type ⇒ Object
- #hash_coerce(expr, depth) ⇒ Object
- #hash_coerce_identity? ⇒ Boolean
- #identity? ⇒ Boolean
-
#initialize(of) ⇒ NonNull
constructor
A new instance of NonNull.
- #nested ⇒ Object
- #non_null? ⇒ Boolean
- #prop_type ⇒ Object
- #serialize(expr, depth) ⇒ Object
- #serialize_identity? ⇒ Boolean
Constructor Details
#initialize(of) ⇒ NonNull
Returns a new instance of NonNull.
63 64 65 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 63 def initialize(of) @of = of end |
Instance Attribute Details
#of ⇒ Object (readonly)
Returns the value of attribute of.
61 62 63 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 61 def of @of end |
Instance Method Details
#bare_type ⇒ Object
67 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 67 def = @of. |
#cast(expr, depth) ⇒ Object
69 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 69 def cast(expr, depth) = @of.cast(expr, depth) |
#coerce(expr) ⇒ Object
74 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 74 def coerce(expr) = @of.coerce(expr) |
#coerce? ⇒ Boolean
73 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 73 def coerce? = @of.coerce? |
#coerce_input_type ⇒ Object
75 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 75 def coerce_input_type = @of.coerce_input_type |
#hash_coerce(expr, depth) ⇒ Object
76 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 76 def hash_coerce(expr, depth) = @of.hash_coerce(expr, depth) |
#hash_coerce_identity? ⇒ Boolean
77 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 77 def hash_coerce_identity? = @of.hash_coerce_identity? |
#identity? ⇒ Boolean
70 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 70 def identity? = @of.identity? |
#nested ⇒ Object
79 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 79 def nested = @of.nested |
#non_null? ⇒ Boolean
78 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 78 def non_null? = true |
#prop_type ⇒ Object
68 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 68 def prop_type = |
#serialize(expr, depth) ⇒ Object
71 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 71 def serialize(expr, depth) = @of.serialize(expr, depth) |
#serialize_identity? ⇒ Boolean
72 |
# File 'lib/graph_weaver/codegen/nodes.rb', line 72 def serialize_identity? = @of.serialize_identity? |