class GraphQL::StaticValidation::TypeStack::EnterWithStrategy
Public Class Methods
new(stack, strategy)
click to toggle source
# File lib/graphql/static_validation/type_stack.rb, line 193 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 198 def call(node, parent) @strategy.push(@stack, node) end