From 6d3c5ef3d33c83eb92305b51da637f121bdd58c3 Mon Sep 17 00:00:00 2001 From: Jake Olney Date: Tue, 28 Jun 2022 17:10:25 -0700 Subject: [PATCH] document forloop.parentloop --- lib/liquid/forloop_drop.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/liquid/forloop_drop.rb b/lib/liquid/forloop_drop.rb index 587c6105..9592faa1 100644 --- a/lib/liquid/forloop_drop.rb +++ b/lib/liquid/forloop_drop.rb @@ -15,12 +15,19 @@ module Liquid end # @liquid_public_docs - # @liquid_name forloop.length + # @liquid_name length # @liquid_summary # The total number of iterations in the loop. # @liquid_return [number] attr_reader :length + # @liquid_public_docs + # @liquid_name parentloop + # @liquid_summary + # The parent `forloop` object. + # @liquid_description + # If the current `for` loop isn't nested inside another `for` loop, then `nil` is returned. + # @liquid_return [forloop] attr_reader :parentloop def name