Class: GraphQL::Query::InvertedMask Private
- Inherits:
-
Object
- Object
- GraphQL::Query::InvertedMask
- Defined in:
- lib/graphql/query.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#call(member, ctx) ⇒ Object
private
Returns true when the inner mask returned false Returns false when the inner mask returned true.
-
#initialize(inner_mask) ⇒ InvertedMask
constructor
private
A new instance of InvertedMask.
Constructor Details
#initialize(inner_mask) ⇒ InvertedMask
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InvertedMask.
276 277 278 |
# File 'lib/graphql/query.rb', line 276 def initialize(inner_mask) @inner_mask = inner_mask end |
Instance Method Details
#call(member, ctx) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true when the inner mask returned false Returns false when the inner mask returned true
282 283 284 |
# File 'lib/graphql/query.rb', line 282 def call(member, ctx) !@inner_mask.call(member, ctx) end |