Class: GraphQL::Schema::Mask::InvertedMask Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/mask.rb

Overview

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.

Returns true when the inner mask returned false Returns false when the inner mask returned true

Instance Method Summary collapse

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.



32
33
34
# File 'lib/graphql/schema/mask.rb', line 32

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.



36
37
38
# File 'lib/graphql/schema/mask.rb', line 36

def call(member, ctx)
  !@inner_mask.call(member, ctx)
end