lib/rails/graphql/collectors/json_collector.rb
# Shortcut for starting and ending a stack while execute a block.
Shortcut for starting and ending a stack while execute a block.
Shortcut for starting and ending a stack while execute a block .
def with_stack(key, array: false, plain: false)
          return unless block_given?
          start_stack(array, plain)
          yield
          end_stack(key, array, plain)
        rescue
          pop_size = array && !plain ? 2 : 1
          @current_value = @stack_value.pop(pop_size).first
          @current_array = @stack_array.pop(pop_size).first
          raise
        end
def with_stack ( key , array : false , plain : false ) return unless block_given? start_stack ( array , plain ) yield end_stack ( key , array , plain ) rescue pop_size = array && ! plain ? 2 : 1 @current_value = @stack_value . pop ( pop_size ) . first @current_array = @stack_array . pop ( pop_size ) . first raise end
Shortcut for starting and ending a stack while execute a block.
Shortcut for starting and ending a stack while execute a block .
key
array
plain