Class: GraphQL::StaticValidation::TypeStack::LeaveWithStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/static_validation/type_stack.rb

Instance Method Summary collapse

Constructor Details

#initialize(stack, strategy) ⇒ LeaveWithStrategy

Returns a new instance of LeaveWithStrategy



205
206
207
208
# File 'lib/graphql/static_validation/type_stack.rb', line 205

def initialize(stack, strategy)
  @stack = stack
  @strategy = strategy
end

Instance Method Details

#call(node, parent) ⇒ Object



210
211
212
# File 'lib/graphql/static_validation/type_stack.rb', line 210

def call(node, parent)
  @strategy.pop(@stack, node)
end