Prefer attr_reader

This commit is contained in:
Mike Angell
2019-10-09 03:57:06 +11:00
parent fbe14cd0b7
commit 273a9f7a97
+1 -3
View File
@@ -432,9 +432,7 @@ module Liquid
private private
def context attr_reader :context
@context ||= nil
end
def raise_property_error(property) def raise_property_error(property)
raise Liquid::ArgumentError, "cannot select the property '#{property}'" raise Liquid::ArgumentError, "cannot select the property '#{property}'"