Class: GraphWeaver::Codegen::NonNull

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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 bare_type = @of.bare_type

#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

Returns:

  • (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

Returns:

  • (Boolean)


77
# File 'lib/graph_weaver/codegen/nodes.rb', line 77

def hash_coerce_identity? = @of.hash_coerce_identity?

#identity? ⇒ Boolean

Returns:

  • (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

Returns:

  • (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 = bare_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

Returns:

  • (Boolean)


72
# File 'lib/graph_weaver/codegen/nodes.rb', line 72

def serialize_identity? = @of.serialize_identity?