Class: GraphQL::StaticValidation::TypeStack::EnterWithStrategy

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

Instance Method Summary collapse

Constructor Details

#initialize(stack, strategy) ⇒ EnterWithStrategy

Returns a new instance of EnterWithStrategy.



194
195
196
197
# File 'lib/graphql/static_validation/type_stack.rb', line 194

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

Instance Method Details

#call(node, parent) ⇒ Object



199
200
201
# File 'lib/graphql/static_validation/type_stack.rb', line 199

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