mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-28 22:55:12 -07:00
Use attr_reader for warnings.
This commit is contained in:
+1
-4
@@ -1,6 +1,7 @@
|
|||||||
module Liquid
|
module Liquid
|
||||||
class Tag
|
class Tag
|
||||||
attr_accessor :nodelist, :options
|
attr_accessor :nodelist, :options
|
||||||
|
attr_reader :warnings
|
||||||
|
|
||||||
def self.new_with_options(tag_name, markup, tokens, options)
|
def self.new_with_options(tag_name, markup, tokens, options)
|
||||||
# Forgive me Matz for I have sinned. I know this code is weird
|
# Forgive me Matz for I have sinned. I know this code is weird
|
||||||
@@ -33,10 +34,6 @@ module Liquid
|
|||||||
@blank || true
|
@blank || true
|
||||||
end
|
end
|
||||||
|
|
||||||
def warnings
|
|
||||||
@warnings
|
|
||||||
end
|
|
||||||
|
|
||||||
def parse_with_selected_parser(markup)
|
def parse_with_selected_parser(markup)
|
||||||
case @options[:error_mode] || Template.error_mode
|
case @options[:error_mode] || Template.error_mode
|
||||||
when :strict then strict_parse_with_error_context(markup)
|
when :strict then strict_parse_with_error_context(markup)
|
||||||
|
|||||||
Reference in New Issue
Block a user