[StaticRegisters] Remove registers attr_reader

This commit is contained in:
Thierry Joyal
2020-05-22 10:51:07 -04:00
parent ebbd046c92
commit f5011365f1
2 changed files with 96 additions and 194 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
module Liquid
class StaticRegisters
attr_reader :static, :registers
attr_reader :static
def initialize(registers = {})
@static = registers.is_a?(StaticRegisters) ? registers.static : registers