mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
update for and tablerow
This commit is contained in:
@@ -5,7 +5,7 @@ module Liquid
|
|||||||
# @liquid_type object
|
# @liquid_type object
|
||||||
# @liquid_name forloop
|
# @liquid_name forloop
|
||||||
# @liquid_summary
|
# @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
|
class ForloopDrop < Drop
|
||||||
def initialize(name, length, parentloop)
|
def initialize(name, length, parentloop)
|
||||||
@name = name
|
@name = name
|
||||||
@@ -17,7 +17,7 @@ module Liquid
|
|||||||
# @liquid_public_docs
|
# @liquid_public_docs
|
||||||
# @liquid_name forloop.length
|
# @liquid_name forloop.length
|
||||||
# @liquid_summary
|
# @liquid_summary
|
||||||
# The number of iterations.
|
# The total number of iterations in the loop.
|
||||||
# @liquid_return [number]
|
# @liquid_return [number]
|
||||||
attr_reader :length
|
attr_reader :length
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
module Liquid
|
module Liquid
|
||||||
# @liquid_public_docs
|
# @liquid_public_docs
|
||||||
# @liquid_type object
|
# @liquid_type object
|
||||||
# @liquid_name tablerow
|
# @liquid_name tablerowloop
|
||||||
# @liquid_summary
|
# @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
|
class TablerowloopDrop < Drop
|
||||||
def initialize(length, cols)
|
def initialize(length, cols)
|
||||||
@length = length
|
@length = length
|
||||||
@@ -17,7 +17,7 @@ module Liquid
|
|||||||
|
|
||||||
# @liquid_public_docs
|
# @liquid_public_docs
|
||||||
# @liquid_summary
|
# @liquid_summary
|
||||||
# The number of iterations.
|
# The total number of iterations in the loop.
|
||||||
# @liquid_return [number]
|
# @liquid_return [number]
|
||||||
attr_reader :length
|
attr_reader :length
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user