mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
Colocate Traversal classes with classes they traverse
This puts all knowledge of the traversal in the same file, and removes the need for a CASES registry.
This commit is contained in:
@@ -78,5 +78,11 @@ module Liquid
|
||||
def state
|
||||
[@name, @lookups, @command_flags]
|
||||
end
|
||||
|
||||
class Traversal < Liquid::Traversal
|
||||
def children
|
||||
@node.lookups
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user