Module: GraphQL::Client::LazyName
- Defined in:
- lib/graphql/client.rb
Overview
Internal: FragmentSpread and FragmentDefinition extension to allow its name to point to a lazily defined Proc instead of a static string.
Instance Attribute Summary collapse
-
#name_proc ⇒ Object
writeonly
Sets the attribute name_proc.
Instance Method Summary collapse
Instance Attribute Details
#name_proc=(value) ⇒ Object (writeonly)
Sets the attribute name_proc
390 391 392 |
# File 'lib/graphql/client.rb', line 390 def name_proc=(value) @name_proc = value end |
Instance Method Details
#name ⇒ Object
386 387 388 |
# File 'lib/graphql/client.rb', line 386 def name @name_proc.call end |