From c94b5e87c9491fe6b6324446fe9349f585cfc47a Mon Sep 17 00:00:00 2001 From: Tristan Hume Date: Thu, 22 Aug 2013 16:16:28 -0400 Subject: [PATCH] Use attr_reader for warnings. --- lib/liquid/tag.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/liquid/tag.rb b/lib/liquid/tag.rb index da951e02..c1195622 100644 --- a/lib/liquid/tag.rb +++ b/lib/liquid/tag.rb @@ -1,6 +1,7 @@ module Liquid class Tag attr_accessor :nodelist, :options + attr_reader :warnings def self.new_with_options(tag_name, markup, tokens, options) # Forgive me Matz for I have sinned. I know this code is weird @@ -33,10 +34,6 @@ module Liquid @blank || true end - def warnings - @warnings - end - def parse_with_selected_parser(markup) case @options[:error_mode] || Template.error_mode when :strict then strict_parse_with_error_context(markup)