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