mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Remove command_lookups reader
This commit is contained in:
@@ -3,7 +3,7 @@ module Liquid
|
||||
SQUARE_BRACKETED = /\A\[(.*)\]\z/m
|
||||
COMMAND_METHODS = ['size'.freeze, 'first'.freeze, 'last'.freeze]
|
||||
|
||||
attr_reader :name, :lookups, :command_flags
|
||||
attr_reader :name, :lookups
|
||||
|
||||
def self.parse(markup)
|
||||
new(markup)
|
||||
|
||||
@@ -152,11 +152,5 @@ class VariableUnitTest < Minitest::Test
|
||||
lookup = VariableLookup.new('a.b.c')
|
||||
assert_equal 'a', lookup.name
|
||||
assert_equal ['b', 'c'], lookup.lookups
|
||||
assert_equal 0, lookup.command_flags
|
||||
|
||||
lookup = VariableLookup.new('a.first.size')
|
||||
assert_equal 'a', lookup.name
|
||||
assert_equal ['first', 'size'], lookup.lookups
|
||||
assert_equal 0b11, lookup.command_flags
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user