Prefer attr_reader

This commit is contained in:
Mike Angell
2019-10-09 03:57:06 +11:00
parent fbe14cd0b7
commit 273a9f7a97

View File

@@ -432,9 +432,7 @@ module Liquid
private
def context
@context ||= nil
end
attr_reader :context
def raise_property_error(property)
raise Liquid::ArgumentError, "cannot select the property '#{property}'"