mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Clean-up Context#stack.
This commit is contained in:
@@ -86,17 +86,11 @@ module Liquid
|
||||
# end
|
||||
#
|
||||
# context['var] #=> nil
|
||||
def stack(new_scope={},&block)
|
||||
result = nil
|
||||
def stack(new_scope={})
|
||||
push(new_scope)
|
||||
|
||||
begin
|
||||
result = yield
|
||||
ensure
|
||||
pop
|
||||
end
|
||||
|
||||
result
|
||||
yield
|
||||
ensure
|
||||
pop
|
||||
end
|
||||
|
||||
def clear_instance_assigns
|
||||
|
||||
Reference in New Issue
Block a user