Class: GraphQL::Execution::Lookahead::NullLookahead
- Inherits:
-
Lookahead
- Object
- Lookahead
- GraphQL::Execution::Lookahead::NullLookahead
- Defined in:
- lib/graphql/execution/lookahead.rb
Overview
This is returned for Lookahead#selection when a non-existent field is passed
Instance Method Summary collapse
-
#initialize ⇒ NullLookahead
constructor
No inputs required here.
- #inspect ⇒ Object
- #selected? ⇒ Boolean
- #selection ⇒ Object
- #selections ⇒ Object
- #selects? ⇒ Boolean
Constructor Details
#initialize ⇒ NullLookahead
No inputs required here.
307 308 |
# File 'lib/graphql/execution/lookahead.rb', line 307 def initialize end |
Instance Method Details
#inspect ⇒ Object
326 327 328 |
# File 'lib/graphql/execution/lookahead.rb', line 326 def inspect "#<GraphQL::Execution::Lookahead::NullLookahead>" end |
#selected? ⇒ Boolean
310 311 312 |
# File 'lib/graphql/execution/lookahead.rb', line 310 def selected? false end |
#selection ⇒ Object
318 319 320 |
# File 'lib/graphql/execution/lookahead.rb', line 318 def selection(*) NULL_LOOKAHEAD end |
#selections ⇒ Object
322 323 324 |
# File 'lib/graphql/execution/lookahead.rb', line 322 def selections(*) [] end |
#selects? ⇒ Boolean
314 315 316 |
# File 'lib/graphql/execution/lookahead.rb', line 314 def selects?(*) false end |