mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 00:40:40 -07:00
Rename options instance variable in Variable and Tag.
This commit is contained in:
@@ -12,14 +12,14 @@ module Liquid
|
||||
class Variable
|
||||
FilterParser = /(?:\s+|#{QuotedFragment}|#{ArgumentSeparator})+/o
|
||||
attr_accessor :filters, :name, :line_number
|
||||
attr_reader :options
|
||||
alias_method :parse_context, :options
|
||||
attr_reader :parse_context
|
||||
alias_method :options, :parse_context
|
||||
include ParserSwitching
|
||||
|
||||
def initialize(markup, parse_context)
|
||||
@markup = markup
|
||||
@name = nil
|
||||
@options = parse_context
|
||||
@parse_context = parse_context
|
||||
@line_number = parse_context.line_number
|
||||
|
||||
parse_with_selected_parser(markup)
|
||||
|
||||
Reference in New Issue
Block a user