mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Prefer attr_reader
This commit is contained in:
@@ -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}'"
|
||||
|
||||
Reference in New Issue
Block a user