class GraphQL::StaticValidation::TypeStack::LeaveWithStrategy

Public Class Methods

new(stack, strategy) click to toggle source
# File lib/graphql/static_validation/type_stack.rb, line 205
def initialize(stack, strategy)
  @stack = stack
  @strategy = strategy
end

Public Instance Methods

call(node, parent) click to toggle source
# File lib/graphql/static_validation/type_stack.rb, line 210
def call(node, parent)
  @strategy.pop(@stack, node)
end