mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
update for and tablerow
This commit is contained in:
@@ -5,7 +5,7 @@ module Liquid
|
||||
# @liquid_type object
|
||||
# @liquid_name forloop
|
||||
# @liquid_summary
|
||||
# The `forloop` object contains information about a parent [`for` loop](/api/liquid/tags#for).
|
||||
# Information about a parent [`for` loop](/api/liquid/tags#for).
|
||||
class ForloopDrop < Drop
|
||||
def initialize(name, length, parentloop)
|
||||
@name = name
|
||||
@@ -17,7 +17,7 @@ module Liquid
|
||||
# @liquid_public_docs
|
||||
# @liquid_name forloop.length
|
||||
# @liquid_summary
|
||||
# The number of iterations.
|
||||
# The total number of iterations in the loop.
|
||||
# @liquid_return [number]
|
||||
attr_reader :length
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
module Liquid
|
||||
# @liquid_public_docs
|
||||
# @liquid_type object
|
||||
# @liquid_name tablerow
|
||||
# @liquid_name tablerowloop
|
||||
# @liquid_summary
|
||||
# The `tablerow` object contains information about a parent [`tablerow` loop](/api/liquid/tags#tablerow).
|
||||
# Information about a parent [`tablerow` loop](/api/liquid/tags#tablerow).
|
||||
class TablerowloopDrop < Drop
|
||||
def initialize(length, cols)
|
||||
@length = length
|
||||
@@ -17,7 +17,7 @@ module Liquid
|
||||
|
||||
# @liquid_public_docs
|
||||
# @liquid_summary
|
||||
# The number of iterations.
|
||||
# The total number of iterations in the loop.
|
||||
# @liquid_return [number]
|
||||
attr_reader :length
|
||||
|
||||
|
||||
Reference in New Issue
Block a user