mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
added attr_readers for collection and variable names in for tag (#909)
This commit is contained in:
@@ -46,6 +46,9 @@ module Liquid
|
||||
class For < Block
|
||||
Syntax = /\A(#{VariableSegment}+)\s+in\s+(#{QuotedFragment}+)\s*(reversed)?/o
|
||||
|
||||
attr_reader :collection_name
|
||||
attr_reader :variable_name
|
||||
|
||||
def initialize(tag_name, markup, options)
|
||||
super
|
||||
@from = @limit = nil
|
||||
|
||||
Reference in New Issue
Block a user