Remove command_lookups reader

This commit is contained in:
Justin Li
2015-04-21 00:25:51 -04:00
parent e5dd63e1fc
commit f1f3f57647
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -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)
-6
View File
@@ -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