Class: GraphWeaver::Codegen::NonNull
- Inherits:
-
Object
- Object
- GraphWeaver::Codegen::NonNull
- Defined in:
- lib/graph_weaver/codegen.rb
Instance Method Summary collapse
- #bare_type ⇒ Object
- #cast(expr, depth) ⇒ Object
- #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.
74 75 76 |
# File 'lib/graph_weaver/codegen.rb', line 74 def initialize(of) @of = of end |
Instance Method Details
#bare_type ⇒ Object
78 |
# File 'lib/graph_weaver/codegen.rb', line 78 def = @of. |
#cast(expr, depth) ⇒ Object
80 |
# File 'lib/graph_weaver/codegen.rb', line 80 def cast(expr, depth) = @of.cast(expr, depth) |
#identity? ⇒ Boolean
81 |
# File 'lib/graph_weaver/codegen.rb', line 81 def identity? = @of.identity? |
#nested ⇒ Object
85 |
# File 'lib/graph_weaver/codegen.rb', line 85 def nested = @of.nested |
#non_null? ⇒ Boolean
84 |
# File 'lib/graph_weaver/codegen.rb', line 84 def non_null? = true |
#prop_type ⇒ Object
79 |
# File 'lib/graph_weaver/codegen.rb', line 79 def prop_type = |
#serialize(expr, depth) ⇒ Object
82 |
# File 'lib/graph_weaver/codegen.rb', line 82 def serialize(expr, depth) = @of.serialize(expr, depth) |
#serialize_identity? ⇒ Boolean
83 |
# File 'lib/graph_weaver/codegen.rb', line 83 def serialize_identity? = @of.serialize_identity? |