added attr_readers for collection and variable names in for tag (#909)

This commit is contained in:
Rene
2017-07-06 09:41:48 -04:00
committed by Justin Li
parent c582b86f16
commit 59162f7a0e
+3
View File
@@ -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