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.
253 254 255 |
# File 'lib/graphql/query.rb', line 253 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
259 260 261 |
# File 'lib/graphql/query.rb', line 259 def call(member, ctx) !@inner_mask.call(member, ctx) end |