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 #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.
223 224 |
# File 'lib/graphql/execution/lookahead.rb', line 223 def initialize end |
Instance Method Details
#inspect ⇒ Object
242 243 244 |
# File 'lib/graphql/execution/lookahead.rb', line 242 def inspect "#<GraphQL::Execution::Lookahead::NullLookahead>" end |
#selected? ⇒ Boolean
226 227 228 |
# File 'lib/graphql/execution/lookahead.rb', line 226 def selected? false end |
#selection ⇒ Object
234 235 236 |
# File 'lib/graphql/execution/lookahead.rb', line 234 def selection(*) NULL_LOOKAHEAD end |
#selections ⇒ Object
238 239 240 |
# File 'lib/graphql/execution/lookahead.rb', line 238 def selections(*) [] end |
#selects? ⇒ Boolean
230 231 232 |
# File 'lib/graphql/execution/lookahead.rb', line 230 def selects?(*) false end |