Class: GraphQL::StaticValidation::TypeStack::EnterWithStrategy
- Inherits:
 - 
      Object
      
        
- Object
 - GraphQL::StaticValidation::TypeStack::EnterWithStrategy
 
 
- Defined in:
 - lib/graphql/static_validation/type_stack.rb
 
Instance Method Summary collapse
- 
  
    
      #call(node, parent)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
 - 
  
    
      #initialize(stack, strategy)  ⇒ EnterWithStrategy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of EnterWithStrategy.
 
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  |